@property --giro { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #050505; color: #FFFFFF; font-family: Montserrat, 'Noto Sans SC', system-ui, sans-serif; }
a { color: #39FF7A; }
a:hover { color: #8CFFB4; }
a:focus-visible { outline: 2px solid #39FF7A; outline-offset: 3px; }

.pagina { max-width: 1200px; min-height: 100vh; margin: 0 auto; padding: 56px 20px 64px; display: flex; flex-direction: column; gap: 72px; }
main { display: flex; flex-direction: column; gap: 72px; }

/* Cabecera */
.cabecera { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.led { width: 100%; padding: 2px; border-radius: 24px; background: conic-gradient(from var(--giro), #0B3D1C 0%, #0B3D1C 68%, #39FF7A 85%, #0B3D1C 100%); animation: led 7s linear infinite; }
@keyframes led { to { --giro: 360deg; } }
.grid-bg { background-color: #080C09; background-image: linear-gradient(rgba(57,255,122,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(57,255,122,.07) 1px, transparent 1px); background-size: 40px 40px; }
.banner { height: 280px; border-radius: 22px; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-end; padding: 20px; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #7FA58A; }
.banner.con-imagen { padding: 0; }
.banner img, .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto { margin-top: 24px; width: 168px; height: 168px; border-radius: 50%; overflow: hidden; border: 4px solid #39FF7A; box-shadow: 0 0 40px rgba(57,255,122,.45); background: #0E140F; display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 900; color: #39FF7A; }
.identidad { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; max-width: 100%; }
h1 { margin: 0; font-size: clamp(44px, 8vw, 72px); font-weight: 900; letter-spacing: -2px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.descripcion { margin: 0; font-size: 14px; font-weight: 500; color: #A9B8AD; }

/* En vivo */
.vivo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.vivo-etiqueta, .vivo-red { display: inline-flex; align-items: center; min-height: 38px; border-radius: 999px; font-weight: 900; letter-spacing: 1px; }
.vivo-etiqueta { gap: 8px; padding: 8px 16px; background: #39FF7A; color: #050505; font-size: 13px; }
.vivo-red { gap: 6px; padding: 8px 14px; border: 1.5px solid #39FF7A; color: #39FF7A; font-size: 12px; text-decoration: none; }
.punto { width: 8px; height: 8px; border-radius: 50%; background: #050505; animation: punto 1.4s ease-in-out infinite; }
@keyframes punto { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Redes */
.redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1.5px solid #1F3A26; border-radius: 999px; background: #0C120D; color: #FFFFFF; font-size: 14px; font-weight: 900; letter-spacing: 1px; text-decoration: none; transition: all .2s; }
.pill.en-vivo { border-color: #39FF7A; color: #39FF7A; animation: vivo 1.4s ease-in-out infinite; }
.pill:hover { background: #39FF7A; color: #050505; box-shadow: 0 0 24px rgba(57,255,122,.45); }
@keyframes vivo { 0%, 100% { box-shadow: 0 0 6px rgba(57,255,122,.35); } 50% { box-shadow: 0 0 0 4px rgba(57,255,122,.22), 0 0 30px rgba(57,255,122,.85); } }

/* Secciones */
.seccion { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.encabezado { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.encabezado-izq { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.titulo { display: flex; align-items: center; gap: 14px; min-width: 0; }
.icono { flex: 0 0 40px; height: 40px; border-radius: 10px; background: #0C120D; border: 1.5px solid #1F3A26; display: flex; align-items: center; justify-content: center; color: #39FF7A; }
.icono img { height: 20px; width: auto; display: block; }
h2 { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -.5px; text-transform: uppercase; min-width: 0; overflow-wrap: anywhere; }
.rayita { flex: 0 0 14px; height: 30px; background: linear-gradient(180deg, #0B8F3A, #39FF7A); transform: skewX(-20deg); }
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.periodo { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #A9B8AD; }
.stat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .5px; }
.stat.sube { background: rgba(57,255,122,.1); border: 1.5px solid #1F6B3A; color: #39FF7A; }
.stat.baja { background: rgba(255,77,94,.1); border: 1.5px solid #6B1F27; color: #FF6B78; }
.cta { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-decoration: none; }
.seccion-desc { margin: -8px 0 0; font-size: 14px; font-weight: 500; color: #A9B8AD; }
.filas { display: flex; flex-direction: column; gap: 28px; }
.fila { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
h3 { margin: 0; font-size: 15px; font-weight: 900; letter-spacing: 1px; color: #39FF7A; }
.carrusel { display: flex; gap: 20px; overflow-x: auto; padding: 4px 0 10px; scroll-snap-type: x mandatory; scrollbar-color: #1F3A26 transparent; }
.carrusel::-webkit-scrollbar { height: 6px; }
.carrusel::-webkit-scrollbar-thumb { background: #1F3A26; border-radius: 3px; }

.card { flex: 0 0 var(--ancho); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 10px; border: 1.5px solid #1A2B1D; border-radius: 18px; background: #0C120D; color: #FFFFFF; text-decoration: none; transition: all .2s; }
.card:hover { border-color: #39FF7A; color: #FFFFFF; transform: translateY(-4px); }
.mini { aspect-ratio: var(--forma); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.mini > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: relative; width: 52px; height: 52px; border-radius: 50%; background: rgba(5,5,5,.75); border: 1.5px solid #39FF7A; display: flex; align-items: center; justify-content: center; color: #39FF7A; }
.numero { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 900; padding: 4px 8px; border-radius: 6px; background: #050505; color: #39FF7A; }
.card-texto { display: flex; flex-direction: column; gap: 4px; padding: 0 4px 4px; }
.card-titulo { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-fecha { font-size: 12px; font-weight: 500; color: #8FA394; }

/* Calendario */
.eventos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.evento { display: flex; gap: 16px; padding: 18px; border: 1.5px solid #1A2B1D; border-radius: 18px; background: #0C120D; }
.dia { flex: 0 0 64px; height: 72px; border-radius: 12px; background: #050505; border: 1.5px solid #39FF7A; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.dia span { font-size: 11px; font-weight: 900; color: #39FF7A; letter-spacing: 1px; }
.dia strong { font-size: 24px; font-weight: 900; }
.evento-texto { display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.evento-titulo { font-size: 16px; font-weight: 900; }
.evento-nota { font-size: 13px; font-weight: 500; color: #A9B8AD; line-height: 1.4; }
.evento-hora { font-size: 12px; font-weight: 700; color: #39FF7A; }
.vacio { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; border: 1.5px dashed #1F3A26; border-radius: 18px; background: #080C09; text-align: center; color: #39FF7A; }
.vacio strong { font-size: 18px; font-weight: 900; letter-spacing: .5px; color: #FFFFFF; }
.vacio span { font-size: 14px; font-weight: 500; color: #A9B8AD; }

/* Avisos de texto */
#arriba { display: flex; flex-direction: column; gap: 16px; margin-bottom: -40px; }
.aviso-texto { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; border: 1.5px solid #39FF7A; border-radius: 18px; background: linear-gradient(90deg, rgba(57,255,122,.14), rgba(57,255,122,.04)); box-shadow: 0 0 28px rgba(57,255,122,.12); min-width: 0; }
.aviso-cuerpo { display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.aviso-cuerpo h2 { font-size: 20px; }
.aviso-cuerpo p { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.5; color: #C9D4CC; white-space: pre-line; }

/* Botones de redes: cargando y ✓ después del clic (solo aparecen al dar clic) */
.seguir-estado { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 10px; }
.seguir-estado.girando { border: 2px solid rgba(57,255,122,.25); border-top-color: #39FF7A; border-radius: 50%; animation: girar .8s linear infinite; }
.seguir-estado.listo { color: #39FF7A; animation: aparecer .35s ease-out; }
.pill.seguida { border-color: #1F6B3A; }
.pill:hover .seguir-estado.listo { color: #050505; }
.pill:hover .seguir-estado.girando { border-color: rgba(5,5,5,.25); border-top-color: #050505; }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes aparecer { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Posts EXCLUSIVOS: borrosos con candado hasta que se abren */
.aviso-texto.bloqueado { position: relative; min-height: 150px; overflow: hidden; transition: min-height .6s ease; }
.aviso-texto.bloqueado.abierto { min-height: 0; }
.aviso-texto.bloqueado .aviso-cuerpo { transition: filter .9s ease, opacity .9s ease; }
.aviso-texto.bloqueado:not(.abierto) .aviso-cuerpo, .aviso-texto.bloqueado .aviso-cuerpo.borroso { filter: blur(7px); opacity: .65; user-select: none; -webkit-user-select: none; pointer-events: none; }
.candado { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; background: rgba(5,5,5,.35); transition: opacity .6s ease; }
.abierto .candado { opacity: 0; pointer-events: none; }
.candado-icono { width: 44px; height: 44px; border-radius: 50%; background: #050505; border: 1.5px solid #39FF7A; color: #39FF7A; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 24px rgba(57,255,122,.35); }
.candado strong { font-size: 18px; font-weight: 900; letter-spacing: 2px; color: #39FF7A; }
.candado span:last-child { font-size: 13px; font-weight: 700; color: #FFFFFF; }

footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; padding-top: 16px; border-top: 1px solid #1A2B1D; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #7FA58A; }

@media (max-width: 600px) {
  .banner { height: 200px; align-items: flex-start; }
  .pagina, main { gap: 56px; }
  .redes { gap: 10px; }
  .pill { padding: 0 18px; font-size: 13px; }
  h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Idioma */
.idioma { position: absolute; z-index: 20; top: 10px; right: max(20px, calc(50% - 580px)); }
.idioma-boton { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1.5px solid #1F3A26; background: #0C120D; color: #A9B8AD; font-family: inherit; font-size: 11px; font-weight: 900; letter-spacing: 1px; cursor: pointer; }
.idioma-boton:hover, .idioma-boton[aria-expanded=true] { border-color: #39FF7A; color: #39FF7A; }
.idioma-menu { position: absolute; right: 0; top: 38px; min-width: 150px; padding: 6px; border-radius: 14px; border: 1.5px solid #1F6B3A; background: #080C09; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 8px 32px #000; }
.idioma-menu button { min-height: 40px; padding: 0 12px; border: none; border-radius: 10px; background: transparent; color: #C9D4CC; font-family: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.idioma-menu button:hover { background: #0C120D; color: #39FF7A; }
.idioma-menu button[aria-pressed=true] { color: #39FF7A; font-weight: 900; }
@media print { .idioma { display: none !important; } }

/* Páginas legales */
.legal { max-width: 860px; gap: 40px; }
.legal header { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.legal h1 { font-size: clamp(30px, 6vw, 48px); letter-spacing: -1px; line-height: 1.1; }
.legal main { gap: 16px; }
.legal section { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1.5px solid #1A2B1D; border-radius: 18px; background: #0C120D; min-width: 0; }
.legal h2 { font-size: 18px; letter-spacing: 0; color: #39FF7A; }
.legal section p { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.65; color: #C9D4CC; overflow-wrap: anywhere; }