/* ==========================================================================
   Luora — Sistema de estilos
   Marca: azul #0B5394
   ========================================================================== */

:root {
  /* Paleta de marca */
  --brand: #0B5394;
  --brand-600: #0a4a84;
  --brand-700: #083b6a;
  --brand-800: #062c50;
  --brand-050: #eaf1f9;
  --brand-100: #d5e3f2;
  --accent: #1cb0f6;

  /* Neutros */
  --ink: #0f1b2d;
  --body: #40506b;
  --muted: #6b7a93;
  --line: #e3e8f0;
  --surface: #ffffff;
  --surface-alt: #f6f8fc;
  --surface-dark: #071a30;

  /* Sistema */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(6, 44, 80, .06), 0 1px 3px rgba(6, 44, 80, .08);
  --shadow: 0 10px 30px -12px rgba(6, 44, 80, .18);
  --shadow-lg: 0 30px 60px -20px rgba(6, 44, 80, .28);
  --container: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }

/* Layout ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--surface-alt); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-050);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); margin-bottom: 16px; }
.section-head p { font-size: clamp(17px, 2vw, 19px); color: var(--muted); }

/* Botones ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-050); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* Header ----------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); }
.brand svg { height: 34px; width: auto; }
.brand .brand-logo { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-weight: 500; font-size: 15.5px; color: var(--body); transition: color .2s var(--ease); white-space: nowrap; }
.nav a:hover { color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; padding: 168px 0 clamp(72px, 10vw, 128px);
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% -8%, rgba(28, 176, 246, .16), transparent 60%),
    radial-gradient(900px 520px at 8% 12%, rgba(11, 83, 148, .10), transparent 55%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--brand-700);
  background: #fff; border: 1px solid var(--brand-100);
  padding: 7px 14px 7px 10px; border-radius: 999px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.hero h1 {
  font-size: clamp(36px, 5.6vw, 62px); line-height: 1.06; margin-bottom: 22px; letter-spacing: -.03em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--body); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 30px; color: var(--ink); letter-spacing: -.02em; }
.hero-stats .stat span { font-size: 14.5px; color: var(--muted); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative; z-index: 2;
}
.hero-card .win-dots { display: flex; gap: 7px; margin-bottom: 20px; }
.hero-card .win-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.hero-card .win-dots span:nth-child(1) { background: #ff5f57; }
.hero-card .win-dots span:nth-child(2) { background: #febc2e; }
.hero-card .win-dots span:nth-child(3) { background: #28c840; }
.code-line { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-family: "SFMono-Regular", ui-monospace, "Menlo", monospace; font-size: 13.5px; }
.code-line .ln { color: #b8c2d4; width: 18px; text-align: right; flex-shrink: 0; user-select: none; }
.code-line .kw { color: var(--brand); } .code-line .fn { color: var(--accent); } .code-line .st { color: #16a34a; } .code-line .cm { color: var(--muted); }
.hero-chip {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink); z-index: 3;
}
.hero-chip svg { width: 22px; height: 22px; }
.hero-chip.chip-1 { top: -22px; right: 18px; animation: float 6s ease-in-out infinite; }
.hero-chip.chip-2 { bottom: -20px; left: -14px; animation: float 6s ease-in-out infinite 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Logos / confianza ------------------------------------------------------ */
.trust { padding: 40px 0; border-bottom: 1px solid var(--line); }
.trust p { text-align: center; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 40px; }
.trust-row .badge {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--body); font-size: 15px;
  opacity: .8;
}
.trust-row .badge svg { width: 22px; height: 22px; color: var(--brand); }

/* Servicios -------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand); margin-bottom: 22px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { font-size: 15.5px; margin-bottom: 18px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span { font-size: 13px; font-weight: 500; color: var(--brand-700); background: var(--brand-050); padding: 5px 11px; border-radius: 999px; }

/* Valor / Por qué -------------------------------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-item { padding: 8px; }
.value-item .vi-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--brand); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.value-item .vi-icon svg { width: 24px; height: 24px; }
.value-item h3 { font-size: 18.5px; margin-bottom: 8px; }
.value-item p { font-size: 15.5px; }

/* Proceso ---------------------------------------------------------------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process-step { position: relative; padding: 30px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.process-step .num {
  font-size: 15px; font-weight: 700; color: var(--brand); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-050); margin-bottom: 18px;
}
.process-step h3 { font-size: 18px; margin-bottom: 8px; }
.process-step p { font-size: 15px; }

/* CTA banda -------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(800px 400px at 80% -20%, rgba(28,176,246,.35), transparent 60%), linear-gradient(120deg, var(--brand-700), var(--brand));
  border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 76px) 24px;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }

/* Contacto --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.contact-info > p { color: var(--muted); font-size: 18px; margin-bottom: 34px; }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ci-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--brand-050); color: var(--brand); }
.contact-list .ci-icon svg { width: 22px; height: 22px; }
.contact-list .ci-label { font-size: 13.5px; color: var(--muted); }
.contact-list .ci-value { font-weight: 600; color: var(--ink); font-size: 16px; }
.contact-list a.ci-value:hover { color: var(--brand); }

/* Formulario */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: #e11d48; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15.5px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-alt); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-050);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa7bd; }
.field.error input, .field.error select, .field.error textarea { border-color: #e11d48; background: #fff5f6; }
.field .err-msg { display: none; font-size: 13px; color: #e11d48; margin-top: 6px; }
.field.error .err-msg { display: block; }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 4px 0 22px; }
.form-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; }
.form-submit { width: 100%; justify-content: center; }
.form-submit[disabled] { opacity: .65; cursor: not-allowed; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { display: none; align-items: flex-start; gap: 12px; padding: 15px 18px; border-radius: var(--radius-sm); font-size: 15px; margin-top: 20px; }
.form-status.show { display: flex; }
.form-status.ok { background: #eefdf3; color: #15803d; border: 1px solid #bbf7d0; }
.form-status.bad { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.form-status svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--surface-dark); color: #b9c6d8; padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer .f-brand svg { height: 34px; color: #fff; margin-bottom: 18px; }
.footer .f-brand p { font-size: 15px; max-width: 300px; color: #93a4bd; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 15px; color: #b9c6d8; transition: color .2s var(--ease); }
.footer ul a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #cdd8e8; transition: background .2s var(--ease), color .2s var(--ease); }
.footer-social a:hover { background: var(--brand); color: #fff; }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 14px; color: #7f92ad; }
.footer-bottom a:hover { color: #fff; }

/* Reveal al hacer scroll -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    gap: 4px; padding: 16px 24px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .value-grid, .process-grid, .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .container { padding-inline: 20px; }
}

/* Páginas legales -------------------------------------------------------- */
.legal-hero {
  padding: 128px 0 48px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
  border-bottom: 1px solid var(--line);
}
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 12px; }
.legal-hero p { color: var(--muted); font-size: 17px; }
.legal { padding: 56px 0 88px; }
.legal .container { max-width: 820px; }
.legal h2 {
  font-size: 22px; margin: 40px 0 12px; padding-top: 8px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; color: var(--brand-700); }
.legal p { margin-bottom: 14px; }
.legal ul.legal-list { margin: 0 0 16px; padding-left: 4px; }
.legal ul.legal-list li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.legal ul.legal-list li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand);
}
.legal a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--brand-700); }
.legal .placeholder {
  background: #fff7ed; border: 1px dashed #fdba74; color: #9a3412;
  padding: 2px 7px; border-radius: 6px; font-size: .92em; font-weight: 600;
}
.legal .note {
  background: var(--brand-050); border: 1px solid var(--brand-100); border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: 14.5px; color: var(--brand-800); margin: 24px 0;
}
.legal .muted-date { color: var(--muted); font-size: 14.5px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 40px;
  font-weight: 600; color: var(--brand);
}
.legal-back svg { width: 18px; height: 18px; }

/* Accesibilidad ---------------------------------------------------------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
