/* ROBOTIC PATAZ 2026 · Sistema visual
   Regla: solo colores planos (sin degradados). Texto base 18px, contraste WCAG AA. */

@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lexend"; font-weight: 500; font-display: swap; src: url("../fonts/lexend-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 600; font-display: swap; src: url("../fonts/lexend-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 700; font-display: swap; src: url("../fonts/lexend-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 700; font-display: swap; src: url("../fonts/lexend-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }

:root {
  --purple-950: #1B0B31;
  --purple-900: #24103F;
  --purple-800: #33175A;
  --purple-700: #4A1D80;
  --purple-600: #5E2A9E;
  --purple-200: #DCCDF2;
  --purple-100: #EFE7FA;
  --purple-50: #F8F4FD;
  --gold-400: #FFC933;
  --gold-500: #F5B700;
  --gold-700: #7A5800;
  --gold-100: #FFF3CC;
  --teal-400: #3FD6D1;
  --teal-500: #19B8B3;
  --teal-700: #0A6966;
  --teal-100: #D9F5F4;
  --ink: #1C1530;
  --muted: #4A4360;
  --line: #D9D0E8;
  --bg: #FBFAFE;
  --surface: #FFFFFF;
  --ok: #146C36;
  --ok-bg: #E2F5E8;
  --warn: #6B4E00;
  --warn-bg: #FFF3CC;
  --danger: #A61B12;
  --danger-bg: #FDE8E6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 0 rgba(36, 16, 63, .10);
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --font-head: "Lexend", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (max-width: 600px) { body { font-size: 17px; } }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--purple-900); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--purple-700); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--purple-900); }
strong { font-weight: 700; }
small, .small { font-size: .9rem; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold-500); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--teal-400); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .7em 1.35em; border-radius: 14px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-gold { background: var(--gold-500); color: var(--purple-950); box-shadow: 0 4px 0 #B88900; }
.btn-gold:hover { background: var(--gold-400); color: var(--purple-950); }
.btn-primary { background: var(--purple-700); color: #fff; box-shadow: 0 4px 0 var(--purple-900); }
.btn-primary:hover { background: var(--purple-600); color: #fff; }
.btn-outline { background: transparent; color: var(--purple-700); border-color: var(--purple-700); }
.btn-outline:hover { background: var(--purple-50); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: var(--purple-800); color: #fff; }
.btn-teal { background: var(--teal-700); color: #fff; box-shadow: 0 4px 0 #064543; }
.btn-teal:hover { background: #0C7D79; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
/* Llamado principal «Registrar participación» */
.btn-lg { min-height: 60px; padding: .8em 1.6em; font-size: 1.15rem; border-radius: 16px; }
.btn-xl { min-height: 72px; padding: .85em 2em; font-size: clamp(1.2rem, 2.2vw, 1.4rem); border-radius: 18px; gap: .7em; }
.btn-xl svg, .btn-lg svg { width: 1.35em; height: 1.35em; }
.btn-xl.btn-gold { box-shadow: 0 6px 0 #B88900; }
.btn-xl:hover svg, .btn-lg:hover svg { transform: translateX(4px); }
.btn svg { transition: transform .2s ease; }
.btn-cta-ring { position: relative; }
.btn-cta-ring::after {
  content: ""; position: absolute; inset: -6px; border-radius: 22px; border: 3px solid var(--gold-500);
  opacity: 0; animation: cta-ring 2.6s ease-out infinite; pointer-events: none;
}
@keyframes cta-ring { 0% { opacity: .9; transform: scale(.96); } 70%, 100% { opacity: 0; transform: scale(1.08); } }
.cta-tag {
  flex-basis: 100%; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-family: var(--font-head); font-weight: 600; color: var(--teal-400); font-size: 1rem;
}
.cta-tag i { width: 12px; height: 12px; border-radius: 50%; background: var(--teal-400); animation: blinkdot 1.4s ease-in-out infinite; }
@keyframes blinkdot { 50% { opacity: .25; } }
.btn-mega {
  display: inline-flex; align-items: center; gap: 16px; text-decoration: none;
  background: var(--gold-500); color: var(--purple-950); border: 3px solid #FFD54D;
  padding: 14px 30px 14px 14px; border-radius: 24px; min-height: 84px;
  box-shadow: 0 8px 0 #B88900; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-mega:hover { background: var(--gold-400); color: var(--purple-950); transform: translateY(-3px); box-shadow: 0 11px 0 #B88900; }
.btn-mega:active { transform: translateY(5px); box-shadow: 0 3px 0 #B88900; }
.btn-mega .mega-ico { width: 58px; height: 58px; border-radius: 18px; background: var(--purple-700); color: #fff; display: grid; place-items: center; flex: none; }
.btn-mega .mega-ico svg { width: 30px; height: 30px; transition: transform .2s ease; }
.btn-mega:hover .mega-ico svg { transform: translateX(4px); }
.btn-mega .mega-text { display: flex; flex-direction: column; line-height: 1.15; }
.btn-mega b { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.btn-mega small { font-weight: 700; font-size: .92rem; color: #3D2600; margin-top: 4px; }
.btn-mega.btn-cta-ring::after { border-radius: 30px; inset: -9px; }
.sticky-cta {
  position: fixed; z-index: 40; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold-500); color: var(--purple-950); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  padding: 16px 24px; border-radius: 999px; border: 3px solid var(--purple-900); box-shadow: 0 6px 0 var(--purple-900);
  transition: transform .2s ease, opacity .2s ease;
}
.sticky-cta svg { width: 22px; height: 22px; }
.sticky-cta:hover { background: var(--gold-400); color: var(--purple-950); transform: translateY(-2px); }
@media (max-width: 600px) {
  .sticky-cta { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
  .btn-mega { width: 100%; padding: 12px 16px 12px 12px; gap: 12px; }
  .btn-mega .mega-ico { width: 52px; height: 52px; }
  .btn-mega b { font-size: 1.25rem; white-space: nowrap; }
  .btn-mega small { font-size: .85rem; }
}
.btn-nav { min-height: 48px; padding: .55em 1.15em; font-size: 1rem; border-radius: 12px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 24px; }
@media (max-width: 600px) {
  .hero-cta .btn, .btn-xl { width: 100%; }
  .btn-xl { padding: .8em 1em; white-space: nowrap; font-size: 1.2rem; }
  /* Circuitos solo en la mitad inferior (botones, contador e imagen tienen fondo sólido). */
  .hero .circuits { top: auto; bottom: 0; height: 55%; }
}
.btn-sm { min-height: 42px; padding: .45em .9em; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Navegación flotante ---------- */
.topnav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.topnav-inner {
  pointer-events: auto; max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px 10px 8px 16px;
  box-shadow: 0 8px 0 rgba(27, 11, 49, .14);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--purple-900); font-family: var(--font-head); font-weight: 700; line-height: 1.05; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a {
  display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink);
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
}
.nav-links a:hover { background: var(--purple-50); color: var(--purple-700); }
.nav-links a[aria-current="page"] { background: var(--purple-100); color: var(--purple-700); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: var(--purple-50); border: 1px solid var(--line); border-radius: 12px; width: 48px; height: 48px; cursor: pointer; color: var(--purple-900); }
.nav-toggle svg { margin: auto; width: 26px; height: 26px; }
@media (max-width: 1060px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 74px; flex-direction: column; align-items: stretch;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: 0 8px 0 rgba(27, 11, 49, .14);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 14px; font-size: 1.05rem; }
  .nav-cta { margin: 6px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--purple-900); color: #fff; overflow: hidden; padding: 128px 0 72px; isolation: isolate; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .2em; }
.hero h1 .year { color: var(--gold-500); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--teal-400); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--teal-400); }
.hero-tagline { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--gold-500); margin-bottom: .6em; }
.hero-lead { font-size: 1.12rem; color: #EDE6F7; max-width: 34em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; padding: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 10px; background: var(--purple-800); border: 1px solid #4B2E78; border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.hero-facts svg { width: 22px; height: 22px; color: var(--gold-500); flex: none; }
.hero-media { position: relative; }
.hero-photo { position: relative; border-radius: 28px; overflow: hidden; border: 6px solid var(--gold-500); background: var(--purple-800); aspect-ratio: 16 / 11; box-shadow: 14px 14px 0 var(--teal-500); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-note { margin-top: 26px; font-size: .88rem; color: #D7CCEA; display: flex; gap: 8px; align-items: center; }
.photo-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); }
@media (max-width: 900px) {
  .hero { padding-top: 112px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { max-width: 640px; }
  .hero-photo { box-shadow: 8px 8px 0 var(--teal-500); border-width: 5px; }
}

/* Circuitos: trazo base + pulso sólido animado */
.circuits { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.circuits .track { fill: none; stroke: #3A1F63; stroke-width: 2; }
.circuits .chip { fill: var(--purple-800); stroke: #5A3A8A; stroke-width: 2; }
.circuits .pin { stroke: #5A3A8A; stroke-width: 2; }
/* Energía: pulso sólido + halo plano (mismo color, semitransparente; sin degradados). */
.circuits .pulse, .circuits .glow { fill: none; stroke-linecap: round; stroke-dasharray: 46 954; stroke-dashoffset: 1000; animation: energy 6s linear infinite; }
.circuits .pulse { stroke-width: 3; }
.circuits .glow { stroke-width: 10; opacity: .22; }
.circuits .gold { stroke: var(--gold-500); }
.circuits .teal { stroke: var(--teal-400); animation-duration: 7.5s; }
.circuits .pulse.second { stroke-width: 2.5; stroke-dasharray: 26 974; animation-duration: 9s; animation-delay: -4.5s; }
.circuits .d1 { animation-delay: -1.5s; } .circuits .d2 { animation-delay: -3s; } .circuits .d3 { animation-delay: -4.6s; }
.circuits .pulse.second.d1 { animation-delay: -6s; } .circuits .pulse.second.d2 { animation-delay: -7.5s; } .circuits .pulse.second.d3 { animation-delay: -2.2s; }
.circuits .node { fill: var(--purple-900); stroke: #5A3A8A; stroke-width: 2; }
.circuits .node.lit { stroke: var(--teal-400); animation: blink 3s ease-in-out infinite; }
@keyframes energy { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { stroke: var(--gold-500); fill: #3A1F63; } }
@media (max-width: 760px) { .circuits-head { display: none; } }
.circuit-strip { display: block; width: 100%; height: 36px; }
.circuit-strip .track { fill: none; stroke: var(--purple-200); stroke-width: 2; }
.circuit-strip .track.thin { stroke-width: 1.5; }
.circuit-strip .pulse { fill: none; stroke: var(--teal-500); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 60 1940; stroke-dashoffset: 2000; animation: energy 9s linear infinite; }
.circuit-strip .pulse.second { stroke: var(--gold-500); stroke-dasharray: 34 1966; animation-duration: 12s; animation-delay: -6s; }
.circuit-strip .node { fill: var(--bg); stroke: var(--purple-200); stroke-width: 2; }

/* ---------- Cronómetros ---------- */
.timers-band { position: relative; overflow: hidden; background: var(--purple-950); padding: 34px 0; isolation: isolate; border-top: 1px solid #3A1F63; }
.timers-band .circuits .track { stroke: #2E1850; }
.timers { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .timers { grid-template-columns: 1fr; } }
.countdown { position: relative; background: var(--purple-900); border: 2px solid #4B2E78; border-radius: 22px; padding: 18px 20px 20px; overflow: hidden; }
.countdown::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--gold-500); }
.countdown-event::before { background: var(--teal-400); }
.countdown-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.countdown-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--gold-500); color: var(--purple-950); }
.countdown-ico svg { width: 28px; height: 28px; }
.countdown-event .countdown-ico { background: var(--teal-400); }
.countdown-label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff; line-height: 1.2; }
.countdown-when { display: block; font-size: .92rem; color: #D7CCEA; }
.countdown-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 6px; }
.countdown-cell { position: relative; background: var(--purple-800); border: 1px solid #4B2E78; border-radius: 14px; padding: 10px 4px 8px; text-align: center; overflow: hidden; }
.countdown-cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #24103F; opacity: .8; }
.countdown-cell b { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--gold-500); font-variant-numeric: tabular-nums; line-height: 1.05; }
.countdown-event .countdown-cell b { color: var(--teal-400); }
.countdown-cell span { font-size: .85rem; color: #E2D8F2; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.countdown-sep { align-self: center; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: #6B4FA0; animation: blinkdot 1s steps(2, start) infinite; }
.countdown.closed .countdown-grid { display: none; }
.countdown-closed { display: none; font-weight: 700; color: var(--gold-500); font-size: 1.05rem; }
.countdown-event .countdown-closed { color: var(--teal-400); }
.countdown.closed .countdown-closed { display: block; }
@media (max-width: 420px) { .countdown { padding: 16px 12px 16px; } .countdown-grid { gap: 3px; } .countdown-sep { font-size: 1.2rem; } .countdown-cell span { font-size: .72rem; letter-spacing: .02em; } }
.countdown.light { background: var(--surface); border-color: var(--line); }
.countdown.light .countdown-label { color: var(--purple-900); }
.countdown.light .countdown-when { color: var(--muted); }
.countdown.light .countdown-cell { background: var(--purple-50); border-color: var(--line); }
.countdown.light .countdown-cell::after { background: var(--line); }
.countdown.light .countdown-cell b { color: var(--purple-700); }
.countdown.light .countdown-cell span { color: var(--muted); }
.countdown.light .countdown-sep { color: var(--purple-200); }
.countdown.light .countdown-closed { color: var(--danger); }

/* ---------- Franja de logos ---------- */
.logos { background: var(--surface); border-bottom: 1px solid var(--line); }
.logos .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(20px, 5vw, 64px); padding-top: 22px; padding-bottom: 22px; }
.logos p { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--muted); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.logo { height: 54px; width: auto; object-fit: contain; }
.logo-ugel { height: 44px; }
.logo-ap { height: 64px; }
.logo-poderosa { height: 40px; }
@media (max-width: 600px) { .logo { height: 40px; } .logo-ugel { height: 34px; } .logo-ap { height: 52px; } .logo-poderosa { height: 30px; } .logos p { width: 100%; text-align: center; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--purple-50); }
.section-dark { background: var(--purple-900); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #E2D8F2; }
.kicker { font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 8px; display: block; }
.section-dark .kicker { color: var(--teal-400); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 28px); }
.card-flat { box-shadow: none; }
.card h3 { margin-bottom: .35em; }

/* Fechas clave */
.dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.date-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.date-card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--purple-100); color: var(--purple-700); }
.date-card .ico svg { width: 28px; height: 28px; }
.date-card.gold .ico { background: var(--gold-100); color: var(--gold-700); }
.date-card.teal .ico { background: var(--teal-100); color: var(--teal-700); }
.date-card b { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--purple-900); line-height: 1.25; }
.date-card span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .dates { grid-template-columns: 1fr; } }

/* Categorías */
.cat-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .2s ease; }
.cat-card:hover { transform: translateY(-3px); }
.cat-card figure { margin: 0; position: relative; aspect-ratio: 16 / 9; background: var(--purple-100); }
.cat-card figure img { width: 100%; height: 100%; object-fit: cover; }
.cat-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-tag { align-self: flex-start; font-family: var(--font-head); font-weight: 600; font-size: .85rem; padding: 4px 10px; border-radius: 999px; }
.tag-robostart { background: var(--gold-100); color: var(--gold-700); }
.tag-explorers { background: var(--teal-100); color: var(--teal-700); }
.tag-andino { background: var(--purple-100); color: var(--purple-700); }
.ai-label { font-size: .82rem; color: var(--muted); padding: 6px 22px 0; }
figcaption.ai { font-size: .82rem; color: var(--muted); padding: 8px 2px 0; }

/* Pasos */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps img { width: 84px; height: 84px; margin-bottom: 10px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 16px; right: 18px; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--purple-200); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Rúbrica */
.rubric { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rubric li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; }
.rubric .bar { grid-column: 1 / -1; height: 12px; background: #3A1F63; border-radius: 999px; overflow: hidden; }
.rubric .bar i { display: block; height: 100%; background: var(--gold-500); border-radius: 999px; }
.rubric b { font-family: var(--font-head); color: var(--gold-500); font-size: 1.15rem; }
.section:not(.section-dark) .rubric .bar { background: var(--purple-100); }
.section:not(.section-dark) .rubric .bar i { background: var(--purple-700); }
.section:not(.section-dark) .rubric b { color: var(--purple-700); }

/* Premios / documentos */
.prize { display: flex; gap: 16px; align-items: center; }
.prize img { width: 96px; height: 96px; flex: none; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.doc-list a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 700;
}
.doc-list a:hover { border-color: var(--purple-700); background: var(--purple-50); }
.doc-list .fmt { margin-left: auto; font-family: var(--font-head); font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--purple-100); color: var(--purple-700); }
.doc-list svg { width: 26px; height: 26px; color: var(--purple-700); flex: none; }

.cta-band { background: var(--gold-500); color: var(--purple-950); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { color: var(--purple-950); margin: 0; }
.cta-band .btn-primary { box-shadow: 0 4px 0 var(--purple-950); }

/* ---------- Pie ---------- */
.footer { background: var(--purple-950); color: #E2D8F2; padding: 44px 0 28px; }
.footer a { color: #fff; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-logos { background: #fff; border-radius: 16px; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 14px; }
.footer-logos .logo { height: 40px; } .footer-logos .logo-ugel { height: 32px; } .footer-logos .logo-ap { height: 50px; } .footer-logos .logo-poderosa { height: 28px; }
.footer .legal { border-top: 1px solid #3A1F63; margin-top: 28px; padding-top: 18px; font-size: .9rem; }
@media (max-width: 800px) { .footer .cols { grid-template-columns: 1fr; } }

/* ---------- Página interior ---------- */
.page-head { background: var(--purple-900); color: #fff; padding: 120px 0 40px; position: relative; overflow: hidden; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); position: relative; z-index: 2; }
.page-head p { color: #E2D8F2; max-width: 46em; position: relative; z-index: 2; margin: 0; }
.page-head .eyebrow { position: relative; z-index: 2; }
.page { padding: 36px 0 72px; }
.narrow { max-width: 860px; }

/* ---------- Avisos ---------- */
.alert { border-radius: 14px; padding: 14px 18px; border: 1px solid; margin: 0 0 18px; display: flex; gap: 12px; align-items: flex-start; }
.alert svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.alert p:last-child { margin: 0; }
.alert-ok { background: var(--ok-bg); border-color: #9BD2AE; color: #0E4F27; }
.alert-warn { background: var(--warn-bg); border-color: #E8C766; color: var(--warn); }
.alert-error { background: var(--danger-bg); border-color: #F0A79F; color: #7A130C; }
.alert-info { background: var(--purple-50); border-color: var(--purple-200); color: var(--purple-900); }
.toast { position: fixed; top: 96px; left: 0; right: 0; z-index: 45; padding: 0 var(--gutter); pointer-events: none; }
.toast .alert { pointer-events: auto; max-width: 720px; margin: 0 auto; box-shadow: 0 6px 0 rgba(27, 11, 49, .14); }
.toast-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; margin-left: 8px; padding: 0 6px; }
.sim-banner { background: var(--gold-500); color: var(--purple-950); text-align: center; font-weight: 700; padding: 6px 12px; font-size: .9rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; }

/* ---------- Formularios ---------- */
.form-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 980px) { .form-shell { grid-template-columns: 1fr; } }
.stepper { position: sticky; top: 100px; display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.stepper li button {
  width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); font: inherit; color: var(--ink); cursor: pointer;
}
.stepper .num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-100); color: var(--purple-700); font-family: var(--font-head); font-weight: 700; flex: none; }
.stepper li[aria-current="step"] button { border-color: var(--purple-700); background: var(--purple-50); }
.stepper li[aria-current="step"] .num { background: var(--purple-700); color: #fff; }
.stepper li.done .num { background: var(--teal-700); color: #fff; }
.stepper b { display: block; font-family: var(--font-head); font-weight: 600; }
.stepper span { font-size: .88rem; color: var(--muted); }
@media (max-width: 980px) {
  .stepper { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stepper li button { flex-direction: column; text-align: center; padding: 10px 6px; gap: 6px; }
  .stepper span { display: none; }
  .stepper b { font-size: .9rem; }
}
.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.form-panel[hidden] { display: none; }
.form-panel > h2 { display: flex; align-items: center; gap: 14px; }
.form-panel > h2 img { width: 56px; height: 56px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; margin: 0 0 20px; min-width: 0; }
legend { font-family: var(--font-head); font-weight: 600; color: var(--purple-900); padding: 0 8px; font-size: 1.08rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fields .full { grid-column: 1 / -1; }
.fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .fields, .fields-3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-weight: 700; color: var(--ink); }
.field .hint { font-size: .9rem; color: var(--muted); margin-top: -2px; }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid #B9AED0; border-radius: 12px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A1D80' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 42px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple-700); box-shadow: 0 0 0 3px var(--purple-200); }
.invalid input, .invalid select, .invalid textarea, input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); }
.error-msg { color: var(--danger); font-weight: 700; font-size: .92rem; }
.error-msg:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--purple-700); flex: none; }
.check:has(input:checked) { border-color: var(--purple-700); background: var(--purple-50); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .checks { grid-template-columns: 1fr; } }
.radio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.radio-cards label { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; background: #fff; }
.radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.radio-cards label:has(input:checked) { border-color: var(--purple-700); background: var(--purple-50); }
.radio-cards label:has(input:focus-visible) { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.radio-cards b { font-family: var(--font-head); color: var(--purple-900); }
.radio-cards span { font-size: .9rem; color: var(--muted); }
@media (max-width: 720px) { .radio-cards { grid-template-columns: 1fr; } }

/* Mejoras del formulario */
.h3 { font-size: 1.2rem; }
.prep-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; margin-bottom: 24px; align-items: stretch; }
.prep-grid .countdown { max-width: none; }
@media (max-width: 900px) { .prep-grid { grid-template-columns: 1fr; } }
.prep-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.prep-list li { display: flex; gap: 12px; align-items: center; }
.prep-list img { width: 52px; height: 52px; flex: none; }
.prep-list b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--purple-900); }
.prep-list span { font-size: .95rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 560px) { .prep-list { grid-template-columns: 1fr; } }
.form-progress { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; }
.meter-lg { height: 14px; }
.meter-lg i { background: var(--teal-700); transition: width .4s ease; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; min-height: 52px; padding: 10px 18px; border: 2px solid #B9AED0; border-radius: 12px; background: #fff; font-weight: 700; }
.segmented label:hover span { border-color: var(--purple-700); }
.segmented input:checked + span { background: var(--purple-700); border-color: var(--purple-700); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.seg-field.invalid .segmented span { border-color: var(--danger); }
.cat-pick label { position: relative; padding: 0 0 14px; overflow: hidden; gap: 6px; }
.cat-pick img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 6px; }
.cat-pick b, .cat-pick .cat-tag { margin: 0 14px; }
.cat-pick .check-mark { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--purple-700); color: #fff; display: none; place-items: center; border: 3px solid #fff; }
.cat-pick .check-mark svg { width: 20px; height: 20px; }
.cat-pick label:has(input:checked) { border-color: var(--purple-700); box-shadow: 0 0 0 3px var(--purple-200); }
.cat-pick label:has(input:checked) .check-mark { display: grid; }
.counter { align-self: flex-end; font-size: .85rem; color: var(--muted); margin-top: -2px; }
.counter.low { color: var(--warn); font-weight: 700; }
.copy-advisor { margin-bottom: 14px; }
.add-project {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer; font: inherit; color: var(--purple-900);
  background: var(--purple-50); border: 3px dashed var(--purple-600); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 8px;
}
.add-project:hover { background: var(--purple-100); }
.add-project > span:first-child { width: 48px; height: 48px; border-radius: 14px; background: var(--purple-700); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 2rem; line-height: 1; flex: none; }
.add-project b { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.add-project small { color: var(--muted); font-size: .92rem; }
.field-ok input, .field-ok select, .field-ok textarea { border-color: #3E9B62; }
.project-status { font-size: .9rem; }
.project-block { border: 2px solid var(--purple-200); border-radius: var(--radius); padding: clamp(14px, 2.4vw, 24px); margin-bottom: 22px; background: var(--bg); }
.project-block > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.project-block > header h3 { margin: 0; display: flex; gap: 10px; align-items: center; }
.project-block > header h3 img { width: 44px; height: 44px; }
.student-row { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; margin-bottom: 12px; }
.student-row h4 { font-size: 1rem; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.student-row h4 img { width: 36px; height: 36px; }
.student-grid { display: grid; grid-template-columns: 2fr 1fr 1fr .8fr 1fr; gap: 12px; }
@media (max-width: 900px) { .student-grid { grid-template-columns: 1fr 1fr; } .student-grid .name { grid-column: 1 / -1; } }
@media (max-width: 420px) { .student-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.autosave { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.autosave::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal-500); }
.review-block { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; background: #fff; }
.review-block h3 { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 1.1rem; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 560px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { margin-bottom: 6px; } }
.closed-box { text-align: center; padding: 40px 20px; }
.closed-box img { width: 120px; margin: 0 auto 14px; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--purple-900); background: var(--purple-50); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FCFAFF; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .8rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-muted { background: #EEEAF4; color: var(--muted); }
.b-purple { background: var(--purple-100); color: var(--purple-700); }
.b-teal { background: var(--teal-100); color: var(--teal-700); }
.b-gold { background: var(--gold-100); color: var(--gold-700); }
.b-danger { background: var(--danger-bg); color: var(--danger); }

/* ---------- Panel administrativo ---------- */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.admin-tabs a { padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.admin-tabs a:hover { background: var(--purple-50); }
.admin-tabs a[aria-current="page"] { background: var(--purple-700); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--purple-700); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .95rem; }
.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 18px; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters .field:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; } }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar h2 { margin: 0; }
.meter { height: 10px; border-radius: 999px; background: var(--purple-100); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--teal-700); }
.inline-form { display: inline; }
details.box { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 12px; }
details.box > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::after { content: "+"; font-family: var(--font-head); font-size: 1.4rem; color: var(--purple-700); }
details.box[open] > summary::after { content: "–"; }
details.box > div { padding: 0 16px 16px; }

/* ---------- Jurado ---------- */
.jury-list { display: grid; gap: 12px; }
.jury-item { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--ink); }
.jury-item:hover { border-color: var(--purple-700); }
.jury-item h3 { margin: 0 0 2px; font-size: 1.1rem; }
.criterion { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; margin-bottom: 12px; }
.criterion header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.criterion h3 { font-size: 1.08rem; margin: 0; }
.criterion .max { font-family: var(--font-head); font-weight: 600; color: var(--purple-700); white-space: nowrap; }
.criterion p { color: var(--muted); font-size: .95rem; margin: 4px 0 12px; }
.stepper-input { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; gap: 10px; align-items: center; max-width: 360px; }
.stepper-input button { height: 60px; border-radius: 14px; border: 2px solid var(--purple-700); background: #fff; color: var(--purple-700); font-size: 1.8rem; font-family: var(--font-head); cursor: pointer; }
.stepper-input button:active { background: var(--purple-100); }
.stepper-input input { text-align: center; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; min-height: 60px; }
.criterion.invalid { border-color: var(--danger); }
.score-total { position: sticky; bottom: 0; z-index: 10; background: var(--purple-900); color: #fff; border-radius: 18px 18px 0 0; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 18px; }
.score-total b { font-family: var(--font-head); font-size: 2rem; color: var(--gold-500); font-variant-numeric: tabular-nums; }
.locked { background: var(--ok-bg); border: 1px solid #9BD2AE; border-radius: 16px; padding: 16px 18px; }

dialog { border: 0; border-radius: 20px; padding: 0; max-width: min(520px, calc(100vw - 32px)); box-shadow: 0 12px 0 rgba(27, 11, 49, .25); }
dialog::backdrop { background: rgba(27, 11, 49, .6); }
dialog .dialog-body { padding: 24px; }

/* ---------- Pases ---------- */
.passes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pass { background: #fff; border: 2px solid var(--purple-700); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; break-inside: avoid; }
.pass-head { background: var(--purple-700); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pass-head b { font-family: var(--font-head); font-size: 1rem; }
.pass-head span { font-size: .8rem; background: var(--gold-500); color: var(--purple-950); border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.pass.asesor .pass-head { background: var(--teal-700); }
.pass-body { padding: 16px; display: grid; gap: 6px; }
.pass-qr { width: 190px; height: 190px; margin: 4px auto 8px; background: #fff; }
.pass-qr svg { width: 100%; height: 100%; }
.pass-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--purple-900); text-align: center; line-height: 1.25; }
.pass-meta { text-align: center; color: var(--muted); font-size: .92rem; }
.pass-code { text-align: center; font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; color: var(--purple-700); }
.pass-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 0 16px 16px; }
.pass-actions .btn { min-height: 40px; }
.pass-foot { border-top: 1px dashed var(--line); padding: 8px 16px; font-size: .78rem; color: var(--muted); text-align: center; }

/* Pase individual / asistencia */
.att-card { max-width: 560px; margin: 0 auto; text-align: center; }
.att-state { border-radius: 20px; padding: 22px; margin: 18px 0; }
.att-state h2 { margin-bottom: .2em; }
.att-state.ok { background: var(--ok-bg); border: 2px solid #9BD2AE; }
.att-state.ok h2 { color: var(--ok); }
.att-state.info { background: var(--purple-50); border: 2px solid var(--purple-200); }
.att-state.warn { background: var(--warn-bg); border: 2px solid #E8C766; }
.att-state .big-time { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--purple-900); }
.check-anim { width: 84px; height: 84px; margin: 0 auto 8px; }
.check-anim circle { fill: var(--ok); }
.check-anim path { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .1s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Escáner */
.scanner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .scanner { grid-template-columns: 1fr; } }
.video-box { position: relative; background: var(--purple-950); border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; color: #fff; }
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-box .frame { position: absolute; inset: 16%; border: 4px solid var(--gold-500); border-radius: 18px; pointer-events: none; }
.video-box .hint { position: absolute; bottom: 0; left: 0; right: 0; background: var(--purple-950); padding: 10px; font-size: .95rem; text-align: center; }
.scan-result { border-radius: 18px; padding: 18px; border: 2px solid var(--line); background: #fff; min-height: 140px; }
.scan-result.ok { border-color: #9BD2AE; background: var(--ok-bg); }
.scan-result.repeat { border-color: var(--purple-200); background: var(--purple-50); }
.scan-result.warn { border-color: #E8C766; background: var(--warn-bg); }
.scan-result.error { border-color: #F0A79F; background: var(--danger-bg); }
.scan-result h3 { margin-bottom: 4px; }
.scan-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.scan-log li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: .95rem; display: flex; justify-content: space-between; gap: 10px; }

/* ---------- Resultados: podio y clasificación ---------- */
.results-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.results-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); text-decoration: none; font-family: var(--font-head); font-weight: 600; color: var(--purple-900); background: #fff; }
.results-tabs a svg { width: 18px; height: 18px; color: var(--gold-700); }
.results-tabs a:hover { border-color: var(--purple-700); background: var(--purple-50); }

.result-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; scroll-margin-top: 100px; }
.result-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: center; background: var(--purple-900); color: #fff; padding: 18px; border-bottom: 6px solid var(--gold-500); }
.cat-explorers .result-head { border-bottom-color: var(--teal-400); }
.cat-andino .result-head { border-bottom-color: #B48AE8; }
.result-head img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 3px solid #4B2E78; }
.result-head h2 { color: #fff; margin: 6px 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.result-stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.result-stats li { background: var(--purple-800); border: 1px solid #4B2E78; border-radius: 999px; padding: 4px 12px; font-size: .92rem; color: #E2D8F2; }
.result-stats b { color: var(--gold-500); font-family: var(--font-head); }
.result-body { padding: clamp(16px, 3vw, 28px); }
@media (max-width: 640px) { .result-head { grid-template-columns: 1fr; } .result-head img { max-height: 140px; } }

/* Medallas planas */
.medal { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; flex: none; border: 4px solid; }
.medal-gold { background: var(--gold-500); border-color: #FFE08A; color: var(--purple-950); }
.medal-silver { background: #C9C6D3; border-color: #EAE8F0; color: #2C2838; }
.medal-bronze { background: #C9844A; border-color: #EBC29E; color: #2E1606; }
.medal-plain { background: var(--purple-100); border-color: var(--purple-200); color: var(--purple-700); }
.medal-none { background: #EEEAF4; border-color: #DCD6E6; color: var(--muted); }

/* Podio con pedestales */
.podium-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; background: var(--purple-50); border: 1px solid var(--line); border-radius: 20px; padding: 30px 18px 0; margin-bottom: 26px; overflow: hidden; }
.podium-col { display: flex; flex-direction: column; align-items: stretch; }
.podium-card { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 30px 14px 16px; text-align: center; margin: 0 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.podium-card .medal { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); }
.podium-1 .podium-card { border-color: var(--gold-500); box-shadow: 0 6px 0 var(--gold-100); }
.podium-trophy { width: 64px; height: 64px; margin: 2px auto 2px; }
.podium-card h3 { font-size: 1.15rem; margin: 4px 0 0; }
.podium-title { margin: 0; color: var(--ink); font-size: .95rem; }
.podium-school { margin: 0; color: var(--muted); font-size: .88rem; }
.podium-card hr { width: 60%; border: 0; border-top: 1px dashed var(--line); margin: 8px auto; }
.podium-pts { margin-top: 8px; background: var(--purple-900); color: var(--gold-500); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; padding: 4px 14px; border-radius: 999px; }
.podium-pts small { color: #D7CCEA; font-size: .75rem; font-weight: 500; }
.podium-card.empty { border-style: dashed; color: var(--muted); padding-top: 34px; min-height: 120px; justify-content: center; background: transparent; }
.podium-card.empty .medal { opacity: .55; }
.podium-base { display: grid; place-items: center; border-radius: 12px 12px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; }
.base-gold { height: 110px; background: var(--gold-500); color: var(--purple-950); }
.base-silver { height: 80px; background: #C9C6D3; color: #2C2838; }
.base-bronze { height: 58px; background: #C9844A; color: #2E1606; }
@media (max-width: 720px) {
  .podium-stage { grid-template-columns: 1fr; padding: 30px 14px 14px; gap: 30px; }
  .podium-1 { order: -1; }
  .podium-base { display: none; }
  .podium-card { margin: 0; }
}

/* Clasificación con todo lo calificado */
.ranking-title { font-size: 1.15rem; margin: 0 0 12px; }
.ranking { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.rank-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(180px, 260px); gap: 6px 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--purple-200); border-radius: 16px; padding: 14px 16px; }
.rank-row.top-1 { border-left-color: var(--gold-500); background: #FFFBEB; }
.rank-row.top-2 { border-left-color: #A9A5B6; }
.rank-row.top-3 { border-left-color: #C9844A; }
.rank-row.pending { border-left-color: #E8C766; background: #FFFDF5; }
.rank-row.mine { outline: 3px solid var(--teal-400); }
.rank-team strong { font-family: var(--font-head); font-size: 1.08rem; color: var(--purple-900); }
.rank-team > span:last-child { display: block; color: var(--muted); font-size: .93rem; }
.rank-pts { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; }
.rank-pts b { font-family: var(--font-head); font-size: 1.6rem; color: var(--purple-900); font-variant-numeric: tabular-nums; }
.rank-pts small { color: var(--muted); }
.rank-bar { height: 10px; background: var(--purple-100); border-radius: 999px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--purple-700); border-radius: 999px; }
.top-1 .rank-bar i { background: var(--gold-500); }
.rank-detail { grid-column: 2 / -1; display: grid; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.crit-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.crit-grid li { background: var(--purple-50); border-radius: 10px; padding: 6px 8px; display: grid; gap: 2px; }
.crit-grid span { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crit-grid b { font-family: var(--font-head); font-size: 1.05rem; color: var(--purple-900); font-variant-numeric: tabular-nums; }
.crit-grid b small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.crit-grid i { height: 5px; background: var(--purple-100); border-radius: 999px; overflow: hidden; display: block; }
.crit-grid em { display: block; height: 100%; background: var(--teal-700); }
.juror-totals { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.juror-totals li { background: var(--purple-900); color: #E2D8F2; border-radius: 999px; padding: 3px 12px; font-size: .88rem; }
.juror-totals b { color: var(--gold-500); font-family: var(--font-head); margin-left: 4px; }
.juror-totals small { color: #B9AED0; }
.rank-note { display: flex; gap: 10px; align-items: flex-start; background: var(--purple-50); border: 1px solid var(--purple-200); border-radius: 14px; padding: 12px 14px; color: var(--purple-900); font-size: .93rem; }
.rank-note svg { width: 22px; height: 22px; flex: none; color: var(--purple-700); margin-top: 1px; }
.results-empty { text-align: center; padding: 24px; color: var(--muted); }
.results-empty img { margin: 0 auto 8px; }
@media (max-width: 1000px) { .crit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .rank-row { grid-template-columns: auto minmax(0, 1fr); }
  .rank-score { grid-column: 1 / -1; }
  .rank-pts { justify-content: flex-start; }
  .rank-detail { grid-column: 1 / -1; }
  .crit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.gallery .thumb { background: var(--purple-50); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.gallery .thumb img { width: 80%; height: 80%; object-fit: contain; }
.gallery .thumb.scene img, .gallery .thumb.photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumb.logo-bg { background: #fff; }
.gallery .thumb.logo-bg img { width: 80%; height: auto; max-height: 70%; object-fit: contain; }
.gallery figcaption { padding: 12px 14px; display: grid; gap: 4px; }
.gallery figcaption b { font-family: var(--font-head); color: var(--purple-900); }
.gallery figcaption a { font-size: .9rem; }
.gallery .wide { grid-column: span 2; }
.gallery .wide .thumb { aspect-ratio: 16 / 9; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery .wide { grid-column: auto; } }

/* Utilidades */
.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt { margin-top: 24px; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.code-big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: .06em; color: var(--purple-700); background: var(--purple-50); border: 2px dashed var(--purple-700); border-radius: 16px; padding: 10px 20px; display: inline-block; }
.hide-mobile { }
@media (max-width: 640px) { .hide-mobile { display: none; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn-cta-ring::after { display: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .circuits .glow, .countdown-sep { animation: none; }
  .circuits .glow { opacity: 0; }
  .circuits .pulse, .circuit-strip .pulse { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; opacity: .0; }
  .check-anim path { stroke-dashoffset: 0; }
}

/* ---------- Impresión (constancia y pases) ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; font-size: 12pt; }
  .topnav, .footer, .no-print, .sim-banner, .skip { display: none !important; }
  .page-head { padding: 0 0 8mm; background: #fff; color: #000; }
  .page-head h1, .page-head p, .page-head .eyebrow { color: #000; }
  .page-head .circuits { display: none; }
  .page { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .passes { grid-template-columns: repeat(2, 1fr); gap: 8mm; }
  .pass { border-width: 1.5pt; }
  .pass-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card, .review-block { break-inside: avoid; }
  a { text-decoration: none; color: #000; }
}
.col-team { min-width: 220px; }
body:has(.sticky-cta:not([hidden])) .footer { padding-bottom: 110px; }

/* ---------- Tarjeta del PDF de carnets ---------- */
button.btn-mega { font: inherit; cursor: pointer; text-align: left; }
button.btn-mega[disabled] { opacity: .7; cursor: progress; transform: none; }
.pdf-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; align-items: center; background: var(--purple-900); color: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 32px); border-bottom: 6px solid var(--gold-500); }
.pdf-card h2 { color: #fff; margin-bottom: .35em; }
.pdf-card p { color: #EDE6F7; }
.pdf-card .muted { color: #D7CCEA; }
.pdf-card-art { position: relative; height: 200px; }
.mini-badge { position: absolute; width: 118px; height: 168px; background: #fff; border-radius: 12px; border: 3px solid var(--purple-700); overflow: hidden; left: 10px; top: 10px; transform: rotate(-7deg); }
.mini-badge.alt { left: 82px; top: 22px; transform: rotate(6deg); border-color: var(--teal-700); }
.mini-badge span { position: absolute; left: 0; right: 0; top: 0; height: 34px; background: var(--purple-700); border-bottom: 4px solid var(--gold-500); }
.mini-badge.alt span { background: var(--teal-700); }
.mini-badge i { position: absolute; left: 16px; right: 16px; top: 48px; height: 8px; border-radius: 4px; background: var(--purple-200); }
.mini-badge b { position: absolute; left: 30px; top: 66px; width: 58px; height: 58px; background: #fff; border: 6px solid var(--ink); box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 14px var(--ink); }
.mini-badge em { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--purple-950); }
@media (max-width: 720px) { .pdf-card { grid-template-columns: 1fr; } .pdf-card-art { height: 190px; width: 210px; margin: 0 auto; } .pdf-card .btn-mega b { white-space: normal; } }

/* ---------- Encabezado de página profesional ---------- */
.phead { position: relative; overflow: hidden; background: var(--purple-900); color: #fff; padding: 104px 0 26px; border-bottom: 4px solid var(--gold-500); }
.phead.has-tabs { padding-bottom: 0; border-bottom: 0; }
.phead-inner { position: relative; z-index: 2; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: #CFC3E6; margin-bottom: 14px; }
.crumbs a { color: #CFC3E6; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; font-weight: 700; }
.phead-row { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.phead-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.phead-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--gold-500); color: var(--purple-950); }
.phead-ico svg { width: 30px; height: 30px; }
.phead-ico.tone-teal { background: var(--teal-400); }
.phead-ico.tone-purple { background: var(--purple-600); color: #fff; }
.phead-ico.img { background: #fff; padding: 4px; }
.phead-ico.img img { width: 48px; height: 48px; }
.phead h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; line-height: 1.15; }
.phead-title p { margin: 4px 0 0; color: #E2D8F2; font-size: 1rem; max-width: 60ch; }
.phead-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.phead-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--purple-800); border: 1px solid #4B2E78; border-radius: 999px; padding: 6px 12px; font-size: .9rem; color: #E2D8F2; }
.phead-chip svg { width: 16px; height: 16px; color: var(--teal-400); }
/* Pestañas integradas al encabezado (panel) */
.phead .admin-tabs { margin: 22px 0 0; padding: 0; background: transparent; border: 0; border-radius: 0; gap: 2px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
.phead .admin-tabs a { color: #E2D8F2; border-radius: 12px 12px 0 0; padding: 12px 16px; white-space: nowrap; border-bottom: 4px solid transparent; }
.phead .admin-tabs a:hover { background: var(--purple-800); color: #fff; }
.phead .admin-tabs a[aria-current="page"] { background: var(--bg); color: var(--purple-900); border-bottom-color: var(--bg); font-weight: 600; }
.phead.has-tabs + .page { padding-top: 28px; }
@media (max-width: 760px) {
  .phead { padding-top: 96px; }
  .phead-ico { width: 46px; height: 46px; border-radius: 13px; }
  .phead-ico svg { width: 24px; height: 24px; }
  .phead-side { width: 100%; }
}
@media print { .phead { padding: 0 0 6mm; background: #fff; color: #000; border: 0; } .phead h1, .phead-title p { color: #000; } .phead .crumbs, .phead .circuits, .phead .admin-tabs, .phead-side { display: none; } }
.phead .circuits { opacity: .55; }

/* ---------- Fecha del concurso destacada ---------- */
.event-card { display: flex; align-items: center; gap: 18px; margin: 22px 0 26px; background: var(--purple-800); border: 2px solid var(--gold-500); border-radius: 20px; padding: 12px 18px 12px 12px; max-width: 560px; }
.event-cal { flex: none; width: 92px; border-radius: 14px; overflow: hidden; text-align: center; background: var(--gold-500); color: var(--purple-950); display: flex; flex-direction: column; box-shadow: 0 5px 0 #B88900; }
.cal-mon { background: var(--purple-950); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .14em; padding: 4px 0; }
.cal-day { font-family: var(--font-head); font-weight: 700; font-size: 2.9rem; line-height: 1; padding: 6px 0 0; }
.cal-year { font-family: var(--font-head); font-weight: 700; font-size: .9rem; padding: 0 0 6px; }
.event-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.event-kicker { font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-400); }
.event-info strong { font-family: var(--font-head); font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: #fff; line-height: 1.2; }
.event-info > span:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: #EDE6F7; font-weight: 700; }
.event-info svg { width: 18px; height: 18px; color: var(--gold-500); }
@media (max-width: 480px) { .event-card { gap: 12px; padding: 10px 12px 10px 10px; } .event-cal { width: 76px; } .cal-day { font-size: 2.3rem; } }

.event-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-500); color: var(--purple-950); border-radius: 999px; padding: 6px 12px; font-family: var(--font-head); font-size: .88rem; white-space: nowrap; }
.event-pill svg { width: 16px; height: 16px; }
.event-pill b { font-weight: 700; }
.event-pill > span { font-weight: 500; }
@media (max-width: 1060px) { .event-pill { margin-left: auto; } .nav-toggle { margin-left: 8px; } }
@media (max-width: 380px) { .brand small { display: none; } .event-pill { padding: 5px 9px; font-size: .8rem; } }

.phead-event { display: inline-flex; align-items: center; gap: 10px; background: var(--gold-500); color: var(--purple-950); border-radius: 14px; padding: 7px 14px 7px 10px; box-shadow: 0 4px 0 #B88900; }
.phead-event svg { width: 24px; height: 24px; }
.phead-event > span { display: flex; flex-direction: column; line-height: 1.15; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.phead-event b { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: 0; text-transform: none; }

/* ---------- Encabezado principal (2 niveles) ---------- */
.topnav { top: 10px; }
.topnav-shell { pointer-events: auto; max-width: var(--max); margin: 0 auto; border-radius: 22px; box-shadow: 0 10px 0 rgba(27, 11, 49, .16); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--purple-950); color: #E2D8F2; font-size: .84rem; padding: 7px 18px; border-radius: 22px 22px 0 0; max-height: 44px; overflow: hidden; transition: max-height .25s ease, padding .25s ease, opacity .2s ease; }
.topbar svg { width: 16px; height: 16px; flex: none; }
.topbar-org { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-org svg { color: var(--gold-500); }
.topbar-info { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.tb-status, .tb-event, .tb-user { display: inline-flex; align-items: center; gap: 7px; }
.tb-status i { width: 9px; height: 9px; border-radius: 50%; background: #9A8FB0; }
.tb-status.open i { background: var(--teal-400); animation: blinkdot 1.6s ease-in-out infinite; }
.tb-status.open { color: var(--teal-400); font-weight: 700; }
.tb-event svg { color: var(--gold-500); }
.tb-event b { color: var(--gold-500); font-family: var(--font-head); }
.tb-user svg { color: var(--teal-400); }
.topnav-inner { max-width: none; border-radius: 0 0 22px 22px; border: 0; border-top: 0; box-shadow: none; padding: 10px 12px 10px 16px; }
.topnav.scrolled .topbar { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.topnav.scrolled .topnav-inner { border-radius: 22px; }

.brand-mark { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text > span { font-size: 1.12rem; letter-spacing: .01em; }
.brand-text em { font-style: normal; color: var(--gold-700); }
.brand-text small { margin-top: 3px; }

.nav-links a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; position: relative; }
.nav-links a svg { width: 18px; height: 18px; color: var(--purple-600); flex: none; }
.nav-links a[aria-current="page"] { background: var(--purple-100); color: var(--purple-700); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--gold-500); }
.nav-cta .btn svg { width: 18px; height: 18px; }
.event-pill { display: none; }

@media (max-width: 1060px) {
  .topbar { display: none; }
  .topnav-inner { border-radius: 20px; }
  .event-pill { display: inline-flex; }
  .nav-links { top: 78px; }
  .nav-links a { padding: 14px; }
}
@media (min-width: 1061px) {
  .hero { padding-top: 156px; }
  .phead { padding-top: 136px; }
  .toast { top: 128px; }
}
@media (max-width: 1240px) and (min-width: 1061px) { .topbar-org { max-width: 34%; } .nav-links a { padding: 10px 9px; } .nav-links a svg { display: none; } }
@media (prefers-reduced-motion: reduce) { .topbar { transition: none; } .tb-status.open i { animation: none; } }
@media (max-width: 1060px) { .nav-toggle { flex: none; } .brand-text > span { white-space: nowrap; } }
@media (max-width: 520px) {
  .topnav-inner { padding: 8px 8px 8px 10px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-text > span { font-size: .98rem; }
  .brand-text em, .brand-text small { display: none; }
  .event-pill { padding: 5px 10px; font-size: .8rem; gap: 5px; }
  .event-pill svg { width: 14px; height: 14px; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-links { top: 66px; }
}
@media (max-width: 400px) { .pill-year { display: none; } }
