/* Hybred · Admisiones (admisiones.html)
   Toma de styles.css las fuentes, los botones y el logo, y de paginas.css la paleta clara, la barra
   superior, el pie y las entradas. Aquí van sus secciones, en el orden de la página: portada
   ("Admisiones abiertas todo el año", tres datos y dos botones), el proceso en cuatro pasos (la línea
   se traza con el scroll), los dos calendarios (Track A y B), la agenda (qué pasa después,
   la voz de una familia, el formulario corto y el respaldo), las preguntas frecuentes y los accesos de
   las familias de Hybred (pagos, matrícula, plataforma). */

.page-admisiones { --track-a: #0E7FA6; }   /* celeste oscuro: el celeste de marca no se lee como texto pequeño sobre blanco */

/* Etiqueta pequeña sobre los titulares */
.ad-kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.ad-kicker-wide { letter-spacing: 0.42em; }

/* ---------- Portada ---------- */
.ad-hero {
  position: relative;
  min-height: min(100vh, 940px);
  min-height: min(100svh, 940px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  column-gap: clamp(24px, 4vw, 64px);
  padding: 104px var(--pad) 40px;
  overflow: hidden;
}
.ad-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  /* el tamaño depende del ancho y también del alto de la pantalla: así los botones siempre quedan en la
     primera pantalla, aunque la ventana sea baja */
  font-size: clamp(2.6rem, min(8.4vw, calc((100svh - 470px) / 2.55)), 8.2rem);
  line-height: 0.84;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
}
.ad-title span { display: block; white-space: nowrap; }
.ad-hero-kicker { margin-bottom: 14px; font-family: var(--font-display); font-size: clamp(1.2rem, 1.6vw, 1.5rem); letter-spacing: 0.06em; color: #0E7FA6; }
.ad-lead { margin: 26px 0 0; max-width: 29rem; font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.55; color: var(--fg); }
.ad-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ad-facts li { display: flex; align-items: center; gap: 12px; font-size: 0.96rem; font-weight: 600; color: var(--ink); }
.ad-facts .ico { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(64, 204, 237, 0.16); fill: none; stroke: #0E7FA6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ad-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.ad-btn { padding: 1em 1.9em; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.88rem; }
.ad-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 0; padding: 1em 1.6em; font-size: 0.88rem; }
.ad-wa-short { display: none; }
.btn-line .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ad-hero-photo {
  position: relative;
  justify-self: center;
  margin: 0;
  height: min(calc(100svh - 150px), 800px);
  min-height: 440px;
  aspect-ratio: 1055 / 1303;
  max-width: 100%;
}
.ad-hero-photo img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
/* sombra en el piso, bajo el cubo */
.ad-hero-photo::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 4%;
  bottom: -3%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43, 16, 86, 0.32), rgba(43, 16, 86, 0));
  filter: blur(6px);
}

/* Entrada al cargar */
.js .ad-hero-kicker, .js .ad-title span, .js .ad-lead, .js .ad-facts, .js .ad-hero-actions { animation: pg-rise 700ms var(--ease-out) both; }
.js .ad-title span:nth-child(1) { animation-delay: 60ms; }
.js .ad-title span:nth-child(2) { animation-delay: 130ms; }
.js .ad-title span:nth-child(3) { animation-delay: 200ms; }
.js .ad-lead { animation-delay: 290ms; }
.js .ad-facts { animation-delay: 350ms; }
.js .ad-hero-actions { animation-delay: 410ms; }
.js .ad-hero-photo img { animation: ad-photo-in 900ms var(--ease-out) 120ms both; }
.js .ad-hero-photo::after { animation: pg-fade-only 900ms var(--ease-out) 300ms both; }
@keyframes ad-photo-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Cuándo empezar ---------- */
.ad-tracks {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 64px var(--pad);
  border-top: 1px solid var(--line);
}
.ad-tracks h2, .ad-faq h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--ink);
}
.ad-tracks h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.ad-tracks-head > p:not(.ad-kicker) { margin: 14px 0 0; max-width: 30rem; font-size: 0.98rem; line-height: 1.55; color: var(--muted); }
.ad-tracks-head .ad-tracks-btn { margin-top: 22px; }
.ad-track-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.track {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 22px 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.track-a { background: linear-gradient(160deg, #EAF7FD, #F5FBFE); border-color: rgba(64, 204, 237, 0.3); }
.track-b { background: linear-gradient(160deg, #F1ECFC, #F8F6FE); }
.track-b.reveal { transition-delay: 90ms; }
.track-ico { flex: none; width: 38px; height: 38px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.track-body { min-width: 0; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; }
.track-k { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.track-a .track-k { color: var(--track-a); }
.track h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(1.35rem, 1.65vw, 1.6rem); font-weight: 700; line-height: 1.05; color: var(--ink); }
/* los meses del calendario, en una píldora */
.track-periodo { margin: 12px 0 0; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(74, 28, 147, 0.14); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3; color: var(--accent); text-align: left !important; font-size: 0.875rem; }
.track-a .track-periodo { color: var(--track-a); border-color: rgba(64, 204, 237, 0.35); }
.track-txt { margin: 12px 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
/* botón de contorno violeta */
.btn-line {
  margin-top: auto;
  padding: 0.7em 1.4em;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-family: var(--font-body);   /* misma letra que los botones principales */
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- El proceso de admisión: línea de tiempo (la base .tl está en styles.css) ---------- */
.ad-proceso { padding: 64px var(--pad) 40px; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.ad-proceso h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--ink);
}
.ad-proceso-head > p:last-child { margin: 14px 0 0; max-width: 34rem; font-size: 0.98rem; line-height: 1.55; color: var(--muted); }
.ad-proceso .tl {
  margin-top: 34px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(74, 28, 147, 0.08);
}
.ad-proceso .tl-item.reveal { transition-delay: calc(var(--i, 0) * 90ms); }
.tl-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tl-list li { position: relative; padding-left: 20px; font-size: 0.88rem; line-height: 1.45; color: var(--fg); }
.tl-list li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.55; }
.tl-item:last-child .tl-list li::before { background: #40CCED; opacity: 1; }
.tl-dur { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0 !important; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(74, 28, 147, 0.06); font-size: 0.84rem !important; font-weight: 600; color: var(--accent) !important; }
.tl-dur .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ad-fam-link small { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #9C6B00; }
/* con JavaScript: la línea se llena con el scroll y cada paso se enciende cuando la línea lo alcanza */
.tl-on .tl-item::after { content: ""; position: absolute; border-radius: 1px; background: linear-gradient(to bottom, #8F52F2, #40CCED); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.tl-on .tl-item:not(:last-child)::after { left: 25px; top: 56px; bottom: 4px; width: 2px; }
.tl-on .tl-item:last-child::after { display: none; }
.tl-on .tl-item:not(:last-child)::before { background: rgba(143, 82, 242, 0.16); }
.tl-on .tl-n { transform: scale(0.84); filter: saturate(0.2) brightness(1.25); opacity: 0.7; transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 300ms ease, opacity 300ms ease; }
.tl-on .tl-body { opacity: 1; transform: none; }   /* el texto se lee siempre; lo que avanza con el scroll es la línea y el número */
.tl-on .tl-item.is-on .tl-n { transform: none; filter: none; opacity: 1; }
/* el último paso, mientras no se enciende, era un círculo blanco sobre blanco y no se veía: ahora lila claro */
.tl-on .tl-item:last-child:not(.is-on) .tl-n { color: rgba(74, 28, 147, 0.6); background: #EDE6FA; box-shadow: none; }
.tl-on .tl-item.is-on .tl-body { opacity: 1; transform: none; }
.ad-proceso-btn { margin-top: 28px; padding: 1em 1.9em; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.88rem; }
/* pantallas grandes: los cuatro pasos en fila, unidos por una línea horizontal */
@media (min-width: 1000px) {
  .tl-h { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; padding: 36px 34px 38px; }
  .tl-h .tl-item { grid-template-columns: minmax(0, 1fr); align-content: start; row-gap: 18px; padding-bottom: 0; }
  .tl-h .tl-item:not(:last-child)::before {
    left: 66px;
    right: -16px;
    top: 25px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(to right, rgba(143, 82, 242, 0.7), rgba(143, 82, 242, 0.25));
  }
  .tl-h .tl-body { padding-top: 0; }
  .tl-on.tl-h .tl-item:not(:last-child)::before { background: rgba(143, 82, 242, 0.16); }
  .tl-on.tl-h .tl-item:not(:last-child)::after { left: 66px; right: -16px; top: 25px; bottom: auto; width: auto; height: 2px; background: linear-gradient(to right, #8F52F2, #40CCED); transform-origin: left; transform: scaleX(var(--fill, 0)); }
}

/* ---------- Preguntas frecuentes ---------- */
.ad-faq { padding: 48px var(--pad) 80px; scroll-margin-top: 70px; }
.ad-faq h2 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.ad-faq-list { margin-top: 34px; display: flex; flex-direction: column; gap: 10px; }
.ad-faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(43, 16, 86, 0.04);
  transition: border-color 150ms ease, box-shadow var(--settle) ease;
}
.ad-faq-list details[open] { border-color: rgba(74, 28, 147, 0.3); box-shadow: 0 10px 26px rgba(43, 16, 86, 0.08); }
.ad-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 18px 12px 22px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.ad-faq-list summary::-webkit-details-marker { display: none; }
.ad-faq-list summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
/* "+" en un círculo; abierta, gira y queda como "×" */
.faq-ico {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(74, 28, 147, 0.4);
  transition: transform 260ms var(--ease-out), background-color 150ms ease, border-color 150ms ease;
}
.faq-ico::before, .faq-ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.8px;
  border-radius: 1px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .faq-ico { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
details[open] > summary .faq-ico::before, details[open] > summary .faq-ico::after { background: #FFFFFF; }
.faq-a { padding: 0 22px 20px; }
.faq-a p { margin: 0; max-width: 62ch; font-size: 0.95rem; line-height: 1.6; color: var(--muted); }
.faq-a p + p, .faq-a p + ul, .faq-a ul + p { margin-top: 10px; }
.faq-a ul { margin: 0; padding: 0; list-style: none; max-width: 62ch; display: grid; gap: 6px; }
.faq-a li { position: relative; padding-left: 18px; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.faq-a li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.55; }
details[open] > .faq-a { animation: pg-rise 320ms var(--ease-out); }

/* Más preguntas: las muestra "Ver todas las preguntas" (js/admisiones.js) */
.faq-more { display: flex; flex-direction: column; gap: 10px; }
.faq-more[hidden] { display: none; }
.faq-more.is-opening > details { animation: pg-rise 420ms var(--ease-out) both; }
.faq-more.is-opening > details:nth-child(2) { animation-delay: 50ms; }
.faq-more.is-opening > details:nth-child(3) { animation-delay: 100ms; }
.faq-more.is-opening > details:nth-child(4) { animation-delay: 150ms; }
html:not(.js) .ad-more { display: none; }

.ad-more {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  cursor: pointer;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-top: 26px;
  color: var(--accent);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
}
.ad-more[aria-expanded="true"] .ad-more-ico { transform: rotate(-90deg); }
.ad-more:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.ad-more span:first-child { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.ad-more-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--accent); transition: transform var(--settle) var(--ease-out), background-color 150ms ease; }
.ad-more-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Agenda tu entrevista: datos de contacto + formulario ---------- */
.ad-agenda {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 32px clamp(28px, 5vw, 72px);
  margin: 0 var(--pad) 80px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 28px;
  background: linear-gradient(160deg, #F1ECFC, #F8F6FE);
  border: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.ad-agenda h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.8rem); font-weight: 700; line-height: 0.92; letter-spacing: var(--track-display); text-transform: uppercase; color: var(--ink); }
.ad-agenda h2 .hl { display: block; }
/* encabezado y el resto de la información a la izquierda; el formulario a la derecha, a todo lo alto */
.ad-agenda { grid-template-rows: auto 1fr; }
.ad-agenda-head { grid-column: 1; grid-row: 1; }
.ad-agenda-info { grid-column: 1; grid-row: 2; }
.ad-form-col { grid-column: 2; grid-row: 1 / 3; }
.ad-agenda-info > .ad-next:first-child { margin-top: 0; }
.ad-agenda-head > p:not(.ad-kicker) { margin: 16px 0 0; max-width: 28rem; font-size: 1rem; line-height: 1.6; color: var(--fg); }
.ad-agenda-info > p:not(.ad-kicker) { margin: 16px 0 0; max-width: 28rem; font-size: 1rem; line-height: 1.6; color: var(--fg); }
.ad-agenda .ad-contact-list { margin-top: 26px; grid-template-columns: minmax(0, 1fr); }
.ad-form-col .ad-contact-list { margin-top: 0; }
.ad-form-col.reveal { transition-delay: 90ms; }
.ad-form-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ad-next { margin-top: 26px; }
.ad-next h3 { margin: 0 0 12px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.ad-next ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: paso; }
.ad-next li { position: relative; padding-left: 40px; min-height: 28px; font-size: 0.95rem; line-height: 1.45; color: var(--fg); counter-increment: paso; }
.ad-next li::before { content: counter(paso); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; border: 1.5px solid rgba(74, 28, 147, 0.25); font-size: 0.8rem; font-weight: 700; color: var(--accent); }
/* quién hace la entrevista */
.ad-host { margin-top: 22px; display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; padding: 10px 20px 10px 10px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(46, 20, 98, 0.06); }
.ad-host-fotos { flex: none; display: flex; }
.ad-host-foto { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 2px solid #FFFFFF; background: linear-gradient(140deg, #7A3CE0, #4A1C93); color: #FFFFFF; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; }
.ad-host-foto + .ad-host-foto { margin-left: -12px; }
.ad-host-foto:nth-child(2) { background: linear-gradient(140deg, #40CCED, #1F8FB3); }
.ad-host-foto:nth-child(3) { background: linear-gradient(140deg, #9B6BEA, #6A2FD0); }
.ad-host-foto img { width: 100%; height: 100%; object-fit: cover; }
.ad-host-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ad-host-txt small { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ad-host-txt strong { margin-top: 2px; font-size: 0.98rem; color: var(--ink); text-wrap: balance; }
.ad-host-txt span { font-size: 0.875rem; color: var(--muted); }
/* la voz de las familias: las frases en una sola tarjeta, separadas por una línea */
.ad-voices { margin: 26px 0 0; padding: 2px 22px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); }
.ad-voice { margin: 0; padding: 18px 0; }
.ad-voice + .ad-voice { border-top: 1px solid var(--line); }
/* "Ver su historia": miniatura del video + texto; abre el video en una ventana */
.ad-voices-video { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 14px 0 16px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: 0.92rem; font-weight: 700; color: var(--accent); text-align: left; cursor: pointer; }
.ad-voices-thumb { position: relative; flex: none; width: 72px; height: 40px; border-radius: 9px; overflow: hidden; background: #2E1462; transition: transform 160ms var(--ease-out); }
.ad-voices-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; }
.ad-voices-thumb .ico { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; fill: #FFFFFF; stroke: none; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)); }
.ad-voices-video em { font-style: normal; font-weight: 500; color: var(--muted); }
.ad-voices-video:active .ad-voices-thumb { transform: scale(0.96); transition-duration: var(--press); }
.ad-voices-video:focus-visible { outline: 3px solid rgba(74, 28, 147, 0.35); outline-offset: 2px; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) {
  .ad-voices-video:hover .ad-voices-thumb { transform: scale(1.04); }
  .ad-voices-video:hover > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
}
/* la ventana del video */
dialog.ad-video { width: min(92vw, 960px); max-width: none; padding: 0; border: 0; border-radius: 18px; background: #000000; color: #FFFFFF; overflow: visible; }
dialog.ad-video::backdrop { background: rgba(20, 8, 46, 0.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ad-video video { display: block; width: 100%; height: auto; max-height: 80svh; aspect-ratio: 16 / 9; border-radius: 18px; background: #000000; }
.ad-video-close { position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.ad-video-close:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.6); outline-offset: 3px; }
dialog.ad-video[open] { animation: pg-rise 260ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { dialog.ad-video[open] { animation: none; } }
.ad-voice blockquote { margin: 0; position: relative; padding-left: 2rem; }
.ad-voice blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.3rem;
  height: 0.98rem;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Ccircle cx='7' cy='17' r='6'/%3E%3Cpath d='M1.05 17.4C.6 10.2 4.4 3.9 11.4 1.1l1.3 2.4C8.3 5.6 6.3 9 6.4 12.4z'/%3E%3Ccircle cx='24' cy='17' r='6'/%3E%3Cpath d='M18.05 17.4c-.45-7.2 3.35-13.5 10.35-16.3l1.3 2.4c-4.4 2.1-6.4 5.5-6.3 8.9z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Ccircle cx='7' cy='17' r='6'/%3E%3Cpath d='M1.05 17.4C.6 10.2 4.4 3.9 11.4 1.1l1.3 2.4C8.3 5.6 6.3 9 6.4 12.4z'/%3E%3Ccircle cx='24' cy='17' r='6'/%3E%3Cpath d='M18.05 17.4c-.45-7.2 3.35-13.5 10.35-16.3l1.3 2.4c-4.4 2.1-6.4 5.5-6.3 8.9z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ad-voice p { margin: 0; font-size: 1.05rem; line-height: 1.45; font-weight: 600; color: var(--ink); text-wrap: pretty; text-align: left !important; }
.ad-voice figcaption { margin-top: 10px; padding-left: 2rem; display: flex; flex-direction: column; font-size: 0.92rem; }
.ad-voice figcaption strong { color: var(--ink); }
.ad-voice figcaption span { color: var(--muted); font-size: 0.875rem; }
/* formulario: lo opcional, plegado */
.af-more { border-top: 1px solid var(--line); padding-top: 12px; }
details.af-group { display: block; }
.af-more summary { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; color: var(--accent); cursor: pointer; list-style: none; }
.af-more summary::-webkit-details-marker { display: none; }
.af-more summary em { font-style: normal; font-weight: 500; color: var(--muted); }
.af-more summary .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.af-more[open] summary .ico { transform: rotate(45deg); }
.af-more summary:focus-visible { outline: 3px solid rgba(74, 28, 147, 0.35); outline-offset: 3px; border-radius: 8px; }
.af-more-in { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.af-more[open] .af-more-in { animation: pg-rise 300ms var(--ease-out); }
/* respaldo junto al formulario: logos en violeta (son blancos en el archivo; aquí se pintan con una máscara) */
.ad-trust { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; padding: 4px 4px 0; }
.ad-trust-logo { display: block; height: 30px; aspect-ratio: var(--ar, 3 / 1); background: #4A1C93; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; opacity: 0.85; }
.ad-trust p { flex: 1 1 200px; margin: 0; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }

/* Tarjeta de agendar: paso 1 (formulario) y paso 2 (calendario de citas) */
.ad-book {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(43, 16, 86, 0.1);
}
.ad-steps { list-style: none; margin: 0 0 20px; padding: 0 0 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.ad-steps li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.ad-steps li + li { flex: 1 1 auto; }
.ad-steps li + li::before { content: ""; flex: 1 1 12px; min-width: 10px; max-width: 34px; height: 2px; margin-right: 1px; border-radius: 1px; background: rgba(74, 28, 147, 0.18); }
.ad-step-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(74, 28, 147, 0.25); font-size: 0.78rem; color: var(--accent); transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.ad-steps li.is-current { color: var(--ink); }
.ad-steps li.is-current .ad-step-n { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
/* paso hecho: el número se esconde y va un chulo (SVG de fondo, centrado exacto en el círculo) */
.ad-steps li.is-done .ad-step-n { background: #40CCED url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.4l4.2 4.2 8.8-9' fill='none' stroke='%2322104A' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat; border-color: #40CCED; color: transparent; font-size: 0; }
.ad-steps li.is-done + li::before { background: #40CCED; }
/* si los nombres no caben (tableta, inglés): solo el del paso en curso, como en el celular (js/admisiones.js) */
.ad-steps.is-compact { gap: 6px; }
.ad-steps.is-compact li:not(.is-current) .ad-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ad-steps.is-compact li + li::before { max-width: none; }   /* la línea llena el espacio: los pasos quedan unidos */
/* Formulario: tres grupos (acudiente 1, acudiente 2 plegado, aspirante) */
.ad-form { display: flex; flex-direction: column; gap: 18px; }
.af-group { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.af-group > legend { width: 100%; margin: 0 0 12px; padding: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
fieldset.af-group + .af-more, .af-more + fieldset.af-group { margin-top: 2px; }
fieldset.af-group + fieldset.af-group { padding-top: 16px; border-top: 1px solid var(--line); }
.af-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(64, 204, 237, 0.12); font-size: 0.9rem; line-height: 1.5; color: var(--ink); }
.af-hint { margin: -6px 0 0; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.ad-form[hidden] { display: none; }
/* uno a la vez (con JavaScript): el título del grupo ya está en el indicador de pasos */
.af-group[hidden] { display: none; }
.is-wizard .af-group > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-wizard .af-group { animation: pg-rise 320ms var(--ease-out); }
.af-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.af-nav .btn { margin-left: auto; }
.af-next { padding: 1em 1.6em; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.86rem; cursor: pointer; }
.af-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; border: 0; background: none; font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--accent); cursor: pointer; }
.af-back .ico-back { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: scaleX(-1); }
.af-back:focus-visible { outline: 3px solid rgba(74, 28, 147, 0.35); outline-offset: 2px; border-radius: 8px; }
html:not(.js) .af-next, html:not(.js) .af-back { display: none; }
/* formulario apagado (Configuración del sitio): una tarjeta que lleva al proceso de admisión en línea */
.ad-pausa { display: flex; flex-direction: column; align-items: flex-start; }
.ad-pausa-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: rgba(64, 204, 237, 0.14); }
.ad-pausa-ico .ico { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ad-pausa .ad-cal-text { max-width: 30rem; }
.ad-pausa-btn { margin-top: 24px; }
/* paso 2: el calendario */
.ad-cal[hidden] { display: none; }
.ad-cal { animation: pg-rise 420ms var(--ease-out); }
.ad-cal-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 700; line-height: 1; letter-spacing: var(--track-display); text-transform: uppercase; color: var(--ink); }
.ad-cal-title:focus { outline: none; }
.ad-cal-text { margin: 10px 0 0; font-size: 0.95rem; line-height: 1.55; color: var(--fg); }
/* Datos de la cita (duración y correo de la confirmación), en pastillas */
.ad-cal-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ad-cal-facts li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 7px 14px 7px 9px; border-radius: 999px; background: rgba(104, 74, 164, 0.08); font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.ad-cal-facts li[hidden] { display: none; }
.ad-cal-facts li span { min-width: 0; overflow-wrap: anywhere; }
.ad-cal-facts .ico { flex: none; width: 18px; height: 18px; fill: none; stroke: #684AA4; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* El calendario de HubSpot (Meetings) es una ventana de otro sitio: no se puede cambiar por dentro. Desde aquí:
   - se recorta a su tarjeta (400 px de ancho; la ventana trae 4 px de margen a cada lado) con puntas redondas;
   - se le pasa un filtro de color para que el azul de la cuenta de HubSpot (#004288) se vea con el morado de Hybred
     (#684AA4); blancos y negros no cambian. Va con funciones CSS (brillo, tono y saturación) y no con un filtro SVG,
     porque Chrome no aplica los filtros SVG a ventanas de otro sitio. Si cambia el color de la cuenta, hay que recalcularlo;
   - en la vista del mes se recorta el espacio vacío de abajo (clase is-cal, la pone js/admisiones.js). */
.ad-cal-frame { position: relative; width: min(100%, 400px); margin: 22px auto 0; border-radius: 22px; overflow: hidden; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(74, 28, 147, 0.1), 0 24px 48px -20px rgba(58, 21, 128, 0.38); isolation: isolate; }
.ad-cal-frame .meetings-iframe-container { line-height: 0; }
.ad-cal-frame iframe { display: block; width: calc(100% + 8px) !important; min-width: 0 !important; max-width: none; margin: 0 -4px; border: 0; filter: brightness(1.07) hue-rotate(-8.17deg) saturate(2.417) hue-rotate(40.48deg) saturate(0.442); transition: margin-bottom 320ms var(--ease-out); }
.ad-cal-frame.is-cal iframe { margin-bottom: -86px; }
/* mientras carga: una tarjeta morada con brillo suave, del tamaño del calendario */
.ad-cal-loading { position: absolute; inset: 0; z-index: 1; margin: 0; background: #684AA4; background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0) 70%); background-size: 220% 100%; animation: cal-shimmer 1.4s linear infinite; transition: opacity 300ms var(--ease-out); }
.ad-cal-frame.is-loading { min-height: 597px; }
.ad-cal-frame:not(.is-loading) .ad-cal-loading { opacity: 0; pointer-events: none; }
@keyframes cal-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .ad-cal-loading { animation: none; } .ad-cal-frame iframe { transition: none; } }
.ad-cal-frame.is-pending { width: auto; margin-left: 0; margin-right: 0; border-radius: 16px; box-shadow: none; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 20px; border: 1.5px dashed rgba(74, 28, 147, 0.28); background: rgba(74, 28, 147, 0.03); text-align: center; }
.ad-cal-frame.is-pending .ico { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ad-cal-frame.is-pending p { margin: 0; max-width: 26rem; font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
.ad-cal-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 16px auto 0; font-size: 0.875rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.ad-cal-open .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.af-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.af-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.af-field label, .af-who legend { font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.af-field em { font-style: normal; font-weight: 500; color: var(--muted); }
.af-field input, .af-field select, .af-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid rgba(74, 28, 147, 0.2);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;                          /* 16 px: el celular no hace zoom al escribir */
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.af-field textarea { resize: vertical; min-height: 88px; }
.af-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, #4A1C93 50%), linear-gradient(135deg, #4A1C93 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.af-field input:focus-visible, .af-field select:focus-visible, .af-field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(74, 28, 147, 0.14); }
.af-field [aria-invalid="true"] { border-color: #C2185B; }
.af-field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.14); }
/* ¿Quién escribe?: dos opciones como píldoras */
/* el perfil del aspirante: opciones en tarjetas (dos columnas; una en el teléfono) */
.af-choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.af-choice legend { padding: 0; margin-bottom: 2px; font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.af-choice legend em { font-style: normal; font-weight: 500; color: var(--muted); }
.af-choice-hint { margin: 0 0 10px; font-size: 0.9rem; line-height: 1.4; color: var(--muted); text-align: left !important; }
.af-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.af-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1.5px solid rgba(74, 28, 147, 0.16); border-radius: 12px; background: #FFFFFF; cursor: pointer; font-size: 0.9rem; line-height: 1.35; color: var(--ink); transition: border-color 150ms ease, background-color 150ms ease; }
.af-opt input { flex: none; appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1.5px solid rgba(74, 28, 147, 0.4); border-radius: 50%; background: #FFFFFF; display: grid; place-content: center; cursor: pointer; }
.af-opt input::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 120ms ease; }
.af-opt input:checked { border-color: var(--accent); }
.af-opt input:checked::before { transform: scale(1); }
.af-opt:has(input:checked) { border-color: var(--accent); background: #F4EFFD; }
.af-opt input:focus-visible { outline: 3px solid rgba(74, 28, 147, 0.35); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .af-opt:hover { border-color: rgba(74, 28, 147, 0.4); } }
.af-choice[aria-invalid="true"] .af-opt { border-color: rgba(194, 24, 91, 0.5); }
.af-who { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.af-who legend { width: 100%; margin-bottom: 8px; padding: 0; }
.af-who label { position: relative; cursor: pointer; }
.af-who input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.af-who span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 1.5px solid rgba(74, 28, 147, 0.2);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.af-who input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.af-who input:focus-visible + span { outline: 3px solid rgba(74, 28, 147, 0.35); outline-offset: 2px; }
.af-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.af-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #4A1C93; }
.af-consent a { color: var(--accent); }
/* campo trampa contra spam: invisible para las personas, los robots lo llenan */
.af-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.af-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FDECF3; color: #9C1048; font-size: 0.9rem; font-weight: 600; }
.af-submit {  padding: 1em 1.9em; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.88rem; cursor: pointer; }
.af-submit[disabled] { opacity: 0.6; cursor: progress; }
.af-status { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.af-status:empty { display: none; }
/* enviado: el formulario se reemplaza por la confirmación */
.ad-form.is-sent > :not(.af-status) { display: none; }
.ad-form.is-sent .af-status { padding: 24px 4px; font-size: 1.05rem; line-height: 1.6; color: var(--ink); }
.ad-contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.ad-contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 150ms ease, transform var(--settle) var(--ease-out);
}
.ad-contact-list a:active { transform: scale(0.98); transition-duration: var(--press); }
.ad-contact-list .ico { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ad-contact-list span { min-width: 0; }
.ad-contact-list small { display: block; margin-bottom: 2px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ad-faq { padding-bottom: 56px; }

/* ---------- ¿Ya eres familia Hybred? ---------- */
.ad-familias {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 24px clamp(24px, 4vw, 56px);
  margin: 0 var(--pad) 80px;
  padding: clamp(26px, 3.6vw, 44px);
  border-radius: 28px;
  background: linear-gradient(140deg, #4A1C93, #2B1056);
  color: #FFFFFF;
  scroll-margin-top: 96px;
}
.ad-familias h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; line-height: 0.95; letter-spacing: var(--track-display); text-transform: uppercase; color: #FFFFFF; }
.ad-familias h2 .hl { color: var(--celeste); }
.ad-fam-copy p { margin: 12px 0 0; max-width: 24rem; font-size: 0.95rem; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }
.ad-fam-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ad-fam-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform var(--settle) var(--ease-out);
}
.ad-fam-link .ico { width: 30px; height: 30px; fill: none; stroke: var(--celeste); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ad-fam-link em { display: block; margin-top: 4px; font-style: normal; font-size: 0.86rem; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.ad-fam-link small { margin-top: 6px; color: #FFD27A; }
.ad-fam-link.is-pending { cursor: default; }
.ad-fam-link:active { transform: scale(0.98); transition-duration: var(--press); }
.ad-fam-link:focus-visible { outline: 2px solid var(--celeste); outline-offset: 2px; }

/* ---------- Hover solo con mouse ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn-line:hover { background: var(--accent); color: #FFFFFF; }
  .ad-faq-list summary:hover .faq-ico { border-color: var(--accent); }
  .ad-contact-list a:hover { border-color: var(--accent); }
  .af-who label:hover span { border-color: var(--accent); }
  .af-submit:hover { cursor: pointer; }
  .ad-more:hover .ad-more-ico { transform: translateX(3px); background: rgba(74, 28, 147, 0.08); }
  .ad-wa:hover .ico { stroke: #FFFFFF; }
  .ad-fam-link:not(.is-pending):hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.32); }
  .ad-cal-open:hover { text-decoration: underline; text-underline-offset: 4px; }
  .af-back:hover { text-decoration: underline; text-underline-offset: 4px; }
  .ad-more[aria-expanded="true"]:hover .ad-more-ico { transform: rotate(-90deg) translateX(3px); }
}

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1100px) {
  .ad-tracks { grid-template-columns: minmax(0, 1fr); }
  .ad-agenda { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .ad-agenda-head, .ad-agenda-info, .ad-form-col { grid-column: 1; grid-row: auto; }
  .ad-agenda-head { order: 1; }
  .ad-form-col { order: 2; }
  .ad-agenda-info { order: 3; }
  .ad-familias { grid-template-columns: minmax(0, 1fr); }
  .ad-agenda .ad-contact-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
}
@media (max-width: 900px) {
  .ad-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

/* ---------- Ventanas bajas (escritorio): menos aire entre bloques, para que los botones queden a la vista ---------- */
@media (min-width: 761px) and (max-height: 820px) and (orientation: landscape) {
  .ad-hero { padding-top: 92px; padding-bottom: 28px; }
  .ad-lead { margin-top: 18px; font-size: 1rem; line-height: 1.5; }
  .ad-facts { margin-top: 16px; gap: 6px; }
  .ad-facts li { font-size: 0.9rem; }
  .ad-facts .ico { width: 30px; height: 30px; padding: 6px; }
  .ad-hero-actions { margin-top: 22px; }
}
@media (min-width: 761px) and (max-height: 640px) and (orientation: landscape) {
  .ad-facts { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .ad-facts li { font-size: 0.82rem; }
  .ad-facts .ico { width: 26px; height: 26px; padding: 5px; }
}

/* ---------- Tablet en vertical: la foto arriba, grande; el texto debajo ---------- */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .ad-hero { display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: 104px var(--pad) 48px; }
  .ad-hero-photo { order: -1; align-self: center; height: min(34svh, 480px); min-height: 0; margin-bottom: 20px; }
  .ad-title { font-size: clamp(4rem, 10vw, 6.6rem); }
  .ad-lead { max-width: 36rem; }
}

/* ---------- Teléfono: la foto arriba, el texto debajo ---------- */
@media (max-width: 760px) {
  .ad-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 88px var(--gutter) 48px; }
  .ad-hero-photo { order: -1; height: min(48svh, 420px); min-height: 0; margin-bottom: 18px; }
  /* los dos botones caben en la primera pantalla: foto más baja, botones uno al lado del otro, y los tres
     datos debajo de ellos */
  .ad-hero-photo { height: min(28svh, 250px); margin-bottom: 10px; }
  .ad-hero-copy { display: flex; flex-direction: column; }
  .ad-title { font-size: clamp(3rem, 14.5vw, 4.6rem); }
  .ad-lead { margin-top: 14px; font-size: 0.95rem; line-height: 1.5; }
  .ad-hero-actions { order: 2; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .ad-facts { order: 3; margin-top: 22px; }
  .ad-facts li { font-size: 0.92rem; }
  .ad-btn { flex: 1 1 auto; justify-content: center; gap: 6px; padding: 1em 0.75em; font-size: 0.74rem; letter-spacing: 0.02em; white-space: nowrap; }
  .ad-wa { flex: 1 1 auto; justify-content: center; gap: 6px; padding: 0.8em 0.7em; font-size: 0.9rem; }
  .ad-wa .ico { width: 18px; height: 18px; }
  .ad-wa-long { display: none; }
  .ad-wa-short { display: inline; }
}
@media (max-width: 760px) {
  .ad-familias { margin: 0 var(--gutter) 56px; padding: 24px 18px; border-radius: 22px; }
  .ad-fam-links { grid-template-columns: minmax(0, 1fr); }
  .ad-fam-link { flex-direction: row; align-items: center; padding: 14px 16px; }
  .ad-book { padding: 20px 16px; }
  /* en el teléfono el calendario usa todo el ancho de la tarjeta (sale del relleno de 16 px) */
  .ad-cal-frame { width: auto; margin-left: -16px; margin-right: -16px; border-radius: 18px; }
  .ad-cal-facts li { padding: 6px 12px 6px 8px; font-size: 0.82rem; }
  .ad-tracks { padding: 48px var(--gutter); }
  .ad-track-list { grid-template-columns: minmax(0, 1fr); }
  .ad-proceso { padding: 48px var(--gutter) 32px; }
  .ad-proceso .tl { margin-top: 26px; }
  .ad-proceso-btn { width: 100%; }
  .ad-faq { padding: 32px var(--gutter) 56px; }
  .ad-kicker-wide { letter-spacing: 0.26em; }
  .ad-faq-list summary { font-size: 0.96rem; padding-left: 18px; }
  .faq-a { padding: 0 18px 18px; }
  .ad-agenda { margin: 0 var(--gutter) 56px; padding: 22px 16px; border-radius: 22px; }

  /* nombres y apellidos, tipo y número de documento: de a dos; correo, celular, perfil y grado: uno por renglón */
  .af-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; align-items: end; }
  .af-row-stack { grid-template-columns: minmax(0, 1fr); }
  /* botón a todo lo ancho; "Atrás" debajo */
  .af-nav { flex-direction: column-reverse; align-items: stretch; gap: 6px; }
  .af-nav .btn { margin-left: 0; }
  .af-submit, .af-next { width: 100%; white-space: normal; text-align: center; }
  .af-back { align-self: center; }
  /* en el celular, el indicador muestra el nombre solo del paso en curso */
  .ad-steps { gap: 6px; }
  .ad-steps li:not(.is-current) .ad-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ad-steps li + li::before { max-width: 22px; }
}
/* teléfonos muy bajos (≤ 600 px de alto): la foto se achica un poco más para que los botones sigan a la vista */
@media (max-width: 760px) and (max-height: 600px) {
  .ad-hero-photo { height: 24svh; }
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .ad-hero-kicker, .js .ad-title span, .js .ad-lead, .js .ad-facts, .js .ad-hero-actions, .js .ad-hero-photo img { animation: pg-fade-only 300ms ease both; }
  .af-more[open] .af-more-in { animation: none; }
  details[open] > .faq-a, .faq-more.is-opening > details { animation: none; }
  .ad-more[aria-expanded="true"]:hover .ad-more-ico { transform: rotate(-90deg); }
  .faq-ico { transition: background-color 150ms ease, border-color 150ms ease; }
  .ad-more:hover .ad-more-ico { transform: none; }
}

/* quién hace la entrevista, en el teléfono: tarjeta a todo el ancho, las fotos arriba y los nombres debajo */
@media (max-width: 760px) {
  .ad-host { width: 100%; flex-direction: column; align-items: flex-start; gap: 10px; border-radius: 18px; padding: 14px 16px; }
  .ad-host-foto { width: 40px; height: 40px; font-size: 0.92rem; }
  .ad-host-foto + .ad-host-foto { margin-left: -10px; }
}

/* el perfil del aspirante en el teléfono: una columna */
@media (max-width: 760px) {
  .af-choice-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Revisión UX/UI ---------- */
/* Texto alineado a la izquierda en esta página (el justificado abría huecos entre palabras en columnas angostas) */
@media (min-width: 761px) {
  body.page-admisiones main :is(p, .tl-list li, .faq-a li) { text-align: left; text-justify: auto; -webkit-hyphens: manual; hyphens: manual; }
}
/* Portada: los dos botones del mismo alto (el de WhatsApp toma el relleno del principal) */
.ad-hero-actions { align-items: center; }
.ad-hero-actions .ad-wa { padding: 1em 1.6em; }
/* Mensaje de error debajo de cada campo */
.af-msg { margin: 2px 0 0; font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: #9C1048; text-align: left !important; }
.af-choice > .af-msg { margin-top: 8px; }
.af-msg[hidden] { display: none; }
.af-msg.is-tip { font-weight: 500; color: var(--muted); }
.af-msg-fix { display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: #4A1C93; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.af-msg-fix:hover { color: var(--ink); }
/* Aviso de datos recuperados (lo escrito se guarda mientras dura la visita) */
.af-restored { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(74, 28, 147, 0.07); font-size: 0.9rem; line-height: 1.45; color: var(--ink); text-align: left !important; }
/* La burbuja de WhatsApp se esconde donde ya hay WhatsApp a la vista y mientras el formulario está en pantalla */
.page-admisiones .wa-fab { transition: transform var(--settle) var(--ease-out), bottom 300ms var(--ease-out), box-shadow 150ms ease, opacity 220ms ease, visibility 0s; }
html.fab-off .wa-fab { opacity: 0; visibility: hidden; transform: translateY(12px); transition: transform 220ms var(--ease-out), opacity 220ms ease, visibility 0s linear 220ms; }
@media (prefers-reduced-motion: reduce) { html.fab-off .wa-fab { transform: none; } }

/* En el teléfono: botones de la portada uno debajo del otro, a todo el ancho y con letra legible;
   el perfil del aspirante, más compacto */
@media (max-width: 760px) {
  .ad-hero-actions { flex-direction: column; align-items: stretch; }
  .ad-hero-actions .ad-btn, .ad-hero-actions .ad-wa { flex: none; width: 100%; justify-content: center; padding: 1em 1.2em; font-size: 0.9rem; letter-spacing: 0.04em; }
  .ad-hero-actions .ad-wa-long { display: inline; }
  .ad-hero-actions .ad-wa-short { display: none; }
  .af-choice-list { gap: 6px; }
  .af-opt { padding: 9px 12px; }
}
/* teléfonos de pantalla baja (p. ej. 375 × 667): foto más baja para que los dos botones, ahora uno debajo
   del otro, sigan en la primera pantalla */
@media (max-width: 760px) and (max-height: 700px) {
  .ad-hero-photo { height: min(22svh, 200px); }
  .ad-hero-actions { margin-top: 14px; }
}
/* filas de dos campos en el teléfono: las etiquetas ocupan siempre dos líneas, así los campos quedan alineados
   aunque uno muestre mensaje de error debajo */
@media (max-width: 760px) {
  .af-row:not(.af-row-stack) { align-items: start; }
  .af-row:not(.af-row-stack) .af-field > label { min-height: 3.2em; display: flex; align-items: flex-end; }
}


