/* ── Botón EN VIVO en el nav ─────────────────────────────── */
/* Especificidad alta para sobreescribir los estilos de .nav-item a */
.nav-item .nav-live-btn,
.nav-live-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: #e00 !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    transition: background 0.3s !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(220,0,0,0.4) !important;
}
.nav-item .nav-live-btn:hover,
.nav-live-btn:hover {
    background: #c00 !important;
    color: #fff !important;
    transform: none !important;
}
/* Neutralizar el subrayado animado del nav */
.nav-item .nav-live-btn::after { display: none !important; }

/* Versión móvil: al lado de la hamburguesa */
.header-live-wrap {
    display: none; /* oculto en desktop */
}
@media (max-width: 768px) {
    .header-live-wrap {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: 10px;
    }
    .nav-live-movil {
        font-size: 11px !important;
        padding: 5px 11px !important;
    }
    /* En móvil el botón va al lado de la hamburguesa, no dentro del menú */
    .nav-en-vivo {
        display: none !important;
    }

    /* ── Player en móvil ── */
    .live-hero {
        padding: 32px 12px 28px; /* espacio arriba y abajo en móvil */
    }
    .live-player-wrap {
        border-radius: 12px !important; /* todas las esquinas en móvil también */
    }
    .live-hero h1 {
        font-size: 1rem !important;
    }
}
.nav-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    animation: livePulse 1s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.3; transform: scale(1.5); }
}

/* ── Página EN VIVO ──────────────────────────────────────── */
.live-page { background: #0a0f1a; min-height: 100vh; }

.live-hero {
    background: linear-gradient(135deg, #0d1b2a, #1a0a0a);
    padding: 52px 20px 40px; /* top: separar del header / bottom: no cortar el player */
    text-align: center;
}
.live-badge { display: none; }
.live-hero h1 {
    color: #fff;
    font-size: clamp(1.3rem, 3vw, 2rem);
    margin: 0 0 24px;
    padding: 0 16px;
}

/* Player */
.live-player-wrap {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px; /* todas las esquinas — el player es una tarjeta flotante */
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.live-player-wrap iframe {
    width: 100%; height: 100%;
    border: none;
    display: block;
}

/* Layout principal */
.live-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* Compartir */
.live-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 28px;
}
.live-share span {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    cursor: pointer;
    border: none;
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.twitter  { background: #000;    color: #fff; }
.share-btn.copiar   { background: rgba(255,255,255,0.1); color: #fff; }

/* Secciones */
.live-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 700px) { .live-cols { grid-template-columns: 1fr; } }

.live-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.live-section-title i { color: #e00; font-size: 0.8rem; }

/* Chat YouTube */
.live-chat-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px;
    height: 380px;
    display: flex;
    flex-direction: column;
}
.live-chat-msgs {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}
.live-chat-msgs::-webkit-scrollbar { width: 4px; }
.live-chat-msgs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.chat-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.chat-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.chat-body { flex: 1; }
.chat-author {
    font-size: 11px;
    font-weight: 800;
    color: var(--azul-cielo, #29b6f6);
    margin-bottom: 2px;
}
.chat-text {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    word-break: break-word;
}
.chat-empty {
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    text-align: center;
    margin-top: 40px;
}

/* Comentarios web */
.live-comments-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px;
    height: 380px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.live-comments-form { display: flex; flex-direction: column; gap: 8px; }
.live-comments-form input,
.live-comments-form textarea {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 9px 12px;
    color: #fff;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    resize: none;
    transition: border-color 0.2s;
}
.live-comments-form input:focus,
.live-comments-form textarea:focus { border-color: rgba(255,255,255,0.35); }
.live-comments-form textarea { height: 64px; }
.live-comments-form button {
    align-self: flex-end;
    background: var(--azul-cielo, #29b6f6);
    color: #0a0f1a;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: 'Outfit', sans-serif;
}
.live-comments-form button:hover { opacity: 0.85; }

.live-comments-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.live-comments-list::-webkit-scrollbar { width: 4px; }
.live-comments-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.web-comment {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 10px 12px;
}
.web-comment-autor {
    font-size: 12px;
    font-weight: 800;
    color: #4ade80;
    margin-bottom: 3px;
}
.web-comment-texto {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    word-break: break-word;
}
.web-comment-hora {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    margin-top: 4px;
}

/* Sin directo */
.live-offline {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    color: rgba(255,255,255,0.5);
}
.live-offline i { font-size: 4rem; color: rgba(255,255,255,0.15); margin-bottom: 24px; }
.live-offline h2 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.live-offline p  { font-size: 15px; max-width: 420px; }
.live-offline a  { color: var(--azul-cielo, #29b6f6); text-decoration: none; font-weight: 700; }
