/* Academia Tie Chuan: estilo sobrio con dos temas.
   Claro: fondo blanco y detalles rojos. Oscuro: fondo negro y detalles naranjas.
   Los colores viven en variables; el tema se cambia con data-theme en <html> (ver main.js). */
@import url("fonts/lato.css");

:root {
  --bg: #ffffff;
  --bg-alt: #f5f3f0;
  --card: #ffffff;
  --text: #2a2a2d;
  --muted: #6a6c72;
  --heading: #111113;
  --accent: #c1121f;
  --accent-hover: #9d0d18;
  --on-accent: #ffffff;
  --line: rgba(0, 0, 0, .12);
  --header-bg: rgba(255, 255, 255, .55);
  --glass: rgba(255, 255, 255, .55);
  --glass-sheen: rgba(255, 255, 255, .75);
  --glass-edge: rgba(255, 255, 255, .9);
  --glass-line: rgba(0, 0, 0, .08);
  --orb-1: rgba(193, 18, 31, .16);
  --orb-2: rgba(255, 138, 31, .16);
  --radius: 14px;
  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-alt: #151516;
  --card: #151516;
  --text: #e6e4df;
  --muted: #9a9ca1;
  --heading: #ffffff;
  --accent: #ff8a1f;
  --accent-hover: #ffa24d;
  --on-accent: #1a1209;
  --line: rgba(255, 255, 255, .12);
  --header-bg: rgba(11, 11, 12, .5);
  --glass: rgba(255, 255, 255, .06);
  --glass-sheen: rgba(255, 255, 255, .14);
  --glass-edge: rgba(255, 255, 255, .22);
  --glass-line: rgba(255, 255, 255, .12);
  --orb-1: rgba(255, 138, 31, .20);
  --orb-2: rgba(193, 18, 31, .22);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; transition: background .35s, color .35s; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 900; line-height: 1.12; margin: 0 0 .5em; color: var(--heading); letter-spacing: -.01em; }
h4 { margin: 1.3em 0 .4em; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.meta { color: var(--muted); font-size: .9rem; }

/* Encabezado: sobre el banner es blanco y transparente; al bajar toma los colores del tema */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px max(16px, calc((100% - 1120px) / 2)); color: #fff; transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s; }
/* Efecto glass: fondo translúcido + desenfoque y saturación de lo que pasa por detrás + borde de luz */
.site-header.scrolled { background: var(--header-bg); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 1px 0 var(--line), 0 8px 32px rgba(0, 0, 0, .08); color: var(--text); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; margin-right: auto; }
.brand img { border-radius: 50%; background: #fff; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 700; letter-spacing: .04em; opacity: .9; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; color: var(--accent); }
.site-header:not(.scrolled) .nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.nav .nav-cta { border: 1.5px solid var(--accent); color: inherit; padding: 8px 18px; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--accent); color: var(--on-accent); text-decoration: none; }
.header-tools { display: flex; align-items: center; gap: 4px; }
.icon-btn { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: inherit; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: rgba(127, 127, 127, .2); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Switch claro/oscuro: de día cielo celeste con sol y nubes; de noche cielo azul con luna y estrellas */
.theme-switch { position: relative; width: 66px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: none; cursor: pointer; margin-right: 6px; flex: none; }
.theme-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ts-track { position: absolute; inset: 0; border-radius: 999px; overflow: hidden; background: linear-gradient(180deg, #58b4f2, #a6e0ff); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .45); transition: background .5s; }
[data-theme="dark"] .ts-track { background: linear-gradient(180deg, #08112a, #1c2f5c); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .18); }
.ts-knob { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #ffd23f; box-shadow: 0 0 12px 3px rgba(255, 210, 63, .55), 0 2px 4px rgba(0, 0, 0, .3); transition: transform .45s var(--ease), background .45s, box-shadow .45s; }
[data-theme="dark"] .ts-knob { transform: translateX(32px); background: #f3f5fb; box-shadow: 0 0 10px 2px rgba(255, 255, 255, .3), 0 2px 4px rgba(0, 0, 0, .4); }
.ts-crater { position: absolute; border-radius: 50%; background: rgba(140, 150, 180, .45); opacity: 0; transition: opacity .45s; }
.ts-crater.a { width: 8px; height: 8px; top: 5px; left: 13px; }
.ts-crater.b { width: 5px; height: 5px; top: 15px; left: 6px; }
[data-theme="dark"] .ts-crater { opacity: 1; }
.ts-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .5s; }
.ts-star.s1 { left: 9px; top: 9px; }
.ts-star.s2 { left: 19px; top: 21px; width: 2px; height: 2px; }
.ts-star.s3 { left: 24px; top: 8px; width: 2px; height: 2px; }
.ts-star.s4 { left: 8px; top: 23px; width: 2px; height: 2px; }
[data-theme="dark"] .ts-star { opacity: 1; animation: twinkle 2.6s ease-in-out infinite; }
[data-theme="dark"] .ts-star.s2 { animation-delay: .6s; }
[data-theme="dark"] .ts-star.s3 { animation-delay: 1.2s; }
[data-theme="dark"] .ts-star.s4 { animation-delay: 1.8s; }
.ts-cloud { position: absolute; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .92); transition: opacity .5s, transform .5s var(--ease); }
.ts-cloud.c1 { width: 16px; right: 7px; top: 8px; }
.ts-cloud.c2 { width: 11px; right: 15px; top: 20px; opacity: .85; }
[data-theme="dark"] .ts-cloud { opacity: 0; transform: translateX(-10px); }
@keyframes twinkle { 50% { opacity: .25; } }
.nav-toggle { display: none; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 3px auto; transition: transform .3s var(--ease); }

/* Banner principal: carrusel de videos (o fotos) que cambia solo */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; color: #fff; background: #000; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; background: var(--poster) center / cover no-repeat; }
.hero-slide.active { opacity: 1; }
.hero-slide.active { animation: slowzoom 12s ease-out both; }
/* Videos: aparecen con fundido cuando empiezan a reproducirse (.ready); hasta entonces se ve la foto de respaldo */
.hero-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.hero-slide video.ready { opacity: 1; }
/* Video vertical en banner horizontal: completo a la derecha, sobre una copia suya desenfocada y oscurecida */
.hero-slide[data-fit="contain"] video.main { object-fit: contain; object-position: 86% 50%; }
.hero-slide[data-fit="contain"] video.bg { filter: blur(38px) brightness(.55) saturate(1.2); transform: scale(1.25); }
/* En pantallas angostas el video vertical ya encaja: se muestra a pantalla completa */
@media (max-width: 760px) {
  .hero-slide[data-fit="contain"] video.main { object-fit: cover; object-position: center; }
  .hero-slide[data-fit="contain"] video.bg { display: none; }
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.2) 100%), linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 30%); }
.hero-inner { position: relative; width: min(1120px, 100% - 32px); margin-inline: auto; padding-top: 80px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); max-width: 14em; color: #fff; }
.lead { font-size: 1.15rem; max-width: 34em; color: rgba(255, 255, 255, .85); font-weight: 300; }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero-inner > * { animation: rise .9s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: .1s; }
.hero-inner > :nth-child(3) { animation-delay: .2s; }
.hero-inner > :nth-child(4) { animation-delay: .3s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.hero-dots { position: absolute; z-index: 2; bottom: 28px; left: 50%; translate: -50% 0; display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .35); cursor: pointer; position: relative; overflow: hidden; }
.hero-dots button::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dots button.active::after { animation: fill var(--slide-ms, 5s) linear forwards; }
.hero.paused .hero-dots button.active::after { animation: none; transform: scaleX(1); }
@keyframes slowzoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fill { to { transform: scaleX(1); } }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-outline { border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2rem; }

/* Datos de un vistazo */
.facts { border-block: 1px solid var(--line); background: var(--bg-alt); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 44px 0; }
.facts strong { display: block; font-size: 2.3rem; font-weight: 900; color: var(--accent); line-height: 1.1; margin-bottom: .2em; }
.facts span { color: var(--muted); font-size: .92rem; display: block; line-height: 1.45; }

/* Secciones */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* Estilos */
.style { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin-bottom: clamp(48px, 8vw, 96px); }
.style.reverse .style-img { order: 2; }
.style-img { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--img) var(--pos, center) / cover; transition: transform .6s var(--ease); }
.style:hover .style-img { transform: scale(1.015); }
.style h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .2em; }
.tagline { color: var(--accent); font-weight: 700; }
details { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
summary { cursor: pointer; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); list-style: none; }
summary::after { content: " +"; }
details[open] summary::after { content: " −"; }
summary:hover { color: var(--accent); }
details ul { padding-left: 1.2em; margin: 0 0 1em; }
details li { margin-bottom: .35em; }
.lineage { font-weight: 700; color: var(--heading); }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 3rem; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(0, 0, 0, .08); }
.card h3 { font-size: 1.25rem; }
.card p { font-size: .95rem; }

/* Sedes con mapa */
.sede { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.sede:hover { transform: none; }
.sede-map { width: 100%; aspect-ratio: 16 / 10; border: 0; display: block; background: var(--bg-alt); }
/* El cuerpo ocupa el alto restante y los botones se pegan abajo: quedan alineados entre sedes */
.sede-body { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.sede-body .btn-row { margin-top: auto; padding-top: 1.2rem; }
.sede-body h3 { margin-bottom: .1em; }
.address { font-weight: 700; color: var(--heading); margin-bottom: .3em; }

/* China */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.panel { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.timeline { list-style: none; padding: 0; margin: 1.4rem 0; border-left: 3px solid var(--accent); }
.timeline li { padding: 4px 0 14px 20px; }
.timeline strong { display: block; color: var(--heading); }
.timeline span { color: var(--muted); font-size: .92rem; }

/* Placa oficial de Foshan */
.plaque { margin: 2rem 0 0; }
.plaque a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 40px rgba(0, 0, 0, .22); border: 1px solid var(--glass-line); }
.plaque img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.plaque a:hover img { transform: scale(1.03); }
.plaque figcaption { margin-top: .9rem; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.plaque figcaption strong { color: var(--heading); }

/* Vínculo con China: placa y foto lado a lado con el mismo alto, y viajes en una franja ancha */
.callout { border-left: 3px solid var(--accent); padding-left: 1rem; margin-top: 1.2rem; }
/* Sin recortar: cada figura ocupa un ancho proporcional a su formato (placa 1,434 / foto 1,177), así las dos quedan del mismo alto */
.china-media { display: flex; gap: clamp(20px, 3vw, 40px); align-items: flex-start; margin-bottom: clamp(32px, 5vw, 56px); }
.china-media .plaque { margin: 0; min-width: 0; }
.china-media .plaque:first-child { flex: 1434 1 0; }
.china-media .plaque:last-child { flex: 1177 1 0; }
.trips { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.trips h3, .trips h4 { margin-top: 0; }
.trips .timeline { margin-bottom: 0; }

/* Personas: tres tarjetas con foto; la elegida se expande al ancho total (clase .active la pone main.js).
   Las otras colapsan a ancho 0 con flex-grow, así la animación es continua. */
.people { display: flex; gap: 20px; height: clamp(460px, 62vh, 560px); transition: gap .6s var(--ease); }
.people.has-active { gap: 0; }
.person { position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer; color: #fff; border-radius: var(--radius); outline: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); transition: flex-grow .7s var(--ease), opacity .45s, box-shadow .4s; }
.person:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.person-bg { position: absolute; inset: 0; z-index: -2; background: var(--photo) var(--pos, center) / cover no-repeat; transition: transform 1s var(--ease); }
.person:hover .person-bg { transform: scale(1.05); }
.person-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.05) 100%); transition: background .6s; }
.person .role { color: rgba(255, 255, 255, .85); font-weight: 700; font-size: .88rem; letter-spacing: .04em; margin: 0; }

/* Estado cerrado: nombre y título abajo */
.person-label { position: absolute; inset: auto 0 0 0; padding: 26px 28px; transition: opacity .3s, transform .5s var(--ease); }
.person-label::before { content: ""; display: block; width: 36px; height: 3px; background: var(--accent); margin-bottom: 12px; }
.pcargo { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin-bottom: .35em; }
.pname { display: block; font-weight: 900; font-size: 1.35rem; line-height: 1.15; margin-bottom: .2em; }
.person-more { display: inline-block; margin-top: 12px; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }

/* Estado abierto: el contenido de siempre (nombre, título y descripción) */
.person-detail { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 4vw, 48px);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .4s var(--ease), visibility 0s .3s; }
.person-detail h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .1em; }
.person-detail p:last-child { max-width: 40em; margin: .9rem 0 0; color: rgba(255, 255, 255, .92); font-size: 1rem; }
.person.active .person-detail { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .35s, transform .6s .3s var(--ease), visibility 0s; }
.person.active .person-label { opacity: 0; transform: translateY(10px); pointer-events: none; }
.person.active .person-shade { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.62) 55%, rgba(0,0,0,.35) 100%); }
.people.has-active .person:not(.active) { flex-grow: 0; opacity: 0; pointer-events: none; }
/* Nosotros: texto a la izquierda, Sifu a la derecha. La 2.ª columna = ancho de 1 de 3 tarjetas (gap 20px) */
.nosotros-head { display: grid; grid-template-columns: 1fr calc((100% - 40px) / 3); gap: 20px clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.nosotros-head .section-head { margin-bottom: 0; }
/* Sifu: la tarjeta flota sobre su columna (que solo reserva el lugar); al abrirse crece hacia la izquierda
   hasta el ancho total y el texto se desvanece debajo, sin reacomodarse */
.nosotros-head { position: relative; }
.nosotros-head > div.reveal { min-height: clamp(460px, 62vh, 560px); }
.people-solo { position: absolute; top: 0; right: 0; bottom: 0; height: auto; width: calc((100% - 40px) / 3); z-index: 1; transition: width .7s var(--ease); }
.people-solo.has-active { width: 100%; }
.nosotros-head .section-head { transition: opacity .4s; }
.nosotros-head:has(.people-solo.has-active) .section-head { opacity: 0; }
.subhead { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 1.4rem; }
/* Botón flotante de consulta: oculto sobre el banner, visible en el resto de la página */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .95rem; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .35s, transform .45s var(--ease), visibility 0s .35s, background .25s; }
.fab.show { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .45s var(--ease), visibility 0s, background .25s; }
.fab:hover { background: var(--accent-hover); transform: translateY(-3px); }
.fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 480px) { .fab { right: 12px; left: 12px; justify-content: center; bottom: 14px; } }
.credit { font: inherit; letter-spacing: inherit; color: inherit; }
.sep { margin: 0 .35em; opacity: .6; }
/* Con 4 tarjetas el nombre largo ("Formación de instructores") necesita un poco menos de tamaño */
#clases .pname { font-size: 1.2rem; }
/* Tarjetas lado a lado: todas las etiquetas con la misma altura, así la línea y el título quedan a la misma
   altura aunque el texto ocupe 1 o 2 renglones; "Ver más" se apoya abajo */
@media (min-width: 961px) {
  #clases .person-label, #nosotros .person-label { display: flex; flex-direction: column; align-items: flex-start; min-height: 13rem; }
  #clases .person-more, #nosotros .person-more { margin-top: auto; padding-top: 12px; }
}
/* Frase de cierre: entre dos líneas finas, con una marca de color centrada arriba y abajo */
.quote { position: relative; font-weight: 300; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.35; text-align: center; max-width: 24em; margin: clamp(56px, 8vw, 88px) auto 0;
  padding: clamp(28px, 4vw, 40px) 1rem; border-block: 1px solid var(--line); color: var(--heading); text-wrap: balance; }
.quote::before, .quote::after { content: ""; position: absolute; left: 50%; width: 56px; height: 3px; background: var(--accent); transform: translateX(-50%); }
.quote::before { top: -2px; }
.quote::after { bottom: -2px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 32px; color: var(--muted); font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px 16px; }
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--heading); font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-brand img { border-radius: 50%; background: #fff; }
.social { display: flex; gap: 12px; justify-self: center; }
.social a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); color: var(--text); transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.copy { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* Efecto glossy en recuadros. El vidrio solo se nota si hay algo detrás que desenfocar,
   por eso cada sección lleva dos manchas de color suaves de fondo (::before). */
.section { position: relative; isolation: isolate; overflow: hidden; }
.section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(560px 400px at 8% 15%, var(--orb-1), transparent 70%),
              radial-gradient(520px 380px at 94% 85%, var(--orb-2), transparent 70%); }
.card, .panel {
  background: linear-gradient(135deg, var(--glass-sheen), transparent 45%), var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 10px 30px rgba(0, 0, 0, .07);
}
.card:hover { box-shadow: inset 0 1px 0 var(--glass-edge), 0 16px 40px rgba(0, 0, 0, .14); }
.btn svg.brand { fill: currentColor; stroke: none; }

/* Aparición suave al hacer scroll (la activa main.js) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  /* Celular/tablet: tarjetas apiladas; la tocada crece en alto y las demás siguen visibles */
  .people, .people.has-active { flex-direction: column; height: auto; gap: 16px; }
  .person { flex: none; height: 300px; transition: height .6s var(--ease), box-shadow .4s; }
  .person.active { height: 540px; }
  .people.has-active .person:not(.active) { opacity: 1; pointer-events: auto; }
  .split, .style, .trips, .nosotros-head { grid-template-columns: 1fr; }
  .people-solo, .people-solo.has-active { position: static; width: auto; }
  .nosotros-head > div.reveal { min-height: 0; }
  .nosotros-head:has(.people-solo.has-active) .section-head { opacity: 1; }
  .style.reverse .style-img { order: 0; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  /* Placa y foto siguen lado a lado en el celular: se achican el espacio y los pies de foto */
  .china-media { gap: 12px; }
  .china-media .plaque figcaption { font-size: .74rem; line-height: 1.45; margin-top: .6rem; }
  .nav-toggle { display: grid; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--header-bg); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); color: var(--text); padding: 12px 16px 24px; transform: translateY(-120%); transition: transform .4s var(--ease); box-shadow: 0 12px 24px rgba(0, 0, 0, .15); }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .hero-overlay { background: linear-gradient(0deg, rgba(0,0,0,.85) 5%, rgba(0,0,0,.45) 100%); }
}

/* Pantallas angostas: el nombre completo de la academia entra en una línea */
@media (max-width: 480px) {
  .brand { font-size: .76rem; letter-spacing: .03em; gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .site-header { gap: 8px; }
}

/* Respeta a quienes desactivan las animaciones en su sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
