:root {
  --navy: #0D1B4B;
  --navy-deep: #09143A;
  --violet: #7B2FBE;
  --mint: #1ec97a;
  --muted: #4A5275;
  --line: #E3E6EF;
  --field: #CDD2E0;
  --soft: #F7F8FB;
  --on-navy: #C9CEE6;
  --on-navy-line: #2C3A78;
  --gutter: clamp(16px, 5.5vw, 80px);
  --max: 1440px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
section[id], #contacto { scroll-margin-top: 16px; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: stretch; gap: 5px; text-decoration: none; color: var(--navy); }
.logo__grupo { text-align: center; font-size: 11px; font-weight: 500; letter-spacing: 0.34em; padding-left: 0.34em; }
.logo__trazo { display: flex; align-items: center; gap: 4px; }
.logo__trazo span:first-child { flex-grow: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--navy), var(--violet)); }
.logo__trazo span:last-child { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.logo__digon { font-size: 38px; font-weight: 700; line-height: 0.9; }
.logo:hover { color: var(--navy); }

/* ---------- Barra superior y header ---------- */
.topbar { background: var(--navy); color: var(--on-navy); font-size: 13px; letter-spacing: 0.04em; }
.topbar .wrap { height: 40px; display: flex; align-items: center; justify-content: space-between; }
.lang { display: flex; align-items: center; gap: 2px; font-weight: 700; }
.lang a { text-decoration: none; color: #8C94BD; padding: 4px 6px; }
.lang a[aria-current="true"] { color: #ffffff; }
.lang span { color: #4A5A96; }

.site-header { background: #ffffff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.btn-outline { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 18px; border: 1.5px solid var(--navy); border-radius: 4px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-outline:hover { background: var(--navy); color: #ffffff; }
.header-actions { display: none; align-items: center; gap: 12px; }
.burger { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; background: #ffffff; cursor: pointer; color: var(--navy); }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #ffffff; }
.mobile-menu.is-open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; padding-block: 8px 20px; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 17px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .header-actions { display: flex; }
  .site-header .wrap { height: 80px; }
  .logo__digon { font-size: 32px; }
}
@media (max-width: 560px) {
  .header-actions .btn-outline { display: none; }
  .site-header .wrap { height: 72px; }
  .logo__digon { font-size: 26px; }
  .logo__grupo { font-size: 9px; }
  .topbar .wrap { height: 36px; }
  .topbar__lugar-largo { display: none; }
}
@media (min-width: 561px) { .topbar__lugar-corto { display: none; } }

/* ---------- Botones ---------- */
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 4px;
  background: var(--mint); color: var(--navy); font-size: 17px; font-weight: 700; text-decoration: none;
}
.btn-wa:hover { color: var(--navy); filter: brightness(0.95); }
.btn-wa svg { width: 20px; height: 20px; fill: var(--navy); flex-shrink: 0; }
.btn-navy {
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 4px;
  background: var(--navy); color: #ffffff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.btn-navy:hover { background: #16276a; }
.btn-navy[disabled] { opacity: 0.6; cursor: default; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #ffffff; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.split__label { grid-column: span 4; }
.split__body { grid-column: span 8; }
.h2 { font-size: clamp(38px, 4vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.lead-muted { font-size: 17px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--violet); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); }
@media (max-width: 900px) {
  .split__label, .split__body { grid-column: 1 / -1; }
}

/* ---------- Portada ---------- */
.hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; padding-block: clamp(40px, 5vw, 72px) clamp(40px, 4vw, 56px); }
.hero__text { grid-column: span 7; display: flex; flex-direction: column; gap: 24px; padding-right: 32px; }
.hero h1 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.06; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.hero__sub { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; font-weight: 500; }
.hero__p { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--muted); max-width: 560px; }
.trust { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.hero__form { grid-column: span 5; }
@media (max-width: 1080px) {
  .hero__text, .hero__form { grid-column: 1 / -1; padding-right: 0; }
}
@media (max-width: 560px) { .hero .btn-wa { width: 100%; } }

.form-card { padding: 32px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; gap: 18px; }
.form-card__title { font-size: 20px; font-weight: 700; }
.form-card__hint { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 4px; background: #ffffff;
  font: inherit; font-weight: 400; font-size: 16px; color: var(--navy);
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--violet); outline-offset: 0; border-color: var(--violet); }
.form-status { font-size: 14px; color: var(--muted); min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form-card { padding: 20px 16px; } }

/* ---------- ¿Te suena? ---------- */
.check-list { display: flex; flex-direction: column; gap: 28px; }
.check { display: flex; gap: 16px; align-items: flex-start; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; font-weight: 500; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 26px; height: 26px; margin: 2px 0 0; border: 2px solid #ffffff; border-radius: 4px; cursor: pointer; display: grid; place-content: center; }
.check input:checked { background: var(--mint); border-color: var(--mint); }
.check input:checked::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(-45deg) translate(1px, -1px); }
.suena__hint { font-size: 18px; line-height: 1.5; color: var(--on-navy); margin-top: 16px; }
.suena__tally { padding-top: 28px; margin-top: 40px; border-top: 1px solid var(--on-navy-line); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; font-weight: 700; }

/* ---------- Quiénes somos ---------- */
.quienes__big { font-size: clamp(23px, 2.4vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.quienes__p { max-width: 640px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); margin-top: 24px; }
.firma { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.firma__foto { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.firma__texto { display: flex; flex-direction: column; gap: 10px; }
.firma__trazo { display: flex; align-items: center; gap: 4px; width: 120px; }
.firma__trazo span:first-child { flex-grow: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--navy), var(--violet)); }
.firma__trazo span:last-child { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.firma strong { font-size: 17px; }
.firma small { font-size: 14px; color: var(--muted); }

/* ---------- Método ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.paso { padding: 32px 32px 36px; background: #ffffff; display: flex; flex-direction: column; gap: 12px; }
.paso__num { font-size: clamp(36px, 3vw, 44px); line-height: 1; font-weight: 700; color: var(--violet); font-variant-numeric: tabular-nums; }
.paso__name { font-size: 24px; font-weight: 700; }
.paso p { font-size: 18px; line-height: 1.55; }
.paso p.paso__quote { font-weight: 700; }
.paso p.paso__nota { color: var(--muted); font-size: 17px; }
@media (max-width: 640px) { .cards-2 { grid-template-columns: 1fr; } .paso { padding: 20px; } }

/* ---------- Casos ---------- */
.caso-destacado { padding: clamp(24px, 3vw, 40px); background: var(--navy); color: #ffffff; border-radius: 4px; display: flex; flex-direction: column; gap: 18px; }
.caso-destacado .tag { color: var(--mint); }
.caso-destacado .caso-destacado__num { font-size: clamp(44px, 5vw, 72px); line-height: 1; font-weight: 700; }
.caso-destacado p:not(.tag):not(.caso-destacado__num) { max-width: 620px; font-size: 18px; line-height: 1.55; color: #DDE1F2; }
.caso-destacado blockquote { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; font-weight: 500; }
.caso-destacado figcaption { font-size: 14px; color: var(--on-navy); margin-top: 4px; }
.casos-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; margin-top: 40px; }
.caso { padding-top: 20px; border-top: 1px solid var(--field); display: flex; flex-direction: column; gap: 10px; }
.caso p { font-size: 16px; line-height: 1.55; }
.caso p.caso__num { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; font-weight: 700; }
.caso blockquote { font-size: 16px; line-height: 1.45; font-weight: 500; }
.caso figcaption { font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 640px) { .casos-lista { grid-template-columns: 1fr; } }

/* ---------- Cómo trabajamos ---------- */
.fases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.fase { padding-top: 18px; border-top: 2px solid var(--navy); display: flex; flex-direction: column; gap: 10px; }
.fase__cuando { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); }
.fase__que { font-size: 22px; line-height: 1.25; font-weight: 700; }
.fase p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.sastre { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.3; font-weight: 700; margin-top: 48px; }
@media (max-width: 900px) { .fases { grid-template-columns: 1fr; } }

/* ---------- ¿Es para ti? ---------- */
.para-ti { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.para-ti__si, .para-ti__no { padding: clamp(20px, 2.5vw, 32px); border-radius: 4px; display: flex; flex-direction: column; gap: 20px; }
.para-ti__si { background: var(--soft); }
.para-ti__no { background: #ffffff; border: 1px solid var(--line); align-self: start; }
.subhead { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; }
.para-ti__no .subhead { color: var(--muted); }
.bullets { display: flex; flex-direction: column; gap: 16px; }
.bullets li { display: flex; gap: 12px; font-size: 18px; line-height: 1.45; }
.bullets svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bullets--si svg { stroke: var(--navy); stroke-width: 2.4; }
.bullets--no li { color: var(--muted); font-size: 17px; }
.bullets--no svg { stroke: var(--muted); stroke-width: 2; }
.para-ti__nota { padding-top: 20px; border-top: 1px solid var(--field); font-size: 20px; line-height: 1.4; font-weight: 700; }
@media (max-width: 900px) { .para-ti { grid-template-columns: 1fr; } }

/* ---------- Preguntas ---------- */
.faq { border-bottom: 1px solid var(--field); }
.faq details { border-top: 1px solid var(--field); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 22px; text-align: center; font-size: 28px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 44px 24px 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- Cierre ---------- */
.cierre .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.cierre h2 { max-width: 880px; font-size: clamp(32px, 3.9vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.cierre__sub { font-size: clamp(20px, 1.7vw, 22px); line-height: 1.4; font-weight: 500; }
.cierre__p { max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--on-navy); }
.cierre__firma { font-size: 14px; color: var(--on-navy); }
@media (max-width: 560px) { .cierre .btn-wa { width: 100%; } }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 36px 32px; padding-block: 64px; }
.footer__tag { max-width: 300px; font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.footer__col h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.footer__col nav { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { text-decoration: none; }
.footer__col .muted { color: var(--muted); }
.footer__col nav.lang { flex-direction: row; gap: 2px; }
.footer .lang a { color: var(--muted); }
.footer .lang a:first-child { padding-left: 0; }
.footer .lang a[aria-current="true"] { color: var(--navy); }
.footer .lang span { color: var(--field); }
.wa-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.wa-link svg { width: 18px; height: 18px; fill: #1DA851; }
.footer__bottom { border-top: 1px solid var(--line); }
.footer__bottom .wrap { padding-block: 20px; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; padding-block: 48px; }
  .footer__bottom .wrap { flex-direction: column; }
}

/* ---------- Página legal ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.legal h1 { font-size: clamp(32px, 3.5vw, 44px); line-height: 1.1; margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal .fecha { font-size: 14px; }
.form-card__legal { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: -6px; }

/* ---------- Trazo de avance fijo arriba ---------- */
/* El header se va con el scroll; el trazo se queda fijo arriba, sin fondo. */
.site-header { --p: 0; }
.progreso { position: fixed; left: 0; right: 0; top: 0; height: 7px; pointer-events: none; z-index: 40; visibility: hidden; opacity: 0; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.site-header.is-scrolled .progreso { visibility: visible; opacity: 1; transition: opacity 0.25s ease; }
.progreso__linea { position: absolute; left: 0; right: 0; top: 1.35px; height: 4.2px; background: linear-gradient(90deg, var(--navy), var(--violet)); clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0 round 0 4px 4px 0); }
.progreso__punto { position: absolute; top: 0; left: calc(var(--p) * 100%); width: 6.9px; height: 6.9px; margin-left: 3.5px; border-radius: 50%; background: var(--mint); }
.site-header.is-done .progreso__punto { display: none; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-flotante { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(13, 27, 75, 0.22); transition: transform 0.15s ease; }
.wa-flotante:hover { transform: scale(1.06); }
.wa-flotante svg { width: 32px; height: 32px; fill: #ffffff; }
@media (max-width: 560px) { .wa-flotante { right: 16px; bottom: 16px; width: 54px; height: 54px; } .wa-flotante svg { width: 30px; height: 30px; } }
