:root {
    --neon-azul: #6e4f64;
    --neon-rosa: #b1afb1;
    --fondo-oscuro: rgba(10, 10, 10, 0.9);
    --texto: #ffffff;
    --sombra-neon: 0 0 15px var(--neon-azul);
}

body {
    background: var(--fondo-oscuro) url('segundo.gif') center/cover fixed;
    color: var(--texto);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: 'Arial', sans-serif;
}

/* Header flashero */
.header-flashero {
    text-align: center;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid var(--neon-azul);
    width: 100%;
    box-sizing: border-box;
}

.header-flashero h1 {
    color: var(--neon-rosa);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding: 0.8rem 0;
}

/* Contenedor principal */
.contenedor-neon {
    max-width: 500px;
    width: 90%;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(5px);
    margin: 1rem auto;
    box-sizing: border-box;
}

/* Títulos y subtítulos */
.header-neon h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitulo-guia {
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    text-align: center;
}

/* Casilla de búsqueda */
.input-neon {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 2px solid var(--neon-azul);
    border-radius: 25px;
    color: var(--neon-azul);
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.input-neon:focus {
    outline: none;
    box-shadow: 0 0 20px var(--neon-azul);
}

/* Botones */
.btn-neon {
    width: 100%;
    padding: 0.75rem;
    background: var(--neon-azul);
    border: none;
    border-radius: 25px;
    color: var(--fondo-oscuro);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
    text-align: center;
    margin-bottom: 0.8rem;
}

.btn-neon:hover {
    transform: scale(1.05);
    background: var(--neon-rosa);
}

/* Contenedor de acciones */
.acciones-neon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    margin-top: 1rem;
}

/* Resultados */
.resultados-neon {
    margin-top: 1rem;
    width: 100%;
    transition: height 0.3s ease;
    overflow-anchor: none;
}

.cole-card {
    background: rgba(29, 6, 25, 0.98);
    border: 1px solid var(--neon-azul);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    text-align: center;
    will-change: transform;
}

.cole-card h3 {
    color: var(--neon-rosa);
    margin-bottom: 0.5rem;
}

.hora-neon {
    color: #efe6ef;
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.detalle-neon {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.detalle-neon p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    text-align: left;
}

/* Overlay de favoritos */
.favoritos-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.favoritos-overlay.mostrar {
    display: flex;
}

#contenedorFavoritos {
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
    max-width: 400px;
    padding: 1rem;
    box-sizing: border-box;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

#contenedorFavoritos .cole-card {
    background: rgba(18, 6, 14, 0.98);
    border: 1px solid var(--neon-azul);
    border-radius: 10px;
    padding: 1rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

#contenedorFavoritos .cole-card h3 {
    color: var(--neon-rosa);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

#contenedorFavoritos .hora-neon {
    color: #efe6ef;
    font-size: 1rem;
    margin: 0.5rem 0;
}

#contenedorFavoritos .detalle-neon {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

#contenedorFavoritos .detalle-neon p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
}

.eliminar-favorito {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff3366;
    color: #ff3366;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.eliminar-favorito:hover {
    background: rgba(255, 0, 0, 0.4);
}

/* Footer */
.footer-neon {
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    color: var(--neon-azul);
    border-top: 1px solid var(--neon-azul);
    background: rgba(10, 10, 10, 0.9);
}

/* Carrusel de publicidad */
.contenedor-publicidad {
    width: 90%;
    max-width: 400px;
    height: 150px;
    margin: 1rem auto;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--neon-azul);
    border-radius: 10px;
    box-shadow: var(--sombra-neon);
    background: rgba(0, 0, 0, 0.8);
}

.contenedor-publicidad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.contenedor-publicidad img.publicidad-activa {
    opacity: 1;
}

/* Botón de favorito */
.favorito-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    transition: all 0.3s ease;
    z-index: 2;
    color: white;
    transform-origin: center;
}

.favorito-btn.favorito-activo {
    color: #ff3366;
}

.favorito-btn:active {
    transform: scale(1.5);
}

/* Colores por empresa */
.cole-card[data-empresa*="TATA"] {
    border-left: 4px solid #00ff88;
}
.cole-card[data-empresa*="ESPIGA"] {
    border-left: 4px solid #ffaa33;
}
.cole-card[data-empresa*="GALVENSE"] {
    border-left: 4px solid #ffffff;
}

/* Responsive */
@media (max-width: 480px) {
    .footer-neon {
        font-size: 0.6rem

    }
    .contenedor-neon {
        width: 95%;
        padding: 0.8rem;
    }

    .header-neon h2 {
        font-size: 1.1rem;
    }

    .subtitulo-guia {
        font-size: 0.8rem;
    }

    .input-neon {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .btn-neon {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .cole-card {
        padding: 0.5rem;
        margin-bottom: 0.8rem;
    }

    .hora-neon {
        font-size: 1rem;
    }

    .detalle-neon {
        gap: 0.5rem;
    }

    #btnFavoritos {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .favoritos-overlay {
        padding: 0.5rem;
    }

    #contenedorFavoritos {
        width: 95%;
        padding: 0.8rem;
    }

    #contenedorFavoritos .cole-card {
        padding: 0.8rem;
    }

    #contenedorFavoritos .cole-card h3 {
        font-size: 0.9rem;
    }

    #contenedorFavoritos .hora-neon {
        font-size: 0.9rem;
    }

    #contenedorFavoritos .detalle-neon p {
        font-size: 0.8rem;
    }

    #contenedorFavoritos .eliminar-favorito {
        font-size: 0.9rem;
    }
}
/* Chat Global Estilo BlackBerry */
.chat-global-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.chat-global-overlay.mostrar {
    display: flex;
}

.chat-global-container {
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: rgba(20, 20, 30, 0.95);
    border: 2px solid var(--neon-azul);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px var(--neon-rosa);
}

.chat-global-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--neon-azul);
}

.chat-global-close {
    background: none;
    border: none;
    color: var(--neon-rosa);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-global-messages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    max-height: 50vh;
}

.chat-global-message {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 5px;
    word-break: break-word;
    font-size: 0.9rem;
}

.chat-global-message strong {
    color: var(--neon-rosa);
}

.chat-global-input-container {
    display: flex;
    gap: 0.5rem;
}

.chat-global-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-azul);
    border-radius: 15px;
    padding: 0.75rem;
    color: white;
    font-family: 'Courier New', monospace;
}

.chat-global-send {
    background: var(--neon-azul);
    border: none;
    border-radius: 15px;
    color: white;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-global-send:hover {
    background: var(--neon-rosa);
}
/* ===== BANNER COOKIES NEON ===== */
.cookie-banner-neon {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    padding: 1.2rem;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--neon-azul);
    border-radius: 10px;
    box-shadow: 0 0 15px var(--neon-rosa);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

.cookie-banner-neon p {
    margin: 0;
    color: var(--neon-rosa);
    text-align: center;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-neon-outline {
    background: transparent !important;
    border: 1px solid var(--neon-azul) !important;
    color: var(--neon-azul) !important;
    transition: all 0.3s !important;
}
.btn-neon-outline:hover {
    transform: scale(1.05);
    border-color: var(--neon-rosa) !important;
    color: var(--neon-rosa) !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {
    .cookie-banner-neon {
        flex-direction: column;
        padding: 1rem;
    }
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* Estilos para el chat */
.chat-global-message {
    margin-bottom: 0.8rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-user {
    color: var(--neon-rosa);
    font-weight: bold;
}

.chat-text {
    color: white;
}

.chat-time {
    color: var(--neon-azul);
    font-size: 0.8rem;
    margin-left: 0.5rem;
    opacity: 0.8;
}
/* ===== CHAT NEON REDISEÑADO ===== */
.chat-global-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.chat-container-neon {
    width: 90%;
    max-width: 500px;
    height: 70vh;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(30, 6, 25, 0.95) 100%);
    border: 1px solid var(--neon-azul);
    border-radius: 12px;
    box-shadow: 0 0 20px var(--neon-rosa), 0 0 30px rgba(110, 79, 100, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header-neon {
    padding: 1rem;
    background: rgba(10, 10, 20, 0.9);
    border-bottom: 1px solid var(--neon-azul);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-neon h3 {
    margin: 0;
    color: var(--neon-rosa);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--neon-rosa);
}

.close-btn-neon {
    background: transparent;
    border: none;
    color: var(--neon-rosa);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.close-btn-neon:hover {
    transform: scale(1.2);
    color: white;
}

.chat-messages-container {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-azul) transparent;
}

/* Estilo de los mensajes */
.chat-global-message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--neon-azul);
    border-radius: 0 8px 8px 0;
    animation: messageFadeIn 0.3s ease-out;
}

@keyframes messageFadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.chat-user {
    color: var(--neon-rosa);
    font-weight: bold;
    font-size: 0.9rem;
}

.chat-text {
    color: white;
    margin: 0.3rem 0;
    line-height: 1.4;
}

.chat-time {
    color: var(--neon-azul);
    font-size: 0.7rem;
    display: block;
    text-align: right;
}

/* Input y botón */
.chat-input-container {
    display: flex;
    padding: 1rem;
    background: rgba(10, 10, 20, 0.9);
    border-top: 1px solid var(--neon-azul);
}

.chat-input-neon {
    flex-grow: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-azul);
    border-radius: 8px 0 0 8px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

.chat-input-neon:focus {
    border-color: var(--neon-rosa);
    box-shadow: 0 0 10px var(--neon-rosa);
}

.send-btn-neon {
    width: 50px;
    background: var(--neon-azul);
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.send-btn-neon:hover {
    background: var(--neon-rosa);
}

.send-icon {
    display: inline-block;
    transform: rotate(90deg);
    font-weight: bold;
}

/* Scrollbar personalizada */
.chat-messages-container::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background-color: var(--neon-azul);
    border-radius: 3px;
}
/* Botón con GIF local - Ruta CORRECTA */
#btnChatGlobal {
    position: relative;
    overflow: hidden;
    background: none;
    border: none;
    padding: 12px 25px;
}

/* Capa del GIF (misma carpeta) */
#btnChatGlobal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('comentarios.gif') center/cover no-repeat;
    opacity: 0.5;  /* Ajusta según necesidad */
    z-index: -1;
}

/* Texto del botón (visible sobre el GIF) */
#btnChatGlobal span {
    position: relative;
    color: var(--neon-rosa);
    font-weight: bold;
    text-shadow: 0 0 10px var(--neon-rosa);
}

/* Efecto hover */
#btnChatGlobal:hover::before {
    opacity: 0.9;
    filter: brightness(1.2);
}
/* Mejora para móviles muy pequeños (ej: 320px) */
@media (max-width: 360px) {
    .contenedor-neon {
        width: 98%;
        padding: 0.5rem;
    }
    .btn-neon {
        font-size: 0.8rem;
    }
  }