/* ==========================================================
   La Academia del Centro · Prototipo de web
   Mobile-first · sin frameworks
   ========================================================== */

:root {
  --brand: #5F6ABC;
  --brand-600: #4F5BB0;
  --brand-700: #3E4799;
  --brand-800: #2F3678;
  --brand-900: #222858;
  --brand-50: #F3F4FB;
  --brand-100: #E6E8F6;
  --brand-200: #CDD1EE;

  --ink: #1D2040;
  --muted: #565B78;
  --line: #E3E5F0;
  --bg: #FFFFFF;

  --accent: #F5C04A;
  --accent-soft: #FFF5DC;
  --wa: #1E8E4F;
  --wa-hover: #187A43;
  --wa-bright: #25D366;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(34, 40, 88, .06), 0 2px 8px rgba(34, 40, 88, .05);
  --shadow: 0 10px 30px -10px rgba(34, 40, 88, .22);
  --shadow-lg: 0 30px 60px -20px rgba(34, 40, 88, .35);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 820px; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

/* ---------- Barra de prototipo ---------- */
.proto-bar {
  background: var(--brand-900);
  color: #DADDF5;
  font-size: .8rem;
}
.proto-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 7px; }
.proto-bar strong { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
@media (max-width: 640px) { .hide-sm { display: none; } }
.proto-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.proto-toggle input { accent-color: var(--accent); }

.proto-note {
  margin-top: 14px;
  padding: 8px 12px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: #6B5310;
  font-size: .8rem;
  border-radius: 0 8px 8px 0;
}
.proto-note--center { max-width: 620px; margin-inline: auto; margin-top: 24px; }
.pending {
  display: inline-block;
  padding: 1px 8px;
  border: 1.5px dashed #D9A62A;
  background: var(--accent-soft);
  color: #6B5310;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.6;
}
body.hide-notes .proto-note { display: none; }
body.hide-notes .pending { border-color: transparent; background: var(--brand-50); color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 54px; padding: 12px 26px; font-size: 1rem; }
.btn--primary { background: var(--brand-700); color: #fff; box-shadow: 0 8px 20px -8px rgba(62, 71, 153, .6); }
.btn--primary:hover { background: var(--brand-800); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(30, 142, 79, .7); }
.btn--wa:hover { background: var(--wa-hover); }
.btn--outline { border-color: var(--brand-200); color: var(--brand-700); background: #fff; }
.btn--outline:hover { border-color: var(--brand-700); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(34, 40, 88, .4); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__seal { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; padding: 3px; box-shadow: 0 4px 12px -4px rgba(95, 106, 188, .7); }
.brand__seal svg { width: 100%; height: 100%; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: .82rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-700); }
.brand__name b { font-weight: 800; font-size: 1rem; color: var(--brand-800); }

.nav-toggle {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--brand-800); display: grid; place-items: center; cursor: pointer;
}
.nav-toggle .ic { width: 24px; height: 24px; }
.nav-toggle .ic--close { display: none; }
.nav-toggle[aria-expanded="true"] .ic--open { display: none; }
.nav-toggle[aria-expanded="true"] .ic--close { display: block; }

.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 20px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav a:not(.btn) {
  padding: 12px 8px; text-decoration: none; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav__cta { margin-top: 14px; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 4px;
    padding: 0; background: none; border: 0; box-shadow: none;
    transform: none; opacity: 1; visibility: visible;
  }
  .nav a:not(.btn) {
    padding: 8px 12px; border: 0; border-radius: 999px; font-size: .92rem; color: var(--muted);
    transition: color .2s, background-color .2s;
  }
  .nav a:not(.btn):hover, .nav a.is-current { color: var(--brand-800); background: var(--brand-50); }
  .nav__cta { margin: 0 0 0 10px; min-height: 42px; padding: 8px 18px; font-size: .9rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(34, 40, 88, .5), transparent 60%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 70%, var(--brand-800) 100%);
  padding: 48px 0 110px;
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero__inner { display: grid; gap: 40px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-700);
  margin-bottom: 12px;
}
.eyebrow--light { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 14px; border-radius: 999px; letter-spacing: .06em; font-size: .74rem; }
.eyebrow--light .ic { width: 1em; height: 1em; }

.hero h1 { font-size: clamp(2.05rem, 7.2vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; }
.hl { position: relative; white-space: nowrap; color: var(--accent); }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .12em;
  background: var(--accent); border-radius: 4px; opacity: .55;
}
.hero__lead { margin-top: 18px; font-size: 1.08rem; color: rgba(255, 255, 255, .88); max-width: 560px; }
.hero__lead strong { color: #fff; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__actions .btn { flex: 1 1 220px; }

.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: .9rem; color: rgba(255, 255, 255, .88); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts b { color: #fff; }
.hero__facts .ic { color: var(--accent); }

.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 16px; height: 16px; }
.stars--lg svg { width: 24px; height: 24px; }

.hero__visual { display: none; }
.seal-wrap { position: relative; width: min(420px, 80vw); aspect-ratio: 1; margin-inline: auto; }
.seal-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 65%); filter: blur(20px); }
.seal {
  position: absolute; inset: 14%;
  border-radius: 50%; color: #fff; padding: 4%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 40px 80px -30px rgba(15, 18, 50, .7), inset 0 1px 0 rgba(255, 255, 255, .3);
  animation: float 7s ease-in-out infinite;
}
.seal svg { width: 100%; height: 100%; }
.chip {
  position: absolute; padding: 8px 14px; border-radius: 999px;
  background: #fff; color: var(--brand-800);
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  box-shadow: var(--shadow); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip--accent { background: var(--accent); color: var(--brand-900); }
.chip--1 { top: 6%; left: 2%; animation-delay: -1s; }
.chip--2 { top: 2%; right: 10%; animation-delay: -3s; }
.chip--3 { top: 46%; right: -6%; animation-delay: -2s; }
.chip--4 { bottom: 10%; right: 6%; animation-delay: -4s; }
.chip--5 { bottom: 4%; left: 8%; animation-delay: -5s; }
.chip--6 { top: 42%; left: -8%; animation-delay: -2.5s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; fill: #fff; }

@media (min-width: 900px) {
  .hero { padding: 80px 0 140px; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero__visual { display: block; }
  .hero__actions .btn { flex: 0 0 auto; }
}
@media (max-width: 899px) {
  .hero__copy { text-align: left; }
}

/* ---------- Secciones ---------- */
.section { padding: 72px 0; position: relative; }
.section--tint { background: var(--brand-50); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section__head--left { text-align: left; margin: 0 0 28px; }
.section__head h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 800; color: var(--brand-900); }
.section__lead { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }
.u { background: linear-gradient(transparent 62%, rgba(245, 192, 74, .55) 62%); padding: 0 2px; }

@media (min-width: 900px) { .section { padding: 104px 0; } }

/* ---------- Features ---------- */
.features { display: grid; gap: 16px; }
.feature {
  padding: 26px 24px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.feature__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-100); color: var(--brand-700); margin-bottom: 18px;
}
.feature__icon .ic { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; color: var(--brand-900); margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; }
.feature:first-child { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.feature:first-child h3 { color: #fff; }
.feature:first-child p { color: rgba(255, 255, 255, .85); }
.feature:first-child .feature__icon { background: var(--accent); color: var(--brand-900); }

@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- Tabs y tarjetas ---------- */
.tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  max-width: 460px; margin: 0 auto 32px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 10px; border: 0; background: none; border-radius: 999px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--muted);
  transition: color .25s;
}
.tab.is-active { color: #fff; }
.tabs__pill {
  position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px);
  background: var(--brand-700); border-radius: 999px; transition: transform .35s var(--ease);
  box-shadow: 0 6px 16px -6px rgba(62, 71, 153, .7);
}
.tabs[data-active="1"] .tabs__pill { transform: translateX(100%); }

.tab-panel { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.cards { display: grid; gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.card__icon .ic { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; color: var(--brand-900); margin-top: 6px; }
.card h3 small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--brand-700); text-decoration: none;
}
.card__link .ic { transition: transform .2s var(--ease); }
.card__link:hover .ic { transform: translateX(4px); }

.card--feature {
  background: linear-gradient(150deg, var(--brand-700), var(--brand-800)); color: #fff; border: 0;
  position: relative; overflow: hidden;
}
.card--feature::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 192, 74, .55), transparent 70%);
}
.card--feature h3, .card--feature .card__link { color: #fff; }
.card--feature p { color: rgba(255, 255, 255, .85); }
.card--feature .card__icon { background: var(--accent); color: var(--brand-900); border: 0; }

@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .cards > .card { grid-column: span 2; }
  .cards > .card:nth-child(4) { grid-column: span 2; }
  .cards > .card--feature { grid-column: span 4; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--3 > .card { grid-column: auto; }
}

/* Móvil: tarjetas más compactas (icono a la izquierda) */
@media (max-width: 639px) {
  .feature, .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 4px; padding: 20px 18px; align-items: start; }
  .feature__icon, .card__icon { width: 44px; height: 44px; margin: 0; grid-row: span 3; border-radius: 12px; }
  .feature__icon .ic, .card__icon .ic { width: 22px; height: 22px; }
  .feature h3, .card h3 { margin: 2px 0 0; font-size: 1.05rem; }
  .feature p, .card p { font-size: .92rem; }
  .card__link { margin-top: 4px; }
  .features, .cards { gap: 12px; }
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 32px; }
}

/* ---------- Cómo trabajamos ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: .9fr 1.1fr; gap: 72px; } }

.table-viz {
  margin: 0; padding: 32px 24px 26px; border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(95, 106, 188, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(95, 106, 188, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--brand-50);
  border: 1px solid var(--brand-100);
  text-align: center;
}
.table-viz svg { width: 100%; max-width: 380px; margin-inline: auto; overflow: visible; }
.tv-table { fill: #fff; stroke: var(--brand-200); stroke-width: 2; }
.tv-book path { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.tv-seat circle { fill: var(--brand); }
.tv-seat text { fill: #fff; font-family: var(--font-head); font-weight: 800; font-size: 16px; text-anchor: middle; }
.tv-seat--teacher circle { fill: var(--accent); }
.tv-seat--teacher text { fill: var(--brand-900); font-size: 12px; }
.tv-seat { transform-box: fill-box; transform-origin: center; }
.is-visible .tv-seat { animation: pop .5s var(--ease) both; animation-delay: var(--d); }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.table-viz figcaption { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.table-viz figcaption b { color: var(--brand-900); }

.checklist { display: grid; gap: 22px; }
.checklist li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.checklist li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-100); color: var(--brand-700); }
.checklist h3 { font-size: 1.05rem; color: var(--brand-900); margin-bottom: 4px; }
.checklist p { color: var(--muted); font-size: .95rem; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 16px 18px;
  background: var(--accent-soft); border: 1px solid #F3D997; border-radius: var(--radius-sm);
  color: #5C460B; font-size: .95rem;
}
.notice .ic { color: #B8860B; margin-top: 2px; }

/* ---------- Horario y profesor ---------- */
.two-col { display: grid; gap: 20px; }
@media (min-width: 940px) { .two-col { grid-template-columns: 1fr 1fr; gap: 28px; } }

.panel { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 28px 24px; }
@media (min-width: 640px) { .panel { padding: 36px; } }
.panel__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.panel__head .eyebrow { margin-bottom: 2px; }
.panel__head h2 { font-size: 1.6rem; color: var(--brand-900); font-weight: 800; }
.panel__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-700); color: #fff; flex: none; }
.panel__icon .ic { width: 26px; height: 26px; }

.hours { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.hours b { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 7vw, 2.4rem); color: var(--brand-900); letter-spacing: -.02em; line-height: 1.1; }
.hours span { color: var(--muted); font-weight: 600; }
@media (max-width: 520px) {
  .week li { padding: 10px 0; border-radius: 10px; }
  .week li b { display: none; }
}
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: var(--brand-50); font-weight: 600; font-size: .9rem; color: var(--brand-800); margin-bottom: 18px;
}
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-200); }
.status.is-open { background: #E7F6EC; color: #17633A; }
.status.is-open .status__dot { background: var(--wa-bright); box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2s infinite; }
.status.is-closed { background: #F4F4F7; color: var(--muted); }
.status.is-closed .status__dot { background: #B6B9C9; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week li {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 2px;
  border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100);
  font-size: .72rem; text-align: center;
}
.week li span { font-family: var(--font-head); font-weight: 800; font-size: .82rem; color: var(--brand-800); text-transform: uppercase; }
.week li b { font-weight: 600; color: var(--muted); line-height: 1.2; }
.week li.is-closed { background: #fff; border-style: dashed; }
.week li.is-closed span { color: #9A9EB5; }
.week li.is-today { background: var(--brand-700); border-color: var(--brand-700); transform: translateY(-4px); box-shadow: 0 10px 20px -10px rgba(62, 71, 153, .8); }
.week li.is-today span, .week li.is-today b { color: #fff; }
.week li.is-today.is-closed { background: #9A9EB5; border-color: #9A9EB5; }

.morning { display: flex; gap: 12px; margin-top: 22px; padding: 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: #5C460B; font-size: .93rem; }
.morning .ic { color: #C8921A; margin-top: 2px; }

.teacher__body { display: grid; gap: 20px; align-items: center; }
@media (min-width: 520px) { .teacher__body { grid-template-columns: 140px 1fr; } }
.teacher__photo {
  position: relative; width: 140px; aspect-ratio: 1; border-radius: 50%;
  background: var(--brand-50); border: 2px dashed var(--brand-200);
  display: grid; place-items: center; overflow: hidden;
}
.teacher__photo svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--brand-100); }
.teacher__photo span { position: relative; margin-top: 64px; font-size: .72rem; font-weight: 600; color: var(--brand-700); background: #fff; padding: 2px 8px; border-radius: 999px; }
.teacher__name { font-size: 1.25rem; margin-bottom: 6px; }
.teacher__role { margin-bottom: 12px; }
.teacher__body p:last-child { color: var(--muted); font-size: .95rem; }
.teacher__quote {
  margin: 24px 0 0; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--brand-50); border-left: 4px solid var(--brand);
  font-family: var(--font-head); font-weight: 700; color: var(--brand-800); font-size: 1.05rem;
}
.teacher__quote cite { display: block; margin-top: 6px; font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: .8rem; color: var(--muted); }

/* ---------- Opiniones ---------- */
.rating { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 20px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.rating__score { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--brand-900); line-height: 1; }
.rating__src { font-weight: 600; color: var(--muted); }

.reviews { display: grid; gap: 18px; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.review {
  position: relative; margin: 0; padding: 28px 24px 24px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
}
.review::before {
  content: "“"; position: absolute; right: 20px; top: -6px;
  font-family: Georgia, serif; font-size: 5.5rem; line-height: 1; color: var(--brand-100);
}
.review blockquote { margin: 0; flex: 1; font-size: 1rem; color: var(--ink); }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.review figcaption b { display: block; color: var(--brand-900); }
.review figcaption small { color: var(--muted); font-size: .8rem; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 800; }
.review:nth-child(2) .avatar { background: var(--brand-700); }
.review:nth-child(3) .avatar { background: var(--brand-800); }

.center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- Banda CTA ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(245, 192, 74, .25), transparent 60%),
    linear-gradient(135deg, var(--brand-700), var(--brand-900));
  color: #fff; padding: 56px 0;
}
.cta-band__inner { display: grid; gap: 24px; align-items: center; }
.cta-band h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: 8px; font-size: 1.05rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__actions .btn { flex: 1 1 220px; }
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: 1fr auto; }
  .cta-band__actions .btn { flex: 0 0 auto; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; color: var(--brand-900); font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--brand); transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq__a { padding: 0 20px 20px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 24px; }
@media (min-width: 940px) { .contact { grid-template-columns: .95fr 1.05fr; gap: 28px; } }
.contact__info { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 28px 24px; }
@media (min-width: 640px) { .contact__info { padding: 36px; } }
.contact__list { display: grid; gap: 20px; }
.contact__list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.contact__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-100); color: var(--brand-700); }
.contact__list small { display: block; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact__list b { display: block; color: var(--brand-900); word-break: break-word; }
.contact__list span { color: var(--muted); font-size: .92rem; }
.contact__list a { text-decoration: none; }
.contact__list a:hover b { color: var(--brand); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact__actions .btn { flex: 1 1 130px; }

.contact__map { position: relative; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--brand-100); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link {
  position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--brand-800);
  font-family: var(--font-head); font-weight: 700; font-size: .88rem; text-decoration: none; box-shadow: var(--shadow);
}
.map-link:hover { background: var(--brand-700); color: #fff; }

/* ---------- Pie ---------- */
.site-footer { background: var(--brand-900); color: #C9CCEA; padding: 56px 0 96px; font-size: .92rem; }
.footer__inner { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand { display: flex; gap: 18px; align-items: flex-start; }
.footer__seal { width: 84px; height: 84px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; padding: 5px; }
.footer__seal svg { width: 100%; height: 100%; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #9DA1CC; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 60px; padding: 0 18px 0 16px; border-radius: 999px;
  background: var(--wa-bright); color: #fff; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(18, 140, 75, .75);
  transform: translateY(120px); transition: transform .45s var(--ease), box-shadow .2s;
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { box-shadow: 0 18px 36px -10px rgba(18, 140, 75, .9); }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float__label { font-family: var(--font-head); font-weight: 700; color: #08361C; font-size: .95rem; }
@media (max-width: 520px) {
  .wa-float { width: 60px; padding: 0; justify-content: center; }
  .wa-float__label { display: none; }
}
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa-bright);
  animation: ring 2.6s infinite; pointer-events: none;
}
@keyframes ring { 0% { opacity: .8; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.35); } }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.features .reveal:nth-child(2), .reviews .reveal:nth-child(2) { transition-delay: .08s; }
.features .reveal:nth-child(3), .reviews .reveal:nth-child(3) { transition-delay: .16s; }
.features .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .wa-float { transform: none; }
}
