/* =========================================================================
   Web IMATMed · powered by IMG International Medicine Group
   Concepto: landing editorial con la marca del flyer IMAT 2027. Base crema,
   bandas oliva en los momentos clave (portada, cita y contacto) y tarjetas
   salvia. Una sola familia tipográfica (Geist) con titulares a dos tonos:
   primera línea verde y en negrita, segunda línea oliva y regular.
   ========================================================================= */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.9b6f5ff45b.woff2") format("woff2");
  font-weight: 100 900;
  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 {
  /* Color: oliva y salvia de la marca IMG, verde hoja de acento, crema de base */
  --olive-950: #1b2b0c;
  --olive-900: #1b2b0c;
  --olive-800: #27420a;
  --olive-700: #27420a;
  --sage-100: #e9eadc;
  --sage-200: #d9e8ba;
  --sage-300: #d9e8ba;
  --sage-400: #d9e8ba;
  --leaf-500: #4fb76c;  /* solo decorativo: puntos, barras, iconos */
  --leaf-600: #17724d;  /* texto grande (≥ 24 px) sobre crema */
  --leaf-700: #17724d;  /* texto pequeño y enlaces */
  --cream: #ffffff;
  --paper: #ffffff;
  --stone: #e9eadc;
  --piedra: #e9eadc;     /* travertino de las fotos: fondo alterno de las secciones de estudios */
  --terracota: #17724d;  /* Jazmín de la marca IMG (antes marrón terracota, fuera de marca): acentos sobre fondo claro (antetítulos y cifras) y banda de precios */
  --line: rgba(27, 43, 12, 0.12);
  --line-strong: rgba(27, 43, 12, 0.22);
  --ink: #1b2b0c;
  --ink-soft: #27420a;
  --muted: rgba(27, 43, 12, 0.68);
  --on-dark: #ffffff;
  --on-dark-muted: rgba(233, 234, 220, 0.75);
  --on-dark-accent: #4fb76c;
  --warn-bg: #d9e8ba;
  --warn-ink: #27420a;
  --error: #b3412e;

  /* Tipografía: Geist para todo; la escala va de la nota al titular de portada */
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.1rem, 1.04rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.3rem, 1.18rem + 0.6vw, 1.55rem);
  --step-3: clamp(1.65rem, 1.35rem + 1.4vw, 2.35rem);
  --step-4: clamp(2.1rem, 1.55rem + 2.6vw, 3.3rem);
  --step-5: clamp(2.5rem, 1.6rem + 4.3vw, 4.6rem);

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-soft: 0 1px 2px rgba(27, 43, 12, 0.06), 0 12px 32px -16px rgba(27, 43, 12, 0.22);
  --shadow-lift: 0 22px 48px -22px rgba(27, 43, 12, 0.45);
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--leaf-500); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--olive-900); color: var(--cream); padding: 12px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--olive-900);
  --btn-fg: var(--cream);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 50px; padding: 0.8em 1.45em;
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 560; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(27, 43, 12, 0.55); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--light { --btn-bg: var(--sage-300); --btn-fg: var(--olive-900); }
.btn--light:hover { --btn-bg: var(--sage-200); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.08); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--olive-900); --btn-bd: var(--olive-900); }
.btn--outline:hover { --btn-bg: var(--olive-900); --btn-fg: var(--cream); }
.btn--sm { min-height: 42px; padding: 0.6em 1.1em; font-size: 0.95rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  color: var(--leaf-700); font-weight: 600; text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--cream);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(27, 43, 12, 0.9);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 34px; width: auto; }
.brand .logo--dark { display: none; }
.site-header.is-solid .brand .logo--light { display: none; }
.site-header.is-solid .brand .logo--dark { display: block; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font-size: 0.95rem; font-weight: 500; transition: background-color 0.2s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.12); }
.site-header.is-solid .nav a:hover { background: var(--sage-200); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.site-header .btn--light { box-shadow: none; }
.site-header.is-solid .btn--light { --btn-bg: var(--olive-900); --btn-fg: var(--cream); }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--olive-900); color: var(--cream);
  padding: calc(env(safe-area-inset-top, 0px) + 16px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(20px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
}
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.mobile-menu__top img { height: 30px; width: auto; }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a {
  font-size: 1.6rem; letter-spacing: -0.02em; text-decoration: none; padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-menu__contact { margin-top: auto; display: grid; gap: 12px; color: var(--on-dark-muted); }
.mobile-menu__contact a { color: var(--cream); }
body.menu-open { overflow: hidden; }

/* ---------- Portada: Italia a pantalla completa ---------- */
.hero { position: relative; isolation: isolate; background: var(--olive-900); color: var(--on-dark); }
.hero__stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
/* Las fotos van apiladas y solo se ve la activa, con un zoom lento mientras está en pantalla */
.hero__slides { position: absolute; inset: 0; z-index: -2; background: var(--olive-950); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide picture { display: block; width: 100%; height: 100%; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  transform: scale(1.08); transition: transform 10s linear;
}
.hero__slide.is-active img { transform: scale(1); }
/* Velo para que el texto se lea sobre cualquier foto: más oscuro arriba, abajo y a la izquierda */
.hero__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(27, 43, 12, 0.6) 0%, rgba(27, 43, 12, 0) 24%),
    linear-gradient(0deg, rgba(27, 43, 12, 0.75) 0%, rgba(27, 43, 12, 0) 32%),
    linear-gradient(90deg, rgba(27, 43, 12, 0.85) 0%, rgba(27, 43, 12, 0.62) 45%, rgba(27, 43, 12, 0.12) 80%);
}
.hero__inner { align-self: center; padding-block: clamp(32px, 7vh, 88px); }
.hero__copy { max-width: 680px; text-shadow: 0 1px 18px rgba(27, 43, 12, 0.35); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--leaf-700);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-500); }
.hero .eyebrow { color: var(--on-dark-accent); }
/* En la portada, el punto del antetítulo es la bandera de Italia (dibujada, sin imagen) */
.hero .eyebrow::before {
  width: 22px; height: 15px; border-radius: 3px;
  background: linear-gradient(90deg, #009246 0 33.4%, #f4f5f0 33.4% 66.6%, #ce2b37 66.6%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.hero h1 {
  margin-top: 22px; font-size: var(--step-5); font-weight: 500;
  letter-spacing: -0.032em; line-height: 1.02;
}
.hero h1 em { font-style: normal; color: var(--on-dark-accent); }
.hero__lead { margin-top: 20px; max-width: 44ch; font-size: var(--step-1); line-height: 1.55; color: #e9eadc; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__actions .btn--ghost { --btn-bg: rgba(27, 43, 12, 0.24); }
.hero__actions .btn--ghost:hover { --btn-bg: rgba(27, 43, 12, 0.42); }
.hero__note { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: #d9e8ba; }
.hero__note .icon { color: var(--leaf-500); }

/* Pie de foto y controles: puntos para elegir foto y botón de pausa */
.hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: clamp(18px, 3vh, 30px); }
.hero__place { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 0.92rem; color: var(--on-dark); text-shadow: 0 1px 10px rgba(27, 43, 12, 0.5); }
.hero__place .icon { width: 18px; height: 18px; color: var(--on-dark-accent); }
.hero__place strong { font-weight: 650; }
.hero__place span { color: #d9e8ba; }
.hero__place span::before { content: "·"; margin-right: 8px; }
.hero__controls { display: none; align-items: center; gap: 12px; }
.js .hero__controls { display: flex; }
.hero__dots { display: flex; gap: 2px; }
.hero__dot { position: relative; width: 30px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__dot::before, .hero__dot::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 50%;
  height: 3px; margin-top: -1.5px; border-radius: 3px;
}
.hero__dot::before { background: rgba(255, 255, 255, 0.35); transition: background-color 0.2s; }
.hero__dot:hover::before { background: rgba(255, 255, 255, 0.6); }
.hero__dot::after { right: auto; width: 0; background: var(--cream); }
.hero__dot.is-active::after { width: calc(100% - 6px); }
.hero.is-playing .hero__dot.is-active::after { animation: slide-progress var(--slide-ms, 6500ms) linear both; }
@keyframes slide-progress { from { width: 0; } to { width: calc(100% - 6px); } }
.hero__pause {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.55); background: rgba(27, 43, 12, 0.3); color: var(--cream); cursor: pointer;
}
.hero__pause .icon { width: 16px; height: 16px; }
.hero__pause .icon--play, .hero__pause[data-paused="true"] .icon--pause { display: none; }
.hero__pause[data-paused="true"] .icon--play { display: block; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.stat { padding: 26px 20px 0 0; }
.stat + .stat { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.stat__value { font-size: var(--step-4); font-weight: 400; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__value small { font-size: 0.5em; letter-spacing: -0.01em; margin-left: 0.1em; }
.stat__label { margin-top: 10px; max-width: 24ch; font-size: 0.95rem; line-height: 1.4; color: var(--on-dark-muted); }
.hero__source { margin-top: 28px; font-size: 0.8rem; color: var(--on-dark-muted); max-width: 90ch; }
/* Cifras de la convocatoria, en la banda oliva que hay justo debajo de las fotos */
.hero__facts { padding-top: clamp(14px, 2.5vw, 34px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero__facts .stats { margin-top: 0; border-top: 0; }

/* Entrada de la portada en CSS. Solo se activa con la clase .js (script del <head>), que a los
   2,6 s añade .intro-done y la quita: si un navegador o un robot no reproduce animaciones,
   el contenido aparece igualmente. */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.intro-done) [data-hero] { animation: rise 0.9s var(--ease) both; }
  .js:not(.intro-done) .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .js:not(.intro-done) .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .js:not(.intro-done) .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
  .js:not(.intro-done) .hero__copy > :nth-child(5) { animation-delay: 0.32s; }
  .js:not(.intro-done) .hero__copy > :nth-child(6) { animation-delay: 0.4s; }
  .js:not(.intro-done) .hero__slide.is-active { animation: fade-in 1.2s var(--ease) both; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Banda «Para quién» ---------- */
.audience { background: var(--sage-200); }
.audience__inner { display: flex; align-items: center; gap: 18px; padding-block: 26px; }
.audience__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--leaf-700); }
.audience p { font-size: 1.02rem; }
.audience strong { font-weight: 650; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--dark { background: var(--olive-900); color: var(--on-dark); }
.section--sage { background: var(--sage-100); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.h2 { font-size: var(--step-4); font-weight: 400; letter-spacing: -0.03em; line-height: 1.04; }
.h2__kicker { display: block; color: var(--leaf-600); font-weight: 650; }
.h2__title { display: block; }
.section--sage .h2__kicker { color: var(--leaf-700); }
.section--dark .h2__kicker { color: var(--on-dark-accent); }
.lead { margin-top: 20px; max-width: 62ch; font-size: var(--step-1); line-height: 1.55; color: var(--muted); }
.section--dark .lead { color: var(--on-dark-muted); }
.h3 { font-size: var(--step-2); font-weight: 550; letter-spacing: -0.015em; }
.note { font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
.section--dark .note { color: var(--on-dark-muted); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); }
.card--sage { background: var(--sage-200); border-color: transparent; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 650; letter-spacing: 0.02em;
  padding: 3px 9px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); white-space: nowrap;
}
.tag--dark { background: var(--olive-900); color: var(--cream); }
.tag--sage { background: var(--sage-300); color: var(--olive-900); }

/* ---------- El reto ---------- */
.challenges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.challenge { display: flex; flex-direction: column; gap: 14px; }
.challenge__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--sage-200); color: var(--leaf-700); }
.challenge__icon .icon { width: 26px; height: 26px; }
.challenge p { color: var(--muted); }
.range { margin-top: auto; padding-top: 10px; }
.range__label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.range__label strong { color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.range__track { position: relative; height: 10px; margin-top: 8px; border-radius: 999px; background: var(--stone); }
.range__fill { position: absolute; top: 0; bottom: 0; left: 72.33%; width: 10.89%; border-radius: 999px; background: var(--leaf-600); }
.range__scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.challenges__bridge { margin-top: clamp(28px, 4vw, 44px); font-size: var(--step-2); letter-spacing: -0.015em; font-weight: 450; }
.challenges__bridge strong { font-weight: 650; color: var(--leaf-700); }

/* ---------- El programa ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--line); }
.service--sage { background: var(--sage-200); border-color: transparent; }
.service__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 0.9s var(--ease); }
.service:hover .service__media img { transform: scale(1.04); }
.service__body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 40px); }
.service__label { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf-700); }
.service h3 { font-size: var(--step-3); font-weight: 450; letter-spacing: -0.025em; }
.service__intro { color: var(--muted); }
.service--sage .service__intro { color: var(--ink-soft); }
.checklist { list-style: none; padding: 0; display: grid; gap: 11px; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.checklist li > .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--sage-300); color: var(--olive-900); stroke-width: 2.4; }
.service--sage .checklist li > .icon { background: var(--paper); }
.checklist .tag { margin-left: 6px; vertical-align: 1px; }
.services__foot { margin-top: 18px; text-align: center; }

/* Vista ilustrativa de la plataforma */
.ui {
  margin: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) 0;
  border-radius: 14px 14px 0 0; overflow: hidden;
  background: var(--paper); box-shadow: 0 24px 50px -26px rgba(27, 43, 12, 0.5);
  font-size: 13px; line-height: 1.35;
}
.ui__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--cream); border-bottom: 1px solid var(--line); }
.ui__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.ui__bar span { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ui__body { display: grid; grid-template-columns: 178px minmax(0, 1fr); }
.ui__side { display: grid; gap: 2px; align-content: start; padding: 10px 8px; border-right: 1px solid var(--line); background: #e9eadc; }
.ui__phase { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: 12px; }
.ui__phase b { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--stone); color: var(--ink); }
.ui__phase.is-done b { background: var(--leaf-500); color: var(--paper); }
.ui__phase.is-current { background: var(--sage-200); color: var(--ink); font-weight: 600; }
.ui__phase.is-current b { background: var(--olive-900); color: var(--cream); }
.ui__main { display: grid; gap: 12px; align-content: start; padding: 16px 18px 20px; }
.ui__crumb { font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leaf-700); }
.ui__title { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.ui__meter { height: 6px; border-radius: 99px; background: var(--stone); overflow: hidden; }
.ui__meter span { display: block; width: 37.5%; height: 100%; background: var(--leaf-500); border-radius: 99px; }
.ui__alert { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); }
.ui__alert .icon { width: 16px; height: 16px; margin-top: 1px; }
.ui__alert strong { display: block; font-weight: 650; }
.ui__tasks { display: grid; gap: 6px; }
.ui__task { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); }
.ui__task .box { flex: none; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.ui__task.is-done .box { background: var(--leaf-500); border-color: var(--leaf-500); color: var(--paper); }
.ui__task.is-done .box .icon { width: 11px; height: 11px; stroke-width: 3; }
.ui__task.is-done span { text-decoration: line-through; color: var(--muted); }
.ui__caption { padding: 0 clamp(20px, 3vw, 32px); margin-top: 10px; font-size: 0.78rem; color: var(--ink-soft); opacity: 0.85; }

/* Quién hace qué */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.roles h3 { font-size: var(--step-2); font-weight: 550; margin-bottom: 16px; }
.roles__note { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius); background: var(--stone); font-size: 0.98rem; }
.roles__note .icon { color: var(--leaf-700); margin-top: 2px; }

/* ---------- Así es tu año ---------- */
.year { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.year__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.year__photo { margin-top: 32px; border-radius: var(--radius-l); overflow: hidden; }
.year__photo img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.timeline { position: relative; list-style: none; padding: 0 0 0 46px; display: grid; gap: 30px; }
.timeline::before, .timeline__progress { content: ""; position: absolute; left: 15px; top: 10px; width: 2px; height: calc(100% - 20px); border-radius: 2px; }
.timeline::before { background: var(--line-strong); }
.timeline.has-progress::after {
  content: ""; position: absolute; left: 15px; top: 10px; width: 2px; height: calc(100% - 20px); border-radius: 2px;
  background: var(--leaf-600); transform-origin: top center; transform: scaleY(var(--progress, 0));
}
.timeline > li { position: relative; }
.timeline > li::before {
  content: ""; position: absolute; left: -38px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cream); border: 2.5px solid var(--leaf-600);
}
.timeline__when { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--leaf-700); }
.timeline h3 { margin-top: 4px; font-size: var(--step-2); font-weight: 550; letter-spacing: -0.015em; }
.timeline p { margin-top: 6px; max-width: 54ch; color: var(--muted); }
.timeline .tag { margin-left: 8px; vertical-align: 3px; }

/* ---------- Vivir en Italia ---------- */
.italy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.facts { display: grid; gap: 18px; margin-top: 32px; }
.fact { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.fact__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); color: var(--leaf-700); border: 1px solid var(--line); }
.fact strong { display: block; font-weight: 650; }
.fact p { color: var(--muted); font-size: 0.97rem; }
.map-card { position: relative; border-radius: var(--radius-l); background: var(--sage-200); padding: clamp(16px, 3vw, 32px); }
.map { width: 100%; height: auto; overflow: visible; }
.map .land { fill: var(--sage-100); stroke: var(--olive-700); stroke-width: 1; stroke-linejoin: round; }
.map__city { transform-box: fill-box; transform-origin: center; }
.map .dot { fill: var(--leaf-700); stroke: var(--sage-100); stroke-width: 2; }
.map .dot--new { fill: var(--sage-100); stroke: var(--leaf-700); stroke-width: 2; }
.map .city-label { font-family: var(--font); font-size: 12.5px; font-weight: 550; fill: var(--ink); paint-order: stroke; stroke: var(--sage-100); stroke-width: 3px; stroke-linejoin: round; }
.map__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 0.82rem; color: var(--ink-soft); }
.map__legend span { display: inline-flex; align-items: center; gap: 8px; }
.map__legend i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--leaf-700); }
.map__legend i.new { background: var(--sage-100); border: 2px solid var(--leaf-700); }
.map__total { position: absolute; top: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px); text-align: right; }
.map__total strong { display: block; font-size: var(--step-3); font-weight: 450; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.map__total span { font-size: 0.82rem; color: var(--ink-soft); }

.cities { margin-top: clamp(56px, 7vw, 88px); }
.cities__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.cities__head h3 { font-size: var(--step-3); font-weight: 450; letter-spacing: -0.025em; }
.cities__nav { display: flex; gap: 8px; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--olive-900); border-color: var(--olive-900); color: var(--cream); }
.icon-btn:disabled { opacity: 0.4; cursor: default; background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.cities__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 340px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; overscroll-behavior-x: contain;
  padding: 4px 4px 18px; margin: 0 -4px; list-style: none; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.city {
  position: relative; isolation: isolate; overflow: hidden; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 540px; border-radius: var(--radius-l); background: var(--olive-900); color: var(--cream);
}
.city img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.city::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(27, 43, 12, 0.97) 0%, rgba(27, 43, 12, 0.92) 46%, rgba(27, 43, 12, 0.6) 64%, rgba(27, 43, 12, 0) 84%); }
.city:hover img { transform: scale(1.05); }
.city__body { padding: 22px; }
.city__since { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-accent); }
.city__name { margin-top: 4px; font-size: var(--step-3); font-weight: 450; letter-spacing: -0.025em; }
.city__uni { margin-top: 2px; font-size: 0.9rem; color: #e9eadc; }
.city__data { display: grid; gap: 6px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.city__data div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.86rem; }
.city__data dt { color: #d9e8ba; }
.city__data dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.city__why { margin-top: 12px; font-size: 0.88rem; line-height: 1.45; color: #e9eadc; }

/* Tabla de universidades */
.unis-block { margin-top: clamp(56px, 7vw, 88px); }
.unis-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.unis-head h3 { font-size: var(--step-3); font-weight: 450; letter-spacing: -0.025em; }
.sorter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.chip-btn {
  border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 8px 15px; font-size: 0.92rem; font-weight: 500; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip-btn:hover { border-color: var(--olive-900); }
.chip-btn[aria-pressed="true"] { background: var(--olive-900); border-color: var(--olive-900); color: var(--cream); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.unis { width: 100%; min-width: 660px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.unis caption { text-align: left; }
.unis th { padding: 14px 18px; text-align: left; font-size: 0.8rem; font-weight: 650; color: var(--muted); background: var(--cream); border-bottom: 1px solid var(--line); white-space: nowrap; }
.unis td { padding: 13px 18px; border-bottom: 1px solid var(--line); }
.unis tbody tr:last-child td { border-bottom: 0; }
.unis tbody tr:hover { background: #e9eadc; }
.unis .num { text-align: right; }
.unis td.num strong { font-weight: 650; }
.unis td small { display: block; font-size: 0.8rem; color: var(--muted); }
.unis tfoot td { font-weight: 650; background: var(--cream); border-top: 1px solid var(--line); border-bottom: 0; }

/* ---------- Por qué IMG ---------- */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.trust-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.trust-stat { padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.trust-stat strong { display: block; font-size: var(--step-4); font-weight: 400; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.trust-stat > span { display: block; margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.story { margin-top: 24px; color: var(--muted); }
.story p + p { margin-top: 14px; }
.press { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.press__label { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.press__item { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em; color: var(--ink-soft); }
.press__item--serif { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -0.01em; }
.headline-quote { margin-top: 28px; padding: 22px 24px; border-left: 3px solid var(--leaf-500); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.headline-quote p { font-size: var(--step-2); font-weight: 450; letter-spacing: -0.015em; line-height: 1.3; }
.headline-quote cite { display: block; margin-top: 10px; font-size: 0.88rem; font-style: normal; color: var(--muted); }

/* Cita de marca */
.quote-band { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.quote-band__photo { border-radius: var(--radius-l); overflow: hidden; }
.quote-band__photo img { width: 100%; aspect-ratio: 0.78; object-fit: cover; object-position: 50% 25%; }
.quote-band blockquote p { font-size: var(--step-3); font-weight: 400; line-height: 1.22; letter-spacing: -0.02em; }
.quote-band blockquote p + p { margin-top: 18px; color: var(--on-dark-accent); }
.quote-band__sign { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.quote-band__sign img { height: 30px; width: auto; }

/* ---------- Precios ---------- */
.finder { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: -16px auto 36px; }
.finder > span { width: 100%; text-align: center; font-size: 0.95rem; color: var(--muted); margin-bottom: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px); border-radius: var(--radius-l);
  background: var(--paper); border: 1.5px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease);
}
.plan--featured { background: var(--sage-200); border-color: var(--sage-300); }
.plan.is-match { border-color: var(--olive-900); box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.plan__badge {
  position: absolute; top: -13px; left: clamp(24px, 2.6vw, 32px);
  padding: 5px 11px; border-radius: 999px; background: var(--olive-900); color: var(--cream);
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
}
.plan__name { font-size: var(--step-2); font-weight: 650; color: var(--leaf-700); letter-spacing: -0.01em; }
.plan__for { margin-top: 4px; min-height: 3em; font-size: 0.95rem; color: var(--muted); }
.plan--featured .plan__for { color: var(--ink-soft); }
.plan__price { margin-top: 18px; font-size: var(--step-4); font-weight: 450; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 1rem; font-weight: 550; letter-spacing: 0; color: var(--muted); }
.plan__vat { margin-top: 8px; font-size: 0.86rem; color: var(--muted); }
.plan__extra { margin-top: 10px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.features { list-style: none; display: grid; gap: 10px; margin: 22px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.plan--featured .features { border-top-color: var(--sage-300); }
.features li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.features li .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--leaf-700); stroke-width: 2.4; }
.features li.no { color: var(--muted); }
.features li.no .icon { color: var(--line-strong); }
.plan .btn { margin-top: auto; }
.plans-band {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 24px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-l);
  background: var(--olive-900); color: var(--on-dark);
}
.plans-band h3 { font-size: var(--step-2); font-weight: 550; }
.plans-band p { color: var(--on-dark-muted); max-width: 56ch; margin-top: 6px; }
.plans-band__until { padding: 14px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); }
.plans-band__until strong { display: block; font-size: var(--step-3); font-weight: 450; letter-spacing: -0.03em; line-height: 1; }
.plans-band__until span { font-size: 0.85rem; color: var(--on-dark-muted); }
.plans-legal { margin-top: 20px; max-width: 900px; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__aside .card { margin-top: 28px; }
.faq__aside .card p { color: var(--muted); margin: 6px 0 16px; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: var(--step-1); font-weight: 550; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--leaf-700); }
.faq__toggle { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-200); color: var(--olive-900); transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s; }
.faq details[open] .faq__toggle { transform: rotate(45deg); background: var(--olive-900); color: var(--cream); }
.faq__answer { padding: 0 58px 24px 0; color: var(--muted); }
.faq__answer p + p { margin-top: 10px; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content { transition: none; }
}

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.next-steps { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 18px; counter-reset: paso; }
.next-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; counter-increment: paso; }
.next-steps li::before {
  content: counter(paso); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); color: var(--on-dark-accent); font-weight: 650;
}
.next-steps strong { display: block; font-weight: 600; color: var(--on-dark); }
.next-steps span { color: var(--on-dark-muted); font-size: 0.97rem; }
.contact-lines { margin-top: 36px; display: grid; gap: 12px; }
.contact-lines a, .contact-lines p { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--on-dark-accent); }
.contact-lines .icon { color: var(--on-dark-accent); }

.form-card { background: var(--cream); color: var(--ink); border-radius: var(--radius-l); padding: clamp(22px, 3.2vw, 40px); box-shadow: 0 30px 60px -30px rgba(27, 43, 12, 0.55); }
.form-card h3 { font-size: var(--step-2); font-weight: 600; }
.form-card > p { margin-top: 6px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 7px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > label, .field legend { font-size: 0.92rem; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2d14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf-700); box-shadow: 0 0 0 4px rgba(79, 183, 108, 0.28); }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field__error { font-size: 0.85rem; color: var(--error); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--paper);
  font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.segmented label:hover { border-color: var(--olive-900); }
.segmented input:checked + label { background: var(--olive-900); color: var(--cream); border-color: var(--olive-900); }
.segmented input:focus-visible + label { outline: 3px solid var(--leaf-500); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.9rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--olive-900); cursor: pointer; }
.check a { color: var(--leaf-700); font-weight: 600; }
.form-actions { margin-top: 22px; display: grid; gap: 12px; }
.form-legal { font-size: 0.78rem; line-height: 1.5; color: var(--muted); }
.form-legal a { color: var(--leaf-700); }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 0.95rem; }
.form-status.is-error { display: block; background: #f8e3dd; color: #7a2a1d; }
.form-success { text-align: center; padding: clamp(24px, 4vw, 48px) 8px; }
.form-success__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-200); color: var(--leaf-700); }
.form-success__icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.form-success h3 { font-size: var(--step-3); font-weight: 450; letter-spacing: -0.02em; }
.form-success p { margin: 10px auto 0; max-width: 40ch; color: var(--muted); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }

/* ---------- Pie ---------- */
.site-footer {
  background: var(--olive-950); color: var(--on-dark-muted);
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.7fr)); gap: 40px; }
.footer-brand img { height: 36px; width: auto; }
.footer-tagline { margin-top: 22px; font-size: var(--step-2); line-height: 1.25; letter-spacing: -0.015em; color: var(--on-dark); max-width: 22ch; }
.site-footer h3 { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; gap: 10px; font-size: 0.82rem; }

/* ---------- Barra fija en móvil ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.4s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 48px; }
.sticky-cta .btn--outline { flex: 0 0 auto; padding-inline: 1.1em; }

/* ---------- Páginas legales ---------- */
.legal { padding-top: calc(var(--header-h) + 64px); padding-bottom: 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: var(--step-4); font-weight: 400; letter-spacing: -0.03em; }
.legal h2 { margin-top: 40px; font-size: var(--step-2); font-weight: 600; }
.legal p, .legal li { margin-top: 12px; color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { width: 30%; color: var(--muted); font-weight: 600; }
.legal .updated { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Marca IMATMed ---------- */
.brand { gap: 14px; }
.wordmark { font-weight: 750; font-size: 1.7rem; line-height: 1; letter-spacing: -0.045em; color: inherit; white-space: nowrap; }
.wordmark span { color: var(--on-dark-accent); }
.wordmark--light { color: var(--cream); }
.site-header.is-solid .wordmark span { color: var(--leaf-600); }
.brand__by { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.68rem; line-height: 1.25; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.72); }
.brand__by strong { font-weight: 600; color: inherit; }
.site-header.is-solid .brand__by { border-left-color: var(--line-strong); color: var(--muted); }
.powered { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--on-dark-muted); }
.powered img { height: 20px; width: auto; }
.quote-band__sign .wordmark { font-size: 1.9rem; }
.quote-band__sign { gap: 18px; }
.footer-brand .wordmark { font-size: 2.1rem; }
.footer-brand .powered { display: flex; margin-top: 12px; }
.mobile-menu__top .wordmark { font-size: 1.6rem; }

/* ---------- Portada: la frase cambia con cada foto ---------- */
.hero__city { margin-top: 16px; font-size: var(--step-2); line-height: 1.35; color: #e9eadc; letter-spacing: -0.01em; }
.city-rotator { display: inline-block; font-weight: 650; color: var(--on-dark-accent); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.city-rotator.is-out { opacity: 0; transform: translateY(8px); }

/* ---------- Un día en Italia ---------- */
.day { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.moment { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--line); }
.moment__photo { overflow: hidden; }
.moment__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.9s var(--ease); }
.moment:hover .moment__photo img { transform: scale(1.05); }
.moment__time { margin: 18px 20px 0; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.06em; color: var(--leaf-700); font-variant-numeric: tabular-nums; }
.moment h3 { margin: 4px 20px 0; font-size: var(--step-2); font-weight: 550; letter-spacing: -0.015em; }
.moment > p:last-child { margin: 8px 20px 22px; color: var(--muted); font-size: 0.97rem; }
.bridge { margin-top: 28px; font-size: var(--step-1); }
.city__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.9rem; font-weight: 600; color: var(--on-dark-accent); text-decoration: none; }
.city__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Las 17 universidades, tras un botón ---------- */
.unis-details { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.unis-details > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em;
}
.unis-details > summary::-webkit-details-marker { display: none; }
.unis-details > summary:hover { color: var(--leaf-700); }
.unis-details[open] > summary .faq__toggle { transform: rotate(45deg); background: var(--olive-900); color: var(--cream); }
.unis-details .unis-block { margin-top: 4px; padding-bottom: 28px; }

/* ---------- El IMAT: la nota ---------- */
.cutoff { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: center; margin-top: 20px; }
.cutoff p { color: var(--muted); margin-top: 8px; }
.cutoff .range { margin-top: 0; padding-top: 0; }
.roles__note--solo { margin-top: 24px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.faq summary .tag { margin-left: 10px; vertical-align: 3px; }

@media (max-width: 1080px) {
  .day { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cutoff { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .brand__by { display: none; }
  .wordmark { font-size: 1.45rem; }
}
@media (max-width: 640px) {
  .day { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 4px 4px 14px; margin: 0 -4px; }
  .moment { scroll-snap-align: start; }
}

/* ---------- Rediseño, fase B: estudios y estudiantes en el centro ---------- */
.section--piedra { background: var(--piedra); }
.section--piedra .h2__kicker { color: var(--leaf-700); }

/* Cabecera con seis entradas: sin cortes de línea; el «powered by» se oculta cuando falta sitio */
.nav a { padding: 9px 11px; white-space: nowrap; }
.header-cta { white-space: nowrap; }
@media (max-width: 1240px) { .brand__by { display: none; } }

/* Terracota solo como acento, siempre sobre fondo claro (6,1:1 sobre crema; 4,9:1 sobre piedra; 5,1:1 sobre salvia) */
.service__label, .moment__time, .timeline__when, .level__for { color: var(--terracota); }
.cutoff .range__label strong { color: var(--terracota); }
.cutoff .range__fill { background: var(--terracota); }

/* El programa: tres niveles */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.level { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.level__for { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.level h3 { font-size: var(--step-3); font-weight: 450; letter-spacing: -0.025em; }
.level p:last-child { color: var(--muted); }
.levels__foot { margin-top: 18px; }

/* El programa: el método en cuatro pasos, junto a una foto */
.method { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(56px, 7vw, 96px); }
.method__photo { border-radius: var(--radius-l); overflow: hidden; }
.method__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.method__title { margin-top: 12px; font-size: var(--step-3); font-weight: 450; letter-spacing: -0.025em; line-height: 1.15; }
.method__steps { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 22px; counter-reset: paso; }
.method__steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; counter-increment: paso; }
.method__steps li::before {
  content: counter(paso); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--terracota); color: var(--terracota); font-weight: 650; font-variant-numeric: tabular-nums;
}
.method__steps li::before { grid-row: 1 / span 2; }
.method__steps h4, .method__steps p { grid-column: 2; }
.method__steps h4 { margin: 0; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.method__steps p { margin-top: 4px; color: var(--muted); }
.method__steps .tag { margin-left: 6px; vertical-align: 1px; }

/* El programa: la plataforma, a todo el ancho */
.platform { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.platform__view { padding: clamp(24px, 3vw, 40px) 0 clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); }
.platform .ui { margin: 0; border-radius: 14px; }
.platform .ui__caption { padding: 0; }

/* Resultados y quién está detrás */
.results__note { margin-top: 28px; max-width: 72ch; font-size: 0.85rem; color: var(--on-dark-muted); }
.trust { align-items: center; }
.trust__aside .headline-quote { margin-top: 0; }

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 1080px) {
  .services, .roles { grid-template-columns: minmax(0, 1fr); }
  .italy, .trust, .faq, .contact, .year, .quote-band { grid-template-columns: minmax(0, 1fr); }
  .year__aside, .faq__aside { position: static; }
  .quote-band__photo img { aspect-ratio: 1.4; }
}
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { margin-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .challenges, .plans { grid-template-columns: minmax(0, 1fr); }
  .plans { max-width: 560px; margin-inline: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .brand img { height: 28px; }
  .sticky-cta { display: flex; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  /* En móvil el texto baja y deja ver la foto arriba; el velo se oscurece por abajo */
  .hero__stage::before {
    background: linear-gradient(180deg, rgba(27, 43, 12, 0.55) 0%, rgba(27, 43, 12, 0.35) 22%, rgba(27, 43, 12, 0.68) 45%, rgba(27, 43, 12, 0.9) 100%);
  }
  .hero__inner { align-self: end; padding-block: 28px 6px; }
  .hero__place { font-size: 0.85rem; line-height: 1.25; }
  .hero__place span { display: none; }
  .hero__dot { width: 22px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .ui__body { grid-template-columns: minmax(0, 1fr); }
  .ui__side { display: none; }
  .faq__answer { padding-right: 0; }
  .cities__nav { display: none; }
  .cities__track { grid-auto-columns: minmax(250px, 82%); }
  .trust-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .unis-head { align-items: flex-start; }
}
@media (max-width: 520px) {
  .eyebrow__brand { display: none; } /* la marca ya está en la cabecera: así el antetítulo cabe en una línea */
  .hero__actions .btn { width: 100%; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 2) { margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .audience__inner { align-items: flex-start; }
  .trust-stats { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Fase B en tableta y móvil */
@media (max-width: 1080px) {
  .platform { grid-template-columns: minmax(0, 1fr); }
  .platform__view { padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) 0; }
  .method { grid-template-columns: minmax(0, 1fr); }
  .method__photo img { aspect-ratio: 16 / 10; object-position: 50% 40%; }
}
@media (max-width: 760px) {
  .levels { grid-template-columns: minmax(0, 1fr); }
}

/* Tabla de universidades como tarjetas en móvil */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  table.unis { min-width: 0; }
  .unis thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .unis, .unis tbody, .unis tfoot, .unis tr, .unis td { display: block; }
  .unis tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; padding: 16px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
  .unis td { padding: 0; border: 0; }
  .unis td:first-child { grid-column: 1 / -1; margin-bottom: 8px; }
  .unis td:nth-child(2) { display: none; }
  .unis td.num { text-align: left; }
  .unis td.num::before { content: attr(data-label); display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); }
  .unis tfoot tr { padding: 16px; border-radius: var(--radius); background: var(--olive-900); color: var(--cream); }
  .unis tfoot td { background: transparent; border: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .btn:hover, .plan.is-match { transform: none; }
}

@media print {
  .site-header, .sticky-cta, .mobile-menu, .cities__nav, .hero__slides, .hero__controls { display: none !important; }
  .hero__stage { min-height: 0; }
  .hero__stage::before { display: none; }
  .hero, .section--dark { background: #fff !important; color: #000 !important; }
}

/* =========================================================
   Rediseño, fase E (3 de noviembre de 2026)
   Fotos claras y sin velos, esquinas rectas en los bloques de información,
   preparación del IMAT, gestión, galería de estudiantes y mapa interactivo.
   ========================================================= */

/* Esquinas rectas en los bloques de información. Los botones y lo que se pulsa siguen redondos */
:root { --radius-s: 0px; --radius: 0px; --radius-l: 0px; }
.tag, .plan__badge, .challenge__icon, .fact__icon, .form-status,
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { border-radius: 0; }
/* La plataforma por dentro sí va redondeada; su recuadro exterior, recto como los demás */
.platform .ui { border-radius: 16px; }

/* Portada: la foto se ve tal cual, sin velo; el texto va en un panel claro de esquinas rectas */
.hero__stage::before { display: none; }
.hero__slides { background: var(--stone); }
.hero__inner { padding-block: clamp(28px, 6vh, 72px); }
.hero__copy {
  max-width: 600px; padding: clamp(26px, 3.2vw, 44px);
  background: var(--cream); color: var(--ink); text-shadow: none;
  box-shadow: 0 24px 60px -30px rgba(27, 43, 12, 0.55);
}
.hero .eyebrow { color: var(--leaf-700); }
.hero .eyebrow::before { box-shadow: 0 0 0 1px rgba(27, 43, 12, 0.18); }
.hero h1 { margin-top: 18px; font-size: clamp(2.5rem, 4.2vw, 3.6rem); }
.hero h1 em { color: var(--leaf-700); }
.hero__lead { margin-top: 14px; font-size: 1.05rem; color: var(--ink-soft); }
.hero__actions { margin-top: 24px; }
.hero__proof { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.92rem; font-weight: 560; color: var(--ink); }
.hero__proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero__proof .icon { width: 18px; height: 18px; color: var(--leaf-600); stroke-width: 2.4; }
.hero__note { margin-top: 14px; font-size: 0.86rem; color: var(--muted); }
.hero__note .icon { color: var(--leaf-600); }

/* Preparación del IMAT: justo después de la portada y con cifras grandes */
.prep { background: var(--cream); }
.prep__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.prep__head .lead { margin-top: 0; }
.prep__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.prep__grid {
  list-style: none; padding: 0; margin: clamp(36px, 5vw, 56px) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* Cada bloque lleva su borde y se solapa 1 px con el vecino, así las líneas no se duplican */
.prep__item { display: flex; flex-direction: column; gap: 8px; margin: 0 -1px -1px 0; padding: clamp(24px, 2.8vw, 36px); background: var(--paper); border: 1px solid var(--line-strong); }
.prep__item--lead { background: var(--olive-900); color: var(--cream); border-color: var(--olive-900); }
.prep__num { font-size: clamp(2.8rem, 4.6vw, 4.2rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: var(--terracota); font-variant-numeric: tabular-nums; }
.prep__num small { font-size: 0.42em; letter-spacing: 0; margin-left: 0.06em; }
.prep__item--lead .prep__num { color: var(--on-dark-accent); }
.prep__num--icon .icon { width: 0.9em; height: 0.9em; stroke-width: 1.5; }
.prep__item h3 { margin-top: 12px; font-size: var(--step-2); font-weight: 550; letter-spacing: -0.015em; }
.prep__item p:last-child { color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
.prep__item--lead p:last-child { color: var(--on-dark-muted); }

/* IMG te guía paso a paso: un solo mensaje, centrado, con un camino de «Hoy» a «En Italia» */
.guia .section-head { margin-bottom: 0; }
.guia__plans { margin-top: 12px; font-size: 0.92rem; font-weight: 550; color: var(--terracota); }
.guia__path { position: relative; display: flex; justify-content: space-between; align-items: center; max-width: 760px; margin: clamp(36px, 5vw, 56px) auto 0; }
.guia__path::before { content: ""; position: absolute; left: 20px; right: 20px; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--terracota) 0 8px, transparent 8px 15px); }
.guia__path > i, .guia__mark i { position: relative; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--piedra); border: 2px solid var(--terracota); }
/* Cada marca es solo el punto (así queda centrado en la línea); su nombre va debajo */
.guia__mark { position: relative; display: grid; place-items: center; }
.guia__mark--start i { width: 20px; height: 20px; background: var(--terracota); }
.guia__mark b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--olive-900); color: var(--cream); }
.guia__mark b .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.guia__mark em {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-style: normal; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.guia__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(56px, 6vw, 72px); }

/* Precios: no se publican; se consultan con un asesor */
.price-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  margin-top: 24px; padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); background: var(--terracota); color: var(--cream);
}
.price-cta__text { max-width: 60ch; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.price-cta__text strong { display: block; margin-bottom: 4px; font-size: var(--step-3); font-weight: 450; letter-spacing: -0.025em; line-height: 1.15; color: var(--cream); }
.price-cta .btn--light { --btn-bg: var(--cream); --btn-fg: var(--olive-900); }
.price-cta .btn--light:hover { --btn-bg: #ffffff; }

/* Estudiantes: solo fotos, en un mosaico de 4 columnas (como la galería de EF) */
.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 12.5vw, 170px); gap: 16px;
}
.gallery__item { margin: 0; overflow: hidden; background: var(--stone); }
.gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.gallery__item:nth-child(1) img { object-position: 50% 30%; }
.gallery__item:nth-child(2) { grid-area: 1 / 2 / 3 / 4; }
.gallery__item:nth-child(3) { grid-area: 3 / 2 / 5 / 3; }
.gallery__item:nth-child(4) { grid-area: 1 / 4 / 4 / 5; }
.gallery__item:nth-child(4) img { object-position: 30% 50%; }
.gallery__item:nth-child(5) { grid-area: 3 / 3 / 5 / 4; }
.gallery__item:nth-child(6) { grid-area: 5 / 2 / 7 / 4; }
.gallery__item:nth-child(7) { grid-area: 3 / 1 / 6 / 2; }
.gallery__item:nth-child(8) { grid-area: 4 / 4 / 6 / 5; }
.gallery__item:nth-child(9) { grid-area: 6 / 1 / 7 / 2; }
.gallery__item:nth-child(10) { grid-area: 6 / 4 / 7 / 5; }

/* Ciudades más elegidas: la foto manda, sin velo ni textos encima */
.cities__track { grid-auto-columns: minmax(300px, 380px); }
.city { min-height: 0; justify-content: flex-start; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.city::after { display: none; }
.city__photo { overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); }
.city .city__photo img { position: static; z-index: auto; display: block; width: 100%; height: 100%; object-fit: cover; }
.city__body { padding: 18px 20px 20px; }
.city__name { margin-top: 0; }
.city__uni { color: var(--muted); }
.city__data { border-top-color: var(--line); }
.city__data dt { color: var(--muted); }


@media (max-width: 960px) {
  .prep__head { grid-template-columns: 1fr; align-items: start; }
  .prep__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero__copy { padding: 22px 20px 24px; }
  .hero h1 { font-size: 2.4rem; }
  .hero__note { display: none; }
  .hero__proof { gap: 6px 14px; font-size: 0.86rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 10px; grid-auto-flow: dense; }
  .gallery .gallery__item:nth-child(n) { grid-area: auto; grid-row: span 2; }
  .gallery .gallery__item:nth-child(2), .gallery .gallery__item:nth-child(6),
  .gallery .gallery__item:nth-child(9), .gallery .gallery__item:nth-child(10) { grid-column: span 2; }
}
@media (max-width: 520px) {
  .prep__grid { grid-template-columns: 1fr; }
}


/* =========================================================
   Financiación con seQura (6 de noviembre de 2026)
   Bloque en la home, después de los planes, y página propia (#financiacion)
   que se abre desde "Condiciones y requisitos". La página vive en este mismo
   archivo: se muestra cuando la dirección termina en #financiacion.
   ========================================================= */
.sequra-logo { display: block; width: 132px; height: 33px; }

/* Bloque de la home */
.finance { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.finance .row-actions { margin-top: 32px; }
.finance__offer { padding-left: clamp(24px, 4.5vw, 72px); border-left: 1px solid var(--line-strong); }
.finance__offer .facts { margin-top: 28px; }
.finance__offer .fact { align-items: center; }
.finance__offer .fact p { color: var(--ink); font-size: 1rem; line-height: 1.45; }
.finance__offer .note { margin-top: 26px; max-width: 52ch; }
.big-n { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; }
.big-n strong {
  font-size: clamp(4.2rem, 3rem + 5vw, 7rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.82;
  color: var(--olive-900); font-variant-numeric: tabular-nums;
}
.big-n span { font-size: var(--step-1); color: var(--muted); line-height: 1.2; }

/* Página de financiación */
.subpage { background: var(--cream); }
.fin-hero {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(24px, 4vw, 48px));
  padding-bottom: clamp(56px, 8vw, 112px);
  background: var(--sage-100);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; font-size: 0.92rem; color: var(--muted); }
.crumbs a { color: var(--leaf-700); text-decoration: none; font-weight: 550; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--line-strong); }
.fin-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 88px); align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.fin-hero h1 { font-size: var(--step-5); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; }
.fin-hero h1 .h2__kicker { font-size: 0.42em; letter-spacing: -0.01em; margin-bottom: 0.35em; }
.fin-hero .lead { color: var(--ink-soft); }
.fin-hero .row-actions { margin-top: 32px; }
.fin-hero__aside { padding: clamp(22px, 2.6vw, 32px); background: var(--paper); border: 1px solid var(--line); }
.fin-hero__aside .big-n { margin-top: 16px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.ticks .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--leaf-700); stroke-width: 2.4; }
.fin-hero__aside .note { margin-top: 18px; }

.pay-options { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 20px; align-items: stretch; }
.pay-option { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.pay-option--main { border: 2px solid var(--olive-900); }
.pay-option__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; }
.pay-option__top .big-n { margin-top: 0; }
.pay-option h3 { margin-top: 28px; }
.pay-option > p { margin-top: 8px; color: var(--muted); max-width: 56ch; }
.pay-option .facts { margin-top: 24px; }
.pay-option .fact { align-items: center; }
.pay-option .fact p { color: var(--ink); }
.terms { margin: 28px 0 0; border-top: 1px solid var(--line); }
.terms > div { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 650; }
.terms dd { color: var(--muted); }
.pay-option .btn { margin-top: 28px; align-self: flex-start; }
.pay-option .note { margin-top: 16px; }
.pay-option--alt h3 { margin-top: 0; }
.pay-option--alt .terms { margin-top: 24px; }
.pay-option--alt .terms > div { grid-template-columns: minmax(0, 1fr); }
.pay-option--alt .terms { margin-bottom: 28px; }
.pay-option--alt .btn { margin-top: auto; }

.chooser { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.chooser__pick > span { display: block; font-weight: 650; margin-bottom: 12px; }
.chooser__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.advisor { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; margin-top: 28px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--leaf-500); }
.advisor__avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--olive-900); color: var(--cream); font-weight: 650; }
.advisor strong { display: block; font-size: 0.9rem; color: var(--leaf-700); }
.advisor p { margin-top: 4px; }
.fin-steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: paso; border-top: 1px solid var(--line-strong); }
.fin-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); counter-increment: paso; }
.fin-steps li::before { content: counter(paso); font-size: var(--step-3); font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: var(--leaf-600); }
.fin-steps h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.fin-steps p { margin-top: 4px; color: var(--muted); max-width: 52ch; }

.needs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.needs .card { margin-top: 28px; }
.needs .card p { color: var(--muted); margin: 6px 0 16px; }
.needs__list { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); counter-reset: req; }
.needs__list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); font-size: var(--step-1); line-height: 1.45; }
.needs__list .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--leaf-700); stroke-width: 2.4; }
.needs__list small { display: block; margin-top: 4px; font-size: 0.95rem; color: var(--muted); }

.fin-legal { margin-top: 28px; max-width: 90ch; }

@media (max-width: 900px) {
  .finance, .fin-hero__grid, .pay-options, .chooser, .needs { grid-template-columns: minmax(0, 1fr); }
  .finance__offer { padding-left: 0; padding-top: 32px; border-left: 0; border-top: 1px solid var(--line-strong); }
  .terms > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 560px) {
  .finance .row-actions .btn, .fin-hero .row-actions .btn { width: 100%; }
  .fin-steps li { grid-template-columns: 40px minmax(0, 1fr); }
}

/* =========================================================
   Pie de página al estilo de intmedgroup (6 de noviembre de 2026):
   marca IMATMed powered by IMG, cinco columnas, barra inferior con botón
   y el nombre en grande, solo en contorno, cortado por abajo.
   ========================================================= */
.foot { background: var(--olive-900); color: var(--on-dark-muted); padding-bottom: 0; overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.foot h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; text-transform: none; color: #4fb76c; margin-bottom: 18px; }
.foot ul { gap: 14px; }
.foot a { color: var(--cream); text-decoration: none; }
.foot a:hover { color: #4fb76c; text-decoration: none; }
.foot ul small { display: block; margin-top: 2px; font-size: 0.82rem; color: var(--on-dark-muted); }
.lockup { display: inline-flex; align-items: center; gap: 16px; }
.lockup .wordmark { font-size: 2.1rem; color: var(--cream); }
.lockup .wordmark span { color: #4fb76c; }
.lockup__by { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.8rem; line-height: 1.3; color: var(--on-dark-muted); }
.lockup__by strong { font-weight: 600; color: var(--cream); }
.foot__motto { margin-top: 24px; max-width: 22ch; font-size: var(--step-2); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; color: var(--cream); }
.foot__prompt { color: #4fb76c; font-weight: 600; margin-right: 0.15em; }
.foot__address { margin-top: 20px; font-style: normal; font-size: 0.92rem; line-height: 1.6; }
.foot__address strong { display: block; font-weight: 650; color: var(--on-dark); }
.foot__contact { margin-top: 14px; display: grid; gap: 4px; font-size: 0.92rem; }
.foot__contact a { color: var(--on-dark-muted); }
.foot__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.88rem; }
.foot .foot__cta { --btn-bg: #4fb76c; --btn-fg: var(--olive-950); min-height: 46px; }
.foot .foot__cta:hover { --btn-bg: #d9e8ba; color: var(--olive-950); }
.foot__source { margin-top: 14px; font-size: 0.78rem; max-width: 90ch; }
.foot__giant { width: 100%; max-width: var(--container); margin: clamp(48px, 7vw, 96px) auto 0; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.foot__giant svg { width: 100%; height: auto; overflow: hidden; }
.foot__giant text { font-family: var(--font); font-size: 250px; font-weight: 750; letter-spacing: -0.04em; fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; vector-effect: non-scaling-stroke; }
@media (max-width: 1000px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .foot { padding-bottom: 72px; } }
@media (max-width: 480px) {
  .lockup { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lockup__by { padding-left: 0; border-left: 0; }
}

/* =========================================================
   Mapa de Italia más moderno (6 de noviembre de 2026)
   Al pasar el cursor (o tocar, o tabular) una ciudad se resalta y aparece una
   tarjeta fija con la universidad y las plazas. Sin animaciones ni iconos.
   ========================================================= */
.map-card {
  background:
    radial-gradient(60% 55% at 55% 48%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%),
    var(--sage-200);
  overflow: visible;
}
.map .map__land { filter: drop-shadow(0 14px 22px rgba(27, 43, 12, 0.16)) drop-shadow(0 2px 3px rgba(27, 43, 12, 0.08)); }
.map .land { fill: var(--cream); stroke: var(--sage-400); stroke-width: 1.2; }
.map__city { cursor: pointer; outline: none; }
.map .halo { fill: var(--leaf-500); opacity: 0.16; transform-box: fill-box; transform-origin: center; }
.map .dot { transform-box: fill-box; transform-origin: center; }
.map.has-active .map__city:not(.is-active) { opacity: 0.32; }
.map__city.is-active .dot { transform: scale(1.45); fill: var(--leaf-600); }
.map__city.is-active .dot--new { fill: var(--cream); }
.map__city.is-active .halo { opacity: 0.28; transform: scale(1.5); }
.map__city.is-active .city-label { fill: var(--leaf-700); font-weight: 650; }
.map__city:focus-visible .dot { stroke: var(--olive-900); stroke-width: 2.5; }

.planet-pop {
  position: absolute; z-index: 5; width: 240px; left: 0; top: 0;
  pointer-events: none; visibility: hidden; transform: translate(-50%, 0);
}
.planet-pop.is-open { visibility: visible; }
.planet-pop.is-pinned { pointer-events: auto; }
.planet-pop__info {
  margin-top: 0; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft); text-align: center;
}
.planet-pop__info strong { display: block; font-size: 0.95rem; font-weight: 650; color: var(--ink); line-height: 1.3; }
.planet-pop__info span { display: block; margin-top: 2px; font-size: 0.82rem; color: var(--muted); }
.planet-pop__info b { color: var(--leaf-700); font-weight: 650; }
.planet-pop.is-below { display: flex; flex-direction: column-reverse; }

/* =========================================================
   Tarjetas de planes (6 de noviembre de 2026): tarjetas redondeadas,
   botón blanco y cada ventaja con título y una línea de explicación.
   ========================================================= */
.pcs { gap: 24px; align-items: stretch; }
.pc {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 2.8vw, 36px); border-radius: 28px;
  background: #ffffff; border: 1px solid rgba(27, 43, 12, 0.1);
  box-shadow: 0 1px 2px rgba(27, 43, 12, 0.04), 0 18px 40px -26px rgba(27, 43, 12, 0.28);
  transition: transform 0.3s var(--ease), border-color 0.2s;
}
.pc--featured { border-color: #d9e8ba; box-shadow: 0 1px 2px rgba(27, 43, 12, 0.05), 0 26px 50px -24px rgba(27, 43, 12, 0.38); }
.pc.is-match { border-color: #1b2b0c; transform: translateY(-6px); }
.pc__badge {
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
  background: #d9e8ba; border: 2px solid #ffffff; color: #17724d; font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
.pc__badge i { width: 7px; height: 7px; border-radius: 50%; background: #4fb76c; }
.pc__name { font-size: var(--step-2); font-weight: 650; letter-spacing: -0.02em; color: #1b2b0c; }
.pc:first-child .pc__name { color: #17724d; }
.pc__for { margin-top: 6px; min-height: 3em; font-size: 0.95rem; line-height: 1.55; color: #27420a; }
.pc__for u { font-weight: 650; color: #1b2b0c; text-decoration: underline; text-decoration-color: #4fb76c; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pc__btn {
  display: flex; align-items: center; justify-content: center; min-height: 56px; margin-top: 20px;
  border-radius: 999px; background: #ffffff; color: #1b2b0c; text-decoration: none; font-weight: 600;
  border: 1px solid rgba(27, 43, 12, 0.14);
  box-shadow: 0 1px 2px rgba(27, 43, 12, 0.05), 0 10px 22px -14px rgba(27, 43, 12, 0.35);
  transition: background-color 0.2s, color 0.2s;
}
.pc__btn:hover { background: #1b2b0c; color: #ffffff; }
.pc--featured .pc__btn { background: #1b2b0c; color: #ffffff; border-color: #1b2b0c; }
.pc--featured .pc__btn:hover { background: #27420a; }
.pc__note { margin-top: 12px; text-align: center; font-size: 0.82rem; color: var(--muted); }
.pc__features { list-style: none; padding: 26px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.pc__features li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.pc__features .icon { width: 20px; height: 20px; margin-top: 1px; color: #17724d; stroke-width: 2.4; }
.pc__features strong { display: block; font-size: 0.95rem; font-weight: 650; color: #1b2b0c; line-height: 1.35; }
.pc__features span { display: block; margin-top: 2px; font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
.pc__features li.no strong, .pc__features li.no div > span { color: rgba(27, 43, 12, 0.38); font-weight: 500; }
.pc__features li.no .icon { color: rgba(27, 43, 12, 0.3); }
@media (max-width: 900px) { .pcs { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; row-gap: 36px; } }

/* =========================================================
   Secciones interactivas (6 de noviembre de 2026): el programa en tres
   planes, los cuatro pasos, el camino de la plataforma y la nota de corte.
   Todo responde a lo que hace la persona; nada se mueve solo.
   ========================================================= */
/* Tres planes: cada tarjeta es un botón y abajo se ve qué incluye */
.levels .level { text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.levels .level:hover { border-color: #1b2b0c; }
.level__for { display: block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: #17724d; }
.level__name { display: block; font-size: var(--step-3); font-weight: 450; letter-spacing: -0.025em; line-height: 1.1; }
.level__text { display: block; color: var(--muted); }
.level__cta { display: block; margin-top: auto; padding-top: 8px; font-size: 0.9rem; font-weight: 600; color: #17724d; }
.levels .level[aria-pressed="true"] { background: #1b2b0c; border-color: #1b2b0c; color: #ffffff; }
.levels .level[aria-pressed="true"] .level__for, .levels .level[aria-pressed="true"] .level__cta { color: #4fb76c; }
.levels .level[aria-pressed="true"] .level__text { color: rgba(233, 234, 220, 0.8); }
.levels .level[aria-pressed="true"] .level__cta::after { content: " ↓"; }
.level-panel { margin-top: 16px; padding: clamp(20px, 2.6vw, 28px); background: #ffffff; border: 1px solid var(--line); }
.level-panel__title { font-size: var(--step-1); font-weight: 500; }
.level-panel__title strong { font-weight: 650; color: #17724d; }
.level-panel__list { list-style: none; padding: 0; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.level-panel__list li, .chip-new, .chip-old { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; font-size: 0.92rem; }
.level-panel__list li.is-new, .chip-new { background: #17724d; color: #ffffff; font-weight: 600; }
.level-panel__list li.is-old, .chip-old { background: #e9eadc; color: #27420a; }
.level-panel__key { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.level-panel__key span { padding: 3px 10px; font-size: 0.78rem; }

/* Cuatro pasos: acordeón con selector de plan */
.method__plans { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.method__plans > span { font-size: 0.92rem; color: var(--muted); margin-right: 4px; }
.method .method__steps { gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.method .method__steps li { display: block; border-bottom: 1px solid var(--line); }
.method .method__steps li::before { content: none; }
.step__head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; width: 100%; padding: 16px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.step__num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #17724d; color: #17724d; font-weight: 650; }
.step__title { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.step__state { font-size: 0.78rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: #d9e8ba; color: #1b2b0c; white-space: nowrap; }
.step__state:empty { display: none; }
.method__steps li.is-off .step__state { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
.method__steps li.is-off .step__num, .method__steps li.is-off .step__title { opacity: 0.45; }
.method__steps li.is-open .step__num { background: #17724d; color: #ffffff; }
.step__head:hover .step__title { color: #17724d; }
.method .step__text { display: none; margin: -4px 0 0; padding: 0 0 18px 56px; color: var(--muted); }
.method__steps li.is-open .step__text { display: block; }

/* Camino de la plataforma: cada punto es una fase que se puede pulsar */
.route { position: relative; display: flex; justify-content: space-between; align-items: flex-start; max-width: 820px; margin: clamp(36px, 5vw, 56px) auto 0; }
.route__line { position: absolute; left: 23px; right: 23px; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, rgba(23, 114, 77, 0.45) 0 8px, transparent 8px 15px); }
.route__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--route, 0%); background: #17724d; }
.route__node { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; width: 46px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.route__dot { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; }
.route__dot::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #e9eadc; border: 2px solid #17724d; }
.route__node--end .route__dot { background: #1b2b0c; color: #ffffff; }
.route__node--end .route__dot::before { content: none; }
.route__dot .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.route__node.is-done .route__dot::before { background: #17724d; }
.route__node.is-current .route__dot::before { width: 22px; height: 22px; background: #17724d; box-shadow: 0 0 0 6px rgba(79, 183, 108, 0.3); }
.route__node--end.is-current .route__dot { box-shadow: 0 0 0 6px rgba(79, 183, 108, 0.35); }
.route__node:hover .route__dot::before { border-color: #1b2b0c; }
.route__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: #1b2b0c; }
.route__node.is-current .route__label { color: #17724d; }
.route__panel { max-width: 640px; margin: 28px auto 0; padding: 22px 26px; background: #ffffff; border: 1px solid var(--line); text-align: center; }
.route__count { font-size: 0.85rem; font-weight: 650; color: #17724d; }
.route__name { margin-top: 2px; font-size: var(--step-2); font-weight: 550; letter-spacing: -0.015em; }
.route__text { margin: 8px auto 0; max-width: 52ch; color: var(--muted); }
.route__nav { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.route__nav .chip-btn[disabled] { opacity: 0.4; cursor: default; }
.guia__actions { margin-top: clamp(36px, 4vw, 52px); }
@media (max-width: 640px) {
  .route__node { width: 32px; }
  .route__dot { width: 32px; height: 32px; }
  .route__line { left: 16px; right: 16px; top: 15px; }
  .route__label { font-size: 0; }
  .route__node:first-of-type .route__label, .route__node--end .route__label { font-size: 0.7rem; }
}

.cutoff { align-items: start; }
/* Los estudios: una cifra en lugar del icono y simulador de nota */
.challenge__fig { display: inline-flex; align-items: baseline; gap: 8px; align-self: flex-start; padding: 10px 16px; background: #d9e8ba; color: #27420a; font-size: 0.9rem; font-weight: 600; }
.challenge__fig b { font-size: 2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: #17724d; }
.range__you { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; left: var(--score, 77.7%); border-radius: 50%; background: #1b2b0c; border: 3px solid #ffffff; box-shadow: 0 1px 4px rgba(27, 43, 12, 0.35); }
.score { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.score__q { font-weight: 600; }
.score__out { font-size: 0.9rem; color: var(--muted); }
.score__out output { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; color: #1b2b0c; font-variant-numeric: tabular-nums; }
.score__input { width: 100%; margin: 10px 0 0; accent-color: #17724d; cursor: pointer; }
.score__result { margin-top: 10px; font-size: 0.98rem; color: #1b2b0c; }
.score__result strong { color: #17724d; }
.score__unis { list-style: none; padding: 0; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.score__unis li { padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; background: #e9eadc; color: rgba(27, 43, 12, 0.5); }
.score__unis li.is-in { background: #17724d; color: #ffffff; font-weight: 600; }

/* Cuatro planes, todos iguales: sin recomendado ni colores distintos */
.pcs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pcs--4 .pc { padding: clamp(22px, 2.2vw, 30px); }
.pcs--4 .pc:first-child .pc__name { color: #1b2b0c; }
.pc__price { margin-top: 18px; font-size: clamp(2rem, 1.5rem + 1.4vw, 2.6rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1; color: #1b2b0c; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pcs--4 .pc__for { min-height: 3.1em; }
.pcs--4 .pc__features { gap: 14px; }
@media (max-width: 1100px) { .pcs--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }
@media (max-width: 640px) { .pcs--4 { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }

/* =========================================================
   Pago a plazos, versión propia de IMG (6 de noviembre de 2026):
   banda oscura con el calendario de 24 meses, tabla comparativa,
   pasos en línea y comprobador de requisitos.
   ========================================================= */
.pay__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.pay .row-actions { margin-top: 30px; }
.months { margin: 0; }
.months__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.months__grid li { aspect-ratio: 1; display: grid; place-items: end start; padding: 8px 10px; border: 1px solid rgba(233, 234, 220, 0.22); color: rgba(233, 234, 220, 0.6); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.months__grid li.is-now { background: #4fb76c; border-color: #4fb76c; color: #1b2b0c; font-weight: 700; }
.months figcaption { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 0.92rem; color: var(--on-dark-muted); }
.months__brand { display: inline-flex; padding: 4px 8px; background: #ffffff; }
.months__brand .sequra-logo { width: 72px; height: 18px; }
.pay__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(40px, 5vw, 64px) 0 0; border-top: 1px solid rgba(233, 234, 220, 0.2); }
.pay__facts > div { padding: 22px 24px 0 0; }
.pay__facts > div + div { padding-left: 24px; border-left: 1px solid rgba(233, 234, 220, 0.2); }
.pay__facts dt { font-weight: 650; color: #4fb76c; }
.pay__facts dd { margin: 4px 0 0; color: var(--on-dark-muted); max-width: 32ch; }
.pay__legal { margin-top: 28px; }

.fin2-hero { background: #1b2b0c; color: #ffffff; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(24px, 4vw, 48px)); padding-bottom: clamp(56px, 8vw, 104px); }
.crumbs--dark { color: var(--on-dark-muted); }
.crumbs--dark a { color: #4fb76c; }
.crumbs--dark li + li::before { color: rgba(233, 234, 220, 0.4); }
.fin2-hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 6vw, 88px); align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.fin2-hero h1 { font-size: var(--step-5); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; }
.fin2-hero h1 .h2__kicker { font-size: 0.36em; letter-spacing: -0.01em; margin-bottom: 0.4em; color: #4fb76c; }
.fin2-hero .lead { color: var(--on-dark-muted); }
.fin2-hero .row-actions { margin-top: 30px; }
.fin2-hero__side .sequra-logo { padding: 8px 12px; width: 132px; height: 49px; background: #ffffff; }
.keys { margin: 22px 0 0; border-top: 1px solid rgba(233, 234, 220, 0.2); }
.keys > div { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(233, 234, 220, 0.2); }
.keys dt { min-width: 3.6em; font-size: var(--step-3); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: #ffffff; }
.keys dd { margin: 0; color: var(--on-dark-muted); }

.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare th, .compare td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: var(--step-1); font-weight: 650; border-bottom: 2px solid #1b2b0c; }
.compare tbody th { width: 22%; font-weight: 600; color: var(--muted); }
.compare .compare__alt { background: #e9eadc; }
.compare thead .compare__alt { background: #17724d; color: #ffffff; border-bottom-color: #17724d; }
.compare tfoot td { border-bottom: 0; }

.track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: t; }
.track li { position: relative; padding: 52px 24px 0 0; counter-increment: t; }
.track li::before { content: counter(t); position: absolute; top: 0; left: 0; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #1b2b0c; color: #ffffff; font-weight: 650; font-size: 0.95rem; }
.track li::after { content: ""; position: absolute; top: 17px; left: 36px; right: 0; height: 2px; background: #17724d; }
.track li:last-child::after { display: none; }
.track h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.track p { margin-top: 6px; color: var(--muted); max-width: 30ch; }

.reqs { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.reqs__status { margin-top: 24px; padding: 14px 18px; background: #e9eadc; font-weight: 600; color: #27420a; }
.reqs__status.is-ok { background: #17724d; color: #ffffff; }
.reqs__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.req { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; background: #ffffff; border: 1px solid var(--line); cursor: pointer; }
.req input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.req__box { width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); background: #ffffff; color: transparent; }
.req__box .icon { width: 18px; height: 18px; stroke-width: 2.8; }
.req input:checked + .req__box { background: #17724d; border-color: #17724d; color: #ffffff; }
.req input:focus-visible + .req__box { outline: 3px solid #4fb76c; outline-offset: 2px; }
.req:has(input:checked) { border-color: #17724d; }
.req__text strong { display: block; font-weight: 600; line-height: 1.4; }
.req__text small { display: block; margin-top: 2px; font-size: 0.88rem; color: var(--muted); }

.fin2-close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.fin2-close p { margin-top: 6px; color: var(--on-dark-muted); }
.section--dark .fin-legal { color: var(--on-dark-muted); }

@media (max-width: 900px) {
  .pay__grid, .fin2-hero__grid, .reqs { grid-template-columns: minmax(0, 1fr); }
  .pay__facts { grid-template-columns: minmax(0, 1fr); }
  .pay__facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(233, 234, 220, 0.2); }
  .track { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .track li { padding: 0 0 0 52px; }
  .track li::after { top: 36px; left: 17px; right: auto; width: 2px; height: calc(100% - 14px); }
}

/* Formulario cuadrado: los cinco planes en una línea y los dos desplegables a la misma altura */
#form-imat .segmented { display: grid; grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr)); gap: 6px; }
#form-imat .segmented label { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 4px; font-size: 0.86rem; letter-spacing: -0.01em; text-align: center; white-space: nowrap; }
#form-imat .field--pair { align-self: end; }
@media (max-width: 460px) {
  #form-imat .segmented { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tres planes, versión simple: todas iguales y se iluminan al pasar el cursor */
.levels--simple .level { background: #ffffff; border: 1px solid var(--line); transition: background-color 0.2s, border-color 0.2s; }
.levels--simple .level:hover { background: #d9e8ba; border-color: #4fb76c; }
.levels--simple .level:hover .level__text { color: #27420a; }

/* =========================================================
   Descarga gratuita (6 de noviembre de 2026): tarjeta con la foto
   y ventana con formulario para dejar los datos.
   ========================================================= */
.lead-card { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); background: #ffffff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 22px 48px -32px rgba(27, 43, 12, 0.45); }
.lead-card__photo { min-height: 100%; }
.lead-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; }
.lead-card__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 56px); }
.lead-card__kicker { align-self: flex-start; padding: 5px 14px; border-radius: 999px; background: #d9e8ba; color: #17724d; font-size: 0.85rem; font-weight: 650; }
.lead-card__title { margin-top: 16px; font-size: var(--step-3); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: #1b2b0c; }
.lead-card__tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lead-card__tags li { padding: 7px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: 0.92rem; color: #27420a; }
.lead-card__cta { align-self: flex-start; margin-top: 26px; --btn-bg: #17724d; --btn-fg: #ffffff; }
.lead-card__cta:hover { --btn-bg: #1b2b0c; }

.lead-modal { width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; background: #ffffff; color: var(--ink); overflow: hidden; box-shadow: 0 40px 90px -30px rgba(27, 43, 12, 0.6); }
.lead-modal::backdrop { background: rgba(27, 43, 12, 0.55); backdrop-filter: blur(4px); }
.lead-modal__inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); max-height: calc(100dvh - 32px); }
.lead-modal__side { position: relative; isolation: isolate; color: #ffffff; padding: clamp(24px, 3.5vw, 44px); display: flex; }
.lead-modal__side > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 35% 70%; }
.lead-modal__side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 43, 12, 0.92) 0%, rgba(27, 43, 12, 0.75) 45%, rgba(27, 43, 12, 0.2) 100%); }
.lead-modal__badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #4fb76c; color: #1b2b0c; font-size: 0.85rem; font-weight: 650; }
.lead-modal__side h2 { margin-top: 16px; font-size: var(--step-3); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.lead-modal__side-text > p:not(.lead-modal__badge) { margin-top: 12px; color: rgba(233, 234, 220, 0.88); max-width: 38ch; }
.lead-modal__main { position: relative; padding: clamp(24px, 3.5vw, 44px); overflow-y: auto; }
.lead-modal__main .form-grid { margin-top: 8px; }
.lead-modal__close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #e9eadc; color: #1b2b0c; cursor: pointer; }
.lead-modal__close:hover { background: #d9e8ba; }
.lead-modal .phone { display: grid; grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr); gap: 8px; }
.lead-modal .phone select, .lead-modal .phone input { width: 100%; }
.lead-modal__submit { margin-top: 20px; --btn-bg: #17724d; --btn-fg: #ffffff; }
.lead-modal__submit:hover { --btn-bg: #1b2b0c; }
.lead-modal__done { text-align: center; padding: clamp(32px, 6vw, 72px) 8px; outline: none; }
.lead-modal__done h3 { font-size: var(--step-3); font-weight: 500; letter-spacing: -0.02em; }
.lead-modal__done p { margin: 10px auto 0; max-width: 40ch; color: var(--muted); }
.lead-modal__done .btn { margin-top: 22px; }
body.modal-open { overflow: hidden; }
@media (max-width: 860px) {
  .lead-card { grid-template-columns: minmax(0, 1fr); }
  .lead-card__photo img { aspect-ratio: 16 / 9; }
  .lead-modal__inner { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .lead-modal__side { min-height: 200px; }
  .lead-modal__main { overflow: visible; }
  .lead-modal__close { position: fixed; top: 28px; right: 28px; z-index: 3; box-shadow: 0 4px 14px rgba(27, 43, 12, 0.25); }
  .lead-modal .phone { grid-template-columns: 156px minmax(0, 1fr); }
}

/* Cuatro planes en la sección del programa */
.levels--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .levels--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .levels--4 { grid-template-columns: minmax(0, 1fr); } }

/* Descarga gratuita: documentos dibujados en lugar de foto */
.lead-card__docs { position: relative; min-height: 380px; background: #e9eadc; overflow: hidden; }
.docs { position: absolute; inset: 0; }
.doc { position: absolute; width: 41%; aspect-ratio: 210 / 297; padding: 5% 4.5%; border-radius: 6px; background: #ffffff; box-shadow: 0 24px 40px -18px rgba(27, 43, 12, 0.45), 0 2px 6px rgba(27, 43, 12, 0.12); overflow: hidden; font-family: var(--font); }
.doc--cover { left: 7%; top: 10%; transform: rotate(-5deg); background: #1b2b0c; color: #ffffff; display: flex; flex-direction: column; }
.doc--page { left: 52%; top: 8%; transform: rotate(4deg); }
.doc__brand { font-size: 13px; font-weight: 750; letter-spacing: -0.04em; }
.doc__brand span { color: #4fb76c; }
.doc__cover-photo { margin: 8px 0 10px; height: 34%; border-radius: 3px; background: linear-gradient(160deg, #27420a, #17724d 55%, #4fb76c); }
.doc__small { font-size: 8px; color: rgba(233, 234, 220, 0.75); }
.doc__big { font-size: 19px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #4fb76c; }
.doc__sub { margin-top: 5px; font-size: 7.5px; line-height: 1.35; color: rgba(233, 234, 220, 0.85); }
.doc__chips { display: flex; gap: 4px; margin-top: 7px; }
.doc__chips span { padding: 2px 6px; border-radius: 99px; border: 1px solid rgba(233, 234, 220, 0.45); font-size: 6px; font-weight: 650; }
.doc__chips span:first-child { background: #4fb76c; border-color: #4fb76c; color: #1b2b0c; }
.doc__foot { margin-top: auto; font-size: 6px; color: rgba(233, 234, 220, 0.6); }
.doc__eyebrow { font-size: 6px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #17724d; }
.doc__title { margin-top: 2px; font-size: 13px; font-weight: 800; letter-spacing: -0.03em; color: #1b2b0c; border-bottom: 1.5px solid #4fb76c; padding-bottom: 4px; }
.doc__block { margin-top: 6px; font-size: 7px; font-weight: 700; color: #17724d; }
.doc__row { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 4px; align-items: center; padding: 1.6px 0; border-bottom: 1px solid #e9eadc; font-size: 6px; color: #27420a; }
.doc__row b { font-weight: 700; color: rgba(27, 43, 12, 0.5); }
.doc__row i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid #4fb76c; }
.docs--modal { position: relative; inset: auto; height: 300px; margin-top: auto; }
.lead-modal__side { flex-direction: column; background: #1b2b0c; }
.lead-modal__side::before { display: none; }
.lead-modal__side-text { position: relative; z-index: 1; }
.docs--modal .doc { width: 43%; }
.docs--modal .doc--cover { left: 6%; top: 8%; background: #27420a; }
.docs--modal .doc--page { left: 50%; top: 4%; }
@media (max-width: 860px) {
  .lead-card__docs { min-height: 300px; }
  .doc { width: 40%; }
  .doc--cover { left: 10%; } .doc--page { left: 48%; }
  .docs--modal { display: none; }
}

/* Descarga gratuita: portada y páginas al estilo de los libros de IMG */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/bebas-neue.a7c90c8924.woff2) format("woff2"); }
.docs3 { position: absolute; inset: 0; }
.dk { position: absolute; container-type: inline-size; aspect-ratio: 210 / 297; overflow: hidden; border-radius: 4px; box-shadow: 0 26px 44px -20px rgba(27, 43, 12, 0.55), 0 2px 6px rgba(27, 43, 12, 0.15); font-family: var(--font); }
.dk img { display: block; width: 100%; height: auto; }
.dk--cover { left: 50%; top: 7%; width: 40%; transform: translateX(-50%); z-index: 2; background: #1e2b10; color: #e9eadc; }
.dk__in { height: 100%; display: flex; flex-direction: column; padding: 7cqw 7cqw 5cqw; }
.dk__title { font-family: "Bebas Neue", var(--font); font-size: 15.4cqw; line-height: 0.92; letter-spacing: 0.005em; white-space: nowrap; }
.dk__feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5cqw; margin-top: 4cqw; padding-top: 3.5cqw; border-top: 0.3cqw solid rgba(233, 234, 220, 0.4); font-size: 2.6cqw; font-weight: 600; line-height: 1.3; }
.dk__feats i { font-style: normal; margin-right: 1cqw; }
.dk__panel { margin-top: 6cqw; border-radius: 1cqw; overflow: hidden; background: #d9e8ba; }
.dk__foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 3.5cqw; border-top: 0.3cqw solid rgba(233, 234, 220, 0.4); font-size: 2.3cqw; font-weight: 600; text-align: right; line-height: 1.35; }
.dk__foot img, .dk__pfoot img { width: 24cqw; }
.dk--left, .dk--right { top: 18%; width: 34%; background: #e9eadd; color: #1b2b0c; }
.dk--left { left: 5%; transform: rotate(-8deg); }
.dk--right { right: 5%; transform: rotate(8deg); }
.dk__ptitle { font-family: "Bebas Neue", var(--font); font-size: 15cqw; line-height: 0.95; padding-bottom: 2.5cqw; border-bottom: 0.4cqw solid #1b2b0c; }
.dk__pintro { margin-top: 2.5cqw; font-size: 3cqw; line-height: 1.35; color: #27420a; }
.dk__sec { margin-top: 4cqw; font-size: 3.2cqw; font-weight: 700; color: #17724d; }
.dk__row { display: grid; grid-template-columns: 6cqw 1fr; padding: 1.3cqw 0; border-bottom: 0.25cqw solid rgba(27, 43, 12, 0.15); font-size: 3cqw; }
.dk__row b { font-weight: 700; color: rgba(27, 43, 12, 0.45); }
.dk__pfoot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 3cqw; font-size: 2.6cqw; font-weight: 600; }
.lead-card__docs { min-height: 420px; }
.docs3--modal { position: relative; inset: auto; height: 340px; margin-top: 28px; }
.docs3--modal .dk--cover { top: 2%; width: 46%; box-shadow: 0 0 0 1px rgba(233, 234, 220, 0.3), 0 30px 50px -20px rgba(0, 0, 0, 0.6); }
.docs3--modal .dk--left, .docs3--modal .dk--right { top: 14%; width: 38%; }
.docs3--modal .dk--left { left: 0; } .docs3--modal .dk--right { right: 0; }
@media (max-width: 860px) {
  .lead-card__docs { min-height: 340px; }
  .docs3--modal { display: none; }
}

/* Solo la portada nítida: las páginas de los lados, borrosas y atenuadas */
.dk--left, .dk--right { filter: blur(2.5px); opacity: 0.6; }

/* Nuestra historia: foto del fundador sin fondo sobre un panel de marca */
.founder { position: relative; margin: 0 0 20px; padding-top: clamp(24px, 4vw, 48px); background: linear-gradient(180deg, #e9eadc 0%, #d9e8ba 100%); display: flex; justify-content: center; overflow: hidden; }
.founder img { width: min(78%, 380px); height: auto; }
.founder figcaption { position: absolute; left: 16px; bottom: 16px; padding: 10px 14px; background: #1b2b0c; color: #ffffff; font-size: 0.85rem; line-height: 1.35; }
.founder figcaption strong { display: block; font-size: 1rem; font-weight: 650; color: #4fb76c; }

/* En prensa: recortes ampliables y enlaces a las entrevistas */
.press-kicker { font-size: 0.95rem; font-weight: 650; color: #17724d; }
.press-title { margin-top: 10px; font-size: var(--step-4); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: #1b2b0c; }
.clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 48px; }
.clip { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #ffffff; text-align: left; cursor: zoom-in; overflow: hidden; font: inherit; color: inherit; }
.clip img { width: 100%; height: auto; transition: transform 0.3s var(--ease); }
.clip:hover img { transform: scale(1.02); }
.clip__label { display: block; padding: 16px 24px; font-size: 0.85rem; font-weight: 650; color: #17724d; border-top: 1px solid var(--line); position: relative; background: #ffffff; }
.press-rows { border-top: 1px solid var(--line-strong); }
.press-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 40px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); text-decoration: none; color: inherit; }
.press-row__main { display: grid; gap: 6px; max-width: 48rem; min-width: 0; }
.press-row__meta { font-size: 0.78rem; font-weight: 650; color: #17724d; }
.press-row__meta i { font-style: normal; opacity: 0.5; margin: 0 6px; }
.press-row__meta em { font-style: normal; opacity: 0.75; }
.press-row__title { font-size: var(--step-1); font-weight: 700; line-height: 1.35; color: #1b2b0c; text-underline-offset: 4px; }
.press-row:hover .press-row__title { text-decoration: underline; }
.press-row__go { flex: none; padding-top: 4px; font-size: 0.8rem; font-weight: 650; color: #17724d; }
.clip-view { width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: #ffffff; overflow: auto; }
.clip-view::backdrop { background: rgba(27, 43, 12, 0.75); }
.clip-view img { width: 100%; height: auto; }
.clip-view__close { position: sticky; top: 12px; float: right; margin: 12px 12px -54px 0; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #1b2b0c; color: #ffffff; cursor: pointer; }
@media (max-width: 760px) {
  .clips { grid-template-columns: minmax(0, 1fr); }
  .press-row { flex-direction: column; }
}

/* Debajo de los planes: ayuda para elegir y datos clave, en un solo bloque */
.plans-help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 28px; border-radius: 28px; overflow: hidden; background: #ffffff; border: 1px solid rgba(27, 43, 12, 0.1); box-shadow: 0 18px 40px -30px rgba(27, 43, 12, 0.35); }
.plans-help__ask { padding: clamp(28px, 3.5vw, 48px); background: #1b2b0c; color: #ffffff; display: flex; flex-direction: column; justify-content: center; }
.plans-help__ask h3 { font-size: var(--step-3); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.plans-help__ask p { margin-top: 12px; max-width: 44ch; color: var(--on-dark-muted); }
.plans-help__ask .row-actions { margin-top: 26px; }
.plans-help__facts { margin: 0; padding: clamp(20px, 3vw, 40px) clamp(28px, 3.5vw, 48px); display: grid; align-content: center; }
.plans-help__facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.plans-help__facts > div:last-child { border-bottom: 0; }
.plans-help__facts dt { font-weight: 650; color: #17724d; }
.plans-help__facts dd { margin: 4px 0 0; color: var(--muted); }
.plans-legal { margin-top: 16px; }
@media (max-width: 860px) { .plans-help { grid-template-columns: minmax(0, 1fr); } }

/* Foto del fundador: al pasar el cursor aparecen más fotos (y con los puntos en móvil) */
.founder__main, .founder__alt { transition: opacity 0.35s ease; }
.founder__alt { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: auto; height: calc(100% - 12px); max-width: 92%; object-fit: contain; object-position: bottom center; opacity: 0; pointer-events: none; }
.founder.is-alt .founder__main { opacity: 0; }
.founder.is-alt .founder__alt { opacity: 1; }
@media (hover: hover) {
  .founder:hover .founder__main { opacity: 0; }
  .founder:hover .founder__alt { opacity: 1; }
}
.founder__dots { position: absolute; right: 16px; bottom: 22px; display: flex; gap: 6px; }
.founder__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(27, 43, 12, 0.3); cursor: pointer; transition: width 0.25s ease, background-color 0.25s ease; }
.founder__dots button[aria-pressed="true"] { width: 20px; background: #1b2b0c; }

/* Más fotos del fundador: polaroids nítidas en lugar de una imagen única */
.founder .founder__alt { position: absolute; inset: 0; left: 0; transform: none; width: 100%; height: 100%; max-width: none; display: block; }
.pola { position: absolute; display: block; padding: 2.2% 2.2% 7%; background: #ffffff; box-shadow: 0 14px 28px -14px rgba(27, 43, 12, 0.55), 0 1px 3px rgba(27, 43, 12, 0.2); }
.pola img { display: block; width: 100%; height: auto; }
.pola--quir { left: 5%; top: 5%; width: 52%; transform: rotate(-4deg); z-index: 3; }
.pola--louvre { right: 6%; top: 3%; width: 34%; transform: rotate(5deg); z-index: 2; }
.pola--ie { left: 8%; top: 44%; width: 56%; transform: rotate(2deg); z-index: 1; }
.pola--surf { right: 7%; top: 40%; width: 33%; transform: rotate(-5deg); z-index: 4; }

/* =========================================================
   Fase G (7 de noviembre de 2026): ¿Qué es el IMAT?, la matrícula,
   IMATMed Community y las 16 ciudades
   ========================================================= */
.que-imat__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line-strong); }
.que-imat__grid li { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 30px); }
.que-imat__grid li + li { border-left: 1px solid var(--line-strong); }
.que-imat__num { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: var(--terracota); font-variant-numeric: tabular-nums; }
.que-imat__num small { margin-left: 0.15em; font-size: 0.38em; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.que-imat__grid li p:last-child { color: var(--muted); }
.que-imat__note { margin-top: 18px; }

.matricula__tramos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tramo { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 32px); border: 1px solid rgba(255, 255, 255, 0.18); }
.tramo--destacado { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tramo__isee { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-accent); }
.tramo--destacado .tramo__isee { color: var(--leaf-700); }
.tramo__precio { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 450; letter-spacing: -0.03em; line-height: 1.05; }
.tramo__precio small { font-size: 0.42em; font-weight: 550; letter-spacing: 0; }
.tramo p:last-child { color: var(--on-dark-muted); }
.tramo--destacado p:last-child { color: var(--muted); }
.matricula__isee { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px 32px; align-items: start; margin-top: 16px; padding: clamp(22px, 2.6vw, 32px); border: 1px solid rgba(255, 255, 255, 0.18); }
.matricula__isee h3 { font-size: var(--step-2); font-weight: 500; letter-spacing: -0.02em; }
.matricula__isee p { color: var(--on-dark-muted); }
.matricula__nota { margin-top: 18px; max-width: 90ch; }

.community { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; margin-top: clamp(28px, 4vw, 44px); padding: clamp(22px, 3vw, 36px); background: var(--olive-900); color: var(--on-dark); }
.community__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-700); color: var(--paper); }
.community__icon .icon { width: 30px; height: 30px; }
.community__kicker { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-accent); }
.community__title { margin-top: 6px; font-size: var(--step-3); font-weight: 450; letter-spacing: -0.025em; line-height: 1.12; }
.community p:not(.community__kicker) { margin-top: 8px; max-width: 62ch; color: var(--on-dark-muted); }
.community__plans { font-size: 0.9rem; }
.community .btn { --btn-bg: var(--paper); --btn-fg: var(--olive-900); white-space: nowrap; }

/* Ciudades sin foto todavía: fondo de la marca con el nombre de la región */
.city__photo--pendiente { display: flex; align-items: flex-end; padding: 24px; background-color: var(--olive-900); background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.4px); background-size: 14px 14px; color: var(--on-dark); }
.city__photo--pendiente span { font-size: var(--step-4); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }

@media (max-width: 960px) {
  .que-imat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .que-imat__grid li + li { border-left: 0; }
  .que-imat__grid li:nth-child(even) { border-left: 1px solid var(--line-strong); }
  .que-imat__grid li:nth-child(n+3) { border-top: 1px solid var(--line-strong); }
  .matricula__tramos, .matricula__isee { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .community { grid-template-columns: 1fr; }
  .community .btn { justify-self: start; }
}
@media (max-width: 520px) {
  .que-imat__grid { grid-template-columns: 1fr; }
  .que-imat__grid li:nth-child(even) { border-left: 0; }
  .que-imat__grid li + li { border-top: 1px solid var(--line-strong); }
}

/* Fase H: la matrícula, con un pago estimado por tramo */
.matricula__aviso { margin-bottom: 14px; font-size: 0.95rem; font-weight: 600; color: var(--on-dark); }
.matricula .tramo__precio { font-size: clamp(2.2rem, 3.8vw, 3.1rem); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ¿Por qué IMATMed?: titular grande a la izquierda y cuatro razones a la derecha */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.why__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.why__kicker { display: inline-block; padding-bottom: 6px; font-weight: 650; color: #1b2b0c; background: linear-gradient(90deg, #17724d, #4fb76c) left bottom / 100% 2px no-repeat; }
.why__title { margin-top: 22px; font-size: var(--step-5); font-weight: 750; letter-spacing: -0.045em; line-height: 0.98; color: #1b2b0c; }
.why__title mark { padding: 0 0.12em; background: #d9e8ba; color: #1b2b0c; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.why__intro .lead { margin-top: 24px; max-width: 46ch; }
.why__intro .btn { margin-top: 28px; }
.why__cards { display: grid; gap: 14px; }
.why__card { padding: clamp(24px, 2.8vw, 34px); background: #e9eadc; transition: background-color 0.2s; }
.why__card:hover { background: #d9e8ba; }
.why__tag { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #d9e8ba; color: #17724d; font-size: 0.85rem; font-weight: 650; }
.why__card:hover .why__tag { background: #ffffff; }
.why__card h3 { margin-top: 14px; font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: #1b2b0c; }
.why__card p:last-child { margin-top: 10px; color: var(--muted); max-width: 52ch; }
@media (max-width: 900px) {
  .why { grid-template-columns: minmax(0, 1fr); }
  .why__intro { position: static; }
}
