/* ═══════════════════════════════════════════════════════════════
   LIVE.CSS — Señal en Vivo, HLS Player, Pantalla de Mantenimiento
   Frecuencia VB Showcase
═══════════════════════════════════════════════════════════════ */

/* ─── LIVE LAYER ─────────────────────────────────────────── */
#live-layer { display: none; }
#live-player-wrap { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000; max-height: 80vh; overflow: hidden; }

@media (min-width: 769px) {
    #live-player-wrap { padding-bottom: 0; height: min(56.25vw, 80vh); }
}

#live-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }

/* ESQUINAS DECORATIVAS */
#live-player-wrap::before, #live-player-wrap::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--cyan); z-index: 20; pointer-events: none; }
#live-player-wrap::before { top: 0; left: 0; border-right: none; border-bottom: none; }
#live-player-wrap::after  { bottom: 0; right: 0; border-left: none; border-top: none; }

/* BADGE ON AIR */
#live-onair-badge { position: absolute; top: 16px; left: 16px; z-index: 30; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.8); border: 1px solid var(--red-live); padding: 5px 12px; border-radius: 20px; }
#live-onair-badge .dot { width: 7px; height: 7px; background: var(--red-live); border-radius: 50%; animation: blink 1.2s infinite; }
#live-onair-badge span { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 0.65rem; letter-spacing: 2px; color: var(--red-live); text-transform: uppercase; }

/* BOTÓN FULLSCREEN */
#live-fs-btn { position: absolute; bottom: 14px; right: 14px; z-index: 30; background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: 6px 14px; cursor: pointer; font-size: 1rem; border-radius: 4px; transition: 0.2s; }
#live-fs-btn:hover { background: var(--cyan); color: #000; border-color: var(--cyan); }

/* OVERLAY DE ESTADO (CONECTANDO / ERROR) */
#live-status { position: absolute; inset: 0; z-index: 25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(0,0,0,0.88); font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); }
#live-status.hidden { display: none; }
.live-spinner { width: 38px; height: 38px; border: 3px solid rgba(0,212,255,0.15); border-top-color: var(--cyan); border-radius: 50%; animation: spin 0.85s linear infinite; }
#live-status.error { color: var(--cyan); }
#live-status.error .live-spinner { display: none; }

/* BOTÓN REINTENTAR */
#btn-retry-live { background: none; border: 1px solid var(--red-live); color: var(--red-live); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; padding: 8px 22px; cursor: pointer; transition: 0.2s; display: none; }
#btn-retry-live:hover { background: var(--red-live); color: #fff; }
#live-status.error #btn-retry-live { display: inline-block; }

/* BOTÓN ACTIVAR SONIDO */
#live-unmute { position: absolute; bottom: 55px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.9); border: 1px solid var(--cyan); border-radius: 50px; padding: 8px 18px; display: none; align-items: center; gap: 12px; white-space: nowrap; z-index: 31; font-size: 0.7rem; color: #fff; }
#live-unmute.show { display: flex; }
#live-unmute button { background: var(--cyan); color: #000; border: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; padding: 5px 14px; cursor: pointer; border-radius: 50px; }

/* TICKER EN VIVO */
#live-ticker { width: 100%; height: 40px; background: #000; border-top: 1px solid var(--red-live); display: flex; align-items: center; overflow: hidden; }
.live-ticker-inner { display: inline-flex; white-space: nowrap; animation: ticker-scroll 80s linear infinite; }
.live-ticker-item { padding: 0 80px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,59,59,0.9); font-weight: 700; }

/* CTA LIVE */
#live-cta { background: linear-gradient(90deg, #0d0020, #1a003a); border-bottom: 1px solid rgba(140,0,255,0.2); padding: 20px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.live-cta-text { font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.live-cta-link { background: #fff; color: #000; text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 10px 26px; border-radius: 50px; white-space: nowrap; transition: 0.2s; flex-shrink: 0; }
.live-cta-link:hover { transform: scale(1.04); box-shadow: 0 4px 18px rgba(0,0,0,0.4); }

/* ─── PANTALLA DE MANTENIMIENTO TIPO CINE ────────────────── */
#live-preview-box {
    display: none; flex-direction: column; align-items: center; justify-content: center;
    margin-top: 20px; margin-bottom: 20px; max-width: 560px; width: 90%;
    transition: opacity 0.5s ease; opacity: 0;
}
#live-prev-img {
    width: 100%; max-width: 480px; aspect-ratio: 16/9; object-fit: cover;
    border-radius: 12px; border: 2px solid var(--cyan); box-shadow: 0 8px 30px rgba(0,212,255,0.35);
    margin-bottom: 14px; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
}
#live-prev-img:hover { transform: scale(1.03); box-shadow: 0 12px 40px rgba(0,212,255,0.6); }
#live-prev-play-hint { font-family: 'Barlow Condensed', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); opacity: 0.7; margin-top: -8px; margin-bottom: 8px; }
#live-prev-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 700; color: #fff; text-transform: uppercase; text-align: center; line-height: 1.1; margin-bottom: 5px; }
#live-prev-review { font-size: 0.8rem; color: var(--cyan); font-style: italic; text-align: center; line-height: 1.3; }

/* --- ESTILOS DEL CURSOR FUTURISTA FVB --- */

/* 1. Ocultar el cursor real en todo el sitio */
html, body, a, button, [onclick] {
    cursor: none !important;
}

/* 2. Contenedor principal del cursor virtual */
#custom-cursor {
    width: 20px;
    height: 20px;
    position: fixed;
    pointer-events: none;
    z-index: 99999; /* Por encima de TODOS los modales */
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

/* Ocultar cursor custom en dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    #custom-cursor { display: none !important; }
}

/* 3. El "Foco" Cyan central (brillo sólido) */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #00d4ff; /* Tu Cyan corporativo */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff; /* El "brillo" */
}

/* 4. La "Onda Radiante" (anillo animado) */
.cursor-ring {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 212, 255, 0.6); /* Cyan semitransparente */
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    /* Animación de pulso constante */
    animation: FvbCursorPulsate 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* 5. Definición de la animación de las ondas radiantes */
@keyframes FvbCursorPulsate {
    0% {
        transform: scale(0.1);
        opacity: 1;
    }
    80%, 100% {
        transform: scale(2.5); /* La onda se expande */
        opacity: 0; /* Y se desvanece */
    }
}

/* 6. Estado especial cuando pasas sobre un enlace o botón (opcional pero recomendado) */
#custom-cursor.cursor-hover .cursor-dot {
    width: 12px; /* Se agranda el foco */
    height: 12px;
    background-color: #fff; /* Cambia a blanco para contrastar */
    box-shadow: 0 0 15px #fff, 0 0 30px #00d4ff;
}
#custom-cursor.cursor-hover .cursor-ring {
    border-color: rgba(255, 255, 255, 0.8);
    animation-duration: 0.8s; /* Las ondas irradian más rápido */
}