/* Embudo VSL · Escuela Nacional de Peritos — sistema de diseño compartido
   Marca: navy #0b0033 · azul #79a5f2 · grises lila #cfcdd9 / #b5b2c1 / #3c335c · Mulish */

@font-face {
  font-family: 'Mulish';
  src: url('/assets/fonts/mulish-latin-var.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-950: #06001c;
  --navy-900: #0b0033;
  --navy-850: #10073f;
  --navy-800: #170d4f;
  --navy-700: #241a66;
  --accent: #79a5f2;
  --accent-600: #5f8fe9;
  --accent-300: #a9c6f8;
  --accent-100: #e4edfd;
  --text: #ffffff;
  --text-2: #cfcdd9;
  --text-3: #a6a2bb;
  --ink: #0b0033;
  --ink-2: #3c335c;
  --ink-3: #6b6585;
  --paper: #f5f5f9;
  --paper-2: #ebeaf2;
  --line: rgba(255, 255, 255, .10);
  --line-accent: rgba(121, 165, 242, .28);
  --line-ink: #e1dfea;
  --wa: #25d366;
  --wa-ink: #062a14;
  --star: #fbbc04;
  --danger: #ff8a8a;
  --ok: #3ddc97;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 30px 80px -34px rgba(0, 0, 0, .75);
  --font: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ── tipografía ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-300);
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(121, 165, 242, .18), 0 0 14px var(--accent);
  animation: blink 2.4s ease-in-out infinite;
}
.eyebrow--ink { color: var(--accent-600); }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

.h1 { font-size: clamp(30px, 4.6vw, 58px); font-weight: 900; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.h3 { font-size: clamp(19px, 1.8vw, 22px); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.hl { background: linear-gradient(92deg, #c6daff 0%, var(--accent) 60%, #8fb3f6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-ink { color: var(--accent-600); }
.lead { font-size: clamp(16px, 1.55vw, 19px); line-height: 1.6; color: var(--text-2); }
.muted { color: var(--text-3); }
.mono { font-family: var(--mono); }

/* ── botones ── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 14px;
  font-size: 16.5px; font-weight: 900; letter-spacing: .01em; line-height: 1.15; text-align: center;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, box-shadow .25s ease, background-color .2s ease, filter .2s ease;
}
.btn svg { flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  color: var(--navy-900);
  background: linear-gradient(180deg, #a8c5f8 0%, var(--accent) 52%, #6a98ee 100%);
  box-shadow: 0 14px 34px -12px rgba(121, 165, 242, .75), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(11, 0, 51, .12);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(121, 165, 242, .9), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(11, 0, 51, .12); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 38%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); animation: shine 5.5s ease-in-out 2s infinite;
}
@keyframes shine { 0%, 78% { left: -60% } 100% { left: 130% } }
.btn-primary .arrow { transition: transform .2s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-block { width: 100%; }
.btn-wa { color: var(--wa-ink); background: var(--wa); box-shadow: 0 14px 30px -14px rgba(37, 211, 102, .8), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-wa:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-accent); }
.btn-ghost:hover { background: rgba(121, 165, 242, .12); }
.btn-ghost-ink { color: var(--ink); background: #fff; border: 1px solid var(--line-ink); }
.btn-ghost-ink:hover { border-color: var(--accent); }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 3px solid rgba(11, 0, 51, .25); border-top-color: var(--navy-900); border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
[aria-disabled='true'] { opacity: .75; }

/* ── tarjeta "cristal" ── */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 16, 88, .78) 0%, rgba(11, 0, 51, .88) 100%);
  border: 1px solid var(--line-accent);
  border-radius: 22px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.glass::before {
  content: ''; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── marco de inspección (esquinas) ── */
.brackets { position: relative; }
.brackets::after {
  content: ''; position: absolute; inset: -10px; pointer-events: none; z-index: 3;
  --c: var(--accent); --l: 28px; --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat;
}

/* ── formulario ── */
.form-title { font-size: 20px; font-weight: 900; letter-spacing: -.01em; line-height: 1.2; }
.form-title small { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.fields { display: grid; gap: 10px; }
.field { position: relative; }
.field .ico { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--accent-300); pointer-events: none; opacity: .9; }
.field input, .field select {
  width: 100%; height: 52px; padding: 0 16px 0 44px;
  font-size: 16px; font-weight: 600; color: #fff;
  background: rgba(6, 0, 28, .55);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-sm);
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input::placeholder { color: #8f8aa8; font-weight: 500; }
.field input:focus, .field select:focus { border-color: var(--accent); background: rgba(6, 0, 28, .8); box-shadow: 0 0 0 4px rgba(121, 165, 242, .18); }
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #120a45 inset; caret-color: #fff; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 138, 138, .14); }
.phone { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; }
.phone select {
  padding: 0 24px 0 12px; font-size: 15px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23a9c6f8' stroke-width='2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.phone select option { color: #0b0033; background: #fff; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.45; color: var(--text-3); cursor: pointer; }
.consent input { flex: none; width: 19px; height: 19px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--accent-300); text-underline-offset: 2px; }
.form-error { margin: 0; padding: 9px 12px; font-size: 13px; font-weight: 700; color: #ffd0d0; background: rgba(255, 138, 138, .1); border: 1px solid rgba(255, 138, 138, .35); border-radius: 10px; }
.form-safe { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--text-3); }
.form-safe svg { width: 14px; height: 14px; color: var(--ok); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ── estrellas / reseñas ── */
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 16px; height: 16px; }
.rating-chip { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.rating-chip strong { color: #fff; font-weight: 800; }
.g-logo { width: 18px; height: 18px; flex: none; }

.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  background: #fff; color: var(--ink); border: 1px solid var(--line-ink); border-radius: var(--radius);
  box-shadow: 0 20px 40px -32px rgba(11, 0, 51, .45);
}
.review p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.review p strong { color: var(--ink); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--paper-2); }
.review-avatar { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--accent-600)); }
.review-name { font-weight: 800; font-size: 14.5px; line-height: 1.2; }
.review-meta { font-size: 12.5px; color: var(--ink-3); }
.verified { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }

/* ── claustro ── */
.team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.member { text-align: center; }
.member img { width: 104px; height: 104px; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; border: 3px solid var(--navy-900); box-shadow: 0 0 0 2px var(--accent), 0 18px 30px -18px rgba(0, 0, 0, .7); background: var(--paper-2); }
.member-name { font-weight: 900; font-size: 15px; line-height: 1.25; }
.member-role { margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--text-3); }
.section--light .member img { border-color: #fff; }
.section--light .member-role { color: var(--ink-3); }

/* ── logos colaboradores ── */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 44px; width: auto; filter: grayscale(1) contrast(1.05); opacity: .72; transition: filter .3s, opacity .3s; }
.marquee img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%) } }

/* ── secciones ── */
.section { position: relative; padding: 96px 0; }
.section--deep { background: var(--navy-950); }
.section--navy { background: var(--navy-900); }
.section--light { background: var(--paper); color: var(--ink); }
.section--light .lead { color: var(--ink-2); }
.section--white { background: #fff; color: var(--ink); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .lead { margin-top: 16px; }
.grid-bg::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(121, 165, 242, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(121, 165, 242, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}
.section > .container, .section > .container--narrow { position: relative; }

/* ── FAQ ── */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line-ink); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: rgba(121, 165, 242, .7); box-shadow: 0 18px 40px -30px rgba(11, 0, 51, .5); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 800; font-size: 16.5px; line-height: 1.35; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath stroke='%230b0033' stroke-width='2.2' d='M7 1v12M1 7h12'/%3E%3C/svg%3E") center no-repeat; transition: transform .25s, background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-100); }
.faq .answer { padding: 0 22px 22px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.faq .answer p + p { margin-top: 10px; }

/* ── cabecera ── */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 30; padding: 20px 0; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { width: 148px; height: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; font-size: 12.5px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-accent); border-radius: 999px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); white-space: nowrap; }
.pill svg { width: 14px; height: 14px; color: var(--accent); }

/* ── pasos del embudo ── */
.steps { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.step { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.step i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 10.5px; border: 1px solid var(--line-accent); color: var(--text-2); }
.step.is-done i { background: var(--accent); border-color: var(--accent); color: var(--navy-900); }
.step.is-current { color: #fff; }
.step.is-current i { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(121, 165, 242, .2); color: #fff; }
.step-line { width: 22px; height: 1px; background: var(--line-accent); }

/* ── pie ── */
.footer { padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); background: var(--navy-950); color: var(--text-3); font-size: 13px; border-top: 1px solid var(--line); }
.footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.footer img { width: 120px; height: auto; opacity: .9; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* ── WhatsApp flotante ── */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  color: #fff; background: var(--wa); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .55);
  transition: transform .2s, bottom .3s;
}
.wa-float svg { width: 31px; height: 31px; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.6s ease-out infinite; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .wa-tip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  padding: 9px 14px; font-size: 13px; font-weight: 800; line-height: 1.2; white-space: nowrap;
  color: var(--ink); background: #fff; border-radius: 12px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45);
}
@keyframes ring { 0% { transform: scale(1); opacity: .7 } 100% { transform: scale(1.55); opacity: 0 } }

/* ── barra fija (móvil) ── */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 0, 38, .94); border-top: 1px solid var(--line-accent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.sticky.is-in { transform: none; }
.sticky .btn { flex: 1; min-height: 52px; font-size: 16px; }
.sticky .btn-wa { flex: 0 0 52px; padding: 0; }
.sticky ~ .wa-float { display: none; }

/* ── toast ── */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 90;
  max-width: calc(100% - 32px); padding: 13px 18px; font-size: 14.5px; font-weight: 700; line-height: 1.4; text-align: center;
  color: var(--ink); background: #fff; border-radius: 14px; box-shadow: 0 20px 44px -16px rgba(0, 0, 0, .6);
  transform: translate(-50%, 20px); opacity: 0; transition: .3s ease;
}
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }

/* ── aparición ── */
.enp-js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.enp-js .reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s } .reveal.d2 { transition-delay: .16s } .reveal.d3 { transition-delay: .24s } .reveal.d4 { transition-delay: .32s }

/* ── responsive ── */
@media (max-width: 1080px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px; }
}
@media (max-width: 899px) {
  :root { --gutter: 16px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 34px; }
  .reviews { grid-template-columns: 1fr; gap: 14px; }
  .review { padding: 20px; }
  .logo img { width: 116px; }
  .topbar { padding: 14px 0; }
  .marquee img { height: 36px; }
  .marquee-track { gap: 40px; }
  .member img { width: 88px; height: 88px; }
  .wa-float { width: 56px; height: 56px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .wa-float .wa-tip { display: none; }
  .footer .container { flex-direction: column; align-items: flex-start; }
  .steps .step span { display: none; }
  .steps .step.is-current span { display: inline; }
}
@media (min-width: 900px) {
  .sticky { display: none; }
  .sticky ~ .wa-float { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}
