/* ==========================================================================
   Lic. Leily Torres — Abogada Migratoria
   Hoja de estilos principal (Mobile-First)
   --------------------------------------------------------------------------
   1. Tokens de diseño        6. Hero
   2. Reset y base            7. Secciones de la Home
   3. Utilidades / layout     8. Páginas internas
   4. Botones                 9. Footer
   5. Header + Mega menú     10. Animaciones / accesibilidad
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Paleta tomada del bosquejo PDF */
  --teal: #0e6f8f;          /* Azul turquesa / cyan ejecutivo */
  --teal-600: #0b5c77;
  --teal-700: #084a61;
  --teal-50: #e8f3f7;
  --night: #0b0d12;         /* Negro / azul noche */
  --night-800: #151a22;
  --pink: #f29ac6;          /* Rosado / magenta suave */
  --pink-600: #e573ae;
  --white: #ffffff;
  --gray-50: #f5f7fb;       /* Gris muy claro de fondos */
  --gray-100: #eceff5;
  --gray-300: #c9d0dc;
  --gray-500: #6b7484;
  --ink: #1b1f27;           /* Texto principal */

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
  --shadow-sm: 0 2px 8px rgba(11, 13, 18, .06);
  --shadow-md: 0 12px 32px rgba(11, 13, 18, .12);
  --container: 1180px;
  --gutter: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. RESET Y BASE ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* 3. UTILIDADES ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 72px; position: relative; }
.section--gray { background: var(--gray-50); }
.section--teal { background: var(--teal); color: var(--white); }
.section--night { background: var(--night); color: var(--white); }
.section-title { font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 800; margin-bottom: 1.2em; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal);
}
.section--teal .eyebrow, .section--night .eyebrow { color: var(--pink); }
.lead { font-size: 1.12rem; color: var(--gray-500); max-width: 62ch; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px;
  background: var(--pink); color: var(--night); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Marca de agua tipográfica (Testimoniales) */
.watermark {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(7rem, 22vw, 18rem); font-weight: 800; letter-spacing: -.04em;
  color: rgba(255, 255, 255, .07); white-space: nowrap; user-select: none;
}

/* Iconos SVG inyectados por data-icon */
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* 4. BOTONES ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.4em; border: 1.5px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.2;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--night); color: var(--white); }
.btn--dark:hover { background: var(--night-800); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-600); }
.btn--pink-outline { border-color: var(--pink); color: var(--pink); background: transparent; }
.btn--pink-outline:hover { background: var(--pink); color: var(--night); }
.btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal); color: var(--white); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: .5em 1em; font-size: .85rem; }

/* 5. HEADER + MENÚ DESPLEGABLE ------------------------------------------------------ */
/* Estilo del bosquejo PDF: barra turquesa limpia con ESP|ENG y botón ☰.
   El menú es un panel desplegable tanto en escritorio como en móvil. */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--teal); color: var(--white);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 13, 18, .18); }
.header-inner { display: flex; align-items: center; gap: 14px; height: 100%; position: relative; }

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; margin-right: auto; transition: opacity .25s var(--ease); }
.brand__name { font-weight: 800; font-size: 1.12rem; color: var(--white); }
.brand__name span { color: var(--pink); }
.brand__tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* Selector de idioma ESP | ENG */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.lang-switch button { background: none; border: 0; padding: 6px 7px; color: var(--gray-500); border-radius: 3px; }
.lang-switch button[aria-pressed="true"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--pink); }
.lang-switch .sep { color: var(--gray-300); }
.site-header .header-lang button { color: rgba(255,255,255,.7); }
.site-header .header-lang button[aria-pressed="true"] { color: var(--white); }
.site-header .header-lang .sep { color: rgba(255,255,255,.4); }
.header-lang { transition: opacity .25s var(--ease); }

/* Botón hamburguesa */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 0; background: none; color: var(--white); border-radius: var(--radius);
}
.nav-toggle:hover { background: rgba(255,255,255,.08); }
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after {
  display: block; width: 26px; height: 2px; background: currentColor; position: relative;
  transition: transform .25s var(--ease), background .2s;
}
.nav-toggle .bar::before, .nav-toggle .bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bar::before { top: -8px; }
.nav-toggle .bar::after { top: 8px; }
.nav-open .nav-toggle .bar { background: transparent; }
.nav-open .nav-toggle .bar::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle .bar::after { transform: translateY(-8px) rotate(-45deg); }

/* Panel desplegable — móvil: ancho completo bajo la barra */
.main-nav {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: var(--white); color: var(--ink); padding: 8px var(--gutter) 24px;
  box-shadow: var(--shadow-md); border-top: 2px solid var(--pink);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
.nav-backdrop {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: -1; background: rgba(11, 13, 18, .35);
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), visibility .22s;
}
.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

.nav-list { list-style: none; display: flex; flex-direction: column; }
.nav-list > li { border-bottom: 1px solid var(--gray-100); }
.nav-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 4px; background: none; border: 0; text-align: left;
  font-weight: 600; font-size: 1rem; color: var(--night); text-decoration: none;
  transition: color .2s;
}
.nav-link:hover { color: var(--teal); }
.nav-link[aria-current="page"] { color: var(--teal); }
.nav-link[aria-current="page"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.has-sub > .nav-link[aria-current="page"]::after { display: none; }
.nav-link .chev { transition: transform .25s var(--ease); color: var(--teal); }
.has-sub.is-open > .nav-link .chev { transform: rotate(180deg); }

/* Submenú de Servicios (acordeón dentro del panel) */
.sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.has-sub.is-open .sub { grid-template-rows: 1fr; }
.sub > div { overflow: hidden; }
.sub__inner { display: grid; gap: 8px; padding: 2px 0 14px; }
.mega__col {
  display: flex; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--gray-50);
  text-decoration: none; border: 1px solid transparent; transition: border-color .2s, background .2s;
}
.mega__col:hover, .mega__col[aria-current="page"] { border-color: var(--pink); background: var(--white); }
.mega__ico {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-50); color: var(--teal); flex: none;
}
.mega__title { display: block; font-weight: 700; color: var(--night); font-size: .92rem; line-height: 1.3; }
.mega__desc { display: block; font-size: .8rem; color: var(--gray-500); margin: 3px 0 6px; line-height: 1.4; }
.mega__subs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.mega__subs li {
  font-size: .7rem; padding: 2px 7px; border-radius: 99px; background: var(--white);
  border: 1px solid var(--gray-100); color: var(--teal-700);
}

.nav-ctas { display: grid; gap: 10px; margin-top: 18px; }
.nav-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: .82rem; color: var(--gray-500); }
.nav-meta a { text-decoration: none; }
.nav-meta a:hover { color: var(--teal); }

body.nav-open { overflow: hidden; }

/* Escritorio/tablet: el panel es una tarjeta flotante alineada a la derecha */
@media (min-width: 768px) {
  .main-nav {
    position: absolute; left: auto; right: var(--gutter); top: calc(100% + 10px);
    width: 400px; max-height: calc(100vh - var(--header-h) - 30px);
    border-radius: 6px; padding: 10px 22px 22px;
  }
  .nav-backdrop { background: rgba(11, 13, 18, .18); }
  body.nav-open { overflow: auto; }
}

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: var(--white); box-shadow: var(--shadow-md);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.nav-open .wa-float { opacity: 0; pointer-events: none; }
.wa-float .icon { width: 28px; height: 28px; }

/* 6. HERO -------------------------------------------------------------------------- */
.hero { background: var(--teal); color: var(--white); position: relative; overflow: hidden; }
.hero__inner { display: grid; gap: 40px; padding-block: 0 64px; position: relative; }
/* Recuadro rosa como en el bosquejo: sólo líneas izquierda, derecha y abajo,
   arrancando desde el borde superior del hero (sin línea arriba). */
.hero__frame {
  position: relative; padding: 56px 24px 32px;
  border: 1.5px solid var(--pink); border-top: 0;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 400; letter-spacing: .01em; margin-bottom: .35em; }
.hero h1 .h1-sub { display: block; font-size: clamp(1.05rem, 2.5vw, 1.35rem); font-weight: 400; color: rgba(255,255,255,.85); margin-top: .5em; letter-spacing: 0; }
.hero__lead { color: rgba(255,255,255,.85); max-width: 46ch; margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo { position: relative; justify-self: center; width: min(100%, 420px); }
.hero__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(1) contrast(1.05); background: var(--teal-600); }
.hero__arrow {
  position: absolute; right: -6px; bottom: -48px; color: var(--white); text-decoration: none;
  animation: bob 2.2s ease-in-out infinite;
}
.hero__arrow .icon { width: 38px; height: 38px; }

/* 7. HOME ------------------------------------------------------------------------- */

/* BIO */
.bio { display: grid; gap: 36px; align-items: start; }
.bio__photo img { width: 100%; aspect-ratio: 5 / 6; object-position: center top; object-fit: cover; background: var(--gray-100); }
.rule-title { display: flex; align-items: center; gap: 16px; font-size: .9rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1em; }
.rule-title::after { content: ""; flex: 1; height: 1.5px; background: var(--teal); }
.rule-title--pink::after { background: var(--pink); }
.bio__text p { color: #3a404c; }
.bg-scale {
  position: absolute; right: -40px; bottom: -30px; width: 280px; opacity: .06; pointer-events: none; color: var(--night);
}

/* Tarjetas de servicio */
.cards-3 { display: grid; gap: 28px; }
.service-card { display: flex; flex-direction: column; }
.service-card h3 { font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5em; display: flex; gap: 8px; }
.service-card p { font-size: .9rem; color: #3a404c; flex: 1; }
.service-card__img { overflow: hidden; margin: 6px 0 16px; aspect-ratio: 16 / 10; background: var(--gray-100); }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.05); }

/* Testimoniales */
.testimonials { display: grid; gap: 20px; position: relative; }
.t-card {
  border: 1.5px solid var(--pink); padding: 28px 24px; display: flex; flex-direction: column;
  background: rgba(255,255,255,.02); transition: transform .3s var(--ease), background .3s;
}
.t-card:hover { transform: translateY(-4px); }
.t-card--dark { background: var(--night); border-color: var(--white); }
.t-card blockquote { margin: 0 0 1.5em; font-size: .95rem; line-height: 1.6; flex: 1; }
.t-card cite { font-style: normal; font-weight: 700; font-size: .92rem; }
.t-card .t-meta { display: block; font-size: .82rem; opacity: .8; font-style: italic; font-weight: 400; }
.t-stars { display: flex; gap: 2px; color: var(--pink); margin-bottom: 14px; }
.t-stars .icon { width: 15px; height: 15px; }

/* Proceso "¿Cómo te ayudo?" */
.steps { list-style: none; display: grid; gap: 28px; position: relative; counter-reset: step; }
.step { text-align: center; position: relative; }
.step__btn {
  display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%;
  background: none; border: 0; padding: 0; color: inherit;
}
.step__ico {
  width: 88px; height: 88px; display: grid; place-items: center; color: var(--pink);
  border-radius: 50%; transition: background .3s var(--ease), transform .3s var(--ease);
}
.step__ico .icon { width: 64px; height: 64px; stroke-width: 1.25; }
.step__title { font-weight: 700; letter-spacing: .1em; color: var(--teal); font-size: .95rem; }
.step__title::before { counter-increment: step; content: counter(step) ". "; color: var(--pink-600); }
.step__desc { font-size: .9rem; color: var(--gray-500); max-width: 26ch; margin: 8px auto 0; }
.step.is-active .step__ico, .step__btn:hover .step__ico { background: #fdeef6; transform: translateY(-4px); }
.bg-gavel { position: absolute; left: -60px; top: 40px; width: 360px; opacity: .05; pointer-events: none; }

/* Barra de confianza */
.trust { background: var(--night); color: var(--white); padding-block: 22px; }
.trust__list { list-style: none; display: grid; gap: 18px; }
.trust__item { display: flex; align-items: center; justify-content: center; gap: 14px; }
.trust__item .icon { width: 30px; height: 30px; color: var(--white); stroke-width: 1.4; }
.trust__title { display: block; font-weight: 700; letter-spacing: .1em; font-size: .85rem; text-transform: uppercase; }
.trust__sub { display: block; font-size: .78rem; color: rgba(255,255,255,.65); line-height: 1.4; }

/* FAQ acordeón */
.faq-title { color: var(--teal); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.accordion { display: grid; gap: 12px; }
.acc-item { border: 1.5px solid var(--teal); background: var(--teal); color: var(--white); transition: background .25s var(--ease), color .25s; }
.acc-item.is-open { background: var(--white); color: var(--ink); border-color: var(--pink); }
.acc-item h2, .acc-item h3 { margin: 0; font-size: inherit; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; background: none; border: 0; color: inherit; text-align: left;
  font-weight: 700; font-size: .92rem; line-height: 1.4;
}
.acc-item.is-open .acc-trigger { color: var(--teal); }
.acc-trigger .icon { transition: transform .25s var(--ease); }
.acc-item.is-open .acc-trigger .icon { transform: rotate(45deg); color: var(--pink-600); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-body { padding: 0 18px 18px; font-size: .93rem; color: #3a404c; }
.acc-body ul { padding-left: 1.2em; margin-bottom: 1em; }
.acc-body li { margin-bottom: .3em; }
.faq-wrap { display: grid; gap: 24px; position: relative; }
.bg-hands { position: absolute; right: 0; top: -40px; width: 200px; opacity: .06; pointer-events: none; }

/* Bloque de cierre: frase de impacto + contacto */
.closing { display: grid; gap: 32px; align-items: end; }
.quote-box { border: 1.5px solid var(--pink); padding: 28px 24px 18px; }
.quote-box p.quote { font-size: clamp(1.45rem, 3.6vw, 2.1rem); font-weight: 800; color: var(--teal); line-height: 1.2; margin-bottom: 1em; }
.quote-box small { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--teal); text-transform: uppercase; }
.quote-box small a { text-decoration: none; }
.quote-box small a:hover { color: var(--pink-600); }
.contact-card dl { margin: 0 0 16px; display: grid; gap: 14px; }
.contact-card dt { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--teal); text-transform: uppercase; }
.contact-card dd { margin: 2px 0 0; font-size: .92rem; }
.contact-card dd a { text-decoration: none; }
.contact-card dd a:hover { color: var(--teal); text-decoration: underline; }
.contact-card .btns { display: flex; flex-direction: column; gap: 10px; max-width: 260px; }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--gray-300); color: var(--teal); transition: background .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.socials .icon { width: 17px; height: 17px; }

/* 8. PÁGINAS INTERNAS ---------------------------------------------------------------- */
.page-hero { background: var(--teal); color: var(--white); padding-block: 44px 52px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; max-width: 22ch; }
.page-hero p { color: rgba(255,255,255,.86); max-width: 62ch; font-size: 1.05rem; }
.page-hero .hero__actions { margin-top: 24px; }
.page-hero__mark { position: absolute; right: -30px; bottom: -40px; width: 260px; opacity: .1; color: var(--white); pointer-events: none; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; margin-bottom: 20px; color: rgba(255,255,255,.8); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--pink); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Resumen ejecutivo citable (GEO) */
.summary {
  border-left: 4px solid var(--pink); background: var(--gray-50); padding: 22px 24px; margin-bottom: 48px;
}
.summary h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .6em; }
.summary p { font-size: 1.08rem; margin: 0; }

.detail-grid { display: grid; gap: 20px; }
.detail-card {
  border: 1px solid var(--gray-100); padding: 26px 22px; background: var(--white);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.detail-card:hover { border-color: var(--pink); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.detail-card__num { font-size: .78rem; font-weight: 800; color: var(--pink-600); letter-spacing: .1em; }
.detail-card h3 { font-size: 1.15rem; margin: 6px 0 10px; color: var(--night); }
.detail-card p { font-size: .93rem; color: #3a404c; margin-bottom: .8em; }
.detail-card ul { list-style: none; display: grid; gap: 6px; font-size: .9rem; color: #3a404c; }
.detail-card li { display: flex; gap: 8px; }
.detail-card li .icon { color: var(--teal); margin-top: 4px; width: 15px; height: 15px; }

.group-title { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin: 48px 0 20px; }
.group-title:first-of-type { margin-top: 0; }
.group-title .mega__ico { width: 42px; height: 42px; }

.two-col { display: grid; gap: 36px; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; }
.check-list .icon { color: var(--pink-600); margin-top: 4px; }

.cta-band { background: var(--night); color: var(--white); padding-block: 48px; }
.cta-band__inner { display: grid; gap: 20px; align-items: center; }
.cta-band h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0; }
.cta-band p { color: rgba(255,255,255,.75); margin: 6px 0 0; }
.cta-band .hero__actions { justify-content: flex-start; }

/* Timeline de trayectoria (Sobre mí) */
.timeline { list-style: none; position: relative; padding-left: 28px; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--gray-100); }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--teal);
}
.timeline h3 { font-size: 1.05rem; margin-bottom: .25em; }
.timeline .org { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--pink-600); text-transform: uppercase; }
.timeline p { color: #3a404c; font-size: .94rem; margin: .4em 0 0; }

.values { display: grid; gap: 16px; }
.value { padding: 22px; border-top: 3px solid var(--teal); background: var(--white); box-shadow: var(--shadow-sm); }
.value .icon { width: 30px; height: 30px; color: var(--pink-600); margin-bottom: 10px; }
.value h3 { font-size: 1.05rem; }
.value p { font-size: .9rem; color: #3a404c; margin: 0; }

/* Formulario de contacto */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
.field label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; color: var(--night); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-300); border-radius: var(--radius);
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d64545; }
.field .error { display: none; color: #c43535; font-size: .8rem; margin-top: 4px; }
.field.has-error .error { display: block; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-group label {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius); font-weight: 600; font-size: .88rem; cursor: pointer; margin: 0;
}
.radio-group input { accent-color: var(--teal); width: auto; }
.radio-group label:has(input:checked) { border-color: var(--teal); background: var(--teal-50); color: var(--teal-700); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--gray-500); }
.consent input { margin-top: 4px; accent-color: var(--teal); }
.form-status { padding: 14px 16px; border-left: 4px solid var(--teal); background: var(--teal-50); font-size: .92rem; display: none; }
.form-status.is-visible { display: block; }
.contact-aside { background: var(--gray-50); padding: 28px 24px; }
/* Franja de datos de contacto bajo la agenda */
.contact-strip { margin-top: 48px; padding: 28px 24px; background: var(--gray-50); border-radius: 8px; }
.contact-strip__grid { display: grid; gap: 18px; margin: 0 0 20px; }
.contact-strip dt { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--teal); text-transform: uppercase; }
.contact-strip dd { margin: 4px 0 0; font-size: .92rem; }
.contact-strip dd a { text-decoration: none; }
.contact-strip dd a:hover { color: var(--teal); text-decoration: underline; }
@media (min-width: 640px) { .contact-strip__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .contact-strip__grid { grid-template-columns: repeat(5, 1fr); } }
.contact-aside .contact-card dl { gap: 18px; }

/* Texto legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; color: var(--teal-700); }
.legal h3 { font-size: 1.02rem; margin-top: 1.4em; }
.legal p, .legal li { color: #3a404c; font-size: .96rem; }
.legal ul { padding-left: 1.3em; margin-bottom: 1em; }
.legal .meta { font-size: .85rem; color: var(--gray-500); }

/* Tabs FAQ */
.faq-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--gray-300); background: var(--white);
  font-size: .85rem; font-weight: 600; color: var(--night);
}
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* 9. FOOTER ------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.75); padding-block: 48px 24px; font-size: .9rem; }
.footer-grid { display: grid; gap: 32px; }
.site-footer h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 1em; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--pink); }
.footer-brand .brand__name { color: var(--white); }
.footer-brand p { margin-top: 12px; max-width: 34ch; }
.site-footer .socials a { border-color: rgba(255,255,255,.25); color: var(--white); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .78rem; letter-spacing: .04em;
}
.footer-bottom a { text-transform: uppercase; font-weight: 700; color: var(--pink); }

/* 10. ANIMACIONES / A11Y ------------------------------------------------------------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===================================================================================
   BREAKPOINTS (Mobile-First)
   =================================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .cards-3, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust__list { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .detail-grid, .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__frame { padding: 72px 40px 44px; }
}

@media (min-width: 900px) {
  .section { padding-block: 96px; }
  /* La foto termina a la misma altura que la línea inferior del recuadro */
  .hero__inner { grid-template-columns: 1.15fr 1fr; align-items: end; padding-block: 0 96px; }
  .hero__frame { padding: 104px 48px 64px; margin-right: -80px; z-index: 1; }
  .hero__photo { justify-self: end; }
  .hero__arrow { bottom: -56px; }
  .bio { grid-template-columns: 1fr 1.15fr; gap: 56px; }
  .cards-3, .testimonials { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  /* Línea punteada que conecta los pasos */
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 44px; left: calc(50% + 56px); right: calc(-50% + 56px);
    border-top: 2px dashed var(--pink); opacity: .7;
  }
  .closing { grid-template-columns: 1.6fr 1fr; gap: 56px; }
  /* Proceso limpio como el PDF: sólo icono + etiqueta; la descripción
     aparece bajo el paso activo (recorrido automático / hover / clic) */
  .step__desc { opacity: 0; transform: translateY(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .step.is-active .step__desc { opacity: 1; transform: none; }
  .faq-wrap { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 56px; }
  .two-col--form { grid-template-columns: 1.5fr 1fr; }
  .detail-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(4, 1fr); }
  .cta-band__inner { grid-template-columns: 1.4fr 1fr; }
  .cta-band .hero__actions { justify-content: flex-end; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
