/* ===== Franja de demostración ===== */
.demo-bar {
  background: var(--stone);
  color: var(--text-2);
  font-size: .8125rem;
  text-align: center;
  padding: .5rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

/* ===== Cabecera fija y translúcida ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, .72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(26, 26, 26, .08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 1.75rem; }
.nav__link {
  font-size: .9375rem;
  color: var(--text-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.btn.header-cta { display: none; }

.menu-btn {
  width: 44px; height: 44px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
}
.menu-btn__bars { position: relative; width: 20px; height: 12px; }
.menu-btn__bars::before, .menu-btn__bars::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn__bars::before { top: 1px; }
.menu-btn__bars::after { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 5.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { top: 5.5px; transform: rotate(-45deg); }

.menu-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: rgba(250, 250, 248, .88);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  padding: .5rem var(--gutter) 1.5rem;
}
.menu-panel[hidden] { display: none; }
.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu-panel .btn { margin-top: 1.25rem; width: 100%; border-bottom: 0; }

@media (min-width: 960px) {
  .nav { display: block; }
  .btn.header-cta { display: inline-flex; }
  .menu-btn, .menu-panel { display: none !important; }
}

/* ===== Botones y enlaces ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: transform .09s ease-out, background-color .25s var(--ease), opacity .25s var(--ease);
}
.btn:hover { background: #333; }
.btn:active, .btn.is-active { transform: scale(.97); }
.btn--small { min-height: 44px; padding: 0 1.125rem; font-size: .9375rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn:disabled, .btn[aria-disabled="true"], .btn.is-disabled {
  background: var(--sand);
  color: var(--text-2);
  cursor: not-allowed;
  transform: none;
}
.btn.is-loading { opacity: .75; cursor: progress; }

.link-chevron {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  transition: gap .25s var(--ease);
}
.link-chevron::after { content: "›"; font-size: 1.25em; line-height: 1; }
.link-chevron:hover { gap: .6rem; }
.link-chevron:active { transform: scale(.97); }

/* ===== Foto / referencia visual ===== */
.photo {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  background: var(--sand);
  border-radius: var(--r-photo);
  color: var(--text-2);
  overflow: hidden;
}
.photo__label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink);
  margin-bottom: .5rem;
}
.photo__desc { display: block; font-size: .875rem; max-width: 26rem; margin-inline: auto; }
.photo--wide { aspect-ratio: 16 / 10; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--map { aspect-ratio: 4 / 3; border-radius: var(--r-card); }
.photo--sm { aspect-ratio: 16 / 9; border-radius: var(--r-card); }
@media (min-width: 768px) { .photo--wide { aspect-ratio: 21 / 9; } }

/* ===== Etiquetas ===== */
.tag {
  display: inline-block;
  padding: .25rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-2);
  background: var(--ivory);
}
.placeholder {
  font-weight: 600;
  color: var(--ink);
  background: var(--sand);
  padding: .05em .4em;
  border-radius: 6px;
  white-space: nowrap;
}

/* ===== Hero ===== */
.hero { text-align: center; padding-top: var(--s-8); padding-bottom: var(--s-6); }
.hero .eyebrow { margin-bottom: var(--s-3); }
.hero .display { max-width: 14ch; margin-inline: auto; }
.hero .lead { margin: var(--s-3) auto 0; }
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-top: var(--s-4);
}
.hero__photo { margin-top: var(--s-6); }
@media (min-width: 768px) {
  .hero { padding-top: var(--s-12); }
  .hero__actions { flex-direction: row; justify-content: center; gap: 1.5rem; }
}

/* ===== Quiénes somos ===== */
.about__head { max-width: 52rem; }
.about__head .lead { margin-top: var(--s-3); }
.people { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.people__list { display: grid; gap: var(--s-3); align-content: center; }
.person { padding-top: var(--s-3); border-top: 1px solid var(--champagne); }
.person__role { color: var(--text-2); margin-top: .25rem; }
@media (min-width: 768px) {
  .people { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); align-items: center; }
  .person__name { font-size: 1.75rem; }
}

/* Foto real dentro de un marco */
.photo--img { padding: 0; }
.photo--contact { border-radius: var(--r-card); }
@media (min-width: 960px) { .photo--contact { aspect-ratio: 4 / 5; } }
.photo--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== Clases ===== */
.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: var(--s-4); }
.section-head .h2 { flex: 1 1 100%; }

.cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--gutter));
  padding: .25rem var(--gutter) 1rem;
  scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 82%;
  scroll-snap-align: center;
  background: var(--stone);
  border-radius: var(--r-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.section--stone .card { background: var(--ivory); }
.card__level { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.card__for { color: var(--text-2); flex: 1; }
.card__when { padding-top: .75rem; border-top: 1px solid var(--line); font-weight: 600; }
@media (min-width: 768px) {
  .cards { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding: 0; gap: 1.5rem; }
  .card { flex: none; padding: 2rem; }
}

/* ===== Cómo empezar ===== */
.steps { display: grid; margin-top: var(--s-4); }
.step { padding-block: var(--s-3); border-top: 1px solid var(--line); display: grid; gap: .25rem; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--font-serif); font-size: 2rem; line-height: 1; color: var(--text-2); }
.step__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.step__text { color: var(--text-2); }
.steps__cta { margin-top: var(--s-4); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .step, .step:last-child { border-bottom: 0; padding-top: var(--s-3); gap: .75rem; border-top: 1px solid var(--champagne); }
}

/* ===== Acordeón ===== */
.faq { max-width: 48rem; margin-top: var(--s-4); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__btn {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.faq__chev {
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s var(--ease);
}
.faq__btn[aria-expanded="true"] .faq__chev { transform: rotate(-135deg) translateY(-2px); }
.faq__panel { padding: 0 0 1.25rem; color: var(--text-2); max-width: 40rem; }
.faq__panel[hidden] { display: none; }

/* ===== Contacto ===== */
.contact__grid { display: grid; gap: 1.5rem; margin-top: var(--s-4); }
.contact__cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.info-card { background: var(--ivory); border-radius: var(--r-card); padding: 1.25rem 1.5rem; }
.info-card dt { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.info-card dd { margin-top: .25rem; font-weight: 600; }
.contact__actions { margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
@media (min-width: 640px) { .contact__cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 2.5rem; } }

/* ===== Pie ===== */
.site-footer { padding-block: var(--s-6); border-top: 1px solid var(--line); color: var(--text-2); font-size: .875rem; }
.site-footer p + p { margin-top: .25rem; }

/* ===== App del selector ===== */
.app { background: var(--stone); min-height: 100vh; }
.app__main { padding-block: var(--s-3) var(--s-8); max-width: 640px; margin-inline: auto; }
.app__bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.app__title { margin-top: var(--s-2); font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -.04em; line-height: 1.04; font-weight: 700; }
.app__sub { margin-top: .75rem; color: var(--text-2); }
.progress { margin-top: var(--s-3); }
.progress__track { height: 4px; background: var(--sand); border-radius: var(--r-pill); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: var(--ink); border-radius: var(--r-pill); transition: width .5s var(--ease); }
.progress__text { margin-top: .5rem; font-size: .875rem; color: var(--text-2); }

.q { border: 0; padding: 0; margin: var(--s-4) 0 0; min-width: 0; }
.q__legend { padding: 0; font-size: 1.375rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.15; margin-bottom: .75rem; }
.q__note { margin-top: .5rem; font-size: .875rem; color: var(--text-2); }

.group { background: var(--white); border-radius: var(--r-card); overflow: hidden; }
.row {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 1.25rem;
  background: var(--white);
  border: 0;
  border-top: 1px solid var(--line);
  text-align: left;
  transition: background-color .2s var(--ease);
}
.row:first-child { border-top: 0; }
.row:hover { background: var(--ivory); }
.row:active { background: var(--stone); }
.row:focus-visible { outline-offset: -3px; }
.row__text { display: grid; }
.row__title { font-weight: 500; }
.row__hint { font-size: .875rem; color: var(--text-2); }
.row__check { width: 20px; height: 20px; flex: none; opacity: 0; transform: scale(.8); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.row[aria-pressed="true"] .row__title { font-weight: 600; }
.row[aria-pressed="true"] .row__check { opacity: 1; transform: none; }

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 2px;
  background: var(--sand);
  border-radius: 14px;
}
.seg {
  min-height: 44px;
  padding: .5rem .25rem;
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: .9375rem;
  color: var(--ink);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease), transform .09s ease-out;
}
.seg:active { transform: scale(.97); }
.seg[aria-pressed="true"] {
  background: var(--white);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(26, 26, 26, .12), 0 0 1px rgba(26, 26, 26, .12);
}

.result { margin-top: var(--s-6); background: var(--white); border-radius: var(--r-card); padding: 1.25rem; }
.result__empty { padding: .75rem .25rem; display: grid; gap: 1rem; justify-items: start; }
.result__empty p { color: var(--text-2); }
.result__card { display: grid; gap: 1rem; }
.result__name { font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.1; font-weight: 700; }
.facts { border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--text-2); }
.facts dd { font-weight: 600; text-align: right; }
.result__why { color: var(--text-2); }

/* ===== Formulario ===== */
.form-wrap { max-width: 40rem; }
.form { display: grid; gap: 1.25rem; margin-top: var(--s-4); }
.field { display: grid; gap: .5rem; }
.field label, .field .label { font-weight: 600; }
.field .opt { font-weight: 400; color: var(--text-2); }
.input {
  width: 100%;
  min-height: 52px;
  padding: .75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  transition: border-color .2s var(--ease);
}
textarea.input { min-height: 120px; resize: vertical; }
.input:hover { border-color: var(--text-3); }
.input:focus-visible { border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: .875rem; color: var(--text-2); }
.error-msg { font-size: .875rem; color: var(--error); font-weight: 600; }
.error-msg[hidden] { display: none; }
.check { display: flex; gap: .75rem; align-items: flex-start; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); flex: none; }
.check label { font-weight: 400; }
.chosen { background: var(--stone); border-radius: var(--r-card); padding: 1rem 1.25rem; }
.chosen p:first-child { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.chosen p:last-child { font-weight: 600; margin-top: .25rem; }
.error-summary { border: 1px solid var(--error); border-radius: var(--r-field); padding: 1rem 1.25rem; }
.error-summary[hidden] { display: none; }
.error-summary h2 { font-size: 1rem; color: var(--error); }
.error-summary ul { margin-top: .5rem; list-style: disc; padding-left: 1.25rem; }
.form-status { color: var(--text-2); min-height: 1.5em; }

/* ===== Gracias ===== */
.thanks { text-align: center; padding-block: var(--s-8); }
.thanks .display { max-width: 12ch; margin-inline: auto; }
.thanks .lead { margin: var(--s-3) auto 0; }
.thanks__notes { margin: var(--s-4) auto 0; max-width: 32rem; text-align: left; }
.thanks__notes li { padding: .75rem 0; border-top: 1px solid var(--line); color: var(--text-2); }
.thanks__notes li:last-child { border-bottom: 1px solid var(--line); }
.thanks__actions { margin-top: var(--s-4); display: flex; flex-direction: column; align-items: center; gap: .5rem; }

/* ===== Hoja de estados (interna) ===== */
.spec { padding-block: var(--s-4); border-top: 1px solid var(--line); }
.spec h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; margin-bottom: 1rem; }
.spec__row { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: flex-start; }
.spec__item { display: grid; gap: .5rem; justify-items: start; }
.spec__item > span { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.is-focus { outline: 3px solid var(--ink); outline-offset: 3px; }
.is-hover { background: #333; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.swatch { border: 1px solid var(--line); border-radius: var(--r-field); overflow: hidden; font-size: .8125rem; }
.swatch i { display: block; height: 56px; }
.swatch span { display: block; padding: .5rem .75rem; }

/* Logotipo (PNG con transparencia) */
.brand img { height: 38px; width: auto; }
@media (min-width: 768px) { .brand img { height: 44px; } }

/* ===== Homogeneidad de fotografía ===== */
/* Mismo tratamiento tonal para fotos de la pareja y de la escuela */
.photo--img img { filter: saturate(.82) contrast(1.02); }
.photo--contact { border-radius: var(--r-photo); }

/* ===== Galería de la escuela ===== */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: var(--s-4); }
.gallery figure { margin: 0; }
.photo--tile { aspect-ratio: 4 / 5; border-radius: var(--r-card); }
.gallery figcaption { margin-top: .75rem; font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

/* ===== Horario semanal ===== */
.timetable { margin-top: var(--s-8); }
.timetable .section-head { margin-bottom: var(--s-3); }
.week { display: grid; border-top: 1px solid var(--line); }
.day { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); align-items: start; }
.day__name { font-size: 1rem; font-weight: 650; letter-spacing: -.01em; padding-top: .75rem; }
.slots { display: grid; gap: .5rem; }
.slot {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding: .5rem 1rem;
  background: var(--ivory);
  border-radius: 16px;
  text-decoration: none;
  transition: transform .09s ease-out, background-color .25s var(--ease);
}
.slot:hover { background: var(--white); }
.slot:active { transform: scale(.98); }
.slot__time { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.02em; min-width: 3.25rem; }
.slot__text { display: grid; line-height: 1.25; }
.slot__text strong { font-weight: 600; }
.slot__text span { font-size: .875rem; color: var(--text-2); }
@media (min-width: 960px) {
  .week { grid-template-columns: repeat(5, 1fr); gap: 1rem; border-top: 0; }
  .day { grid-template-columns: 1fr; gap: .75rem; padding: 0; border-bottom: 0; }
  .day__name { padding: 0 0 .75rem; border-bottom: 1px solid var(--champagne); }
  .slot { flex-direction: column; align-items: flex-start; gap: .25rem; padding: .875rem 1rem; }
}

/* Navegación: seis enlaces caben en 960 px si el hueco se reduce */
@media (min-width: 960px) and (max-width: 1119px) { .nav__list { gap: 1.1rem; } }

/* ===== Movimiento contenido (una sola vez, solo opacidad y transform) ===== */
.h2--line::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 1.25rem;
  background: var(--champagne);
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero: entrada escalonada y foto que se asienta */
  .hero .eyebrow, .hero .display, .hero .lead, .hero__actions {
    animation: rise .6s var(--ease) both;
  }
  .hero .display { animation-delay: .08s; }
  .hero .lead { animation-delay: .16s; }
  .hero__actions { animation-delay: .24s; }
  .hero__photo .photo img { animation: settle 1.4s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(1.04); } to { transform: none; } }

  /* Secciones: aparecen al entrar en pantalla (las marca js/motion.js) */
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .reveal.is-in { opacity: 1; transform: none; }

  /* La línea champagne se dibuja de izquierda a derecha */
  .h2--line.reveal::after { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .25s; }
  .h2--line.reveal.is-in::after { transform: scaleX(1); }
}

/* ===== Horario real: filtros y etiquetas de disponibilidad ===== */
.filters {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  margin-inline: calc(-1 * var(--gutter));
  padding: .25rem var(--gutter) 1rem;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--ivory);
  font-size: .9375rem;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .09s ease-out;
}
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 600; }
@media (min-width: 960px) {
  .filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.slot { flex-wrap: wrap; }
.slot__badge {
  margin-left: auto;
  padding: .125rem .625rem;
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.slot__badge--full { background: var(--sand); color: var(--ink); }
.slot__badge--lead { border: 1px solid var(--ink); color: var(--ink); }
.slots__empty { padding: .75rem 1rem; font-size: .875rem; color: var(--text-2); }
.slots__empty[hidden], .slots li[hidden] { display: none; }
@media (min-width: 960px) { .slot__badge { margin-left: 0; margin-top: .25rem; } }

/* ===== Horario: cuadros centrados y hover creativo ===== */
.slot {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .25rem;
  min-height: 92px;
  padding: 1rem .75rem;
  overflow: hidden;
  isolation: isolate;
}
.slot__time { min-width: 0; font-size: 1.0625rem; }
.slot__text { justify-items: center; }
.slot__badge { margin: .375rem 0 0; }

/* Filete champagne que se abre desde el centro y flecha de acción */
.slot::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--champagne);
  transform: translateX(-50%);
  transition: width .5s var(--ease);
}
.slot::after {
  content: "↗";
  position: absolute;
  top: .5rem; right: .75rem;
  font-size: .9375rem;
  line-height: 1;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.slot, .slot__time, .slot__text strong, .slot__text span, .slot__badge {
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease),
              transform .45s var(--ease), box-shadow .45s var(--ease);
}

@media (hover: hover) {
  .slot:hover, .slot:focus-visible {
    background: var(--ink);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -14px rgba(26, 26, 26, .45);
  }
  .slot:hover::before, .slot:focus-visible::before { width: 56%; }
  .slot:hover::after, .slot:focus-visible::after { opacity: 1; transform: none; }
  .slot:hover .slot__text span, .slot:focus-visible .slot__text span { color: rgba(255, 255, 255, .72); }
  .slot:hover .slot__badge--full, .slot:focus-visible .slot__badge--full { background: var(--white); color: var(--ink); }
  .slot:hover .slot__badge--lead, .slot:focus-visible .slot__badge--lead { border-color: var(--white); color: var(--white); }
}
.slot:active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) {
  .slot:hover, .slot:focus-visible { transform: none; }
}

/* ===== Teléfono con acceso a WhatsApp ===== */
.info-card__phone { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.wa {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1rem 0 .75rem;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .09s ease-out;
}
.wa:hover { background: var(--ink); color: var(--white); }
.wa:active { transform: scale(.97); }

/* ===== Recuadros centrados ===== */
.info-card { text-align: center; }
.info-card__phone { justify-content: center; }
.card { text-align: center; align-items: center; }
.card__for { align-self: stretch; }
.card__when { align-self: stretch; }

/* ===== Barra del selector: Volver y Borrar respuestas ===== */
.bar-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1rem 0 .75rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .09s ease-out;
}
.bar-btn svg { transition: transform .5s var(--ease); }
.bar-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.bar-btn:active { transform: scale(.97); }
.bar-btn--reset:hover svg { transform: rotate(-200deg); }
#back:hover svg { transform: translateX(-3px); }
.bar-btn:disabled {
  background: transparent;
  border-color: var(--line);
  color: var(--text-2);
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.bar-btn:disabled:hover svg { transform: none; }

/* ===== Páginas legales ===== */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; margin-top: var(--s-4); margin-bottom: .5rem; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: .75rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .375rem; }
.legal strong { color: var(--ink); }
.legal a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal__draft { margin-top: var(--s-3); padding: 1rem 1.25rem; background: var(--stone); border-radius: var(--r-card); font-size: .9375rem; color: var(--text-2); }
.site-footer a { text-underline-offset: 3px; }

/* WhatsApp: recuadro negro en la marca; solo el icono toma el verde al interactuar */
.wa svg { transition: color .3s var(--ease), transform .4s var(--ease); }
.wa:hover svg, .wa:focus-visible svg { color: #25D366; transform: scale(1.1); }
.wa:focus-visible { background: var(--ink); color: var(--white); }

/* Campo trampa anti-spam: fuera de pantalla, no para personas */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Alternativas del selector ===== */
.alts { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.alts__title { font-size: 1rem; font-weight: 650; letter-spacing: -.01em; margin-bottom: .75rem; }
.alt {
  display: flex;
  flex-direction: column;
  gap: .125rem;
  min-height: 56px;
  justify-content: center;
  margin-top: .5rem;
  padding: .625rem 1rem;
  background: var(--stone);
  border-radius: 16px;
  text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .09s ease-out;
}
.alt__name { font-weight: 600; }
.alt__when { font-size: .875rem; color: var(--text-2); transition: color .3s var(--ease); }
.alt:hover { background: var(--ink); color: var(--white); }
.alt:hover .alt__when { color: rgba(255, 255, 255, .72); }
.alt:active { transform: scale(.98); }

/* ===== WhatsApp fijo (solo móvil y tablet) ===== */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #128C7E;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (min-width: 960px) { .wa-float { display: none; } }
@media (max-width: 959px) { .site-footer { padding-bottom: calc(var(--s-6) + 64px); } }

/* Enlaces de teléfono con zona táctil suficiente */
.info-card__phone a:not(.wa) { display: inline-flex; align-items: center; min-height: 44px; }
.site-header__inner > .btn--small { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 400px) { .site-header__inner > .btn--small { padding: 0 .875rem; font-size: .875rem; } }
