/* ========================================== */
/* ESTILOS GENERALES DEL CUERPO              */
/* ========================================== */
body {
    font-size: 1.5vw;
    font-family: Arial, sans-serif;
    text-align: center;
    background: #000000 url() bottom / cover no-repeat;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    background-attachment: fixed;
}

#lunaradio * {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif !important;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ========================================== */
/* CONTENEDOR PRINCIPAL DEL REPRODUCTOR      */
/* ========================================== */
#lunaradio {
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 0;
}

/* ========================================== */
/* RELOJ DIGITAL - COMPACTO AZUL             */
/* ========================================== */

.clock-counter {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 30px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    position: fixed;
    top: 12px;
    left: 8px;
    z-index: 2;
    height: auto;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    gap: 8px;
    min-width: 110px;
    transition: all 0.3s ease;
    cursor: default;
}

.clock-counter:hover {
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 
        0 4px 25px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* Icono del reloj */
.clock-counter .clock-icon {
    font-size: 15px;
    color: #60a5fa;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.12);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.clock-counter:hover .clock-icon {
    background: rgba(96, 165, 250, 0.2);
    transform: scale(1.05);
}

/* Contenedor de info - EN COLUMNA */
.clock-counter .clock-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    gap: 1px;
}

/* HORA - arriba */
.clock-counter .clock-time {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1px;
}

/* AM/PM - junto a la hora */
.clock-counter .clock-ampm {
    font-size: 10px;
    font-weight: 600;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
    padding: 0px 5px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    margin-left: 2px;
    line-height: 16px;
}

/* FECHA - abajo */
.clock-counter .clock-date {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.clock-counter:hover .clock-date {
    color: rgba(255, 255, 255, 0.7);
}

/* Eliminar separadores */
.clock-counter .clock-info::after {
    display: none;
}

/* ========================================== */
/* RESPONSIVE                                 */
/* ========================================== */

@media (max-width: 768px) {
    .clock-counter {
        padding: 3px 10px;
        min-height: 32px;
        min-width: 95px;
        gap: 6px;
        top: 10px;
        left: 6px;
        border-radius: 25px;
    }

    .clock-counter .clock-icon {
        font-size: 13px;
        width: 22px;
        height: 22px;
    }

    .clock-counter .clock-time {
        font-size: 14px;
    }

    .clock-counter .clock-ampm {
        font-size: 9px;
        padding: 0px 4px;
        line-height: 14px;
    }

    .clock-counter .clock-date {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .clock-counter {
        padding: 3px 8px;
        min-height: 28px;
        min-width: 80px;
        gap: 5px;
        top: 8px;
        left: 4px;
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.8);
    }

    .clock-counter .clock-icon {
        font-size: 11px;
        width: 18px;
        height: 18px;
        background: rgba(96, 165, 250, 0.1);
    }

    .clock-counter:hover .clock-icon {
        background: rgba(96, 165, 250, 0.15);
    }

    .clock-counter .clock-time {
        font-size: 12px;
        gap: 0px;
    }

    .clock-counter .clock-ampm {
        font-size: 8px;
        padding: 0px 3px;
        line-height: 12px;
        margin-left: 1px;
    }

    .clock-counter .clock-date {
        font-size: 7px;
    }
}

@media (max-width: 380px) {
    .clock-counter {
        padding: 2px 6px;
        min-height: 24px;
        min-width: 65px;
        gap: 4px;
        top: 6px;
        left: 3px;
        border-radius: 16px;
    }

    .clock-counter .clock-icon {
        font-size: 9px;
        width: 16px;
        height: 16px;
    }

    .clock-counter .clock-time {
        font-size: 10px;
    }

    .clock-counter .clock-ampm {
        font-size: 7px;
        padding: 0px 3px;
        line-height: 10px;
    }

    .clock-counter .clock-date {
        font-size: 6px;
    }
}


/* ========================================== */
/* BOTÓN DE EMOJIS PARA EL CHAT               */
/* ========================================== */
.emoji-button {
    font-size: 20px;
    width: 40px;
    height: 30px;
    border: none;
    border-radius: 20%;
    background-color: #f3f3f3;
    cursor: pointer;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    margin-left: 5px;
}

.emoji-button:hover {
    background-color: #e0e0e0;
}

/* ========================================== */
/* SELECTOR DE EMOJIS (DESPLEGABLE)          */
/* ========================================== */
.emoji-picker {
    position: absolute;
    bottom: 60px;
    left: 0px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    display: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.emoji-picker span {
    font-size: 20px;
    cursor: pointer;
    margin: 5px;
    display: inline-block;
    transition: transform 0.2s;
}

.emoji-picker span:hover {
    transform: scale(1.2);
}

/* ========================================== */
/* BOTONES FLOTANTES (Anuncios, Info, Contacto) */
/* ========================================== */
#comment-btn,
#info-btn,
#contact-btn {
    position: fixed;
    bottom: 2vh;
    cursor: pointer;
    z-index: 2;
    font-size: 2vh;
    padding: 2vh;
    border-radius: 50%;
    background-color: #ffffff;
}

@media (max-width: 100vh) {
    body {
        font-size: 1vw;
    }

    #comment-btn,
    #info-btn,
    #contact-btn {
        font-size: 3vw;
        padding: 1vw;
    }
}

#comment-btn {
    left: 2vw;
    margin-right: 1px;
}

#info-btn {
    left: 12vw;
    margin-right: 1px;
}

#contact-btn {
    left: 22vw;
    margin-right: 1px;
}

/* ========================================== */
/* MODALES - ESTILOS BASE (FONDO BLANCO)     */
/* ========================================== */
#comment-modal,
#info-modal,
#contact-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #ffffff;
    padding: 24px;
    border-radius: 20px;
    border: 2px solid #1a1a1a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 420px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
}

#comment-modal.show,
#info-modal.show,
#contact-modal.show {
    display: block;
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

/* ========================================== */
/* BOTÓN DE CIERRE (X) AZUL                  */
/* ========================================== */
.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    cursor: pointer;
    font-size: 22px;
    color: #ffffff;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0084ff;
    font-weight: 300;
    border: none;
}

.modal-close-btn:hover {
    background: #0066cc;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4);
}

.modal-close-btn:active {
    transform: rotate(90deg) scale(0.9);
}

/* ========================================== */
/* TÍTULOS DE MODALES                        */
/* ========================================== */
.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Rajdhani', Arial, sans-serif;
}

.modal-title i {
    font-size: 22px;
    color: #1a1a1a;
}

.modal-title .badge {
    font-size: 11px;
    background: #1a1a1a;
    padding: 3px 12px;
    border-radius: 20px;
    color: #fff;
    font-weight: 500;
    margin-left: auto;
}

/* ========================================== */
/* SCROLLBARS PERSONALIZADAS                 */
/* ========================================== */
#comments-container::-webkit-scrollbar,
#info-container::-webkit-scrollbar,
#contact-container::-webkit-scrollbar {
    width: 5px;
}

#comments-container::-webkit-scrollbar-track,
#info-container::-webkit-scrollbar-track,
#contact-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

#comments-container::-webkit-scrollbar-thumb,
#info-container::-webkit-scrollbar-thumb,
#contact-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a1a1a, #333);
    border-radius: 10px;
}

#comments-container::-webkit-scrollbar-thumb:hover,
#info-container::-webkit-scrollbar-thumb:hover,
#contact-container::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/* Firefox */
#comments-container,
#info-container,
#contact-container {
    scrollbar-width: thin;
    scrollbar-color: #1a1a1a #f0f0f0;
}

/* ========================================== */
/* CONTENEDORES DE CADA MODAL                */
/* ========================================== */
#comments-container {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 12px;
}

#info-container {
    max-height: 400px;
    overflow-y: auto;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.7;
    padding-right: 4px;
}

#contact-container {
    text-align: center;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

/* ========================================== */
/* CARRUSEL DE PUBLICIDAD - SIN RECORTAR     */
/* ========================================== */
#ad-images {
    text-align: center;
    margin: 0 auto;
    padding: 0;
    width: 400px;
    height: 340px;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    background: #f5f5f5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Para la última imagen que tiene height 350 */
#ad-images img[height="350"] {
    height: 350px !important;
}

#ad-images img {
    display: none;
    width: 400px !important;
    height: 340px !important;
    /* IMPORTANTE: sin object-fit para que NO se recorte */
    margin: 0 auto;
    flex-shrink: 0;
}

/* La primera imagen se muestra por defecto */
#ad-images img:first-child {
    display: block;
}

/* Las imágenes activas se muestran */
#ad-images img.active {
    display: block;
}

/* ========================================== */
/* INDICADORES DEL CARRUSEL                  */
/* ========================================== */
.ad-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.ad-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ad-dot.active {
    background: #1a1a1a;
    width: 24px;
    border-radius: 5px;
}

.ad-dot:hover {
    background: #999;
}

/* ========================================== */
/* RESPONSIVE                                 */
/* ========================================== */
@media (max-width: 768px) {
    #ad-images {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 400/340;
    }

    #ad-images img {
        width: 100% !important;
        height: 100% !important;
    }

    #ad-images img[height="350"] {
        height: 100% !important;
    }
}

@media (max-width: 480px) {
    #ad-images {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 400/340;
    }

    #ad-images img {
        width: 100% !important;
        height: 100% !important;
    }

    #ad-images img[height="350"] {
        height: 100% !important;
    }
}

/* ========================================== */
/* ESTILOS PARA INFORMACIÓN                   */
/* ========================================== */
#info-container .highlight {
    color: #1a1a1a;
    font-weight: 700;
}

#info-container img {
    border-radius: 12px;
    margin: 12px auto;
    display: block;
    max-width: 120px;
    border: 2px solid #e0e0e0;
}

#info-container hr {
    border: none;
    border-top: 2px solid #f0f0f0;
    margin: 16px 0;
}

#info-container p {
    color: #1a1a1a !important;
}

/* ========================================== */
/* ESTILOS PARA CONTACTO (TEXTO NEGRO)       */
/* ========================================== */
#contact-container * {
    color: #1a1a1a !important;
}

#contact-container p {
    color: #1a1a1a !important;
}

#contact-container span {
    color: #1a1a1a !important;
}

#contact-modal .social-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    font-family: 'Rajdhani', Arial, sans-serif !important;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    border: 2px solid #1a1a1a !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

#contact-modal .social-btn:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

#contact-modal .social-btn:active {
    transform: scale(0.95) !important;
}

#contact-modal .social-btn[href*="facebook"] {
    background: #1877f2 !important;
    color: #fff !important;
    border-color: #1877f2 !important;
}

#contact-modal .social-btn[href*="facebook"]:hover {
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4) !important;
}

#contact-modal .social-btn[href*="instagram"] {
    background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d) !important;
    color: #fff !important;
    border-color: #833ab4 !important;
}

#contact-modal .social-btn[href*="instagram"]:hover {
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4) !important;
}

#contact-modal .social-btn[href*="whatsapp"] {
    background: #25d366 !important;
    color: #fff !important;
    border-color: #25d366 !important;
}

#contact-modal .social-btn[href*="whatsapp"]:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
}

#contact-modal .social-btn[href*="tiktok"] {
    background: #000000 !important;
    color: #fff !important;
    border-color: #1a1a1a !important;
}

#contact-modal .social-btn[href*="tiktok"]:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: #f0f0f0;
    transform: translateX(4px);
}

.contact-info-item i {
    font-size: 18px;
    width: 24px;
    color: #1a1a1a !important;
}

.contact-info-item span {
    color: #1a1a1a !important;
    font-size: 14px;
}

.location-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #e8e8e8;
}

.location-box .title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #1a1a1a !important;
    font-weight: 600;
    font-size: 14px;
}

.location-box .title i {
    color: #1a1a1a !important;
}

.location-box .address {
    color: #1a1a1a !important;
    font-size: 13px;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.location-box iframe {
    border-radius: 10px;
    border: 1px solid #e0e0e0 !important;
}

.schedule-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
    border: 1px solid #e8e8e8;
}

.schedule-box .title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    color: #1a1a1a !important;
    font-weight: 600;
    font-size: 14px;
}

.schedule-box .title i {
    color: #1a1a1a !important;
}

.schedule-box p {
    color: #1a1a1a !important;
    font-size: 13px;
    margin: 0;
    line-height: 1.7;
}

/* ========================================== */
/* RESPONSIVE                                 */
/* ========================================== */
@media (max-width: 768px) {
    #comment-modal,
    #info-modal,
    #contact-modal {
        max-width: 95vw;
        padding: 18px;
        max-height: 90vh;
        border-width: 2px;
    }

    #info-container,
    #contact-container {
        max-height: 350px !important;
    }

    #contact-modal .social-btn {
        font-size: 13px !important;
        padding: 10px !important;
    }

    .location-box iframe {
        height: 140px !important;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-close-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 12px;
        right: 14px;
    }
}

@media (max-width: 480px) {
    #comment-modal,
    #info-modal,
    #contact-modal {
        max-width: 98vw;
        padding: 14px;
        max-height: 92vh;
        border-width: 2px;
    }

    #info-container,
    #contact-container {
        max-height: 280px !important;
    }

    #contact-container>div:first-child {
        grid-template-columns: 1fr !important;
    }

    #contact-modal .social-btn {
        font-size: 12px !important;
        padding: 10px !important;
    }

    .location-box iframe {
        height: 120px !important;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-close-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: 10px;
        right: 12px;
    }
}

/* ========================================== */
/* ICONOS DE REDES SOCIALES - COLORES        */
/* ========================================== */
/* Forzar que los iconos de redes sociales tengan sus colores originales */
#contact-modal .social-btn i {
    color: #ffffff !important;
}

/* Si quieres que el icono de Facebook sea azul */
#contact-modal .social-btn[href*="facebook"] i {
    color: #ffffff !important;
}

/* Si quieres que el icono de Instagram sea blanco con gradiente */
#contact-modal .social-btn[href*="instagram"] i {
    color: #ffffff !important;
}

/* Si quieres que el icono de WhatsApp sea verde */
#contact-modal .social-btn[href*="whatsapp"] i {
    color: #ffffff !important;
}

/* Si quieres que el icono de TikTok sea blanco */
#contact-modal .social-btn[href*="tiktok"] i {
    color: #ffffff !important;
}

/* ========================================== */
/* LOGO EN ESQUINA SUPERIOR DERECHA          */
/* ========================================== */
#imagen-esquina {
    position: fixed;
    top: 1px;
    right: 1px;
    z-index: 1;
}

#imagen-esquina img {
    width: 70px;
    height: auto;
}

#imagen-esquina img {
    animation: radioSignal 2s ease-in-out infinite;
}

@keyframes radioSignal {
    0% {
        opacity: 0.8;
        transform: scale(0.95);
        filter: drop-shadow(0 0 5px rgba(0, 132, 255, 0.2));
    }
    30% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 132, 255, 0.6));
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
        filter: drop-shadow(0 0 15px rgba(0, 132, 255, 0.4));
    }
    70% {
        opacity: 0.6;
        transform: scale(0.98);
        filter: drop-shadow(0 0 5px rgba(0, 132, 255, 0.1));
    }
    100% {
        opacity: 0.8;
        transform: scale(0.95);
        filter: drop-shadow(0 0 5px rgba(0, 132, 255, 0.2));
    }
}

/* ========================================== */
/* VENTANA DE "SIN CONEXIÓN"                 */
/* ========================================== */
#offline-message h1 {
    font-size: 7vw;
}

/* ========================================== */
/* VIDEO DE FONDO                            */
/* ========================================== */
#video-background {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
}

/* ========================================== */
/* ESTILOS DEL CHAT - AMBOS LADOS AZULES      */
/* ========================================== */
#chat-messages {
    scroll-behavior: smooth;
    background: #f8f9fa !important;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    padding: 8px 14px;
    border-radius: 16px;
    margin: 3px 0;
    animation: msgAppear 0.3s ease;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.chat-msg.right {
    align-self: flex-end;
    background: linear-gradient(135deg, #0084ff, #00a3ff);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-msg.left {
    align-self: flex-start;
    background: linear-gradient(135deg, #4a9eff, #6bb5ff);
    color: #ffffff;
    border-bottom-left-radius: 4px;
}

.chat-msg .text {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.chat-msg .time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 3px;
    align-self: flex-end;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes msgAppear {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#chat-messages::-webkit-scrollbar {
    width: 4px;
}

#chat-messages::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 10px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: #0084ff;
    border-radius: 10px;
}

#chat-input:focus {
    border-color: #0084ff;
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
}

.emoji-picker {
    z-index: 100;
}

.emoji-picker span:hover {
    background: #f0f0f0;
    border-radius: 6px;
}

.chat-welcome {
    text-align: center;
    padding: 16px;
    background: #f0f2f5;
    border-radius: 14px;
    margin: 6px 0;
}

@media (max-width: 768px) {
    .chat-msg {
        max-width: 85%;
        padding: 6px 12px;
    }

    #chat-messages {
        height: 250px !important;
    }

    .chat-msg .text {
        font-size: 13px;
    }
}

/* ========================================== */
/* BOTÓN FLOTANTE DEL CHAT (DERECHA)         */
/* ========================================== */
#chat-btn {
    position: fixed;
    bottom: 2vh;
    right: 2vw;
    background: linear-gradient(135deg, #0084ff, #6c5ce7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2vh;
    padding: 2vh;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 132, 255, 0.4);
    animation: pulse 1.5s infinite;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    z-index: 100;
}

#chat-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 35px rgba(0, 132, 255, 0.5);
    background: linear-gradient(135deg, #0099ff, #7b5ce7);
}

#chat-btn:active {
    transform: scale(0.85);
    box-shadow: 0 2px 10px rgba(0, 132, 255, 0.3);
}

#chat-btn i {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

#chat-btn:hover i {
    transform: rotate(-10deg) scale(1.05);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 132, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 30px rgba(0, 132, 255, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 132, 255, 0.4);
    }
}

@media (max-width: 768px) {
    #chat-btn {
        font-size: 2vh;
        padding: 2vh;
        bottom: 2vh;
        right: 2vw;
    }
}

@media (max-width: 480px) {
    #chat-btn {
        font-size: 2vh;
        padding: 2vh;
        bottom: 2vh;
        right: 2vw;
    }
}



/* ========================================== */
/* MENSAJE DE BIENVENIDA - VERSIÓN MINIMAL   */
/* ========================================== */

.welcome-chat-message {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 16px 20px;
    margin: 8px 0 14px 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: welcomeSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Barra lateral decorativa */
.welcome-chat-message::after {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: linear-gradient(180deg, #0084ff, #6c5ce7);
    border-radius: 0 4px 4px 0;
}

.welcome-chat-message .welcome-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 132, 255, 0.15);
    border: 1px solid rgba(0, 132, 255, 0.2);
    animation: pulseGlow 2s ease-in-out infinite;
}

.welcome-chat-message .welcome-content {
    flex: 1;
}

.welcome-chat-message .welcome-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    background: linear-gradient(90deg, #fff, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-chat-message .welcome-subtitle {
    font-size: 12px;
    opacity: 0.7;
    color: #ccc;
}

.welcome-chat-message .welcome-decoration {
    font-size: 18px;
    flex-shrink: 0;
    animation: spinSlow 6s linear infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 132, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 132, 255, 0.3);
    }
}

@keyframes spinSlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .welcome-chat-message {
        padding: 14px 16px;
        gap: 12px;
        border-radius: 14px;
    }

    .welcome-chat-message .welcome-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }

    .welcome-chat-message .welcome-title {
        font-size: 13px;
    }

    .welcome-chat-message .welcome-subtitle {
        font-size: 11px;
    }

    .welcome-chat-message .welcome-decoration {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .welcome-chat-message {
        padding: 12px 14px;
        gap: 10px;
        border-radius: 12px;
    }

    .welcome-chat-message .welcome-icon {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }

    .welcome-chat-message .welcome-title {
        font-size: 12px;
    }

    .welcome-chat-message .welcome-subtitle {
        font-size: 10px;
    }

    .welcome-chat-message .welcome-decoration {
        font-size: 14px;
    }
}
/* ========================================== */
/* ESTILOS UNIFICADOS PARA EL MODAL DEL CHAT */
/* ========================================== */

#chat-modal {
    display: none !important;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#chat-modal.show {
    display: block !important;
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

/* El botón de cierre usa la misma clase que los demás modales */
#chat-modal .modal-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    cursor: pointer;
    font-size: 22px;
    color: #ffffff;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0084ff;
    font-weight: 300;
    border: none;
}

#chat-modal .modal-close-btn:hover {
    background: #0066cc;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4);
}

#chat-modal .modal-close-btn:active {
    transform: rotate(90deg) scale(0.9);
}

/* ========================================== */
/* RESPONSIVE PARA EL MODAL DEL CHAT          */
/* ========================================== */

@media (max-width: 768px) {
    #chat-modal {
        max-width: 95vw;
        padding: 18px;
        max-height: 90vh;
        border-width: 2px;
    }
    
    #chat-modal .modal-close-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 12px;
        right: 14px;
    }
}

@media (max-width: 480px) {
    #chat-modal {
        max-width: 98vw;
        padding: 14px;
        max-height: 92vh;
        border-width: 2px;
    }
    
    #chat-modal .modal-close-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: 10px;
        right: 12px;
    }
}
/* ========================================== */
/* NOTIFICACIONES PERSONALIZADAS             */
/* ========================================== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    max-width: 380px;
    width: 100%;
    pointer-events: none;
}

.notification-item {
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(120%);
    animation: slideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: all;
    cursor: pointer;
}

.notification-item.hide {
    animation: slideOut 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.notification-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0084ff, #6c5ce7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.notification-item .content {
    flex: 1;
}

.notification-item .content .title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    font-family: 'Rajdhani', Arial, sans-serif;
}

.notification-item .content .body {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.4;
    font-family: 'Rajdhani', Arial, sans-serif;
}

.notification-item .content .time {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    margin-top: 4px;
    font-family: 'Rajdhani', Arial, sans-serif;
}

.notification-item .close-notif {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.4);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-item .close-notif:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Animaciones */
@keyframes slideIn {
    from {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }
}

/* ========================================== */
/* RESPONSIVE                                 */
/* ========================================== */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }

    .notification-item {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .notification-item .icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .notification-item .content .title {
        font-size: 14px;
    }

    .notification-item .content .body {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .notification-container {
        top: 8px;
        right: 8px;
        left: 8px;
    }

    .notification-item {
        padding: 12px 14px;
        border-radius: 12px;
        gap: 10px;
    }

    .notification-item .icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .notification-item .content .title {
        font-size: 13px;
    }

    .notification-item .content .body {
        font-size: 11px;
    }
}

/* ========================================== */
/* TEXTO TRANSMITIENDO EN VIVO - CENTRO      */
/* ========================================== */

#live-center {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none; /* Permite hacer clic a través de él */
    
    margin-top: 40px; /* Baja un poco el texto */
}

.live-center-content {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 16px 32px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    animation: liveCenterFadeIn 1s ease-out;
    transition: all 0.3s ease;
    transform: translateY(40px); /* <--- AGREGA ESTO para bajar un poco */
}

.live-center-content:hover {
    transform: scale(1.02);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
}

.live-center-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff0000;
    animation: liveCenterPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    flex-shrink: 0;
}

.live-center-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Rajdhani', Arial, sans-serif;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.live-center-emoji {
    font-size: 22px;
    animation: liveCenterWave 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* Animaciones */
@keyframes liveCenterPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    }
    50% {
        opacity: 0.2;
        transform: scale(0.7);
        box-shadow: 0 0 60px rgba(255, 0, 0, 0.8);
    }
}

@keyframes liveCenterFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes liveCenterWave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

/* ========================================== */
/* RESPONSIVE - MÓVIL                        */
/* ========================================== */

@media (max-width: 768px) {
    .live-center-content {
        padding: 12px 24px;
        gap: 10px;
        border-radius: 50px;
    }
    
    .live-center-text {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .live-center-dot {
        width: 11px;
        height: 11px;
    }
    
    .live-center-emoji {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .live-center-content {
        padding: 10px 18px;
        gap: 8px;
        border-radius: 40px;
    }
    
    .live-center-text {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
    
    .live-center-dot {
        width: 9px;
        height: 9px;
    }
    
    .live-center-emoji {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .live-center-content {
        padding: 8px 14px;
        gap: 6px;
        border-radius: 30px;
    }
    
    .live-center-text {
        font-size: 9px;
        letter-spacing: 1px;
    }
    
    .live-center-dot {
        width: 7px;
        height: 7px;
    }
    
    .live-center-emoji {
        font-size: 12px;
    }
}
