@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Londrina+Solid:wght@300;400;900&family=Ultra&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-dark: #0f1123;
    /* Deep space blue from logo background */
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-light: #ffffff;
    --text-muted: #b3b9c5;
    --accent-magenta: #e92383;
    /* Neon pink/magenta from CARACAS */
    --accent-gold: #ffc107;
    /* Gold from BINGO and lights */
    --border-glass: rgba(255, 255, 255, 0.1);
}

/* Global Input Text Fix */
input, textarea, select, .form-control {
    color: #ffffff !important;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top, #1e1b4b 0%, var(--bg-dark) 80%);
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background: rgba(15, 17, 35, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
    will-change: transform;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container-fluid {
    width: 95%;
    padding-left: 0;
    padding-right: 0;
}

header .container {
    max-width: 800px;
}

.logo img {
    max-height: 60px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.h2titulo {
    color: var(--accent-magenta);
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.6em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(233, 35, 131, 0.5);
    margin: 8px 0;
}

/* --- Vegas & Neon Typography Theme --- */

.text-vegas {
    font-family: 'Londrina Solid', cursive;
    font-weight: 900;
    text-transform: uppercase;
    /* Gradiente mucho más brillante y limpio */
    background: linear-gradient(to bottom, #fff 0%, #ffeb3b 20%, #ffc107 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 2px rgba(255, 235, 59, 0.4));
    letter-spacing: 2px;
    display: inline-block;
    text-align: center;
}

.text-neon {
    font-family: 'Ultra', serif;
    color: #38021c;
    /* Aún más oscuro para que se note el contraste */
    text-transform: uppercase;
    text-shadow:
        0 0 4px #e92383,
        0 0 8px #e92383;
    -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.7);
    /* Borde más fino para que no se vea "blanco" */
    letter-spacing: 2px;
    /* Reducido para que quepa en móviles */
    display: inline-block;
    text-align: center;
}

/* --- Contenedor de Video Responsivo --- */
.video-container {
    width: 95%;
    max-width: 800px; /* Ancho máximo */
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 20px auto;
    background: #000;
    border-radius: 15px;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* En móviles hacemos que la caja mantenga proporciones de video reales */
@media (max-width: 768px) {
    .video-container {
        aspect-ratio: 16 / 9;
        max-height: 80vh; /* Permitir que ocupe hasta el 80% de la altura de la pantalla */
    }
}

.video-container iframe,
.video-container video {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: contain; /* Para que nunca se recorte nada */
    border: 0;
}

/* For mobile devices, allow it to take more width */
@media (max-width: 768px) {
    .video-container iframe,
    .video-container video {
        max-height: 60vh;
    }
}

.btn-fullscreen {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.btn-fullscreen:hover {
    background: var(--accent-gold);
    color: #000;
}

@media (max-width: 480px) {
    .video-container {
        max-width: 100%;
        margin: 10px 0;
        border-radius: 10px;
    }
}

/* Hero Compacto con Proporciones Mejoradas */
.hero-compact {
    padding: 15px !important;
    text-align: center;
    border-radius: 24px;
    margin-bottom: 25px !important;
    background: linear-gradient(135deg, rgba(233, 35, 131, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.hero-compact h1 {
    margin-bottom: 10px !important;
    line-height: 0.95;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-compact .bingo-title {
    font-size: 3.5em;
    /* Aumentado un poco pero sin !important */
    display: block;
    margin-bottom: -15px;
}

.hero-compact .caracas-title {
    font-size: 2.5em;
    /* Aumentado un poco pero sin !important */
    display: block;
    transform: scaleY(1.05);
}

@media (max-width: 480px) {
    .hero-compact .bingo-title {
        font-size: 2em !important;
        margin-bottom: -8px;
    }

    .hero-compact .caracas-title {
        font-size: 1.45em !important;
        /* Más pequeño para que quepa */
        letter-spacing: 1px !important;
        /* Casi nada de espacio extra en móvil */
    }
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu li {
    margin-left: 20px;
}

.nav-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.menu li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 16px;
}

.menu li a:hover {
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) inset;
}

.menu li a:hover .nav-icon {
    transform: translateY(-4px) scale(1.15);
    filter: drop-shadow(0 6px 10px rgba(255, 193, 7, 0.6));
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

main {
    margin-top: 0;
    padding-top: 0px;
    padding-bottom: 40px;
    background-color: transparent;
    color: var(--text-light);
}

.hero-card {
    background: rgba(15, 17, 35, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto 30px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 576px) {
    .hero-card {
        padding: 20px 15px;
    }
}

.border-accent-gold {
    border: 1px solid var(--accent-gold) !important;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.1) !important;
}

.hero-card p {
    font-size: 1.15em;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.hero-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        backdrop-filter: none !important;
        /* Desactivar blur en movil para fluidez */
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 17, 35, 0.98);
    }

    header .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 5px 0px 5px 15px !important;
    }

    .logo img {
        height: 60px !important;
        margin-bottom: 0 !important;
    }

    .menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 72px;
        /* Approx height of header to start exactly below */
        left: 0;
        right: 0;
        width: 100vw;
        height: calc(100vh - 72px);
        overflow-y: auto;
        background-color: rgba(15, 17, 35, 1);
        backdrop-filter: none !important;
        text-align: center;
        padding: 20px 0;
        z-index: 999;
        border-bottom: 1px solid var(--border-glass);
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        margin: 12px 20px;
    }

    .menu li a {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        padding: 18px 25px;
        font-size: 1.2em;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-glass);
        border-radius: 16px;
        color: var(--text-light);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .menu li a:active {
        background: rgba(233, 35, 131, 0.2);
        border-color: var(--accent-magenta);
        transform: scale(0.98);
    }

    .hamburger-menu {
        display: block;
        padding: 10px 15px;
        margin-right: 0;
        margin-left: auto;
    }

    /* Optimizar cartones en movil */
    .carton {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 17, 35, 0.95);
    }
}

/* estilos para el hero */
#hero {
    background: transparent;
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 35, 131, 0.1) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-magenta), #ff7baf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 10px rgba(233, 35, 131, 0.3);
    font-weight: 800;
}

#hero p {
    font-size: 1.25em;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-muted);
}

#hero a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#hero a:first-of-type {
    background: linear-gradient(135deg, var(--accent-gold), #ff9800);
    color: #000;
    margin-right: 20px;
}

#hero a:first-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.4);
}

#hero a:first-of-type:active {
    transform: translateY(1px);
}

#hero a:last-of-type {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 2px solid var(--accent-gold);
    backdrop-filter: blur(5px);
}

#hero a:last-of-type:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

/* Estilos responsive para la Hero Section */
@media (max-width: 600px) {
    #hero {
        padding: 40px 15px;
    }

    #hero h1 {
        font-size: 2.5em;
    }

    #hero p {
        font-size: 1.1em;
    }

    #hero a {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
        box-sizing: border-box;
    }
}

/* Removed duplicate .video-container block for consistency */

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Estilos para los cartones en la pagina de ventas */
#contenedor-cartones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

#contenedor-cartones button {
    background: rgba(40, 45, 70, 0.8);
    /* Fondo semi-sólido para evitar blur */
    color: var(--text-light);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

#contenedor-cartones button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-magenta);
}

#contenedor-cartones button.seleccionado {
    background: linear-gradient(135deg, var(--accent-magenta), #7209B7);
    /* Pink to Purple */
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 15px rgba(233, 35, 131, 0.4);
    transform: scale(1.05);
}

#lista-cartones-seleccionados {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-magenta) var(--bg-card);
}

#lista-cartones-seleccionados::-webkit-scrollbar {
    width: 6px;
}

#lista-cartones-seleccionados::-webkit-scrollbar-track {
    background: transparent;
}

#lista-cartones-seleccionados::-webkit-scrollbar-thumb {
    background-color: var(--accent-magenta);
    border-radius: 10px;
}

#lista-cartones-seleccionados li {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-light);
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1em;
    font-weight: 600;
}

#lista-cartones-seleccionados li button {
    background: #ff4b5c;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: bold;
    transition: all 0.3s ease;
}

#lista-cartones-seleccionados li button:hover {
    background: #dc3545;
    transform: scale(1.05);
}

/* Estilos para los cartones popup */
#popup-carton-contenido table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#popup-carton-contenido th,
#popup-carton-contenido td {
    border: 1px solid #555;
    padding: 8px;
    text-align: center;
}

#popup-carton-contenido th {
    background-color: #444;
}

#popup-carton-contenido {
    color: red;
    /* Aplica color rojo a todo el texto dentro del contenedor */
}

#popup-detalles-carton {
    color: red;
}


/* boton flotante para ir a pagar */

#boton-pagar-flotante {
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
}

#boton-pagar-flotante:hover {
    opacity: 1;
}

/* Estilos para la página paso1.php (lista de sorteos) */

.sorteo-caja {
    background: rgba(15, 17, 35, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--border-glass);
    color: var(--text-light);
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 24px;
    width: 320px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sorteo-caja:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(233, 35, 131, 0.2);
    border-color: rgba(233, 35, 131, 0.3);
}

.sorteo-caja h3 {
    margin-top: 0;
    color: var(--accent-magenta);
    font-size: 1.5em;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sorteo-caja p {
    color: var(--text-muted);
    font-size: 1.05em;
    margin-bottom: 8px;
}

.sorteo-caja strong {
    color: var(--text-light);
}

.sorteo-caja a {
    display: block;
    background: linear-gradient(135deg, var(--accent-magenta), #7209B7);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 35, 131, 0.3);
}

.sorteo-caja a:hover {
    background: linear-gradient(135deg, #ff4b5c, var(--accent-magenta));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 35, 131, 0.5);
}


h2 {
    color: #fff;
    /* Manteniendo el blanco para el título principal */
    text-align: center;
    margin-bottom: 20px;
}

h2.oro {
    color: #FFD700;
    /* tono oro clásico */

}


#main-content-paso1 p {
    /* Especificidad para evitar afectar otros párrafos */
    color: #eee;
    /* Un gris claro para los párrafos */
    margin-bottom: 10px;
}

.sorteo-caja {
    background-color: #333;
    /* Un tono de gris oscuro para las cajas */
    color: #eee;
    /* Color de texto general dentro de la caja */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* Sombra más pronunciada */
    padding: 20px;
    width: 300px;
}

.sorteo-caja h3 {
    margin-top: 0;
    color: #ffc107;
    /* Un tono dorado/amarillo para el título del sorteo */
}

.sorteo-caja strong {
    color: #fff;
    /* Blanco para el texto en negrita */
}

.sorteo-caja a {
    display: block;
    background-color: #ff9800;
    /* Naranja para el botón */
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    /* Transición suave para el hover */
}

.sorteo-caja a:hover {
    background-color: #e68a00;
    /* Un tono más oscuro al pasar el ratón */
}

.error {
    color: red;
    margin-top: 10px;
    text-align: center;
}

.btn-home {
    background-color: #ff6600;
    /* Color personalizado */
    border-radius: 10px;
    /* Bordes redondeados */
    padding: 15px 30px;
    /* Ajusta el tamaño */
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: rgb(255, 140, 0);
    /* Color azul similar a Bootstrap */
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.boton-moderno {
    /* Estilos principales del botón */
    background-image: linear-gradient(to right, #8b5cf6, #ec4899);
    /* Gradiente de fondo: morado a rosa */
    color: white;
    /* Texto blanco */
    font-weight: 600;
    /* Texto en negrita */
    border-radius: 100px;
    /* Bordes completamente redondeados (forma de píldora) */
    padding: 12px 24px;
    /* Relleno horizontal y vertical */
    transition: all 0.3s ease-in-out;
    /* Transición suave para todas las propiedades */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    /* Sombra suave */
    display: flex;
    /*Para alinear el icono y el texto*/
    align-items: center;
    gap: 8px;
    /* Espacio entre el icono y el texto */
    cursor: pointer;
    /* Cambia el cursor a una mano al pasar por encima */
    border: none;
    /* Elimina el borde por defecto */
    font-family: 'Inter', sans-serif;
}

.boton-moderno:hover {
    /* Estilos al pasar el ratón por encima */
    background-image: linear-gradient(to right, #7c3aed, #d946ef);
    /* Cambia el gradiente en el hover */
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15);
    /* Aumenta la sombra en el hover */
    transform: scale(1.05);
    /* Escala el botón ligeramente en el hover */
}

.boton-moderno:active {
    transform: scale(0.95);
    /* Simula un efecto de "presionado" */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Estilos para el icono (si tienes un SVG) - Asegúrate de que tu SVG esté dentro del botón en tu HTML */
.boton-moderno svg {
    width: 24px;
    /* Tamaño del icono */
    height: 24px;
    stroke: white;
    /* Color del trazo del icono */
    stroke-width: 2;
    fill: none;
    /* Asegúrate de que el relleno sea ninguno si quieres el estilo de trazo */
    /* Si quieres que el icono cambie de color en el hover, puedes agregar reglas aquí
        .boton-moderno:hover svg {
           stroke: tu-color-de-hover;
        }
    */
}

.input-moderno {
    /* Estilos principales del input */
    padding: 10px 16px;
    /* Relleno vertical y horizontal, un poco más pequeño que el botón */
    border-radius: 50px;
    /* Bordes redondeados, igual que el botón */
    border: 2px solid #e0e0e0;
    /* Borde gris claro */
    transition: all 0.3s ease-in-out;
    /* Transición suave para todas las propiedades */
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.05);
    /* Sombra interior muy suave */
    width: 250px;
    /* Ancho fijo */
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

.input-moderno:focus {
    /* Estilos al enfocar el input */
    outline: none;
    /* Elimina el borde de contorno predeterminado del navegador */
    border-color: #8b5cf6;
    /* Cambia el color del borde al color principal del botón */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    /* Añade una sombra exterior suave, similar al botón */
}

.input-moderno::placeholder {
    color: #a3a3a3;
    /* Color del texto del marcador de posición */
    font-style: italic;
}

.alert {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    background-color: rgb(249, 198, 198);
    color: black;
}

.boton-comprar {
    /* Estilo base */
    background: linear-gradient(135deg, #ff5f6d, #ff8a4f);
    /* Degradado llamativo */
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    /* Bordes redondeados */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 95, 109, 0.3);
    /* Sombra suave */
    transition: all 0.3s ease;
    text-transform: uppercase;
    /* Texto en mayúsculas (opcional) */
    letter-spacing: 1px;
    /* Espaciado entre letras */
}

/* Efecto hover (al pasar el mouse) */
.boton-comprar:hover {
    transform: translateY(-3px);
    /* Levanta el botón */
    box-shadow: 0 7px 20px rgba(255, 95, 109, 0.4);
    background: linear-gradient(135deg, #ff4b5c, #ff7b3d);
    /* Degradado más intenso */
}

/* Efecto al hacer clic */
.boton-comprar:active {
    transform: translateY(1px);
}

.lista-bingo {
    list-style: decimal inside;
    padding: 1em;
    margin: 1em 0;
    background: #fff8dc;
    /* fondo cálido tipo pergamino */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.1em;
    /*color: #333;*/
    color: rgb(43, 0, 255);
    text-align: left;

}

.lista-bingo li {
    margin-bottom: 1em;
    line-height: 1.6;
    position: relative;
    padding-left: 0.5em;
}

.lista-bingo strong {
    color: #f70404;
    /* tono oro elegante */
    font-weight: 600;
}

.lista-bingo a {
    color: red;

    text-decoration: underline;
    font-weight: bold;
}

.lista-bingo li::marker {
    color: #d4af37;
    /* números dorados */
    font-weight: bold;
}

/* Estilos para el popup de crear cartón segun el cliente */
#popup-crear-carton {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.carton-personalizado {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.carton-personalizado th {
    background-color: #007bff;
    color: white;
    padding: 8px;
    text-align: center;
}

.carton-personalizado td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
    height: 40px;
}

.carton-personalizado input {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 16px;
}

.carton-personalizado input:focus {
    outline: 2px solid #007bff;
}

.carton-personalizado .libre {
    background-color: #f0f0f0;
    font-weight: bold;
}

.botones-carton {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.boton-buscar-carton {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.error-validacion {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Modern Forms & Cards for Paso 3 */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-magenta);
    box-shadow: 0 0 0 3px rgba(233, 35, 131, 0.2);
    background: rgba(15, 17, 35, 0.95);
    color: #ffffff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Autofill fixes */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--bg-dark) inset !important;
    -webkit-text-fill-color: white !important;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

/* Estilos para los cartones visualizados / descargados */
.cartones-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.carton {
    background: rgba(15, 17, 35, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
}

.carton.aprobado {
    border-top: 4px solid #4caf50;
}

.carton.pendiente {
    border-top: 4px solid var(--accent-gold);
}

.carton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-glass);
}

.carton-numero {
    font-weight: 800;
    font-size: 1.3em;
    color: var(--accent-magenta);
}

.carton-fecha {
    font-size: 0.9em;
    color: var(--text-muted);
}

.carton-estado {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.carton-estado.aprobado {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.carton-estado.pendiente {
    background: rgba(255, 193, 7, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.carton-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}

.letra-columna {
    font-weight: 900;
    text-align: center;
    color: #fff;
    /* Blanco para visibilidad sobre fondo oscuro */
    font-size: 1.25em;
    padding-bottom: 5px;
}

.celda {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.15em;
    background: #ffffff;
    /* Fondo blanco sólido para las celdas */
    color: #000000;
    /* Letras en negro para que se vean */
    transition: all 0.2s ease;
    user-select: none;
}

.celda-centro {
    background: transparent;
    border: none;
    padding: 2px;
}

.logo-centro {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
}

.celda.marcada {
    background: linear-gradient(135deg, var(--accent-magenta), #ff7baf);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(233, 35, 131, 0.4);
    transform: scale(1.05);
}

.descargar-pdf {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

.descargar-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

/* --- Premium UI Components for Sold Out Message --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    will-change: transform;
}

.title-neon {
    font-family: 'Ultra', serif;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--accent-magenta), 0 0 20px var(--accent-magenta);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.title-vegas {
    font-family: 'Londrina Solid', cursive;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff 0%, #ffeb3b 20%, #ffc107 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.5));
}

.text-accent-magenta {
    color: var(--accent-magenta);
}

.text-accent-gold {
    color: var(--accent-gold);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #ff9800);
    color: #000;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.4);
    color: #000;
}

/* --- Copy Button Styles --- */
.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glass);
    color: var(--text-light);
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    color: var(--accent-gold);
}

.btn-copy.copied {
    background: var(--accent-gold);
    color: #000;
    border-color: transparent;
}

/* --- LAYOUT VIDEO + CHAT EN VIVO --- */
.live-wrapper.with-chat {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; /* Iguala las alturas */
    gap: 20px;
    max-width: 1250px;
    margin: 0 auto 30px auto;
    padding: 0 15px;
}

.live-wrapper.with-chat .video-container {
    flex: 1 1 60%; /* 60% de ancho en PC */
    max-width: 800px;
    margin: 0; /* Quitamos margin auto para que el gap lo separe */
}

.live-wrapper.with-chat .live-chat-container {
    flex: 1 1 30%; /* 30% de ancho en PC */
    min-width: 320px;
    min-height: 480px; /* Altura mínima en PC para que el chat sea visible */
    display: flex;
    flex-direction: column;
    background: #0f1123;
    border: 2px solid var(--accent-gold);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

/* En PC: el cuerpo del chat ocupa todo el espacio disponible del contenedor */
.live-wrapper.with-chat .live-chat-container .chat-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    overflow: hidden;
}

.live-chat-header {
    background: rgba(0, 0, 0, 0.4);
    color: var(--accent-gold);
    padding: 12px 15px;
    font-weight: 800;
    font-size: 1.1em;
    border-bottom: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.live-chat-iframe {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 420px;
    border: none;
    background: #0f1123;
    display: block;
}

/* ===== CHAT MÓVIL REDISEÑADO ===== */
@media (max-width: 992px) {
    .live-wrapper.with-chat {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 10px;
        margin-bottom: 10px;
    }

    .live-wrapper.with-chat .video-container {
        width: 100%;
        max-width: 100%;
        flex: none;
        margin: 0;
    }

    /* Contenedor del chat móvil rediseñado */
    .live-wrapper.with-chat .live-chat-container {
        width: 100%;
        max-width: 100%;
        flex: none;
        border-radius: 22px;
        /* Borde degradado magenta-dorado */
        border: 3px solid transparent;
        background-clip: padding-box;
        box-shadow:
            0 0 0 3px transparent,
            0 8px 32px rgba(233, 35, 131, 0.35),
            0 2px 10px rgba(255, 193, 7, 0.2);
        position: relative;
        overflow: visible; /* Para que el borde degradado se pinte bien */
        background: #0f1123;
        /* Truco para borde degradado */
        background-image: linear-gradient(#0f1123, #0f1123);
        background-origin: padding-box;
    }

    /* Borde degradado con pseudo-elemento */
    .live-wrapper.with-chat .live-chat-container::before {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 24px;
        background: linear-gradient(135deg, var(--accent-magenta), var(--accent-gold), var(--accent-magenta));
        background-size: 200% 200%;
        animation: borderGlow 3s ease infinite;
        z-index: -1;
    }

    @keyframes borderGlow {
        0%   { background-position: 0% 50%; }
        50%  { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    /* Header del chat más grande y llamativo en móvil */
    .live-chat-container .live-chat-header {
        background: linear-gradient(135deg, rgba(233,35,131,0.3) 0%, rgba(255,193,7,0.2) 100%);
        border-bottom: 2px solid rgba(255,193,7,0.5);
        padding: 14px 18px;
        font-size: 1.15em;
        border-radius: 19px 19px 0 0;
        justify-content: space-between;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Indicador de "En vivo" pulsante */
    .live-chat-header .live-dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        background: #ff3b3b;
        border-radius: 50%;
        box-shadow: 0 0 6px #ff3b3b;
        animation: pulse-dot 1.4s ease-in-out infinite;
        flex-shrink: 0;
    }

    @keyframes pulse-dot {
        0%, 100% { transform: scale(1); opacity: 1; }
        50%       { transform: scale(1.5); opacity: 0.6; }
    }

    /* Botón minimizar */
    .live-chat-header .btn-minimize {
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.2);
        color: var(--accent-gold);
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1em;
        cursor: pointer;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .live-chat-header .btn-minimize:hover,
    .live-chat-header .btn-minimize:active {
        background: var(--accent-gold);
        color: #000;
        transform: scale(1.1);
    }

    /* Cuerpo del chat — altura adaptable */
    .live-chat-container .chat-body {
        height: 550px;
        overflow: hidden;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease;
        opacity: 1;
    }

    /* Estado minimizado */
    .live-chat-container.minimized .chat-body {
        height: 0;
        opacity: 0;
    }

    .live-chat-container.minimized .live-chat-header {
        border-bottom: none;
        border-radius: 19px;
    }

    .live-chat-iframe {
        width: 100%;
        height: 100%;
        border: none;
        background: #0f1123;
        display: block;
    }
}

/* ===== BADGE ESPECTADORES EN VIVO ===== */
.viewers-badge-wrap {
    display: flex;
    justify-content: center;
    margin: 6px 0 4px;
}

.viewers-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 17, 35, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 7px 20px 7px 14px;
    box-shadow:
        0 0 18px rgba(233, 35, 131, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* Brillo sutil de fondo */
.viewers-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(233, 35, 131, 0.08) 0%,
        rgba(255, 193, 7, 0.06) 100%
    );
    pointer-events: none;
}

/* Punto rojo pulsante */
.viewers-dot {
    width: 9px;
    height: 9px;
    background: #ff3b3b;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff3b3b, 0 0 16px rgba(255, 59, 59, 0.5);
    animation: viewers-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes viewers-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.6); opacity: 0.55; }
}

/* Icono ojo */
.viewers-badge .fa-eye {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85em;
}

/* Número de espectadores */
.viewers-count {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.05em;
    color: #ffffff;
    letter-spacing: 0.5px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    min-width: 24px;
    text-align: center;
}

/* Etiqueta "en vivo" */
.viewers-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-magenta);
    opacity: 0.9;
}

@media (max-width: 480px) {
    .viewers-badge {
        padding: 6px 16px 6px 12px;
        gap: 6px;
    }
    .viewers-count  { font-size: 0.95em; }
    .viewers-label  { font-size: 0.65em; }
}
