:root {
  --negro: #0E0B16;
  --texto: #1D1530;
  --sec: #5E5873;
  --borde: #E7E3EF;
  --fondo: #FFFFFF;
  --fondo-2: #F6F4FA;
  --violeta: #4F17A8;
  --violeta-2: #3A0F80;
  --naranja: #FF610F;
  --cian: #05BFE0;
  --radio: 18px;
  --sombra: 0 1px 2px rgba(29, 21, 48, .06), 0 8px 24px rgba(29, 21, 48, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violeta); }

/* ---------- Splash: logo PMI arriba, emblema con anillo de carga al centro, sponsors abajo ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(28px + env(safe-area-inset-top)) 0 calc(14px + env(safe-area-inset-bottom)); cursor: pointer;
  transition: opacity .6s ease, visibility .6s; overflow: hidden;
}
.splash.saliendo { opacity: 0; visibility: hidden; }
.splash-logo { width: min(340px, 74vw); height: auto; flex: none; animation: entrar .9s cubic-bezier(.2, .8, .2, 1) both; }
.splash-centro { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px 0; }
.splash-emblema { width: min(76vw, 42vh, 360px); aspect-ratio: 1; animation: aparecer-emblema 1s .15s cubic-bezier(.2, .8, .2, 1) both; }
.splash-emblema svg { width: 100%; height: 100%; display: block; }
.splash-saltar { margin: 0; font-size: 14px; font-weight: 600; color: var(--sec); animation: latido-texto 2s ease-in-out infinite; }
.splash-sponsors { width: 100%; flex: none; text-align: center; animation: entrar .9s .35s cubic-bezier(.2, .8, .2, 1) both; }
.splash-sponsors .eyebrow { color: var(--sec); font-size: 11px; margin-bottom: 4px; }
.splash-sponsors .marquesina { padding: 4px 0; }
@keyframes aparecer-emblema { from { opacity: 0; transform: scale(.92) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes latido-texto { 50% { opacity: .45; } }

/* Bloques del anillo: arrancan en gris y se van coloreando uno por uno durante la carga (5 s). */
.em-bloque { fill: var(--gris); }
.splash .em-bloque { animation: colorear .55s ease-out both; animation-delay: calc(.35s + var(--i) * .72s); }
@keyframes colorear { 0% { fill: var(--gris); } 100% { fill: var(--color); } }
.em-texto { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 700; }

@keyframes barra { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes entrar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }



/* ---------- Layout ---------- */
.top { padding: 16px 20px; display: flex; justify-content: center; border-bottom: 1px solid var(--borde); position: sticky; top: 0; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); z-index: 10; }
.top-logo { height: 40px; width: auto; }
main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }

.hero { position: relative; padding: 44px 4px 32px; overflow: hidden; }
.hero h1 { margin: 0; font-size: clamp(34px, 9vw, 56px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; color: var(--negro); max-width: 11ch; position: relative; }
.hero .eyebrow { position: relative; max-width: 28ch; }
.hero-fecha { position: relative; margin: 18px 0 0; font-size: 18px; font-weight: 700; color: var(--texto); display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 4px solid var(--naranja); }
.hero-hora { font-weight: 500; color: var(--sec); }
.hero-fecha span:first-letter { text-transform: uppercase; }

/* Formas geométricas inspiradas en el isotipo de PMI */
.formas { position: absolute; right: -18px; top: 26px; width: 150px; height: 150px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; opacity: .95; }
.formas i { display: block; }
.formas .f1 { background: var(--negro); border-radius: 0 50% 50% 0; }
.formas .f2 { background: var(--naranja); border-radius: 50% 0 0 50%; }
.formas .f3 { background: var(--cian); border-radius: 50% 50% 0 0; }
.formas .f4 { background: var(--violeta); border-radius: 0 0 50% 50%; }
@media (max-width: 560px) {
  .formas { width: 96px; height: 96px; right: -10px; top: 18px; gap: 6px; opacity: .9; }
  .hero h1 { max-width: 9ch; }
}

/* ---------- Sorteo en vivo ---------- */
.vivo {
  position: relative; overflow: hidden; margin: 8px 0 28px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #7A3BE0 0%, var(--violeta) 45%, #26085A 100%);
  box-shadow: 0 18px 40px rgba(79, 23, 168, .28);
  animation: entrar .5s ease both;
}
.vivo-cabecera { white-space: nowrap; display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.vivo-instancia { white-space: normal; margin-left: auto; font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .8; text-align: right; }
.punto-vivo { width: 10px; height: 10px; border-radius: 50%; background: var(--naranja); box-shadow: 0 0 0 0 rgba(255, 97, 15, .7); animation: latido 1.6s infinite; flex: none; }
@keyframes latido { 70% { box-shadow: 0 0 0 10px rgba(255, 97, 15, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 97, 15, 0); } }
.vivo-escenario { padding: 26px 20px 28px; text-align: center; min-height: 170px; display: flex; flex-direction: column; justify-content: center; }
.vivo-premio { margin: 0; font-size: 15px; font-weight: 600; color: #FFD2B8; }
.vivo-nombre { margin: 10px 0 6px; font-size: clamp(28px, 8vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.vivo-detalle { margin: 0; font-size: 14px; opacity: .85; }
.vivo.girando .vivo-nombre { opacity: .75; filter: blur(.4px); }
.vivo.revelado .vivo-premio { font-size: 17px; }
.vivo.ausente .vivo-nombre { text-decoration: line-through; text-decoration-thickness: 3px; opacity: .6; }
.pop { animation: pop .7s cubic-bezier(.2, 1.4, .3, 1) both; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.vivo-ganadores { background: rgba(0, 0, 0, .18); padding: 0 20px; }
.vivo-ganadores summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.vivo-ganadores summary::after { content: '▾'; transition: transform .2s; }
.vivo-ganadores[open] summary::after { transform: rotate(180deg); }
.vivo-ganadores summary::-webkit-details-marker { display: none; }
.vivo-ganadores ol { margin: 0; padding: 0 0 14px; list-style: none; max-height: 280px; overflow: auto; }
.vivo-ganadores li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.g-nombre { font-weight: 600; }
.g-premio { opacity: .8; text-align: right; }
.vivo .vacio { margin: 0; padding: 0 0 14px; font-size: 14px; opacity: .75; }

/* ---------- Tarjetas ---------- */
.tarjetas { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tarjetas { grid-template-columns: 1fr 1fr; } .tarjetas .tarjeta:last-child { grid-column: 1 / -1; } }
.tarjeta { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--borde); border-radius: var(--radio); background: #fff; box-shadow: var(--sombra); }
.tarjeta h2 { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--sec); text-transform: uppercase; letter-spacing: .06em; }
.tarjeta p { margin: 0; font-size: 17px; font-weight: 600; }
.tarjeta p:first-letter { text-transform: uppercase; }
.tarjeta .sec { font-size: 15px; font-weight: 500; color: var(--sec); margin-top: 2px; }
.enlace { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--violeta); text-decoration: none; }
.enlace:hover { text-decoration: underline; }
.ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.ico::before { content: ''; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-fecha { background: #FFF0E7; color: var(--naranja); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ico-hora { background: #E3F8FC; color: #0398B3; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.ico-lugar { background: #EFE8FA; color: var(--violeta); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 21s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }

/* ---------- Cómo llegar ---------- */
.titulo-sec { margin: 40px 0 14px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--negro); }
.mapa { border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); aspect-ratio: 4 / 3; background: var(--fondo-2); }
@media (min-width: 640px) { .mapa { aspect-ratio: 16 / 9; } }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.botones { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: 1fr 1fr; }
.botones .btn-primario { grid-column: 1 / -1; }
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; text-align: center;
  min-height: 52px; padding: 14px 18px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s ease, background .2s;
}
.btn:active { transform: scale(.98); }
.btn-primario { background: var(--violeta); color: #fff; }
.btn-primario:hover { background: var(--violeta-2); }
.btn-secundario { background: var(--fondo-2); color: var(--texto); border: 1px solid var(--borde); font-size: 15px; }
.btn-secundario:hover { background: #EEEAF5; }
.btn:focus-visible, .enlace:focus-visible, summary:focus-visible { outline: 3px solid var(--cian); outline-offset: 2px; }
.nota { margin: 14px 0 0; padding: 14px 16px; background: var(--fondo-2); border-radius: 12px; color: var(--sec); font-size: 15px; white-space: pre-line; }

.sponsors { margin: 28px -16px 0; padding: 22px 0 14px; border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); background: var(--fondo-2); text-align: center; }
.sponsors .eyebrow { color: var(--sec); margin-bottom: 14px; }
@media (min-width: 792px) { .sponsors { margin-left: 0; margin-right: 0; border: 1px solid var(--borde); border-radius: var(--radio); } }

/* Marquesina de logos: se desplaza lento, con bordes que se desvanecen */
.marquesina { position: relative; overflow: hidden; width: 100%; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquesina + .marquesina { margin-top: 6px; }
.marquesina img { display: block; flex: none; object-fit: contain; filter: brightness(0); opacity: .82; -webkit-user-drag: none; user-select: none; }
.marquesina.m2 img { opacity: .62; }
.pista { display: flex; width: max-content; animation: desplazar 40s linear infinite; }
.pista.inversa { animation-direction: reverse; }
/* Pausa al pasar el mouse (solo en PC). En celular se pausa mientras se toca y vuelve a moverse sola a los 3 s. */
@media (hover: hover) and (pointer: fine) { .marquesina:hover .pista { animation-play-state: paused; } }
.marquesina.pausa .pista { animation-play-state: paused; }
.grupo { display: flex; align-items: center; gap: var(--hueco); padding-right: var(--hueco); }
.marquesina.quieta .pista { width: auto; flex-wrap: wrap; justify-content: center; align-items: center; animation: none; margin: 0 auto; }
@keyframes desplazar { to { transform: translateX(-50%); } }

.pie { text-align: center; padding: 34px 16px calc(30px + env(safe-area-inset-bottom)); color: rgba(255, 255, 255, .75); font-size: 13px;
  background: radial-gradient(120% 140% at 50% 0%, #4A1A96 0%, #33107A 45%, #220A55 100%); }
.pie-logos { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 6vw, 40px); margin-bottom: 18px; }
.pie-pmi, .pie-emblema { width: clamp(104px, 30vw, 150px); aspect-ratio: 1; }
.pie-pmi svg, .pie-emblema svg { width: 100%; height: 100%; display: block; }
.pie-divisor { width: 2px; align-self: stretch; margin: 6px 0; background: #fff; border-radius: 2px; }
.pie p { margin: 0; }
.pie .btn-org { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.pie .btn-org:hover { background: rgba(255, 255, 255, .1); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--negro); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 120; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- Resumen final de ganadores ---------- */
.finales {
  margin: 8px 0 28px; border-radius: 24px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #7A3BE0 0%, var(--violeta) 45%, #26085A 100%);
  box-shadow: 0 18px 40px rgba(79, 23, 168, .28); animation: entrar .5s ease both;
}
.finales-cab { padding: 22px 20px 6px; }
.finales-sup { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFD2B8; }
.finales h2 { margin: 4px 0 6px; font-size: clamp(26px, 7vw, 34px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.desliza { margin: 0; font-size: 15px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.desliza span { display: inline-block; animation: empujar 1.4s ease-in-out infinite; }
@keyframes empujar { 50% { transform: translateX(6px); } }
.carrusel { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; padding: 14px 20px 6px; scroll-padding: 0 20px; outline: none; }
.carrusel::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 calc(100% - 28px); scroll-snap-align: start; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 16px 16px 8px; }
.slide-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.slide-cab h3 { margin: 0; font-size: 18px; font-weight: 800; }
.slide-cab span { font-size: 13px; opacity: .75; white-space: nowrap; }
.slide ol { list-style: none; margin: 0; padding: 0; }
.slide li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.slide li:first-child { border-top: 0; }
.slide .vacio { margin: 8px 0 10px; opacity: .75; font-size: 14px; }
.puntos { display: flex; justify-content: center; gap: 8px; padding: 10px 0 18px; }
.puntos button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: .2s; }
.puntos button[aria-selected=true] { background: #fff; width: 24px; border-radius: 9px; }

/* ---------- Uber y recorrido a pie ---------- */
.uber { margin-top: 18px; padding: 18px; border: 1px solid var(--borde); border-radius: var(--radio); background: #fff; box-shadow: var(--sombra); }
.uber-cab { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.uber-logo { flex: none; width: 52px; height: 44px; border-radius: 12px; background: #000; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: -.02em; }
.uber h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.uber-cab p { margin: 0; color: var(--sec); font-size: 15px; }
.uber-cab p b { color: var(--texto); }
.btn-uber { width: 100%; background: #000; color: #fff; }
.btn-uber:hover { background: #222; }
.croquis { margin: 16px 0 6px; }
.croquis svg { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--borde); }
.croquis figcaption { font-size: 12px; color: var(--sec); margin-top: 6px; text-align: right; }
.c-calle { font: 700 10.5px 'Plus Jakarta Sans', system-ui, sans-serif; fill: #7A7390; letter-spacing: .02em; }
.c-chica { font-size: 9.5px; }
.c-lugar { font: 600 10px 'Plus Jakarta Sans', system-ui, sans-serif; fill: #A39DB3; }
.c-etiqueta { font: 800 11px 'Plus Jakarta Sans', system-ui, sans-serif; fill: #1D1530; }
.c-sub { font: 600 9.5px 'Plus Jakarta Sans', system-ui, sans-serif; fill: #5E5873; }
.c-u { font: 800 14px 'Plus Jakarta Sans', system-ui, sans-serif; fill: #fff; text-anchor: middle; }
.c-paso circle { fill: #FF610F; }
.c-paso text { font: 800 10px 'Plus Jakarta Sans', system-ui, sans-serif; fill: #fff; text-anchor: middle; }
.pasos { margin: 14px 0 16px; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 10px; }
.pasos li { counter-increment: paso; position: relative; padding-left: 38px; min-height: 26px; font-size: 15px; color: var(--sec); }
.pasos li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--naranja); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.pasos b { color: var(--texto); }
.btn-bloque { width: 100%; }

.btn-org { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--borde); color: var(--texto); font-weight: 700; font-size: 14px; text-decoration: none; background: #fff; }
.btn-org::before { content: '🔒'; font-size: 13px; }
.btn-org:hover { background: var(--fondo-2); }

/* Sponsor que regala el premio */
.gentileza { margin: 4px 0 0; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .78); }
.gentileza b { color: #fff; font-weight: 700; }
.g-sponsor { opacity: .75; font-weight: 500; }

/* Accesos a los sitios de los sponsors */
.marquesina a { display: block; flex: none; -webkit-tap-highlight-color: transparent; }
.marquesina a:hover img, .marquesina a:focus-visible img { opacity: 1; }
.sp-abrir { margin: 14px auto 2px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 99px;
  border: 1px solid var(--borde); background: #fff; color: var(--violeta); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: var(--sombra); }
.sp-abrir:hover { border-color: #CFC4E6; }
.sp-flecha { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.sp-abrir[aria-expanded="true"] .sp-flecha { transform: rotate(-135deg) translate(-1px, -1px); }
.sp-links { list-style: none; margin: 12px 16px 6px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; text-align: left; animation: entrar .3s ease both; }
@media (min-width: 560px) { .sp-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 792px) { .sp-links { margin: 14px 20px 8px; } }
.sp-links a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--borde);
  color: var(--texto); text-decoration: none; transition: border-color .15s, transform .15s; }
.sp-links a:hover, .sp-links a:focus-visible { border-color: var(--violeta); }
.sp-links a:active { transform: scale(.98); }
.sp-logo { flex: none; width: 64px; height: 36px; display: block; }
.sp-logo img { display: block; width: 100%; height: 100%; object-fit: contain; filter: brightness(0); opacity: .8; }
.sp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sp-txt b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-txt small { font-size: 12px; color: var(--sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-ir { flex: none; color: var(--violeta); font-weight: 700; }
