/* Notoria - hoja de estilos. Sin dependencias. */

@font-face { font-family: "Outfit"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/Outfit-700.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-style: normal; font-display: swap; src: url("../assets/fonts/Outfit-800.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/Figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/Figtree-600.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --bg: #f6f7f9;
  --bg-tint: #eceef2;
  --surface: #ffffff;
  --ink: #15171c;
  --muted: #4a5160;
  --line: #d6dae2;
  --accent: #f5c400;
  --on-accent: #15171c;
  --focus: #15171c;
  --shadow: 0 24px 48px -28px rgba(21, 23, 28, .38);
  --radius: 14px;
  --header-h: 92px;
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121316;
  --bg-tint: #1a1c21;
  --surface: #1f2228;
  --ink: #f1f2f4;
  --muted: #b6bcc8;
  --line: #2f333b;
  --focus: #f5c400;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .85);
  color-scheme: dark;
}
/* sin JavaScript: respeta el modo del sistema */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #121316; --bg-tint: #1a1c21; --surface: #1f2228; --ink: #f1f2f4; --muted: #b6bcc8; --line: #2f333b; --focus: #f5c400;
    --shadow: 0 24px 48px -28px rgba(0, 0, 0, .85); color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.015em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: .6rem; }
p { margin: 0; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: min(100% - 2 * clamp(16px, 4vw, 40px), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: 999px; font-weight: 600; z-index: 100; transition: top .2s; }
.skip:focus { top: 12px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.kicker { font: 600 .8rem/1.3 var(--body); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.sec { padding-block: clamp(4.5rem, 9vw, 8rem); }
.sec-tint { background: var(--bg-tint); }
.sec-lead { max-width: 60ch; color: var(--muted); font-size: 1.15rem; margin-top: 1rem; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1.1em; }
.prose h3 { margin-bottom: 1rem; }
.fig { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(.75rem, 2vw, 1.5rem); }
.fig img { width: 100%; height: auto; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .2s, box-shadow .35s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(245, 196, 0, .9); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: .5rem; height: 100%; }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; border-radius: 10px; }
.brand img { display: block; width: auto; height: 78px; }
.logo-oscuro { display: none !important; }
:root[data-theme="dark"] .brand img { height: 76px; }
:root[data-theme="dark"] .logo-claro { display: none !important; }
:root[data-theme="dark"] .logo-oscuro { display: block !important; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; letter-spacing: .04em; }
.lang:hover { border-color: var(--ink); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); margin-right: .75rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: .4rem 0; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size .35s var(--ease); }
.nav a:hover { background-size: 100% 3px; }
.nav .nav-cta { background: var(--accent); color: var(--on-accent); padding: .55rem 1.2rem; border-radius: 999px; transition: transform .3s var(--ease); }
.nav .nav-cta:hover { transform: translateY(-2px); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: transparent; border: 1.5px solid var(--line); border-radius: 999px; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--ink); }
.theme-ico { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.burger { display: none; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- portada ---------- */
.hero { padding-top: clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: min(calc(100dvh - var(--header-h) - 3rem), 720px); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.7rem); margin-top: 1.1rem; }
.hero h1::after { content: ""; display: block; width: 96px; height: 8px; background: var(--accent); border-radius: 8px; margin-top: 1.4rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 46ch; margin-top: 1.6rem; }
.cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.hero-art { margin: 0; position: relative; justify-self: end; width: min(100%, 420px); }
.hero-art::before { content: ""; position: absolute; inset: 0; transform: translate(16px, 16px); border-radius: var(--radius); background: var(--accent); }
.hero-art img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #0b0b0d; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem 2.5rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: .35rem; align-content: start; }
.facts b { font: 800 clamp(1.6rem, 3vw, 2.3rem)/1 var(--display); letter-spacing: -.02em; }
.facts span { color: var(--muted); max-width: 32ch; }

/* ---------- sobre nosotros ---------- */
.statement { font: 700 clamp(1.8rem, 4.2vw, 3.5rem)/1.12 var(--display); letter-spacing: -.025em; max-width: 24ch; margin-top: 1rem; text-wrap: balance; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; margin-top: clamp(3rem, 6vw, 5rem); }
.about h2 { margin-bottom: 1.4rem; }
.audience { margin-top: clamp(3rem, 6vw, 5rem); }
.audience h3 { margin-bottom: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { padding: .55rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .98rem; background: var(--surface); }

/* ---------- fundamentos ---------- */
.split { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.strip { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.strip img { width: 100%; height: min(80vh, 640px); object-fit: cover; border-radius: var(--radius); background: #0b0b0d; }
.split-text h2 { margin-bottom: 1.6rem; }
.split-text .fig { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* ---------- pestañas ---------- */
.tabs { margin-top: 2.2rem; }
.tablist { display: flex; flex-wrap: wrap; gap: .6rem; }
.tab { min-height: 46px; padding: .6rem 1.4rem; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--ease); }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabpanel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-top: 2.5rem; }
.js .tabpanel[hidden] { display: none; }
.js .tabpanel:not([hidden]) { animation: fade .5s var(--ease); }
.tabpanel .prose { font-size: 1.12rem; }

/* ---------- frases (bloque de color) ---------- */
.sec-gold { background: var(--accent); color: var(--on-accent); }
.quotes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 4rem); }
.quote { grid-column: span 3; }
.quote:first-child { grid-column: span 6; }
.quote:last-child:nth-child(even) { grid-column: span 6; }
.quote::before { content: "\201C"; display: block; font: 800 4.5rem/.7 var(--display); height: 2.2rem; }
.quote blockquote { margin: 0; font: 700 clamp(1.2rem, 2vw, 1.65rem)/1.3 var(--display); letter-spacing: -.01em; }
.quote:first-child blockquote { font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.15; max-width: 26ch; }
.who { margin-top: 1rem; font-weight: 600; }

/* ---------- programas ---------- */
.programs { margin-top: clamp(2.5rem, 5vw, 4rem); }
.prog { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2rem, 4vw, 3.2rem); border-top: 1px solid var(--line); }
.prog:last-child { border-bottom: 1px solid var(--line); }
.prog-head { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.prof { color: var(--muted); margin-top: .8rem; }
.prog-desc { max-width: 62ch; margin-bottom: 1.8rem; }
.prog-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 3rem; }
.points { display: grid; gap: .7rem; }
.points li { position: relative; padding-left: 1.4rem; }
.points li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 3px; border-radius: 3px; background: var(--accent); }
.points strong { font-weight: 600; }
.videos { margin-top: clamp(3rem, 6vw, 5rem); }
.videos h3 { margin-bottom: 1.4rem; }
.video-row { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 1rem; margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding-inline: clamp(16px, 4vw, 40px); scroll-padding-inline: clamp(16px, 4vw, 40px); }
.video-row li { flex: 0 0 min(320px, 78%); scroll-snap-align: start; }
.video { display: grid; gap: .5rem; text-decoration: none; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #0b0b0d; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video:hover .thumb img { transform: scale(1.05); }
.play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); }
.play::after { content: ""; position: absolute; inset: 0; background: var(--on-accent); clip-path: polygon(40% 32%, 40% 68%, 70% 50%); }
.v-title { font-weight: 600; line-height: 1.35; margin-top: .4rem; }
.v-hint { color: var(--muted); font-size: .92rem; }

/* ---------- equipo ---------- */
.team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.member { grid-column: span 3; display: grid; gap: 1.1rem; align-content: start; }
.member:nth-child(-n+3) { grid-column: span 2; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--line); }
.role { color: var(--muted); margin-top: .35rem; }
details { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; transition: transform .3s var(--ease); }
details[open] > summary::after { transform: rotate(45deg); }
details > h4 { margin-top: 1rem; }
details .points { font-size: .98rem; }

/* ---------- eventos ---------- */
.events { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 2rem; }
.event { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.event .zoom { border-radius: var(--radius); overflow: hidden; }
.event img { width: 100%; height: auto; }
.event-date { font: 800 clamp(1.3rem, 2.4vw, 1.8rem)/1.1 var(--display); letter-spacing: -.01em; }
.event h3 { margin: .7rem 0 .9rem; }
.event-place { color: var(--muted); margin-top: 1rem; }

/* ---------- galería ---------- */
.gallery { columns: 3; column-gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.gallery li { break-inside: avoid; margin-bottom: 1rem; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.gallery img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.zoom:hover img { transform: scale(1.04); }

/* ---------- noticias ---------- */
.news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3rem); align-items: start; }
.note img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.note-body { padding-top: 1.2rem; }
.note-meta { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.note h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
.note .prose { margin-top: .5rem; }

/* ---------- contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-list { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
.contact-list li { display: grid; gap: .15rem; }
.contact-list small { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.contact-list a, .contact-list span { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-form form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.field { display: grid; gap: .45rem; margin-bottom: 1.2rem; }
.field label { font-weight: 600; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--muted); border-radius: 10px; padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.field.invalid input, .field.invalid textarea { border-color: #b42318; }
:root[data-theme="dark"] .field.invalid input, :root[data-theme="dark"] .field.invalid textarea { border-color: #ff8a7a; }
.err { min-height: 1.2em; font-size: .92rem; color: #b42318; }
:root[data-theme="dark"] .err { color: #ff8a7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: #0a6b3a; } .form-status.bad { color: #b42318; }
:root[data-theme="dark"] .form-status.ok { color: #6fdc9f; } :root[data-theme="dark"] .form-status.bad { color: #ff8a7a; }
.form-alt { margin-top: 1.2rem; color: var(--muted); }

/* ---------- pie ---------- */
.site-footer { background: #2d2d2d; color: #eceef2; padding-block: clamp(3rem, 6vw, 5rem) 1.5rem; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.foot-brand img { width: 220px; height: auto; margin-bottom: 1.2rem; }
.foot-brand p { color: #c3c8d2; max-width: 32ch; }
.site-footer nav, .foot-data { display: grid; gap: .6rem; justify-items: start; }
.site-footer a { text-decoration-color: transparent; }
.site-footer a:hover { text-decoration-color: var(--accent); }
.foot-data span { color: #c3c8d2; }
.copy { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #454a54; color: #aeb4c0; font-size: .92rem; }
.site-footer :focus-visible { outline-color: var(--accent); }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- ventana de imagen ---------- */
dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
dialog#lightbox::backdrop { background: rgba(8, 9, 11, .88); }
#lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; border-radius: var(--radius); margin: 0 auto; }
.lb-close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); font-size: 1.6rem; line-height: 1; }

/* ---------- movimiento ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-art { animation: rise 1.1s var(--ease) .2s both; }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- pantallas medianas y móviles ---------- */
@media (max-width: 1024px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .gallery { columns: 2; }
  .prog { grid-template-columns: 1fr; }
  .prog-head { position: static; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member, .member:nth-child(-n+3) { grid-column: span 1; }
}
@media (max-width: 880px) {
  .js .burger { display: inline-grid; }
  .js .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: .5rem clamp(16px, 4vw, 40px) 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: .9rem 0; font-size: 1.15rem; background: none; border-bottom: 1px solid var(--line); }
  .js .nav .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0; }
  .nav { flex-wrap: wrap; }
  .site-header { height: auto; min-height: var(--header-h); }
  html:not(.js) .bar { flex-wrap: wrap; padding-block: .5rem; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { justify-self: start; width: min(calc(100% - 16px), 360px); }
  .about, .tabpanel, .contact, .event { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .strip { position: static; }
  .strip img { height: 240px; object-position: 50% 30%; }
  .prog-cols { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .quote, .quote:first-child, .quote:last-child:nth-child(even) { grid-column: auto; }
}
@media (max-width: 560px) {
  body { font-size: 1.02rem; }
  .gallery { columns: 2; column-gap: .6rem; }
  .gallery li { margin-bottom: .6rem; }
  .team { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
}

/* ======================= acabado ======================= */
::selection { background: var(--accent); color: var(--on-accent); }
p { text-wrap: pretty; }
.sec h2::after { content: ""; display: block; width: 56px; height: 5px; border-radius: 5px; background: var(--accent); margin-top: 1rem; }
.sec-gold h2::after { display: none; }

/* principios */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pr { padding: 1.5rem; border-radius: var(--radius); min-height: 190px; display: grid; gap: .8rem; align-content: space-between; transition: transform .5s var(--ease); }
.pr h3 { font-size: 1.35rem; }
.pr p { font-size: 1rem; }
.pr-a, .pr-d { background: var(--accent); color: var(--on-accent); }
.pr-b, .pr-c { background: var(--ink); color: var(--bg); }
.pr:hover { transform: translateY(-4px); }

/* templo de los fundamentos */
.temple { margin-top: clamp(3rem, 6vw, 5rem); }
.pediment { height: clamp(48px, 6vw, 88px); background: var(--accent); clip-path: polygon(50% 0, 0 100%, 100% 100%); }
.entab { height: 14px; background: var(--ink); margin-top: 6px; }
.columns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 6px; }
.columns li { padding: 1.75rem 1.25rem 2rem; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 2px, transparent 2px 16px); }
.columns li:last-child { border-right: 1px solid var(--line); }
.columns h3 { font-size: 1.12rem; line-height: 1.15; margin-bottom: .7rem; }
.columns p { font-size: .96rem; color: var(--muted); }
.base { height: 22px; background: var(--ink); margin-top: 6px; }

/* diagramas de visión y misión */
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); margin: 0; }
.diagram h4 { font-family: var(--display); font-size: 1.2rem; margin: 0 0 .35rem; letter-spacing: -.01em; }
.diagram p { font-size: 1rem; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: .9rem; align-items: stretch; }
.vs-a, .vs-b { padding: 1.4rem 1.2rem; border-radius: 10px; display: grid; align-content: center; }
.vs-a { background: var(--accent); color: var(--on-accent); }
.vs-b { border: 2px dashed var(--muted); color: var(--muted); }
.vs-b h4 { color: var(--ink); }
.vs-mid { align-self: center; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 800 1rem/1 var(--display); }
.converge { display: grid; grid-template-columns: auto 56px minmax(0, 1fr); align-items: center; gap: 0; }
.inputs { display: grid; gap: .7rem; }
.inputs li { padding: .65rem 1.2rem; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; white-space: nowrap; }
.arrow { position: relative; align-self: stretch; margin-block: 1.4rem; border: 2px solid var(--ink); border-left: 0; border-radius: 0 14px 14px 0; }
.arrow::before { content: ""; position: absolute; right: -2px; top: 50%; width: 30px; height: 2px; background: var(--ink); transform: translate(100%, -50%); }
.arrow::after { content: ""; position: absolute; right: -34px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg); }
.result { margin-left: 36px; padding: 1.3rem 1.2rem; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 800 clamp(1.15rem, 2vw, 1.5rem)/1.15 var(--display); letter-spacing: -.01em; }
.growth { display: grid; gap: 0; list-style: none; }
.growth li { --n: calc(10px + var(--s) * 6px); position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 1rem; align-items: start; padding-bottom: 1.4rem; }
.growth li:last-child { padding-bottom: 0; }
.growth li::before { content: ""; position: absolute; left: 23px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.growth li:last-child::before { display: none; }
.node { position: relative; z-index: 1; justify-self: center; width: var(--n); height: var(--n); margin-top: calc(20px - var(--n) / 2); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--surface); }
.growth li:last-child .node { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--ink); }
.growth h4 { grid-column: 2; margin: 0; }
.growth p { grid-column: 2; color: var(--muted); }

/* imagen de cada programa */
.prog-img { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.3rem; background: #0b0b0d; }

/* galería con tratamiento uniforme */
.gallery img { filter: saturate(.92); }
.zoom:hover img { filter: saturate(1.08); }

/* barra de lectura y paralaje (solo si el navegador lo soporta y no se pidió menos movimiento) */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; }
.strip { overflow: hidden; border-radius: var(--radius); }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes par { from { transform: translateY(-4%) scale(1.1); } to { transform: translateY(4%) scale(1.1); } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
    .strip img { animation: par linear both; animation-timeline: view(); }
  }
}

@media (max-width: 1024px) {
  .columns { grid-template-columns: 1fr; }
  .columns li, .columns li:last-child { border: 0; border-top: 1px solid var(--line); }
  .pediment { height: 44px; }
}
@media (max-width: 880px) {
  .prog-img { max-width: 100%; aspect-ratio: 16 / 9; }
  .converge { grid-template-columns: 1fr; gap: 1rem; }
  .arrow { display: none; }
  .result { margin-left: 0; }
  .inputs { grid-template-columns: 1fr 1fr; }
  .inputs li { white-space: normal; text-align: center; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr; }
  .vs-mid { justify-self: center; }
}

@media (max-width: 880px) {
  :root { --header-h: 84px; }
  .brand img { height: 68px; }
  :root[data-theme="dark"] .brand img { height: 66px; }
}
