/* Estilos de: Página principal (/) */

/* ---------- Notificación del anuncio ---------- */
.notif { position: fixed; top: 76px; left: 50%; transform: translate(-50%, -260%); z-index: 28; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 12px 14px 12px 18px; border-radius: 18px; color: #191724; font-weight: 700;
  background: linear-gradient(90deg, var(--purple), var(--accent), var(--gold), var(--purple)); background-size: 200% 100%; animation: flow 8s linear infinite;
  box-shadow: 0 18px 50px -12px rgba(235,111,146,.6); transition: transform .6s cubic-bezier(.3,1.4,.5,1); }
.notif.show { transform: translate(-50%, 0); }
.notif .bell { font-size: 20px; animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 0; }
.notif button { background: rgba(25,23,36,.18); border: 0; width: 28px; height: 28px; border-radius: 50%; cursor: var(--cursor-pointer, pointer); font-size: 15px; color: #191724; flex: none; }
@keyframes flow { to { background-position: 200% 0; } }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-12deg); } }

/* ---------- Horario (esquina inferior derecha) ---------- */
.sched { position: fixed; right: 18px; bottom: 18px; z-index: 25; width: 270px; padding: 16px 18px; border-radius: 20px;
  background: rgba(31,29,46,.88); border: 1px solid var(--card-border); backdrop-filter: blur(12px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.9); transition: transform .35s, opacity .35s; }
.sched.min { transform: translateY(calc(100% - 46px)); }
.sched-h { display: flex; align-items: center; justify-content: space-between; cursor: var(--cursor-pointer, pointer); gap: 8px; }
.sched-h b { font-family: var(--font-script); font-size: 26px; font-weight: 500; color: var(--purple); line-height: 1; }
.sched-h span { color: var(--ink-dim); font-size: 13px; transition: transform .3s; }
.sched.min .sched-h span { transform: rotate(180deg); }
.sched .t { color: var(--gold); font-weight: 700; margin: 10px 0 2px; }
.sched .d { color: var(--ink-dim); font-size: 13px; }
.count { display: flex; gap: 8px; margin: 12px 0 0; }
.count div { flex: 1; text-align: center; padding: 8px 4px; border-radius: 12px; background: rgba(25,23,36,.6); border: 1px solid var(--card-border); }
.count b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--purple); font-variant-numeric: tabular-nums; }
.count small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.sched .live-msg { display: none; margin-top: 10px; color: #ff6b8b; font-weight: 700; }
.sched.is-live .live-msg { display: block; } .sched.is-live .count { display: none; }
@media (max-width: 600px) { .sched { width: auto; left: 12px; right: 12px; bottom: 12px; } }

/* ---------- Video destacado (abajo a la izquierda; el horario queda a la derecha) ---------- */
.vid { position: fixed; left: 18px; bottom: 18px; z-index: 24; width: 500px; height: 300px; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 14px; border-radius: 20px; overflow: hidden;
  background: rgba(31,29,46,.88); border: 1px solid var(--card-border); backdrop-filter: blur(12px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.9); transition: height .35s, bottom .35s, opacity .35s; }
.vid[hidden] { display: none; }
.vid.min { height: 50px; }
.vid-h { display: flex; align-items: center; gap: 10px; cursor: var(--cursor-pointer, pointer); flex: none; }
.vid-h b { font-family: var(--font-script); font-size: 26px; font-weight: 500; color: var(--purple); line-height: 1; flex: none; }
.vid-t { flex: 1; min-width: 0; color: var(--gold); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vid-h .car { color: var(--ink-dim); font-size: 13px; transition: transform .3s; flex: none; }
.vid.min .vid-h .car { transform: rotate(180deg); }
#vidPlayer { flex: 1; min-height: 0; width: 100%; border: 0; border-radius: 12px; background: #0e0d15; }
.vid-d { margin: 0; flex: none; color: var(--ink-dim); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid-d[hidden] { display: none; }
/* con el video abierto, el texto del Inicio sube un poco para que los botones no queden tapados */
@media (min-width: 861px) { body:has(.vid:not([hidden]):not(.min)) .hero { padding-bottom: 360px; } }
/* pantallas chicas: ocupa todo el ancho, arriba del horario */
@media (max-width: 860px) {
  .vid { left: 12px; right: 12px; width: auto; height: auto; bottom: calc(var(--sched-h, 46px) + 24px); }
  #vidPlayer { flex: none; aspect-ratio: 16 / 9; height: auto; }
  .vid.min { height: 50px; }
}

main { width: min(1180px, 100% - 32px); margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 80px);
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px;
  padding: 40px 0 80px;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 24px; } .hero .actions { justify-content: center; } }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--card-border);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 22px;
}
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #6b6488; }
.status.live { color: #fff; border-color: rgba(255,70,110,.6); background: rgba(255,40,90,.12); }
.status.live .dot { background: #ff3b6b; box-shadow: 0 0 0 0 rgba(255,59,107,.7); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 10px rgba(255,59,107,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,107,0); } }
@keyframes pulse { 50% { opacity: .4; } }

.hero-logo { margin: 0; line-height: 1; }
.hero-logo .logo-script { display: inline-block; font-size: clamp(96px, 15vw, 200px); text-shadow: 6px 6px 0 rgba(110,106,134,.85), 0 0 60px rgba(233,182,250,.35);
  animation: logoFloat 6s ease-in-out infinite; transform-origin: 30% 60%; padding: 0 .1em .12em 0; }
@keyframes logoFloat { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-8px); } }
.tagline { font-size: clamp(18px, 2.4vw, 24px); color: var(--ink-dim); margin: 18px 0 34px; min-height: 1.6em; }
.tagline .typed { color: var(--accent); font-weight: 500; }
.tagline .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -3px; margin-left: 3px; animation: pulse 1s steps(1) infinite; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- OVNI ---------- */
.ufo-wrap { position: relative; height: 460px; display: grid; place-items: center; }
@media (max-width: 900px) { .ufo-wrap { height: 340px; order: -1; } }
/* la nave entera (platillo + luz + vaca) se mueve junta */
.ship { position: absolute; inset: 0; display: grid; place-items: center; animation: hover 5s ease-in-out infinite; transform-origin: 50% 25%; }
@keyframes hover {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50% { transform: translate(0, -18px) rotate(3deg); }
}
.ufo {
  position: absolute; top: 40px; width: min(300px, 70vw); cursor: var(--cursor-pointer, pointer); z-index: 2;
  transition: filter .3s;
}
.ufo:hover { filter: drop-shadow(0 0 30px rgba(235,111,146,.6)); }
.ufo .lights circle { animation: blink 1.2s infinite; }
.ufo .lights circle:nth-child(2) { animation-delay: .15s; }
.ufo .lights circle:nth-child(3) { animation-delay: .3s; }
.ufo .lights circle:nth-child(4) { animation-delay: .45s; }
.ufo .lights circle:nth-child(5) { animation-delay: .6s; }
.ufo .lights circle:nth-child(6) { animation-delay: .75s; }
.ufo .lights circle:nth-child(7) { animation-delay: .9s; }
@keyframes blink { 50% { fill: #191724; } }

.beam {
  position: absolute; top: 185px; width: 220px; height: 260px;
  background: linear-gradient(180deg, rgba(235,111,146,.55), rgba(235,111,146,0));
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  filter: blur(2px); transform-origin: 50% 0;
  animation: beam 3s ease-in-out infinite;
}
@media (max-width: 900px) { .beam { top: calc(40px + min(300px, 70vw) * .6); height: 200px; } }
@keyframes beam { 50% { opacity: .45; } }
.cargo {
  position: absolute; bottom: 30px; font-size: 44px; z-index: 1;
  animation: lift 5s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(235,111,146,.7));
}
@keyframes lift {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-90px) rotate(200deg); }
}
.ground-glow { position: absolute; bottom: 0; width: 260px; height: 40px; border-radius: 50%; background: radial-gradient(ellipse, rgba(235,111,146,.35), transparent 70%); animation: beam 3s ease-in-out infinite; transition: opacity .6s; }

/* ---- Secuestro: 1) la luz se traga la vaca  2) se van todos juntos  3) vuelven y la devuelven ---- */
.ship.abduct { animation: zoomAway 2.3s linear .85s forwards; }
/* cada tramo con su propia curva (sin rebotes raros que la hacían desaparecer al volver) */
@keyframes zoomAway {
  0% { transform: var(--s0, none); animation-timing-function: ease-out; }
  22% { transform: translate(-30px, 10px) rotate(-12deg) scale(1.05); animation-timing-function: cubic-bezier(.55,0,.9,.4); }
  55% { transform: translate(120vw, -60vh) rotate(25deg) scale(.2); opacity: 1; }
  55.5% { transform: translate(-120vw, -60vh) rotate(-10deg) scale(.2); opacity: 0; }
  56% { transform: translate(-120vw, -60vh) rotate(-10deg) scale(.2); opacity: 1; animation-timing-function: cubic-bezier(.15,.6,.3,1); }
  100% { transform: none; opacity: 1; }
}
.ship.abduct .beam { animation: beamPull .85s ease-in forwards; }
@keyframes beamPull { 0% { opacity: 1; } 60% { opacity: 1; filter: blur(2px) brightness(1.6); } 100% { opacity: .9; } }
.ship.abduct .cargo { animation: suck .9s cubic-bezier(.5,0,.75,0) forwards; }
@keyframes suck {
  0% { transform: var(--t0, none); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(var(--suck, -200px)) rotate(540deg) scale(.3); opacity: 0; }
}
.ship.cow-drop .cargo { animation: dropBack 1s cubic-bezier(.3,.6,.4,1) forwards; }
@keyframes dropBack {
  0% { transform: translateY(var(--suck, -200px)) rotate(0) scale(.3); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.ufo-wrap.away .ground-glow { opacity: 0; }

/* ---------- Cinta ---------- */
.ribbon {
  overflow: hidden; border-block: 1px solid var(--card-border);
  background: rgba(203,169,254,.04); padding: 14px 0; margin: 0 0 90px;
  transform: rotate(-1.5deg); width: 110vw; margin-left: calc(50% - 55vw);
}
.ribbon-track { display: flex; align-items: center; width: max-content; animation: marquee 30s linear infinite; }
.ribbon span { font-family: var(--font-display); font-weight: 700; letter-spacing: .25em; font-size: 15px; color: var(--purple); margin-right: 28px; white-space: nowrap; }
/* estrellita rosa entre palabras: como la del menú de arriba (animación menuStar, en base.css) */
.rb-star { flex: none; width: 14px; height: 14px; margin-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23ffd3df'/%3E%3Cstop offset='.35' stop-color='%23f58fac'/%3E%3Cstop offset='1' stop-color='%23eb6f92'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M12 0C12.9 7.6 16.4 11.1 24 12C16.4 12.9 12.9 16.4 12 24C11.1 16.4 7.6 12.9 0 12C7.6 11.1 11.1 7.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 3px rgba(235,111,146,.85)) drop-shadow(0 0 7px rgba(235,111,146,.45));
  animation: menuStar 3.2s ease-in-out infinite; }
.rb-star:nth-of-type(odd) { animation-delay: -1.6s; }
@media (prefers-reduced-motion: reduce) { .rb-star { animation: none; opacity: .8; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Señal en vivo ---------- */
.live-card { display: none; margin: 0 0 90px; }
.live-card.on { display: block; }
.live-card h3 { color: var(--gold); font-family: var(--font-display); font-size: 20px; margin: 0 0 8px; }
.live-card p { color: var(--ink-dim); margin: 0 0 14px; }
#livePlayer { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 16px; }

footer { text-align: center; padding: 40px 16px 60px; color: var(--ink-dim); font-size: 15px; }
footer .bye { font-family: var(--font-display); font-size: clamp(22px, 4vw, 34px); color: var(--ink); margin-bottom: 6px; }
.wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
