/* =====================================================================
   PUMAS TAEKWONDO CHIHUAHUA · Hoja de estilos
   Sistema "Fuerza que protege": secciones DOJANG (oscuras, legado)
   y REFUGIO (claras, contenido para papás).
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Neutros */
  --ink: #0C0D10;          /* Negro dojang */
  --ink-2: #16181D;        /* Superficies sobre oscuro */
  --ink-3: #1E2128;
  --line: #2A2D34;         /* Solo decorativo sobre oscuro */
  --line-2: #3A3E47;
  --dobok: #F6F3EC;        /* Blanco dobok */
  --paper: #FBF9F5;
  --white: #FFFFFF;
  --cantera: #EFE4D6;      /* Cantera de Chihuahua: secciones refugio */
  --cantera-2: #E5D5C1;
  --ink-soft: #45484F;     /* Texto secundario sobre claro (7.3:1 en cantera) */
  --fog: #A9ACB3;          /* Texto secundario sobre oscuro (8.5:1) */
  --mist: #CFCCC5;         /* Texto de párrafo sobre oscuro */
  --field-border: #8C877E; /* Bordes de campos (3.5:1 sobre papel) */

  /* Color de marca (esquinas del tatami + cinta negra) */
  --hong: #D2232A;         /* Rojo hong: CTA principal */
  --hong-deep: #A8141C;    /* Hover y texto rojo sobre claro */
  --chung: #1F4FB0;        /* Azul chung: confianza, enlaces sobre claro */
  --chung-deep: #173C88;
  --chung-soft: #E6EDFA;
  --ambar: #F0A830;        /* Dorado de las barras de dan: solo sobre oscuro */
  --ambar-deep: #8A5A0C;   /* Dorado legible sobre claro */

  /* Cintas (decorativo) */
  --belt-white: #F6F3EC;
  --belt-yellow: #F4C430;
  --belt-green: #2F9E5A;
  --belt-blue: #2B64D1;
  --belt-red: #D2232A;
  --belt-black: #0C0D10;

  /* Tipografía */
  --font-display: 'Archivo', 'Arial Narrow', 'Avenir Next Condensed', 'Roboto Condensed', 'sans-serif-condensed', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-kr: 'Black Han Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;

  /* Forma y espacio */
  --radius: 16px;
  --radius-l: 24px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 72px;

  --shadow-s: 0 1px 2px rgba(12, 13, 16, .05), 0 8px 24px -12px rgba(12, 13, 16, .16);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --belt-gradient: linear-gradient(90deg,
    var(--belt-white) 0 16.66%, var(--belt-yellow) 16.66% 33.33%, var(--belt-green) 33.33% 50%,
    var(--belt-blue) 50% 66.66%, var(--belt-red) 66.66% 83.33%, var(--ambar) 83.33% 100%);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (max-width: 767px) {
  html { scroll-padding-bottom: 96px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--hong); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--focus, var(--chung));
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--dobok);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- 3. Esquemas de sección ---------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}

.refugio, .paper {
  --heading: var(--ink);
  --text: var(--ink-soft);
  --focus: var(--chung);
  color: var(--text);
}
.refugio { background: var(--cantera); }
.paper { background: var(--paper); }

.dojang, .hero, .site-header, .site-footer, .yesno__col--yes {
  --heading: var(--dobok);
  --text: var(--mist);
  --focus: var(--ambar);
  color: var(--text);
}
.dojang {
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}

.section strong { color: var(--heading); }

/* ---------- 4. Tipografía ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 125%;
  font-size: .72rem;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hong-deep);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow--kr::before { display: none; }
.eyebrow span[lang="ko"] {
  flex: none;
  white-space: nowrap;
  font-family: var(--font-kr);
  font-stretch: 100%;
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: 0;
  line-height: 1.25;
  padding: 3px 8px 2px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
}
.eyebrow--gold { color: var(--ambar); }
.eyebrow--blue { color: var(--chung); }
.eyebrow--light { color: var(--white); }

.h2 {
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 74%;
  font-size: clamp(2.35rem, 5.4vw + .6rem, 4.6rem);
  line-height: .93;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--heading);
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--heading);
  text-wrap: balance;
}
.hl { color: var(--hong-deep); }
.hl-gold { color: var(--ambar); }

.lead {
  font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text);
  text-wrap: pretty;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 800;
  color: var(--heading);
  text-decoration: none;
  border-bottom: 2px solid var(--hong);
  padding-bottom: 2px;
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

.fineprint {
  font-size: .85rem;
  line-height: 1.5;
  color: var(--text);
  margin-top: 14px;
}

/* ---------- 5. Botones ---------- */
.btn {
  --bg: transparent;
  --fg: currentColor;
  --bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .7em 1.35em;
  border: 1.5px solid var(--bd);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: scale(.98); }
.btn--primary { --bg: var(--hong); --fg: var(--white); box-shadow: 0 10px 24px -12px rgba(210, 35, 42, .8); }
.btn--primary:hover { --bg: var(--hong-deep); }
.btn--ghost { --fg: var(--dobok); --bd: rgba(246, 243, 236, .45); }
.btn--ghost:hover { --bg: rgba(246, 243, 236, .08); --bd: var(--dobok); }
.btn--outline { --fg: var(--ink); --bd: rgba(12, 13, 16, .28); background: var(--white); }
.btn--outline:hover { --bd: var(--ink); }
.btn--dark { --bg: var(--ink); --fg: var(--dobok); }
.btn--dark:hover { --bg: #23262D; }
.btn--lg { min-height: 56px; padding: .85em 1.6em; font-size: 1.05rem; }
.btn--sm { min-height: 44px; padding: .55em 1.05em; font-size: .94rem; }
.btn--block { width: 100%; }

/* ---------- 6. Cinta (belt rail) ---------- */
.belt-rail {
  display: flex;
  height: 6px;
  width: 100%;
}
.belt-rail i { flex: 1; }
.belt-rail i:nth-child(1) { background: var(--belt-white); }
.belt-rail i:nth-child(2) { background: var(--belt-yellow); }
.belt-rail i:nth-child(3) { background: var(--belt-green); }
.belt-rail i:nth-child(4) { background: var(--belt-blue); }
.belt-rail i:nth-child(5) { background: var(--belt-red); }
.belt-rail i:nth-child(6) {
  background:
    linear-gradient(90deg, transparent 0 58%, var(--ambar) 58% 64%, transparent 64% 72%,
      var(--ambar) 72% 78%, transparent 78% 86%, var(--ambar) 86% 92%, transparent 92%),
    var(--belt-black);
}
.belt-rail--lg { height: 8px; }

.scroll-belt {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.scroll-belt span {
  display: block;
  height: 100%;
  background: var(--belt-gradient);
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0);
}

/* ---------- 7. Header y navegación ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: background-color .3s;
}
/* El desenfoque va en el pseudo-elemento para que el menú (position: fixed) no quede atrapado en el header */
.site-header.is-scrolled { border-color: var(--line); }
.site-header.is-scrolled::before {
  background: rgba(12, 13, 16, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.nav-open .site-header { background: var(--ink-2); }
.nav-open .site-header::before { -webkit-backdrop-filter: none; backdrop-filter: none; }
html:not(.js) .site-header { background: rgba(12, 13, 16, .94); border-color: var(--line); }
html:not(.js) .menu-toggle { display: none; }
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dobok);
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.brand__mark { width: 54px; height: auto; flex: none; }
.brand__text { display: block; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 72%;
  font-size: 1.55rem;
  line-height: .88;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.brand__sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 125%;
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fog);
  white-space: nowrap;
}

.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(246, 243, 236, .22);
  border-radius: 14px;
  background: rgba(22, 24, 29, .5);
  color: var(--dobok);
  cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon--close { display: none; }
.nav-open .menu-toggle .icon--open { display: none; }
.nav-open .menu-toggle .icon--close { display: block; }

.nav {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 16px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--ink-2);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .25s, transform .25s var(--ease-out), visibility 0s .25s;
}
.nav-open .nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s, transform .35s var(--ease-out);
}
.nav-open, .nav-open body { overflow: hidden; }

.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 74%;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--dobok);
  text-decoration: none;
}
.nav__list a:hover { color: var(--ambar); }
.nav__mobile-cta { display: grid; gap: 22px; }

.header-cta { white-space: nowrap; }
@media (max-width: 519px) {
  .header-cta span {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (max-width: 399px) {
  .site-header .brand__sub { display: none; }
}

@media (min-width: 1080px) {
  .menu-toggle, .nav__mobile-cta { display: none; }
  .nav {
    position: static;
    z-index: auto;
    flex-direction: row;
    padding: 0;
    background: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__list { display: flex; gap: clamp(18px, 2vw, 30px); }
  .nav__list a {
    padding: 8px 0;
    border: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-stretch: 100%;
    font-size: .95rem;
    text-transform: none;
    color: var(--mist);
    position: relative;
  }
  .nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 2px;
    background: var(--hong);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease-out);
  }
  .nav__list a:hover { color: var(--dobok); }
  .nav__list a:hover::after { transform: scaleX(1); }
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 24px);
  background: var(--ink);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--ink-2);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 13, 16, .88) 0%, rgba(12, 13, 16, .82) 35%, rgba(12, 13, 16, .8) 65%, rgba(12, 13, 16, .92) 86%, var(--ink) 100%);
}
@media (min-width: 768px) {
  .hero__media img { object-position: 70% 40%; }
}
/* Escritorio: hero dividido. Texto sobre negro a la izquierda, foto a la derecha. */
@media (min-width: 1200px) {
  .hero__media { left: 34%; }
  .hero__media img { object-position: 50% 40%; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(12, 13, 16, .85) 0, rgba(12, 13, 16, 0) 180px),
      linear-gradient(90deg, var(--ink) 0%, rgba(12, 13, 16, .6) 22%, rgba(12, 13, 16, .12) 55%, rgba(12, 13, 16, .3) 100%),
      linear-gradient(0deg, var(--ink) 0%, rgba(12, 13, 16, 0) 36%);
  }
}

.mat-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(246, 243, 236, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 243, 236, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 25% 60%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 25% 60%, #000 10%, transparent 75%);
}
.mat-grid--soft {
  z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 0%, transparent 75%);
}

@media (max-width: 767px) {
  .hero .corner { display: none; }
}

.corner {
  position: absolute;
  width: 52px;
  height: 52px;
  pointer-events: none;
}
.corner--hong {
  top: -28px;
  left: max(4px, calc(var(--gutter) - 22px));
  border-top: 3px solid var(--hong);
  border-left: 3px solid var(--hong);
}

.hero__inner {
  position: relative;
  padding-bottom: clamp(36px, 6vw, 72px);
}
@media (min-width: 1024px) and (max-height: 999px) {
  .hero__inner {
    min-height: calc(100svh - var(--header-h) - 32px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 68%;
  font-size: clamp(3.4rem, min(15vw, 11.5vh), 8rem);
  line-height: .86;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--dobok);
}
.hero__title .line {
  display: block;
  overflow: hidden;
  overflow: clip;
  padding: .12em 0 .03em;
  margin: -.12em 0 -.03em;
}
.hero__title .line > span { display: inline-block; }
.hero__title em {
  font-style: italic;
  font-weight: 900;
  color: var(--hong);
}

.hero__lead {
  max-width: 34rem;
  margin-top: clamp(20px, 3vw, 28px);
  font-size: clamp(1.06rem, 1rem + .4vw, 1.25rem);
  line-height: 1.55;
  color: var(--mist);
}
.hero__lead strong { color: var(--dobok); }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__micro {
  margin-top: 16px;
  font-size: .88rem;
  color: var(--fog);
  text-wrap: pretty;
}
@media (max-width: 479px) {
  .hero__ctas .btn { width: 100%; }
}

.hero__trust {
  position: relative;
  padding-bottom: 28px; /* compensa el traslape del refugio */
  background: var(--ink);
}
.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.trust li { padding: 22px 10px 22px 0; }
.trust li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.trust__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 70%;
  font-size: clamp(2.1rem, 8vw, 4.4rem);
  line-height: .9;
  color: var(--ambar);
  font-variant-numeric: tabular-nums;
}
.trust__label {
  display: block;
  margin-top: 6px;
  font-size: clamp(.82rem, 2.6vw, .95rem);
  line-height: 1.35;
  color: var(--fog);
}
@media (min-width: 860px) {
  .trust li { padding: 28px 24px 26px 0; }
  .trust li + li { padding-left: 32px; }
}

@media (max-width: 359px) {
  .h2 { font-size: 2.15rem; }
  .trust__num { font-size: 1.7rem; }
}

/* Refugio que "entra" sobre el hero */
.hero + .refugio {
  margin-top: -28px;
  border-radius: 28px 28px 0 0;
  z-index: 2;
}

/* ---------- 9. Layouts compartidos ---------- */
.split {
  display: grid;
  gap: clamp(44px, 6vw, 96px);
  align-items: center;
}
@media (min-width: 960px) {
  .split--ab { grid-template-columns: 1.15fr .85fr; }
  .split--start { grid-template-columns: .85fr 1.15fr; }
}
.split__text .lead { margin-top: 22px; }
.split__text > .h2 + .lead { margin-top: 22px; }

.section-head {
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head .lead { margin-top: 20px; }
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { max-width: none; display: grid; gap: 18px; }
@media (min-width: 960px) {
  .section-head--row { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
  .section-head--row .lead { margin: 0; }
}

/* Arco de cantera: guiño a las puertas del centro histórico de Chihuahua */
.arch {
  position: relative;
  isolation: isolate;
  margin: 0 auto;
  width: 100%;
  max-width: 460px;
}
.arch img {
  width: 100%;
  aspect-ratio: 9 / 11;
  object-fit: cover;
  border-radius: 50% 50% 22px 22px / 40.9% 40.9% 22px 22px;
  background: var(--cantera-2);
}
.arch::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100%;
  aspect-ratio: 9 / 11;
  z-index: -1;
  border: 2px solid var(--hong);
  border-radius: 50% 50% 26px 26px / 40.9% 40.9% 26px 26px;
}
.arch figcaption {
  margin-top: 28px;
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}
.arch--soft img { aspect-ratio: 4 / 5; border-radius: 50% 50% 22px 22px / 40% 40% 22px 22px; }
.arch--soft::before { aspect-ratio: 4 / 5; border-color: var(--ambar-deep); border-radius: 50% 50% 26px 26px / 40% 40% 26px 26px; }

/* ---------- 10. Antibullying ---------- */
.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
}
.skills li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px 0 14px;
  border: 1px solid rgba(12, 13, 16, .1);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-s);
}
.skills li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hong);
}
.stats { margin-top: clamp(56px, 8vw, 96px); }
.stats__intro { margin-bottom: 16px; font-size: 1.05rem; }
.stats__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 22px;
  border-radius: var(--radius);
  border-top: 4px solid var(--hong);
  background: var(--paper);
  box-shadow: var(--shadow-s);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 72%;
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  line-height: .95;
  text-transform: uppercase;
  color: var(--hong-deep) !important;
}
.stat p { margin: 0; }
.stat__src {
  display: block;
  margin-top: auto;
  padding-top: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-underline-offset: 3px;
}
.stat__src .icon, .science__grid a .icon { width: 14px; height: 14px; vertical-align: -2px; margin-left: 2px; }

/* Método P.U.M.A. */
.puma {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px) { .puma { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.puma__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 28px) clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: transform .35s var(--ease-out), border-color .35s;
}
.puma__card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.puma__letter {
  display: block;
  margin-bottom: clamp(12px, 2vw, 20px);
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 66%;
  font-size: clamp(4.6rem, 16vw, 8.5rem);
  line-height: .78;
  color: var(--ambar);
}
.puma__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 78%;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--dobok);
  text-wrap: balance;
}
.puma__card > p { margin: 0; color: var(--mist); font-size: clamp(.92rem, .88rem + .2vw, 1.02rem); line-height: 1.45; }

.kihap {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background:
    radial-gradient(circle at 18% 50%, rgba(210, 35, 42, .22), transparent 58%),
    var(--ink-2);
  overflow: hidden;
}
@media (min-width: 900px) {
  .kihap { grid-template-columns: auto 1fr; gap: 56px; }
}
.kihap__word {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 66%;
  font-size: clamp(5.2rem, 18vw, 11rem);
  line-height: .8;
  text-transform: uppercase;
  color: var(--hong);
}
.kihap__word span { position: relative; display: inline-block; padding-right: .12em; }
.kihap__word span::before,
.kihap__word span::after {
  content: "¡Alto!";
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(210, 35, 42, .55);
  pointer-events: none;
  transform: translate(.06em, -.06em);
}
.kihap__word span::after {
  -webkit-text-stroke-color: rgba(210, 35, 42, .25);
  transform: translate(.12em, -.12em);
}
.kihap__lead {
  margin-bottom: 10px !important;
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 78%;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--dobok);
  text-wrap: balance;
}

/* Sí / Nunca */
.yesno { display: grid; gap: 16px; }
@media (min-width: 800px) { .yesno { grid-template-columns: 1fr 1fr; } }
.yesno__col {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-l);
}
.yesno__col--yes { background: var(--ink); }
.yesno__col--no { background: var(--cantera); }
.yesno__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 78%;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--heading);
}
.yesno__title .icon {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 50%;
}
.yesno__col--yes .yesno__title .icon { background: var(--ambar); color: var(--ink); }
.yesno__col--no .yesno__title .icon { background: var(--hong); color: var(--white); }
.yesno ul { list-style: none; margin: 0; padding: 0; }
.yesno li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 1.07rem;
  font-weight: 600;
  color: var(--heading);
}
.yesno__col--no li {
  border-color: rgba(12, 13, 16, .12);
  text-decoration: line-through;
  text-decoration-color: rgba(168, 20, 28, .55);
  text-decoration-thickness: 1.5px;
}

/* Ciencia */
.science {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid rgba(12, 13, 16, .1);
}
.science__head { margin-bottom: 24px; }
.science__head .eyebrow { margin-bottom: 12px; }
.science__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) { .science__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.science__grid li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 20px;
  border: 1px solid rgba(12, 13, 16, .08);
  border-radius: var(--radius-l);
  background: var(--white);
}
.science__tag {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--chung-soft);
  color: var(--chung-deep);
  font-size: .78rem;
  font-weight: 700;
}
.science__big {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 72%;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  line-height: .95;
  text-transform: uppercase;
  color: var(--ink) !important;
}
@media (min-width: 760px) { .science__big { font-size: min(2.6rem, 3.5vw); } }
.science__grid p { margin: 0; font-size: .98rem; line-height: 1.5; }
.science__grid a {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--chung);
  text-decoration: none;
}
.science__grid a:hover { text-decoration: underline; }
.science__note { margin-top: 16px; }

/* ---------- 11. Clases ---------- */
.programs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px) { .programs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.program {
  position: relative;
  isolation: isolate;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--ink-2);
  color: var(--white);
}
.program img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.program::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 13, 16, 0) 18%, rgba(12, 13, 16, .62) 48%, rgba(12, 13, 16, .95) 100%);
}
@media (max-width: 479px) {
  .program::before {
    background: linear-gradient(180deg, rgba(12, 13, 16, .05) 0%, rgba(12, 13, 16, .7) 30%, rgba(12, 13, 16, .88) 55%, rgba(12, 13, 16, .96) 100%);
  }
}
.program::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: var(--belt);
  transition: height .3s var(--ease-out);
}
.program:hover img { transform: scale(1.05); }
.program:hover::after { height: 10px; }
.program__body {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(14px, 2.4vw, 24px) clamp(14px, 2.4vw, 22px) clamp(20px, 3vw, 28px);
}
.program__age {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 125%;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}
.program__age span {
  font-stretch: 70%;
  font-weight: 900;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  letter-spacing: 0;
  line-height: 1;
  color: var(--ambar);
}
.program__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 72%;
  font-size: clamp(1.45rem, 1rem + 1.8vw, 2.2rem);
  line-height: .92;
  text-transform: uppercase;
  color: var(--white);
}
.program__desc {
  margin: 8px 0 0;
  font-size: clamp(.84rem, .8rem + .25vw, .98rem);
  line-height: 1.4;
  color: var(--mist);
}

/* ---------- 12. Familia ---------- */
.houses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 760px) { .houses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.house {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(12, 13, 16, .07);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow-s);
}
.house::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--cantera-2) 0 16.66%, transparent 16.66%), var(--belt-gradient);
}
.house__num {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 68%;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.house__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 72%;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  line-height: .9;
  text-transform: uppercase;
  color: var(--ink);
}
@media (min-width: 760px) { .house__name { font-size: min(2.8rem, 3.8vw); } }
.house__gen {
  margin: 0 !important;
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 125%;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ambar-deep);
}

/* ---------- 13. Cómo empezar ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 28px 0 32px;
  padding: 0;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(12, 13, 16, .07);
  border-radius: var(--radius);
  background: var(--white);
}
.steps__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--ambar);
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 1.7rem;
  line-height: 1;
}
.steps h3 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 78%;
  font-size: 1.4rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.steps p { margin: 0; }

/* ---------- 14. Sucursales ---------- */
.branches {
  list-style: none;
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
}
@media (min-width: 920px) { .branches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.branch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 26px 26px;
  overflow: hidden;
  border: 1px solid rgba(12, 13, 16, .07);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow-s);
}
.branch::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--cantera-2) 0 16.66%, transparent 16.66%), var(--belt-gradient);
}
.branch__top { display: flex; align-items: center; gap: 16px; }
.branch__top > div { min-width: 0; }
.branch__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 68%;
  font-size: 3.6rem;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.branch__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 72%;
  font-size: clamp(1.75rem, 8.5vw, 2.5rem);
  line-height: .9;
  text-transform: uppercase;
  color: var(--ink);
}
@media (max-width: 479px) { .branch { padding: 28px 20px 22px; } }
@media (min-width: 920px) and (max-width: 1279px) {
  .branch__top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .branch__num { font-size: 2.6rem; }
  .branch__name { font-size: clamp(2rem, 3.4vw, 2.5rem); }
}
.branch__zone { margin: 6px 0 0; font-size: .95rem; font-weight: 600; }
.branch__info {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(12, 13, 16, .1);
}
.branch__info li { display: flex; gap: 12px; font-size: .98rem; }
.branch__info .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--hong-deep); }
.branch__info a { color: inherit; text-underline-offset: 3px; }
.branch__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 10px;
  margin-top: auto;
}
.branch__actions .btn { padding-inline: .6em; gap: .45em; white-space: nowrap; }
.branch__actions .btn--block,
.branch__actions [hidden] + .btn { grid-column: 1 / -1; }
.branch__social {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--chung);
  text-decoration: none;
}
.branch__social:hover { text-decoration: underline; }

/* ---------- 15. Preguntas ---------- */
.faq { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) {
  .faq { grid-template-columns: .8fr 1.2fr; gap: 72px; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faq__head .h2 { margin-bottom: 20px; }
.faq__head p { margin-bottom: 24px; }
.faq__list details { border-bottom: 1px solid rgba(12, 13, 16, .12); }
.faq__list details:first-child { border-top: 1px solid rgba(12, 13, 16, .12); }
.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "";
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink);
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat,
    var(--cantera);
  transition: transform .25s var(--ease-out), background-color .25s, color .25s;
}
.faq__list details[open] summary::after {
  transform: rotate(45deg);
  color: var(--dobok);
  background-color: var(--ink);
}
.faq__list summary:hover { color: var(--hong-deep); }
.faq__list details > div { max-width: 64ch; padding: 0 52px 24px 0; }

/* ---------- 16. CTA final ---------- */
.cta-final {
  --heading: var(--white);
  --text: var(--white);
  --focus: var(--white);
  isolation: isolate;
  overflow: hidden;
  background: var(--hong);
  color: var(--white);
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  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: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, #000, transparent 75%);
}
.cta-final__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .cta-final__inner { grid-template-columns: 1fr 1fr; gap: 72px; } }
.cta-final .h2 { font-size: clamp(2.6rem, 6vw + .5rem, 5.2rem); }
.cta-final .lead { margin-top: 22px; max-width: 30rem; }

.lead-form {
  --heading: var(--ink);
  --text: var(--ink-soft);
  --focus: var(--chung);
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: var(--radius-l);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(60, 0, 0, .55);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chips legend { width: 100%; margin-bottom: 10px; padding: 0; font-weight: 700; }
.chips label { position: relative; }
.chips input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--field-border);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--dobok); }
.chips input:focus-visible + span { outline: 3px solid var(--chung); outline-offset: 2px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 520px) { .form-row { grid-template-columns: .7fr 1.3fr; } }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: .95rem; color: var(--ink); }
.field em { font-style: normal; font-weight: 500; color: var(--ink-soft); }
.field input, .field select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 20px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) calc(100% - 14px) 50% / 6px 6px no-repeat,
    var(--white);
}
.field input:focus-visible, .field select:focus-visible { outline-offset: 1px; border-color: var(--chung); }
.field input::placeholder { color: #6E6A63; opacity: 1; }
.field select:invalid { color: #6E6A63; }
.field select option { color: var(--ink); }
.cta-final noscript .lead a { color: var(--white); font-weight: 800; }
.lead-form .fineprint { margin: 0; text-align: center; color: var(--ink-soft); }
.lead-form .fineprint a { color: var(--ink); font-weight: 600; }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--ink); color: var(--fog); }
.ribbon {
  overflow: hidden;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.ribbon__track {
  display: flex;
  gap: 52px;
  width: max-content;
  padding-left: 52px;
}
.ribbon span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 84%;
  font-size: 1.1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--dobok);
}
.ribbon b {
  font-family: var(--font-kr);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--hong);
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-block: 56px 40px;
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1.2fr .8fr; gap: 56px; } }
.footer-brand p { max-width: 36ch; margin: 18px 0; color: var(--fog); }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--dobok);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
}
.footer-social:hover { border-color: var(--dobok); }
.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 125%;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ambar);
}
.footer-branches, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; }
.footer-branches { gap: 18px; }
.footer-branches li { display: grid; gap: 2px; font-size: .95rem; }
.footer-branches strong { color: var(--dobok); font-size: 1rem; }
.footer-links { gap: 4px; }
.footer-links a { display: inline-block; padding: 6px 0; }
.footer-branches a, .footer-links a { color: var(--fog); text-decoration: none; justify-self: start; }
.footer-branches a:hover, .footer-links a:hover { color: var(--dobok); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--fog); }
.footer-bottom a:hover { color: var(--dobok); }
.footer-belt { padding-bottom: env(safe-area-inset-bottom); }
.footer-belt__note {
  margin: 0;
  padding: 12px 0 16px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 125%;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fog);
}

/* ---------- 18. Barra fija móvil y selector ---------- */
.action-bar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(12, 13, 16, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease-out);
}
.js .action-bar:not(.is-visible) { transform: translateY(calc(100% + 24px)); }
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 52px;
  border-radius: 14px;
  color: var(--dobok);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  --focus: var(--ambar);
}
.action-bar a:not(:first-child) { flex-direction: column; gap: 3px; font-size: .78rem; line-height: 1.1; }
.action-bar a:first-child { background: var(--hong); color: var(--white); }
.action-bar .icon { width: 20px; height: 20px; }
@media (max-width: 767px) {
  .site-footer { padding-bottom: 76px; }
}
@media (min-width: 768px) {
  .action-bar { display: none; }
}

.picker {
  width: 100%;
  max-width: 520px;
  max-height: 100dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  --focus: var(--chung);
}
.picker::backdrop {
  background: rgba(12, 13, 16, .62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.picker__inner {
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--paper);
}
@media (min-width: 640px) {
  .picker { margin: auto; }
  .picker__inner { padding: 28px; border-radius: 24px; }
}
.picker:not([open]) { display: none; }
.picker[open] { animation: sheet-in .35s var(--ease-out); }
html:has(.picker[open]), html:has(.picker[open]) body { overflow: hidden; }
.picker__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.picker__title {
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 76%;
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
}
.picker__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--cantera);
  color: var(--ink);
  cursor: pointer;
}
.picker__sub { margin: 6px 0 18px; color: var(--ink-soft); }
.picker__list { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.picker__list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  border: 1.5px solid rgba(12, 13, 16, .12);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.picker__list a:hover { border-color: var(--ink); }
.picker__list a:active { transform: scale(.99); }
.picker__num {
  flex: none;
  width: 42px;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 68%;
  font-size: 2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--ink);
}
.picker__name { display: block; font-weight: 800; font-size: 1.05rem; }
.picker__zone { display: block; font-size: .9rem; color: var(--ink-soft); }
.picker__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--hong);
  color: var(--white);
}
.picker__go .icon { width: 20px; height: 20px; }

/* ---------- 19. Movimiento ---------- */
@keyframes rise { from { transform: translateY(108%); } }
@keyframes nudge-up { from { transform: translateY(14px); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .hero__title .line > span { animation: rise .95s var(--ease-out) both; animation-delay: calc(140ms + var(--i, 0) * 90ms); }
  .js .hero__lead, .js .hero__ctas, .js .hero__micro { animation: nudge-up .7s var(--ease-out) both; }
  .js .hero__trust .belt-rail { transform-origin: left; animation: grow 1.1s var(--ease-out) both .6s; }

  .ribbon__track { animation: marquee 42s linear infinite; }
  .ribbon:hover .ribbon__track { animation-play-state: paused; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 20. Ajustes finos para celular ---------- */
@media (max-width: 767px) {
  /* Barra fija: que se esconda completa también con la franja segura del iPhone */
  .js .action-bar:not(.is-visible) { transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom))); }

  /* Header: dos botones iguales de 48 px */
  .header-cta { min-height: 48px; transition: background-color .18s, transform .18s, opacity .25s, visibility .25s; }
  .menu-toggle { border-radius: 50%; }
  .nav-open .header-cta { opacity: 0; visibility: hidden; }

  /* Hero */
  .hero__lead { text-wrap: balance; }

  /* Cinta: el segmento negro se ve sobre el fondo negro */
  .belt-rail i:nth-child(6) { box-shadow: inset 0 0 0 1px rgba(246, 243, 236, .3); }

  /* Títulos y textos cortos sin palabras sueltas */
  .eyebrow, .stats__intro { text-wrap: balance; }
  .section-head--row { gap: 0; }

  /* Tarjetas: mismo radio que el resto */
  .stat, .steps li { border-radius: var(--radius-l); }

  /* Áreas táctiles de 44 px sin cambiar el diseño */
  .link-arrow, .stat__src, .science__grid a, .branch__info a, .branch__social,
  .footer-branches a, .footer-links a, .footer-bottom a { position: relative; }
  .link-arrow::after, .stat__src::after, .science__grid a::after, .branch__social::after,
  .branch__info a::after, .footer-branches a::after, .footer-links a::after, .footer-bottom a::after {
    content: "";
    position: absolute;
    inset: -10px 0;
  }
  .branch__info a::after { inset: -13px 0; }
  .branch__social::after { inset: -11px 0; }
  .footer-links a::after { inset: -3px 0; }
  .footer-bottom a::after { inset: -14px 0; }

  /* Sucursales: día y horario en dos renglones, sin punto colgando */
  .branch__sep { display: block; height: 0; overflow: hidden; }

  /* Formulario y letras chicas */
  .fineprint { font-size: .875rem; }
  .lead-form .fineprint a { white-space: nowrap; }

  /* Footer */
  .ribbon {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
  .footer-belt__note { font-size: .72rem; }
  .site-footer { padding-bottom: 96px; }
}

/* El botón del header se oculta mientras la barra inferior (que ya trae WhatsApp) está visible */
@media (max-width: 767px) and (min-height: 501px) {
  html:has(.action-bar.is-visible) .header-cta { opacity: 0; visibility: hidden; }
}

@media (max-width: 759px) {
  /* Familia: número junto al nombre, como en Sucursales */
  .house {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 16px;
    row-gap: 6px;
    padding: 26px 20px 20px;
  }
  .house__num { grid-row: span 2; margin: 0; font-size: 3.6rem; font-variant-numeric: tabular-nums; }
  .house__name { font-size: clamp(1.75rem, 8.5vw, 2.5rem); }
}

@media (max-width: 599px) {
  /* Datos y estudios: una fila deslizable en lugar de 6 tarjetas apiladas */
  .stats__grid,
  .science__grid {
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .stats__grid::-webkit-scrollbar,
  .science__grid::-webkit-scrollbar { display: none; }
  .stats__grid > li,
  .science__grid > li { scroll-snap-align: start; }

  /* Arcos: centrados y sin que el marco toque la orilla */
  /* Antibullying: habilidades en 2×2 */
  .skills { display: grid; grid-template-columns: 1fr 1fr; }
  .skills li { justify-content: flex-start; padding: 0 12px; font-size: .95rem; }

  /* Fotos: rectángulo redondeado en lugar de arco (menos alto) */
  .split { gap: 28px; }
  .arch { max-width: none; }
  .arch::before { display: none; }
  .arch img,
  .arch--soft img { aspect-ratio: 4 / 3; border-radius: var(--radius-l); }

  /* Método P.U.M.A.: lista vertical que deletrea P-U-M-A */
  .puma { grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 10px; }
  .puma__card {
    display: grid;
    grid-template-columns: 3.4rem 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    align-content: center;
    padding: 18px 20px;
  }
  .puma__letter { grid-row: 1 / 3; align-self: center; margin: 0; font-size: 4.25rem; text-align: center; }
  .puma__title { margin-bottom: 4px; }
  .puma__card > p { font-size: .98rem; text-wrap: balance; }

  /* Clases: la foto arriba, limpia; el texto abajo */
  .program { aspect-ratio: auto; display: flex; flex-direction: column; }
  .program img { position: static; aspect-ratio: 1 / 1; height: auto; }
  .program::before { display: none; }
  .program__body { position: relative; inset: auto; flex: 1; padding: 14px 14px 22px; }
  .program__age { font-size: .72rem; }
  .program__desc { font-size: .9rem; }

  /* Preguntas: la respuesta usa todo el ancho */
  .faq__list details > div { padding-right: 0; }
}

@media (max-width: 519px) {
  .header-cta { width: 48px; padding: 0; }

  .chips label { flex: 1 1 calc(50% - 4px); }
  .chips span { width: 100%; justify-content: center; padding: 0 8px; white-space: nowrap; }

  .picker__title { font-size: clamp(1.55rem, 7.4vw, 1.9rem); text-wrap: balance; }
  .picker__sub, .picker__zone { text-wrap: balance; }
}

@media (max-width: 479px) {
  /* Franja de confianza: columnas a la medida de cada dato */
  .trust { grid-template-columns: minmax(0, .78fr) minmax(0, 1.14fr) minmax(0, 1.08fr); }
  .trust li { padding-right: 8px; }
  .trust li + li { padding-left: 12px; }
  .trust__label { font-size: .875rem; }

  /* Pasos: número junto al título y texto a todo el ancho */
  .steps li { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 10px 14px; padding: 20px; }
  .steps li > div { display: contents; }
  .steps__n { width: 40px; height: 40px; border-radius: 12px; font-size: 1.45rem; }
  .steps h3 { margin: 0; font-size: 1.3rem; }
  .steps p { grid-column: 1 / -1; }

  /* Botones de sección a todo el ancho, como los del hero */
  #empezar .split__text > .btn,
  .faq__head .btn { width: 100%; }
}

@media (max-width: 359px) {
  .hero__title { font-size: 15vw; }
  .trust__label { font-size: .8125rem; }
  .lead-form .btn--lg { padding-inline: 1em; }
  .picker__list a { gap: 10px; padding-inline: 12px; }
  .picker__num { width: 30px; font-size: 1.6rem; }
  .house { column-gap: 12px; padding-inline: 16px; }
  .house__num { font-size: 2.6rem; }
  .house__gen { letter-spacing: .1em; }
}

/* Celular acostado */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 959px) {
  .container,
  .nav {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  .hero__title { font-size: 10.5vh; }
  .hero .corner { display: none; }
  .action-bar { display: none; }
  .site-footer { padding-bottom: 0; }
  .header-cta { min-height: 48px; }
  .menu-toggle { border-radius: 50%; }
  .nav-open .header-cta { opacity: 0; visibility: hidden; }
  .nav { gap: 20px; }
  .nav__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .nav__list a { font-size: 1.75rem; padding: 8px 0; }
}

/* Pantallas táctiles: que el :hover no se quede pegado después de tocar */
@media (hover: none) and (max-width: 767px) {
  .faq__list summary:hover { color: var(--ink); }
  .footer-branches a:hover, .footer-links a:hover { color: var(--fog); text-decoration: none; }
  .branch__social:hover, .science__grid a:hover { text-decoration: none; }
  .puma__card:hover { transform: none; border-color: var(--line); }
  .program:hover img { transform: none; }
  .program:hover::after { height: 6px; }
}
