/* escena.css — Focos de escenario de JB (entrada, pantalla de entrar, cabecera de la agenda) y la agenda anual.
   Los focos solo giran (transform); con «reducir movimiento» no se ven. */
:root { --foco: rgba(247, 132, 52, .42); }

/* Haces lentos detrás de un contenedor oscuro */
.haces { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.haces i { position: absolute; top: -30%; width: 44%; height: 170%; transform-origin: 50% 0; opacity: .55; mix-blend-mode: screen;
  background: conic-gradient(from 172deg at 50% 0, transparent 0deg, var(--foco) 8deg, rgba(255, 236, 214, .3) 8.6deg, var(--foco) 9.4deg, transparent 17deg);
  animation: barrido 11s ease-in-out infinite alternate; will-change: transform; }
.haces i:nth-child(1) { left: 2%; animation-delay: -2s; }
.haces i:nth-child(2) { left: 30%; animation-duration: 14s; animation-delay: -7s; }
.haces i:nth-child(3) { left: 60%; animation-duration: 9s; animation-direction: alternate-reverse; }
@keyframes barrido { from { transform: rotate(-17deg); } to { transform: rotate(17deg); } }

/* Pantallas de entrar: escenario oscuro a pantalla completa, la tarjeta delante */
.escenario-fondo { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(60% 45% at 50% 0%, rgba(247, 132, 52, .2), transparent 70%), #0b0b0b; }
.escenario-fondo ~ .entrar .ayuda { color: var(--gris); }

/* Cabecera de la agenda: escenario con focos */
.escenario { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; color: #fff; padding: 24px; margin-bottom: 18px;
  background: radial-gradient(70% 60% at 50% -10%, rgba(247, 132, 52, .22), transparent 70%), #0b0b0b; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); }
.escenario > :not(.haces) { position: relative; z-index: 1; }
.escenario h1 { color: #fff; }
.escenario .sub { color: #cfcfcf; }
.boton.oscuro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.boton.oscuro:hover { background: rgba(255, 255, 255, .1); }
.anio-nav { display: flex; align-items: center; gap: 8px; }
.anio-nav b { font-size: 26px; min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; }
.anio-nav .boton { width: 44px; padding: 0; font-size: 22px; }

/* Entrada al abrir la app (una vez por sesión) */
.entrada { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; background: #0b0b0b; pointer-events: none;
  animation: telon .45s ease 1s both; }
@keyframes telon { to { opacity: 0; } }
.foco-entrada { position: absolute; top: -20%; left: 50%; width: 60%; height: 150%; margin-left: -30%; transform-origin: 50% 0; opacity: .7;
  background: conic-gradient(from 172deg at 50% 0, transparent 0deg, var(--foco) 8deg, transparent 17deg); animation: barrido 1.4s ease-in-out infinite alternate; }
.foco-entrada + .foco-entrada { animation-duration: 1.1s; animation-direction: alternate-reverse; }
.entrada-logo { position: relative; display: grid; justify-items: center; gap: 10px; animation: subir .6s cubic-bezier(.16, 1, .3, 1) .1s both; }
.entrada-logo img { height: 110px; width: auto; }
.entrada-logo span { color: #bdbdbd; letter-spacing: .4em; font-weight: 700; font-size: 12px; }
@keyframes subir { from { transform: translateY(18px); opacity: 0; } }

/* Agenda anual */
.leyenda-cal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--gris); font-size: 13.5px; margin: 0 0 14px; }
.leyenda-cal span { display: inline-flex; align-items: center; gap: 6px; }
.muestra { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.muestra.con-evento { background: var(--naranja-suave); box-shadow: inset 0 0 0 1.5px var(--naranja); }
.muestra.varios { background: var(--naranja); }
.muestra.hoy { box-shadow: inset 0 0 0 2px var(--negro); }
.cal-anio { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cal-mes { background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; padding: 12px; }
.cal-mes h3 { margin: 0 0 8px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.cal-mes h3 span { font-size: 12px; color: var(--naranja-texto); font-weight: 700; }
.cal-semana, .cal-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-semana span { text-align: center; font-size: 11px; color: var(--gris); font-weight: 700; padding-bottom: 2px; }
.cal-dia { aspect-ratio: 1; min-height: 32px; border: 0; border-radius: 8px; background: none; color: var(--tinta); cursor: pointer;
  font: 600 13px var(--letra); font-variant-numeric: tabular-nums; transition: background .12s ease, transform .12s ease; }
.cal-dia:hover { background: var(--fondo); transform: scale(1.06); }
.cal-dia.pasado { color: #9a9a9a; }
.cal-dia.con-evento { background: var(--naranja-suave); color: var(--negro); box-shadow: inset 0 0 0 1.5px var(--naranja); }
.cal-dia.varios { background: var(--naranja); }
.cal-dia.hoy { box-shadow: inset 0 0 0 2px var(--negro); }
.cal-dia.con-evento.hoy { box-shadow: inset 0 0 0 2px var(--negro), inset 0 0 0 4px var(--naranja); }
.cal-dia.elegido { background: var(--negro); color: #fff; box-shadow: none; }
.panel-dia { margin-bottom: 16px; border: 2px solid var(--naranja); scroll-margin-top: 80px; outline: none; }
.panel-dia .encabezado h2 { margin: 0; }

@media (max-width: 1100px) { .cal-anio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cal-anio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .cal-anio { grid-template-columns: 1fr; }
  .cal-dia { min-height: 40px; font-size: 15px; }
  .escenario { padding: 18px 16px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .haces, .entrada { display: none !important; } .cal-dia:hover { transform: none; } }
@media print { .haces, .entrada, .escenario-fondo { display: none !important; } }
