/* ==========================================================================
   Yei Agencia Educativa — hoja de estilos compartida
   Paleta (presentación de marca):
     Tinta #1F1B3A · Papel #FBF6EF · Salto #FF5A3C · Crecimiento #5AE35F
   Tipografía: Fraunces (títulos) · Plus Jakarta Sans (texto)
   ========================================================================== */

:root {
  --tinta: #1F1B3A;
  --tinta-2: #2A2550;          /* tarjetas sobre fondo tinta */
  --tinta-soft: #4A4566;       /* texto secundario sobre papel */
  --papel: #FBF6EF;
  --papel-2: #F3EBDF;          /* tarjetas sobre fondo papel */
  --salto: #FF5A3C;
  --salto-dark: #D63F22;       /* coral legible para texto pequeño sobre papel */
  --crecimiento: #5AE35F;
  --linea: #E6DCCD;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --section-y: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }   /* el desplazamiento suave a #anclas lo hace main.js */

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--papel);
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

:focus-visible { outline: 3px solid var(--salto); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--salto); color: var(--tinta); padding: .6em 1em; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Eyebrow / etiquetas ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  color: var(--salto-dark);
}
.dark .eyebrow { color: var(--crecimiento); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem;
  padding: .95em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--salto); color: var(--tinta); }
.btn-primary:hover { background: #ff7458; }
.btn-ghost { border-color: currentColor; color: var(--tinta); background: transparent; }
.dark .btn-ghost { color: var(--papel); }
.btn-ghost:hover { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.dark .btn-ghost:hover { background: var(--papel); color: var(--tinta); border-color: var(--papel); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Encabezado / navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(31, 27, 58, .96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  color: var(--papel);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }

.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo-word {
  font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; color: var(--salto);
  font-variation-settings: "opsz" 144; letter-spacing: -0.01em;
}
/* Logotipo oficial: coral con contorno blanco (proporción del archivo de marca: 6px a 220px) */
.logo-word, .hero .hero-title, .big-mark {
  -webkit-text-stroke: 0.028em #fff;
  paint-order: stroke fill;
}
.logo-sub {
  font-size: .56rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--crecimiento); margin-top: 3px;
}

.nav-toggle {
  display: none; background: transparent; border: 0; color: var(--papel);
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer; padding: 0;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 24px; height: 2px; background: currentColor; margin: 0 auto;
  position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: .55em .9em; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; color: var(--papel);
}
.site-nav a:hover { background: var(--tinta-2); }
.site-nav a[aria-current="page"] { color: var(--crecimiento); }
.site-nav .nav-cta a { background: var(--salto); color: var(--tinta); margin-left: 8px; }
.site-nav .nav-cta a:hover { background: #ff7458; }
.site-nav .nav-cta a[aria-current="page"] { color: var(--tinta); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--tinta); border-top: 1px solid var(--tinta-2);
    display: none; padding: 12px var(--gutter) 24px;
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: .85em 1em; font-size: 1.05rem; border-radius: 12px; }
  .site-nav .nav-cta a { margin: 10px 0 0; text-align: center; }
}

/* ---------- Secciones ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.dark { background: var(--tinta); color: var(--papel); }
.dark h2, .dark h1 { color: var(--papel); }
.dark .accent-green { color: var(--crecimiento); }
.paper-2 { background: var(--papel-2); }
.accent { color: var(--salto); }
.accent-green { color: var(--crecimiento); }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; }
.muted { color: var(--tinta-soft); }
.dark .muted { color: #C9C4DC; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* círculos decorativos (como en la presentación) */
.has-orbs { overflow: hidden; }
.orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.orb-salto { background: var(--salto); opacity: .18; }
.orb-green { background: var(--crecimiento); opacity: .10; }
.has-orbs > .wrap { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding: clamp(80px, 12vw, 150px) 0 clamp(80px, 11vw, 140px); }
.hero .orb-salto { width: clamp(260px, 36vw, 480px); aspect-ratio: 1; right: -8%; top: -18%; }
.hero .orb-green { width: clamp(180px, 22vw, 300px); aspect-ratio: 1; left: -6%; bottom: -22%; }
.hero .hero-title {
  font-weight: 700; font-size: clamp(4.5rem, 15vw, 9.5rem); color: var(--salto); line-height: .95; margin-bottom: .15em;
}
.hero-sub {
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--crecimiento);
  font-size: clamp(.95rem, 1.6vw, 1.2rem); margin-bottom: 1.6rem;
}
.hero .lead { max-width: 620px; margin-bottom: 2.2rem; color: var(--papel); }

.page-hero { padding: clamp(64px, 9vw, 110px) 0 clamp(56px, 8vw, 90px); }
.page-hero .orb-salto { width: clamp(200px, 28vw, 380px); aspect-ratio: 1; right: -6%; top: -30%; }
.page-hero h1 { color: var(--salto); }
.page-hero .lead { max-width: 680px; color: var(--papel); margin: 0; }

/* ---------- Cita del fundador ---------- */
.founder-quote {
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.28; margin: 0 0 1.4rem;
  font-variation-settings: "opsz" 144;
}
.founder-quote::before { content: "“"; color: var(--salto); }
.founder-quote::after { content: "”"; color: var(--salto); }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: var(--papel-2); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--linea);
}
.dark .card { background: var(--tinta-2); border-color: transparent; }
.card h3 { color: var(--salto-dark); }
.dark .card h3 { color: var(--salto); }
.card p:last-child { margin-bottom: 0; }
.card .num {
  font-family: var(--f-display); font-weight: 600; font-size: 2.6rem; line-height: 1;
  color: var(--salto); display: block; margin-bottom: .5rem;
}

/* segmentos / programas */
.segment { display: flex; flex-direction: column; }
.segment .tag {
  align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .35em .85em; border-radius: 999px; background: var(--tinta); color: var(--crecimiento); margin-bottom: 1rem;
}
.segment ul { padding-left: 1.1em; margin: 0 0 1.4rem; }
.segment li { margin-bottom: .35em; }
.segment .btn { align-self: flex-start; }
.segment .btn-row { margin-top: auto; }

/* pasos */
.steps { counter-reset: paso; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: paso; position: relative; padding-left: 64px; margin-bottom: 30px; }
.steps li::before {
  content: counter(paso); position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 600; font-size: 1.25rem;
  background: var(--salto); color: var(--tinta);
}
.steps h3 { margin-bottom: .25em; }

/* aviso "pronto" para contenido pendiente */
.placeholder-note {
  border: 2px dashed var(--linea); border-radius: var(--radius); padding: 28px; text-align: center;
}
.dark .placeholder-note { border-color: var(--tinta-2); }

/* ---------- Banda CTA ---------- */
.cta-band { text-align: center; }
.cta-band .orb-salto { width: 320px; aspect-ratio: 1; left: -80px; top: -120px; }
.cta-band .orb-green { width: 240px; aspect-ratio: 1; right: -60px; bottom: -110px; }
.cta-band h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.cta-band .lead { max-width: 620px; margin: 0 auto 2rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-list details {
  border-bottom: 1px solid var(--linea); padding: 6px 0;
}
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.3rem);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-body); font-size: 1.6rem; font-weight: 400; color: var(--salto-dark);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list .answer { padding: 0 0 18px; color: var(--tinta-soft); }

/* ---------- Formulario ---------- */
.contact-layout { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.4fr 1fr; } }

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--tinta-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--tinta);
  background: #fff; border: 1.5px solid var(--linea); border-radius: 12px; padding: .8em 1em;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--salto); box-shadow: 0 0 0 3px rgba(255, 90, 60, .2);
}
.field fieldset { border: 0; padding: 0; margin: 0; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-group label {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin: 0;
  background: #fff; border: 1.5px solid var(--linea); border-radius: 999px; padding: .55em 1em; cursor: pointer;
}
.radio-group input { width: auto; accent-color: var(--salto); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--tinta-soft); margin: 0; }

.contact-aside .card + .card { margin-top: 18px; }
.contact-aside a { font-weight: 700; }

/* ---------- Texto legal / prosa ---------- */
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--salto-dark); font-weight: 600; }
.callout {
  background: var(--papel-2); border-left: 4px solid var(--salto); padding: 18px 22px; border-radius: 0 12px 12px 0;
}

/* ---------- Banner de anuncio (site-features.js) ---------- */
.announce {
  background: var(--crecimiento); color: var(--tinta); font-weight: 600; font-size: .95rem;
}
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; text-align: center; flex-wrap: wrap; }
.announce a { font-weight: 800; }
.announce-close {
  background: transparent; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--tinta);
  width: 32px; height: 32px; border-radius: 50%;
}

/* ---------- Pie ---------- */
.site-footer { background: var(--tinta); color: #C9C4DC; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; margin-bottom: 44px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 {
  font-family: var(--f-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--crecimiento); margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer a { color: var(--papel); text-decoration: none; }
.site-footer a:hover { color: var(--salto); text-decoration: underline; }
.footer-tagline { color: var(--papel); max-width: 340px; margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid var(--tinta-2); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: .85rem;
}
.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: var(--papel); cursor: pointer; text-decoration: underline;
}

/* ---------- Aviso de cookies (analytics.js) ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 460px; margin-left: auto;
  background: var(--tinta); color: var(--papel); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); font-size: .93rem;
}
.consent p { margin-bottom: 14px; }
.consent a { color: var(--crecimiento); }
.consent .btn { padding: .7em 1.2em; font-size: .92rem; }

/* ---------- 404 / gracias ---------- */
.center-page { text-align: center; min-height: 62vh; display: flex; align-items: center; }
.center-page .wrap { max-width: 720px; }
.big-mark {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(5rem, 18vw, 10rem);
  line-height: 1; color: var(--salto); margin-bottom: .2em;
}
.center-page .btn-row { justify-content: center; }

/* ---------- Fundador (foto + cita) ---------- */
.founder { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .founder { grid-template-columns: minmax(260px, 5fr) 7fr; } }
.founder-photo { margin: 0; position: relative; max-width: 440px; width: 100%; justify-self: center; }
.founder-photo::before {
  content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: var(--salto); right: -8%; top: -8%; z-index: 0;
}
.founder-photo::after {
  content: ""; position: absolute; width: 28%; aspect-ratio: 1; border-radius: 50%;
  background: var(--crecimiento); left: -6%; bottom: -6%; z-index: 0;
}
.founder-photo img {
  position: relative; z-index: 1; width: 100%; border-radius: 28px;
  box-shadow: 0 18px 50px rgba(31, 27, 58, .25);
}

/* ---------- Acrónimo Y·E·I ---------- */
.acronym .letter {
  display: block; font-family: var(--f-display); font-weight: 700; font-size: 4.5rem; line-height: 1;
  color: var(--salto); margin-bottom: .6rem; font-variation-settings: "opsz" 144;
}
.acronym h3 { color: var(--tinta); }

.founder-photo figcaption {
  position: relative; z-index: 1; margin-top: 18px; text-align: center; font-weight: 700;
}
.founder-photo figcaption span { display: block; font-weight: 500; font-size: .92rem; color: var(--tinta-soft); }

/* ---------- Historia del fundador (nosotros) ---------- */
.story p { font-size: 1.12rem; line-height: 1.75; color: var(--tinta-soft); }
.story em { color: var(--tinta); }
.signature {
  font-family: var(--f-display); font-style: italic; font-size: 1.6rem !important;
  color: var(--salto-dark) !important; margin-top: 1.4rem;
}

/* ---------- Hero v3 ---------- */
.hero-brand {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 1.4rem;
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--crecimiento);
  font-size: clamp(.85rem, 1.4vw, 1rem);
}
.hero-brand .logo-word { font-size: clamp(2.6rem, 6vw, 3.6rem); letter-spacing: -0.01em; text-transform: none; }
.hero .hero-headline {
  font-size: clamp(2.6rem, 6.4vw, 5rem); color: var(--papel); max-width: 900px; line-height: 1.05; margin-bottom: .45em;
}
.center-link { text-align: center; margin: 36px 0 0; }

/* ---------- Destinos ---------- */
.dest-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.dest-chips a {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700;
  background: var(--papel); border: 1.5px solid var(--linea); border-radius: 999px; padding: 8px 20px 8px 8px;
  transition: transform .15s ease, border-color .15s ease;
}
.dest-chips a:hover { transform: translateY(-2px); border-color: var(--salto); }
.dest-code {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--tinta); color: var(--crecimiento); font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  letter-spacing: .02em; flex: none;
}
.dest-grid { align-items: stretch; }
.dest-card { display: flex; flex-direction: column; scroll-margin-top: 96px; }
.dest-card .dest-code { width: 64px; height: 64px; font-size: 1.35rem; margin-bottom: 1rem; }
.dest-card:nth-child(even) .dest-code { color: var(--salto); }
.dest-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: .2em; }
.dest-lang { font-weight: 700; color: var(--salto-dark); font-size: .92rem; letter-spacing: .04em; }
.dest-ideal { font-size: .95rem; color: var(--tinta-soft); }
.dest-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Línea de tiempo ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-dot {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--tinta); color: var(--papel); font-family: var(--f-display); font-weight: 700; font-size: 1.15rem;
  position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--papel);
}
.timeline li:last-child .tl-dot { background: var(--crecimiento); color: var(--tinta); }
.timeline .is-visa .tl-dot { background: var(--salto); color: var(--tinta); }
.timeline .is-visa h3::after {
  content: "Lo hacemos contigo"; display: inline-block; margin-left: 8px; vertical-align: middle;
  font-family: var(--f-body); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--salto); color: var(--tinta); padding: .3em .7em; border-radius: 999px;
}
.tl-body h3 { font-size: 1.2rem; margin-bottom: .3em; }
.tl-body p { color: var(--tinta-soft); margin: 0; }

/* vertical (página Cómo funciona, y móviles) */
.timeline-v::before, .timeline-h::before {
  content: ""; position: absolute; left: 22px; top: 10px; bottom: 10px; width: 3px;
  background: linear-gradient(var(--salto), var(--crecimiento)); border-radius: 3px;
}
.timeline-v li, .timeline-h li { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding-bottom: 34px; }
.timeline-v li:last-child, .timeline-h li:last-child { padding-bottom: 0; }
.timeline-v .tl-body h3 { font-size: 1.45rem; }
.timeline-v .tl-body p { font-size: 1.05rem; }

/* horizontal en pantallas anchas */
@media (min-width: 1000px) {
  .timeline-h { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
  .timeline-h::before { left: 23px; right: calc((100% - 84px) / 7 - 23px); top: 21px; bottom: auto; width: auto; height: 3px;
    background: linear-gradient(90deg, var(--salto), var(--crecimiento)); }
  .timeline-h li { display: block; padding: 0; }
  .timeline-h .tl-dot { margin-bottom: 16px; }
  .timeline-h .tl-body h3 { font-size: 1.08rem; }
  .timeline-h .tl-body p { font-size: .9rem; line-height: 1.5; }
  .timeline-h .is-visa h3::after { display: table; margin: 6px 0 0; }
}
.paper-2 .tl-dot { box-shadow: 0 0 0 6px var(--papel-2); }

/* ---------- Hey ---------- */
.hey { text-align: center; }
.hey h2 { margin-bottom: .4em; }
.hey .lead { margin-bottom: 1.8rem; }

/* ---------- Testimonios en video ---------- */
.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.video-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tinta); color: var(--papel);
  aspect-ratio: 9 / 16; max-height: 560px; display: flex; flex-direction: column; justify-content: flex-end;
}
.video-card.is-horizontal { aspect-ratio: 16 / 9; }
.video-card video, .video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-soon { align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--tinta-2); }
.video-soon:nth-child(2) { opacity: .7; } .video-soon:nth-child(3) { opacity: .45; }
.video-soon p { margin: 18px 0 0; color: #C9C4DC; }
.video-soon strong { color: var(--papel); font-family: var(--f-display); font-size: 1.3rem; }
.play {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--salto);
}
.play::after {
  content: ""; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--tinta);
  margin-left: 5px;
}
.video-facade {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; background: var(--tinta-2); color: var(--papel);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font: inherit; padding: 20px;
}
.video-facade:hover .play { transform: scale(1.06); }
.video-facade .play { transition: transform .15s ease; }
.video-item { margin: 0; }
.video-item figcaption { padding: 14px 4px 0; }
.video-item figcaption strong { display: block; font-family: var(--f-display); font-size: 1.2rem; }
.video-item figcaption span { color: var(--salto-dark); font-weight: 700; font-size: .92rem; }
.video-follow { text-align: center; margin: 28px 0 0; color: var(--tinta-soft); }
.video-follow a { color: var(--salto-dark); font-weight: 700; }

/* evita scroll lateral por los círculos decorativos */
.section { overflow-x: clip; }

/* ==========================================================================
   v4: hero con fotos, carrusel de destinos, tarjetas con foto, 3 caminos
   ========================================================================== */

/* ---------- Hero con fotos de los destinos ---------- */
.hero-photo { position: relative; overflow: hidden; min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero-photo > .wrap { position: relative; z-index: 2; }
.hero-slides, .hero-shade { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease; transform: scale(1.06);
}
.hero-slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(31, 27, 58, .94) 0%, rgba(31, 27, 58, .78) 45%, rgba(31, 27, 58, .35) 100%),
    linear-gradient(0deg, rgba(31, 27, 58, .7) 0%, transparent 35%);
}
.hero-photo .lead { color: var(--papel); }
.promo-chip {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; text-decoration: none;
  background: rgba(251, 246, 239, .12); border: 1px solid rgba(251, 246, 239, .35); color: var(--papel);
  border-radius: 999px; padding: 8px 20px 8px 8px; font-weight: 600; backdrop-filter: blur(6px);
}
.promo-chip span {
  background: var(--crecimiento); color: var(--tinta); font-weight: 800; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: .35em .8em;
}
.promo-chip b { color: var(--crecimiento); }
.promo-chip:hover { background: rgba(251, 246, 239, .2); }
.hero-caption {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 20px; display: flex; align-items: center; gap: 10px;
  font-size: .88rem; font-weight: 600; color: var(--papel);
  background: rgba(31, 27, 58, .55); border-radius: 999px; padding: 6px 6px 6px 16px; backdrop-filter: blur(6px);
}
.hero-pause, .car-btn {
  display: inline-grid; place-items: center; cursor: pointer; border-radius: 50%; font: inherit;
}
.hero-pause { width: 34px; height: 34px; border: 0; background: rgba(251, 246, 239, .18); color: var(--papel); }
.car-pause-icon { display: block; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.is-paused .car-pause-icon {
  width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor; margin-left: 3px;
}
@media (max-width: 640px) {
  .hero-caption { left: var(--gutter); right: auto; }
  .hero-shade { background: linear-gradient(0deg, rgba(31, 27, 58, .95) 10%, rgba(31, 27, 58, .7) 100%); }
}

/* ---------- Carrusel de destinos ---------- */
.carousel { position: relative; }
.car-controls { display: flex; justify-content: flex-end; gap: 10px; margin: -12px 0 18px; }
.car-btn { width: 48px; height: 48px; border: 1.5px solid var(--tinta); background: var(--papel); color: var(--tinta); font-size: 1.15rem; }
.car-btn:hover { background: var(--tinta); color: var(--papel); }
.car-track {
  list-style: none; margin: 0; padding: 4px 2px 10px; display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 clamp(250px, 29%, 340px); scroll-snap-align: start; }
.photo-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  text-decoration: none; color: var(--papel); background: var(--tinta);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-card:hover img { transform: scale(1.05); }
.photo-card-body {
  position: absolute; inset: auto 0 0 0; padding: 60px 20px 20px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(transparent, rgba(31, 27, 58, .92) 55%);
}
.photo-card-body strong { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; }
.photo-card-city { font-size: .92rem; opacity: .85; }
.photo-card-price { margin-top: 8px; font-weight: 600; }
.photo-card-price b { color: var(--crecimiento); font-size: 1.15rem; }
.photo-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.dest-tag {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--crecimiento); color: var(--tinta); border-radius: 999px; padding: .3em .7em;
}
.price-note { font-size: .85rem; color: var(--tinta-soft); margin: 18px 0 0; max-width: 760px; }
.dark .price-note { color: #C9C4DC; }

/* ---------- Tarjetas con foto (página Destinos) ---------- */
.dest-card.photo { padding: 0; overflow: hidden; }
.dest-card.photo > img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.dest-card-body { padding: 22px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.dest-card-body .dest-tag { background: var(--tinta); color: var(--crecimiento); }
.dest-price { font-weight: 600; font-size: 1.05rem; margin-top: auto; }
.dest-price b { font-family: var(--f-display); font-size: 1.5rem; color: var(--salto-dark); }
.dest-card-body .btn { align-self: flex-start; }
.photo-credits { font-size: .8rem; color: var(--tinta-soft); margin-top: 28px; }
.photo-credits a { color: inherit; }

/* ---------- 3 caminos + educación superior ---------- */
.paths .segment ul { margin-bottom: 1rem; }
.path-price { font-weight: 800; color: var(--salto-dark); margin: 0 0 1.2rem; }
.path-price span { font-weight: 500; font-size: .85rem; color: var(--tinta-soft); }
.path-dest { margin-bottom: 1rem; }
.higher-ed {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  border: 2px dashed var(--linea); border-radius: var(--radius); padding: 26px 30px;
}
.higher-ed h3 { margin-bottom: .3em; }
.higher-ed p { margin: 0; color: var(--tinta-soft); max-width: 620px; }
.higher-ed .eyebrow { margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active { animation: none; transition: none; transform: none; }
  .car-track { scroll-behavior: auto; }
}

/* ==========================================================================
   v5: tarjetas de programa (estilo referencia), notas con asterisco, promos
   ========================================================================== */
.offer-card {
  background: #fff; border: 1px solid var(--linea); border-radius: 22px; padding: 12px 12px 18px;
  display: flex; flex-direction: column; height: 100%; scroll-margin-top: 96px;
  box-shadow: 0 1px 2px rgba(31, 27, 58, .04);
}
.offer-photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 11; margin-bottom: 16px; }
.offer-photo img { width: 100%; height: 100%; object-fit: cover; }
.offer-badge, .offer-promo {
  position: absolute; top: 12px; font-size: .8rem; font-weight: 800; border-radius: 999px; padding: .4em .9em;
}
.offer-badge { left: 12px; background: rgba(31, 27, 58, .88); color: var(--papel); }
.offer-promo { right: 12px; background: var(--salto); color: var(--tinta); text-transform: uppercase; letter-spacing: .06em; }
.offer-card > :not(.offer-photo) { margin-left: 8px; margin-right: 8px; }
.offer-title {
  font-family: var(--f-body); font-weight: 800; font-size: 1.22rem; line-height: 1.3; margin: 0 0 6px; letter-spacing: 0;
  color: var(--tinta);
}
.offer-flag { font-size: 1.05em; }
.offer-incl { font-size: .9rem; color: var(--tinta-soft); margin: 0 0 12px; }
.offer-desc { font-size: .95rem; margin: 0 0 12px; }
.offer-meta { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.offer-meta li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.offer-meta svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--tinta-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.offer-price { border-top: 1px solid var(--linea); padding-top: 12px; margin-top: auto; margin-bottom: 16px; }
.offer-price span { display: block; font-size: .9rem; color: var(--tinta-soft); }
.offer-price strong { font-size: 2rem; font-weight: 800; letter-spacing: -.01em; color: var(--tinta); line-height: 1.15; }
.offer-price small { font-size: .9rem; font-weight: 600; color: var(--tinta-soft); }
.offer-price sup { font-size: .9rem; color: var(--salto-dark); }
.offer-btn { width: auto; justify-content: center; }
.offer-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.car-track .car-slide { flex-basis: clamp(272px, 31%, 340px); }
.car-track .offer-card { height: 100%; }

/* notas con asterisco */
.path-tagline { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--tinta); margin: 0 0 .6rem; }
.path-foot { font-size: .8rem; line-height: 1.5; color: var(--tinta-soft); margin: 14px 0 0; }
.segment .path-foot { margin-top: 16px; }

/* barra de promociones */
.announce-slot { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; transition: opacity .35s ease, transform .35s ease; }
.announce-slot.is-out { opacity: 0; transform: translateY(-6px); }
.announce-tag {
  background: var(--tinta); color: var(--crecimiento); border-radius: 999px; padding: .2em .7em;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) { .announce-slot { transition: none; } }

/* ---------- Pop-up de promoción ---------- */
.popup-backdrop {
  position: fixed; inset: 0; z-index: 120; background: rgba(31, 27, 58, .62);
  display: grid; place-items: center; padding: 16px; animation: fadeIn .25s ease;
}
.popup {
  position: relative; width: min(100%, 460px); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--papel); border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: popIn .3s ease;
}
.popup-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.popup-body { padding: 24px 28px 28px; }
.popup-body h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); margin: 12px 0 .4em; }
.popup-body p { color: var(--tinta-soft); }
.popup-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(251, 246, 239, .92); color: var(--tinta); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .popup-backdrop, .popup { animation: none; } }

/* destinos justo después del hero */
.dest-first { padding-top: clamp(48px, 6vw, 84px); scroll-margin-top: 72px; }
.dest-first .section-head { margin-bottom: clamp(20px, 3vw, 32px); }

/* error del formulario */
.form-error { margin: 12px 0 0; color: #B3261E; font-weight: 600; font-size: .95rem; }
.form-error a { color: inherit; }

/* historia corta en el inicio */
.founder-short .founder-photo { max-width: 340px; }
@media (min-width: 860px) { .founder.founder-short { grid-template-columns: minmax(240px, 4fr) 8fr; } }

/* portada opcional del video */
.video-facade.has-cover { background-size: cover; background-position: center; }
.video-facade.has-cover::before { content: ""; position: absolute; inset: 0; background: rgba(31, 27, 58, .25); }
.video-facade.has-cover .play { position: relative; }

/* 3 caminos: cada tarjeta termina donde termina su contenido (sin huecos) */
.grid.paths { align-items: start; }
.paths .segment .btn-row { margin-top: 6px; gap: 10px; }
.paths .segment .btn { padding: .8em 1.3em; font-size: .95rem; }
.paths .path-price { margin-bottom: .9rem; }
.paths .segment .btn-row { align-items: center; }
.paths .segment .btn-ghost {
  border-color: transparent; padding-left: .4em; padding-right: .4em; text-decoration: underline; text-underline-offset: 4px;
}
.paths .segment .btn-ghost::after { content: " →"; }
.paths .segment .btn-ghost:hover { background: transparent; color: var(--salto-dark); border-color: transparent; transform: none; }
.paths .segment .btn-row { gap: 4px; }
.paths .segment .btn-primary { padding-left: 1.1em; padding-right: 1.1em; }
.paths .segment .btn-ghost { padding-left: .5em; padding-right: .2em; }

/* 3 caminos: mismo tamaño y botones a la misma altura (simetría) */
.grid.paths { align-items: stretch; }
.paths .segment { display: flex; flex-direction: column; }
.paths .seg-cta { margin-top: auto; padding-top: 1rem; display: flex; flex-direction: column; justify-content: flex-end; }
.paths .seg-cta .path-price, .paths .seg-cta .path-tagline { margin-bottom: .8rem; }
.paths .seg-cta .btn-row { margin-top: 0; }
.paths .seg-foot .path-foot { margin-top: 14px; }
@supports (grid-template-rows: subgrid) {
  .grid.paths { row-gap: 20px; }
  .paths .segment { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .paths .seg-cta { margin-top: 0; }
}
.paths .seg-top { display: flex; flex-direction: column; }

/* Carrusel a todo lo ancho: el título queda alineado, las tarjetas llegan al borde de la pantalla */
.carousel .car-track {
  --vw: calc(100vw - var(--scrollbar, 0px));   /* ancho real sin la barra de desplazamiento */
  --bleed: max(var(--gutter), calc((var(--vw) - var(--wrap)) / 2 + var(--gutter)));
  margin-left: calc(50% - var(--vw) / 2);
  margin-right: calc(50% - var(--vw) / 2);
  padding-left: var(--bleed);
  padding-right: var(--bleed);
  scroll-padding-left: var(--bleed);
}

/* Barra de promociones fija arriba junto con el menú (hasta que se cierra) */
.announce { position: sticky; top: 0; z-index: 60; }
.site-header { top: var(--announce-h, 0px); }
.offer-card, .dest-first { scroll-margin-top: calc(var(--announce-h, 0px) + 90px); }
@media (max-width: 640px) {
  .announce { font-size: .85rem; }
  .announce .wrap { padding-top: 6px; padding-bottom: 6px; gap: 6px; }
  .announce-slot { gap: 2px 8px; }
}
.announce-msg { color: inherit; text-decoration: none; font-weight: 600; }
.announce-msg:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .announce .wrap { flex-wrap: nowrap; justify-content: space-between; text-align: left; gap: 8px; }
  .announce-slot { flex: 1; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 8px; min-width: 0; }
  .announce-tag { flex: none; font-size: .64rem; }
  .announce-msg {
    font-size: .8rem; line-height: 1.3; text-decoration: underline; text-underline-offset: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .announce-link { display: none; }
  .announce-close { flex: none; width: 28px; height: 28px; }
}
@media (max-width: 640px) {
  .announce .wrap { min-height: 46px; padding-top: 4px; padding-bottom: 4px; }
  .announce-msg { min-height: 2.6em; display: -webkit-box; align-content: center; }
}
