@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Manrope:wght@400;600;700;800&family=Montserrat:wght@600;700;800;900&display=swap');

/* index.html */
:root {
            --azul-oscuro: #0b132b;
            --azul-medio: #1c2541;
            --azul-borde: #3a506b;
            --azul-neon: #4cc9f0;
            --dorado: #ffb703;
        }

        body.home-page {
            margin: 0;
            padding: 0;
            font-family: 'Manrope', sans-serif;
            background-color: var(--azul-oscuro);
            color: #ffffff;
            scroll-behavior: smooth;
        }

        body.home-page /* ─────────────── MENÚ DE NAVEGACIÓN ─────────────── */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: transparent;
            border-bottom: 2px solid transparent;
            z-index: 1000;
            transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
        }

        body.home-page .navbar.scrolled {
            background-color: transparent;
            border-bottom-color: transparent;
            box-shadow: none;
        }

        body.home-page .nav-container {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 20px;
            box-sizing: border-box;
        }

        body.home-page .nav-logo {
            font-size: 20px;
            font-weight: 400;
            color: #ffffff;
            text-transform: lowercase;
            letter-spacing: 1px;
            text-decoration: none;
            text-shadow: 0 2px 8px rgba(0,0,0,0.55);
        }

        body.home-page .nav-menu {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 25px;
        }

        body.home-page .nav-item {
            position: relative;
        }

        body.home-page .nav-menu a {
            color: #ffffff;
            text-decoration: none;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 14px;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
            text-shadow: 0 2px 8px rgba(0,0,0,0.55);
        }

        body.home-page .nav-menu a:hover {
            color: var(--azul-neon);
        }

        body.home-page .arrow {
            font-size: 10px;
            transition: transform 0.3s ease;
        }

        body.home-page /* Rotar la flechita cuando el menú esté activo */
        .nav-item.active .arrow {
            transform: rotate(180deg);
        }

        body.home-page /* ─────────────── SUBMENÚ EN ESCRITORIO (ABRE CON CLIC) ─────────────── */
        .submenu {
            display: none; /* Oculto por defecto */
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(28, 37, 65, 0.68);
            border: 2px solid rgba(58, 80, 107, 0.7);
            border-radius: 8px;
            list-style: none;
            padding: 10px 0;
            margin: 10px 0 0 0;
            min-width: 180px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.6);
            z-index: 1100;
        }

        body.home-page .submenu li a {
            padding: 10px 20px;
            font-size: 13px;
            text-transform: none;
            font-weight: 500;
            white-space: nowrap;
            display: block;
        }

        body.home-page /* Clase de control que activa JavaScript en escritorio */
        .submenu.desktop-open {
            display: block !important;
            animation: fadeIn 0.2s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translate(-50%, 5px); }
            to { opacity: 1; transform: translate(-50%, 0); }
        }

        body.home-page /* BOTÓN HAMBURGUESA MÓVIL */
        .menu-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 5px;
            background: none;
            border: none;
            padding: 5px;
        }

        body.home-page .menu-toggle span {
            display: block;
            width: 25px;
            height: 3px;
            background-color: white;
            border-radius: 3px;
            transition: all 0.3s ease;
        }

        body.home-page /* HERO / PORTADA */
        .hero {
            position: relative;
            width: 100%;
            height: 100vh;
            background-image: url('../images/IMG_1914.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        body.home-page .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.62);
            z-index: 1;
        }

        body.home-page .hero-text {
            position: relative;
            z-index: 2;
            font-size: 42px;
            font-weight: 400;
            text-align: center;
            letter-spacing: 2px;
            padding: 0 20px;
            color: #ffffff;
            text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
            text-transform: uppercase;
        }

        body.home-page /* CONTENIDO INFERIOR */
        .content-section {
            max-width: 900px;
            margin: 0 auto;
            padding: 70px 20px;
            box-sizing: border-box;
        }

        body.home-page .private-quick-link {
            position: fixed;
            left: 18px;
            bottom: 18px;
            z-index: 1200;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            border: 1px solid rgba(255, 255, 255, 0.32);
            border-radius: 50%;
            background: rgba(11, 19, 43, 0.42);
            color: #ffffff;
            text-decoration: none;
            backdrop-filter: blur(8px);
            box-shadow: 0 8px 22px rgba(0,0,0,0.28);
            transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
        }

        body.home-page .private-quick-link:hover {
            border-color: var(--azul-neon);
            color: var(--azul-neon);
            background: rgba(11, 19, 43, 0.62);
        }

        body.home-page .private-quick-link svg {
            width: 20px;
            height: 20px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        body.home-page .buttons-grid {
            display: flex;
            flex-direction: row;
            gap: 15px;
            margin-bottom: 50px;
            justify-content: center;
        }

        body.home-page .btn-section {
            flex: 1;
            background-color: var(--azul-medio);
            color: #ffffff;
            border: 2px solid var(--azul-borde);
            padding: 16px;
            font-size: 15px;
            font-weight: bold;
            text-transform: uppercase;
            border-radius: 12px;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            white-space: nowrap;
            font-family: 'Manrope', sans-serif;
        }

        body.home-page .btn-section:hover {
            border-color: var(--azul-neon);
            color: var(--azul-neon);
            transform: translateY(-2px);
        }

        body.home-page /* FORMULARIO CONTACTO */
        .contact-form {
            background-color: var(--azul-medio);
            border: 2px solid var(--azul-borde);
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.4);
            max-width: 550px;
            margin: 0 auto;
        }

        body.home-page .contact-form h2 {
            margin-top: 0;
            color: var(--azul-neon);
            text-transform: uppercase;
            font-size: 20px;
            margin-bottom: 20px;
            letter-spacing: 1px;
        }

        body.home-page .form-group {
            margin-bottom: 14px;
            text-align: left;
        }

        body.home-page .form-group label {
            display: block;
            margin-bottom: 5px;
            font-size: 13px;
            font-weight: 600;
            color: #cbd5e1;
            text-transform: uppercase;
        }

        body.home-page .form-group input, body.home-page .form-group textarea {
            width: 100%;
            padding: 10px 12px;
            background-color: var(--azul-oscuro);
            border: 2px solid var(--azul-borde);
            border-radius: 8px;
            color: white;
            font-size: 15px;
            box-sizing: border-box;
            font-family: 'Manrope', sans-serif;
        }

        body.home-page .form-group input:focus, body.home-page .form-group textarea:focus {
            outline: none;
            border-color: var(--azul-neon);
        }

        body.home-page .btn-submit {
            width: 100%;
            padding: 12px;
            background-color: var(--azul-neon);
            color: var(--azul-oscuro);
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: bold;
            text-transform: uppercase;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-top: 5px;
            font-family: 'Manrope', sans-serif;
        }

        body.home-page .btn-submit:hover {
            background-color: #4361ee;
            color: white;
        }

        body.home-page .form-status {
            min-height: 22px;
            margin: 12px 0 0;
            color: #4ade80;
            font-weight: 800;
            text-align: center;
        }

        body.home-page .form-status.error {
            color: #f87171;
        }

        body.home-page /* ─────────────── VENTANA MODAL (SOLO PARA EL BOTÓN INFERIOR) ─────────────── */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(11, 19, 43, 0.85);
            backdrop-filter: blur(5px);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        body.home-page .modal-box {
            background-color: var(--azul-medio);
            border: 2px solid var(--azul-borde);
            padding: 30px 25px;
            border-radius: 20px;
            width: 85%;
            max-width: 400px;
            text-align: center;
            box-shadow: 0 15px 35px rgba(0,0,0,0.6);
            animation: modalScaleUp 0.3s ease-out forwards;
            position: relative;
        }

        @keyframes modalScaleUp {
            from { transform: scale(0.85); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        body.home-page .modal-box h3 {
            margin-top: 0;
            color: #ffffff;
            font-size: 22px;
            font-weight: 800;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        body.home-page .modal-buttons-container {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        body.home-page .modal-buttons-row {
            flex-direction: row;
        }

        body.home-page .btn-modal-link {
            background-color: var(--azul-oscuro);
            color: #ffffff;
            border: 2px solid var(--azul-borde);
            padding: 14px;
            border-radius: 10px;
            font-size: 15px;
            font-weight: bold;
            text-transform: uppercase;
            cursor: pointer;
            text-decoration: none;
            display: block;
            transition: all 0.2s ease;
            font-family: 'Manrope', sans-serif;
        }

        body.home-page .btn-modal-cancel {
            background-color: transparent;
        }

        body.home-page .btn-modal-link:hover {
            border-color: var(--azul-neon);
            color: var(--azul-neon);
            background-color: rgba(76, 201, 240, 0.05);
        }

        body.home-page .close-modal-btn {
            background: none;
            border: none;
            color: #cbd5e1;
            font-size: 22px;
            cursor: pointer;
            position: absolute;
            top: 15px;
            right: 15px;
            transition: color 0.2s;
        }

        body.home-page .close-modal-btn:hover {
            color: var(--azul-neon);
        }

                /* RESPONSIVE (PANTALLAS MOVILES) */
        @media (max-width: 768px) {
            body.home-page .navbar {
                background-color: transparent;
                border-bottom: 2px solid transparent;
            }

            body.home-page .menu-toggle {
                display: flex;
            }

            body.home-page .nav-menu {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: rgba(28, 37, 65, 0.54);
                border-bottom: 2px solid rgba(58, 80, 107, 0.38);
                backdrop-filter: blur(8px);
                padding: 10px 0;
                gap: 0;
            }

            body.home-page .nav-menu.mobile-open {
                display: flex;
            }

            body.home-page .nav-menu li { width: 100%; text-align: center; }

            body.home-page .nav-menu a {
                display: flex;
                justify-content: center;
                padding: 15px 0;
                width: 100%;
                border-bottom: 1px solid rgba(58, 80, 107, 0.2);
            }

            body.home-page .submenu {
                position: static;
                transform: none;
                background-color: rgba(11, 19, 43, 0.3);
                box-shadow: none;
                border: none;
                border-radius: 0;
                padding: 0;
                margin: 0;
                width: 100%;
            }

            body.home-page .submenu.open {
                display: block !important;
            }

            body.home-page .submenu li a {
                padding: 12px 0;
                background-color: rgba(11, 19, 43, 0.34);
                border-bottom: 1px solid rgba(58, 80, 107, 0.1);
            }

            body.home-page .hero-text {
                font-size: 28px;
            }

            body.home-page .buttons-grid {
                flex-direction: column;
                gap: 12px;
            }

            body.home-page .btn-section {
                width: 100%;
            }
        }

/* games.html */
body.games-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
    box-sizing: border-box;
    background:
        linear-gradient(rgba(11, 19, 43, 0.72), rgba(11, 19, 43, 0.9)),
        url('../images/IMG_1914.jpg') center/cover no-repeat;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
}

body.games-page .games-layout {
    width: 100%;
    max-width: 520px;
    text-align: center;
}

body.games-page .games-kicker,
body.games-page .app-page-kicker {
    margin: 0 0 10px;
    color: #c72c43;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.games-page h1 {
    margin: 0 0 26px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 12vw, 4.8rem);
    font-weight: 900;
    text-transform: uppercase;
}

body.games-page .games-list {
    display: grid;
    gap: 14px;
}

body.games-page .games-list a {
    display: block;
    padding: 18px;
    border: 2px solid rgba(58, 80, 107, 0.86);
    border-radius: 14px;
    background: rgba(28, 37, 65, 0.84);
    color: #ffffff;
    text-decoration: none;
    text-align: left;
    box-shadow: 0 12px 30px rgba(0,0,0,0.34);
    transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

body.games-page .games-list a:hover {
    border-color: #4cc9f0;
    color: #4cc9f0;
    transform: translateY(-2px);
}

body.games-page .games-list span {
    display: block;
    font-weight: 900;
    text-transform: uppercase;
}

body.games-page .games-list small {
    display: block;
    margin-top: 5px;
    color: #cbd5e1;
    font-size: 0.92rem;
}

body.games-page .games-home-link {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 6px;
    background: #475569;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

body.games-page .games-home-link:hover {
    background: #64748b;
}

/* 404.html */
body.error-page * { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, sans-serif; }
        body.error-page { font-family: Arial, sans-serif; background-color: #1e293b; color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; min-height: 100vh; text-align: center; }

        body.error-page /* Contenedor principal estilo Monitor de Bingo */
        .contenedor-error { background: #334155; border-radius: 12px; padding: 40px 20px; width: 100%; max-width: 450px; box-shadow: 0 10px 25px rgba(0,0,0,0.4); border: 1px solid #475569; }

        body.error-page /* El 404 grande estilo "Bola Cantada" */
        .numero-404 { font-size: 6rem; font-weight: bold; color: #f59e0b; line-height: 1; margin-bottom: 15px; text-shadow: 0 4px 8px rgba(0,0,0,0.3); }

        body.error-page h2 { font-size: 1.4rem; color: #cbd5e1; margin-bottom: 12px; }
        body.error-page p { font-size: 1rem; color: #94a3b8; margin-bottom: 25px; line-height: 1.5; }

        body.error-page /* Botón de retorno estilo "Validar Cartón" */
        .btn-regresar { display: block; width: 100%; padding: 14px; font-size: 1rem; font-weight: bold; border: none; border-radius: 6px; cursor: pointer; color: white; background-color: #3b82f6; text-decoration: none; transition: background-color 0.2s, transform 0.1s; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
        body.error-page .btn-regresar:hover { background-color: #2563eb; }
        body.error-page .btn-regresar:active { transform: scale(0.98); }

        body.error-page /* Zona de la imagen al final */
        .imagen-decorativa { margin-top: 30px; max-width: 150px; height: auto; border-radius: 8px; opacity: 0.8; }

/* infiltrado/index.html */
/* ESTILO GENERAL MONITOR DE BINGO */
body.infiltrado-page {
            font-family: 'Segoe UI', Arial, sans-serif;
            text-align: center;
            padding: 10px;
            background-color: #0b132b;
            color: #ffffff;
            margin: 0;
        }

        body.infiltrado-page .main-app-title {
            font-size: 26px;
            color: #ffffff;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin: 15px 0 5px 0;
            font-weight: 900;
            text-shadow: none;
        }

        .help-button {
            width: 32px;
            height: 32px;
            min-width: 32px;
            margin: 0;
            padding: 0;
            border: 2px solid #f59e0b;
            border-radius: 50%;
            background: #334155;
            color: #f59e0b;
            font-size: 18px;
            font-weight: 900;
            line-height: 1;
            cursor: pointer;
            text-align: center;
        }

        .help-button:hover {
            background: #f59e0b;
            color: #0f172a;
        }

        body.infiltrado-page .infiltrado-footer-actions {
            width: 100%;
            max-width: 450px;
            margin: 0 auto;
        }


        body.infiltrado-page .btn-principal {
            display: block;
            width: 100%;
            max-width: 450px;
            margin: 18px auto 0;
            padding: 12px;
            box-sizing: border-box;
            border-radius: 6px;
            color: white;
            background: #475569;
            text-align: center;
            text-decoration: none;
            font-weight: 700;
        }

        body.infiltrado-page .btn-principal:hover { background: #64748b; }
        body.infiltrado-page .screen {
            display: none;
            max-width: 450px;
            margin: 15px auto;
            background: #1c2541;
            padding: 25px 20px;
            border-radius: 20px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.5);
            border: 2px solid #3a506b;
            box-sizing: border-box;
        }

        body.infiltrado-page .active { display: block; }

        body.infiltrado-page #screen-lock.active {
            display: flex;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            max-width: none;
            margin: 0;
            padding: 20px;
            border: 0;
            border-radius: 0;
            background: #0f172a;
            box-shadow: none;
            z-index: 9999;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        body.infiltrado-page #screen-lock .login-box {
            background: #1e293b;
            margin: 20px auto;
            padding: 30px 20px;
            border-radius: 12px;
            width: 100%;
            max-width: 360px;
            box-sizing: border-box;
            text-align: center;
            box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        }

        body.infiltrado-page #screen-lock .login-box h2 {
            font-size: 1.3rem;
            color: #f59e0b;
            margin-bottom: 10px;
        }

        body.infiltrado-page #screen-lock .login-page-title {
            position: absolute;
            top: 24px;
            left: 0;
            right: 0;
            margin: 0 auto;
            color: #ffffff;
            font-size: 1.65rem;
            font-weight: 900;
            letter-spacing: 1px;
            text-transform: uppercase;
            text-align: center;
        }

        body.infiltrado-page #screen-lock .login-box p {
            font-size: 0.95rem;
            color: #94a3b8;
            margin-bottom: 20px;
        }

        body.infiltrado-page #screen-lock .login-box input {
            width: 140px;
            padding: 12px;
            font-size: 1.4rem;
            font-weight: bold;
            letter-spacing: 4px;
            text-align: center;
            border-radius: 6px;
            border: 2px solid #334155;
            background: #0f172a;
            color: white;
            margin-bottom: 15px;
        }

        body.infiltrado-page #screen-lock .login-box input:focus {
            border-color: #f59e0b;
        }

        body.infiltrado-page #screen-lock .btn-entrar {
            background: #22c55e;
            color: white;
            padding: 12px;
            width: 100%;
            font-size: 1.1rem;
            border-radius: 6px;
        }

        body.infiltrado-page #screen-lock .btn-login-principal {
            max-width: none;
            margin-top: 10px;
        }

        body.infiltrado-page .error-login {
            color: #ef4444;
            font-size: 0.9rem;
            font-weight: bold;
            margin-top: 10px;
            display: none;
        }

        body.infiltrado-page h2 { color: #ffffff; margin-top: 0; font-size: 20px; text-transform: uppercase; letter-spacing: 1px; }
        body.infiltrado-page #container-names h3 { color: #ffffff; text-transform: uppercase; letter-spacing: 1px; }
        body.infiltrado-page p { color: #cbd5e1; font-size: 15px; line-height: 1.5; margin-bottom: 20px; }

        body.infiltrado-page input, body.infiltrado-page select, body.infiltrado-page button {
            width: 100%;
            padding: 14px;
            margin: 10px 0;
            border-radius: 10px;
            border: 2px solid #3a506b;
            font-size: 16px;
            box-sizing: border-box;
            background-color: #0b132b;
            color: white;
        }

        body.infiltrado-page input:focus, body.infiltrado-page select:focus {
            outline: none;
            border-color: #4cc9f0;
        }

        body.infiltrado-page button {
            background-color: #4cc9f0;
            color: #0b132b;
            border: none;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
            text-transform: uppercase;
        }

        body.infiltrado-page button:hover {
            background-color: #4361ee;
            color: white;
        }

        body.infiltrado-page .btn-danger { background-color: #f72585; color: white; }
        body.infiltrado-page .btn-danger:hover { background-color: #b5179e; }

        body.infiltrado-page .reveal-box {
            background: #2a3a5c; /* Fondo más claro que el fondo general para que destaque */
            color: #ffb703;
            padding: 75px 20px; /* Área vertical muy amplia para que quepa el dedo holgadamente */
            border-radius: 15px;
            margin: 20px 0;
            font-size: 24px;
            font-weight: bold;
            border: 3px dashed #4cc9f0;
            user-select: none;
            -webkit-user-select: none;
            cursor: pointer;
            box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
            text-transform: uppercase;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1.3;
        }
        body.infiltrado-page .reveal-box:active {
            background: #344872; /* Efecto visual al mantener pulsado */
        }

        body.infiltrado-page .modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(11, 19, 43, 0.9);
            backdrop-filter: blur(4px);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        body.infiltrado-page .modal-box {
            background: #1c2541;
            border: 3px solid #ffb703;
            padding: 25px;
            border-radius: 20px;
            max-width: 400px;
            width: 85%;
            box-shadow: 0 20px 40px rgba(0,0,0,0.7);
            animation: popUp 0.25s ease-out;
            box-sizing: border-box;
        }

        @keyframes popUp {
            from { transform: scale(0.85); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        body.infiltrado-page .modal-box h3 { color: #ffb703; margin-top: 0; font-size: 20px; text-transform: uppercase; }
        body.infiltrado-page .modal-box p { color: #ffffff; font-size: 16px; margin: 15px 0; white-space: pre-line; }
        body.infiltrado-page .modal-footer-buttons { display: flex; flex-direction: column; gap: 8px; }

/* Bingo/carton.html */
body.bingo-carton-page * { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, sans-serif; }
        body.bingo-carton-page { font-family: Arial, sans-serif; background-color: #1e293b; color: white; display: flex; flex-direction: column; align-items: center; padding: 76px 10px 10px; min-height: 100vh; }
        body.bingo-carton-page h1 { font-size: 1.8rem; margin: 8px 0 12px; color: #f59e0b; text-align: center; font-weight: 900; letter-spacing: 2px; }

        body.bingo-carton-page .bingo-top-menu {
            position: fixed;
            top: 10px;
            right: 10px;
            z-index: 100;
        }

        body.bingo-carton-page .bingo-menu-toggle {
            display: flex;
            width: 44px;
            height: 44px;
            margin: 0;
            padding: 10px;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
            background: #334155;
            border: 1px solid #475569;
            border-radius: 8px;
            box-shadow: 0 8px 18px rgba(0,0,0,0.28);
        }

        body.bingo-carton-page .bingo-menu-toggle span {
            display: block;
            width: 100%;
            height: 3px;
            border-radius: 2px;
            background: #f59e0b;
        }

        body.bingo-carton-page .bingo-menu-list {
            display: none;
            position: absolute;
            top: 52px;
            right: 0;
            min-width: 150px;
            padding: 8px;
            background: #0f172a;
            border: 1px solid #475569;
            border-radius: 8px;
            box-shadow: 0 12px 24px rgba(0,0,0,0.34);
        }

        body.bingo-carton-page .bingo-menu-list.is-open {
            display: block;
        }

        body.bingo-carton-page .bingo-menu-list button,
        body.bingo-carton-page .bingo-menu-list a {
            display: block;
            width: 100%;
            margin: 0;
            padding: 10px 12px;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: #e2e8f0;
            font-size: 0.95rem;
            font-weight: 700;
            text-align: left;
            text-decoration: none;
        }

        body.bingo-carton-page .bingo-menu-list button:hover,
        body.bingo-carton-page .bingo-menu-list a:hover {
            background: #334155;
            color: #f59e0b;
        }

        body.bingo-carton-page .contenedor-tabla { width: 100%; max-width: 550px; background: #0f172a; padding: 6px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
        body.bingo-carton-page table { width: 100%; border-collapse: collapse; table-layout: fixed; }
        body.bingo-carton-page td { border: 1px solid #334155; text-align: center; height: 42px; font-size: 1.1rem; font-weight: bold; user-select: none; transition: background 0.2s; color: #cbd5e1; }
        body.bingo-carton-page .sombreada { background-color: #334155; }
        body.bingo-carton-page .marcado { background-color: #f59e0b !important; color: #0f172a !important; }

        body.bingo-carton-page .login-page-title { position: absolute; top: 24px; left: 0; right: 0; margin: 0 auto; color: #ffffff; font-size: 1.65rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; text-align: center; }
        body.bingo-carton-page .panel-botones { display: flex; flex-direction: column; width: 100%; max-width: 550px; gap: 8px; margin-top: 12px; }
        body.bingo-carton-page button { width: 100%; padding: 12px; font-size: 1rem; font-weight: bold; border: none; border-radius: 6px; cursor: pointer; color: white; transition: opacity 0.2s; text-align: center; }
        body.bingo-carton-page button:disabled { opacity: 0.4; cursor: not-allowed; }
        body.bingo-carton-page .btn-empezar { background-color: #2563eb; }
        body.bingo-carton-page .btn-terminar { background-color: #1e293b; }
        body.bingo-carton-page .btn-limpiar { background-color: #dc2626; }
        body.bingo-carton-page .btn-cambiar { background-color: #22c55e; }
        body.bingo-carton-page .btn-principal { display: block; width: 100%; padding: 12px; font-size: 1rem; font-weight: bold; border-radius: 6px; color: white; background: #475569; text-align: center; text-decoration: none; }
        body.bingo-carton-page .btn-principal:hover { background: #64748b; }

        body.bingo-carton-page .zona-validacion { background: #334155; padding: 15px; border-radius: 8px; border: 1px solid #475569; width: 100%; max-width: 550px; margin-top: 12px; display: none; text-align: center; }
        body.bingo-carton-page .clave-box { font-size: 1.3rem; font-weight: bold; color: #f59e0b; letter-spacing: 2px; margin: 5px 0; }
        body.bingo-carton-page input { width: 90px; padding: 8px; text-align: center; font-size: 1.1rem; font-weight: bold; border: 2px solid #334155; border-radius: 4px; margin-top: 5px; color: #0f172a; }
        body.bingo-carton-page .btn-confirmar-cambio { background-color: #10b981; margin-top: 10px; padding: 8px; width: 100%; }

        body.bingo-carton-page .modal-background { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
        body.bingo-carton-page .modal-box { background: #1e293b; border: 1px solid #475569; padding: 20px; border-radius: 10px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.3); animation: fadein 0.2s ease-out; }
        body.bingo-carton-page .modal-box p { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 20px; line-height: 1.4; }
        body.bingo-carton-page .modal-flex-botones { display: table; width: 100%; border-spacing: 10px 0; }
        body.bingo-carton-page .modal-cell { display: table-cell; width: 50%; }
        body.bingo-carton-page .btn-modal-ok { background: #2563eb; width: 100%; padding: 10px; }
        body.bingo-carton-page .btn-modal-cancel { background: #64748b; width: 100%; padding: 10px; }
        body.bingo-carton-page .btn-modal-alert { background: #dc2626; width: 100%; padding: 10px; }
        @keyframes fadein { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* Bingo/monitor.html */
body.bingo-monitor-page * { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, sans-serif; }
        body.bingo-monitor-page { font-family: Arial, sans-serif; background-color: #1e293b; color: white; display: flex; flex-direction: column; align-items: center; padding: 10px; min-height: 100vh; }
        body.bingo-monitor-page h1 { font-size: 1.4rem; margin: 5px 0; color: #cbd5e1; }

        body.bingo-monitor-page /* Marcador de bolas */
        .marcador-bolas { background: #334155; border-radius: 8px; padding: 12px; width: 100%; max-width: 450px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
        body.bingo-monitor-page .bola-actual { font-size: 4.5rem; font-weight: bold; color: #f59e0b; line-height: 1; margin-bottom: 4px; }
        body.bingo-monitor-page .bola-anterior { font-size: 1.1rem; color: #94a3b8; }

        body.bingo-monitor-page .contenedor-tabla { width: 100%; max-width: 450px; margin-top: 12px; background: #0f172a; padding: 6px; border-radius: 8px; }
        body.bingo-monitor-page table { width: 100%; border-collapse: collapse; }
        body.bingo-monitor-page td { border: 1px solid #334155; text-align: center; height: 32px; font-weight: bold; font-size: 0.95rem; color: #64748b; }
        body.bingo-monitor-page .cantado { background-color: #f59e0b !important; color: #0f172a !important; border-color: #f59e0b; font-size: 1.1rem; }

        body.bingo-monitor-page .panel-botones { display: flex; flex-direction: column; width: 100%; max-width: 450px; gap: 8px; margin-top: 12px; }
        body.bingo-monitor-page button { width: 100%; padding: 12px; font-size: 1rem; font-weight: bold; border: none; border-radius: 6px; cursor: pointer; color: white; text-align: center; }
        body.bingo-monitor-page .btn-comenzar { background-color: #22c55e; }
        body.bingo-monitor-page .btn-pausar { background-color: #eab308; color: #0f172a; }
        body.bingo-monitor-page .btn-limpiar { background-color: #ef4444; }
        body.bingo-monitor-page .btn-validar { background-color: #3b82f6; }
        body.bingo-monitor-page .btn-principal { display: block; width: 100%; padding: 12px; font-size: 1rem; font-weight: bold; border-radius: 6px; color: white; background: #475569; text-align: center; text-decoration: none; }
        body.bingo-monitor-page .btn-principal:hover { background: #64748b; }
        body.bingo-monitor-page .btn-login-principal { margin-top: 10px; }

        body.bingo-monitor-page .zona-validacion { background: #334155; padding: 15px; border-radius: 8px; width: 100%; max-width: 450px; margin-top: 10px; display: none; text-align: center; }
        body.bingo-monitor-page .input-num { padding: 8px; width: 100px; font-size: 1.1rem; font-weight: bold; text-align: center; border-radius: 4px; border: none; margin-right: 5px; color: #0f172a; }
        body.bingo-monitor-page .resultado-validacion { font-size: 1.3rem; font-weight: bold; color: #4ade80; margin-top: 10px; letter-spacing: 1px; }

        body.bingo-monitor-page #pantallaLogin { display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #0f172a; z-index: 9999; flex-direction: column; align-items: center; justify-content: center; padding: 20px; font-family: 'Segoe UI', Arial, sans-serif; }
        body.bingo-monitor-page .login-box { background: #1e293b; margin: 20px auto; padding: 30px 20px; border-radius: 12px; width: 100%; max-width: 360px; box-sizing: border-box; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
        body.bingo-monitor-page .login-page-title { position: absolute; top: 24px; left: 0; right: 0; margin: 0 auto; color: #ffffff; font-size: 1.65rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; text-align: center; }
        body.bingo-monitor-page .login-box h2 { font-size: 1.3rem; color: #f59e0b; margin-bottom: 10px; }
        body.bingo-monitor-page .login-box p { font-size: 0.95rem; color: #94a3b8; margin-bottom: 20px; }
        body.bingo-monitor-page .login-box input { width: 140px; padding: 12px; font-size: 1.4rem; font-weight: bold; letter-spacing: 4px; text-align: center; border-radius: 6px; border: 2px solid #334155; background: #0f172a; color: white; margin-bottom: 15px; }
        body.bingo-monitor-page .login-box input:focus { border-color: #f59e0b; outline: none; }
        body.bingo-monitor-page .btn-entrar { background: #22c55e; padding: 12px; width: 100%; font-size: 1.1rem; }
        body.bingo-monitor-page .error-login { color: #ef4444; font-size: 0.9rem; font-weight: bold; margin-top: 10px; display: none; }
        body.bingo-monitor-page .modal-background { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
        body.bingo-monitor-page .modal-box { background: #1e293b; border: 1px solid #475569; padding: 20px; border-radius: 10px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.3); animation: fadein 0.2s ease-out; }
        body.bingo-monitor-page .modal-box p { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 20px; line-height: 1.4; }
        body.bingo-monitor-page .modal-flex-botones { display: table; width: 100%; border-spacing: 10px 0; }
        body.bingo-monitor-page .modal-cell { display: table-cell; width: 50%; }
        body.bingo-monitor-page .btn-modal-ok { background: #2563eb; width: 100%; padding: 10px; }
        body.bingo-monitor-page .btn-modal-cancel { background: #64748b; width: 100%; padding: 10px; }

/* ValentinaPlay shared */
body.valentina-page {
    font-family: 'Comic Neue', cursive;
    touch-action: manipulation;
}

body.valentina-page .game-button, body.valentina-page .modal-button {
    transition: transform 0.2s, background-color 0.3s;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

body.valentina-page .game-button:hover, body.valentina-page .modal-button:hover {
    transform: scale(1.05);
}

body.valentina-page.valentina-home .game-button:hover {
    background-color: #f59e0b;
}

body.valentina-page .bounce {
    animation: bounce 2s infinite;
}

body.valentina-page .game-cell {
    transition: background-color 0.3s, transform 0.2s;
}

body.valentina-page .game-cell:hover:not(.x):not(.o):not(.filled) {
    background-color: #fef08a;
    transform: scale(1.05);
}

body.valentina-page .game-cell.correct {
    background-color: #4ade80 !important;
}

body.valentina-page .game-cell.incorrect {
    background-color: #f87171 !important;
    animation: shake 0.5s;
}

body.valentina-page .game-cell.filled {
    background-color: #d1d5db;
    cursor: default;
}

body.valentina-page .game-cell.valid {
    background-color: #4ade80;
}

body.valentina-page.number-to-number .game-cell {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1f2937;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    cursor: pointer;
}

body.valentina-page.number-to-number .game-cell:hover:not(.filled) {
    background-color: #e5e7eb;
    transform: none;
}

body.valentina-page .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

body.valentina-page .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.valentina-page .clock {
    position: relative;
    width: 250px;
    height: 250px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 4px solid #1e40af;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

body.valentina-page .hour-hand, body.valentina-page .minute-hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: center bottom;
    transform: translateX(-50%);
}

body.valentina-page .hour-hand {
    width: 6px;
    height: 80px;
    background-color: #ef4444;
    border-radius: 3px;
}

body.valentina-page .minute-hand {
    width: 4px;
    height: 100px;
    background-color: #3b82f6;
    border-radius: 2px;
}

body.valentina-page .clock-center {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #1f2937;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

body.valentina-page .clock-number {
    position: absolute;
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    text-align: center;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
}

body.bingo-carton-page .help-button,
body.bingo-monitor-page .help-button,
body.infiltrado-page .help-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    margin: 0;
    padding: 0;
    border: 2px solid #f59e0b;
    border-radius: 50%;
    background: #334155;
    color: #f59e0b;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

body.bingo-carton-page .help-button-bottom,
body.bingo-monitor-page .help-button-bottom,
body.infiltrado-page .help-button-bottom {
    display: block;
    margin: 10px auto 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Privado/index.html */
body.private-page {
    min-height: 100vh;
    margin: 0;
    font-family: 'Manrope', sans-serif;
    background: #0b132b;
    color: #ffffff;
}

body.private-page .private-login {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 76px 24px 24px;
    box-sizing: border-box;
}

body.private-page .login-page-title {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    margin: 0 auto;
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

body.private-page .private-back-link {
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 6px;
    color: white;
    background: #475569;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    margin-top: 16px;
}

body.private-page .private-back-link:hover {
    background: #64748b;
}

body.private-page .private-card {
    width: 100%;
    max-width: 420px;
    background: #1c2541;
    border: 2px solid #3a506b;
    border-radius: 14px;
    padding: 26px;
    box-sizing: border-box;
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

body.private-page h1 {
    margin: 0 0 10px;
    color: #ffb703;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.private-page .access-panel-title {
    font-size: 1.3rem;
    color: #f59e0b;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

body.private-page p {
    color: #cbd5e1;
    line-height: 1.5;
    text-align: center;
}

body.private-page label {
    display: block;
    margin: 14px 0 6px;
    color: #cbd5e1;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

body.private-page input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    background: #0b132b;
    border: 2px solid #3a506b;
    border-radius: 8px;
    color: white;
    font-size: 16px;
}

body.private-page input:focus {
    outline: none;
    border-color: #4cc9f0;
}

body.private-page button {
    width: 100%;
    margin-top: 18px;
    padding: 13px;
    border: 0;
    border-radius: 8px;
    background: #4cc9f0;
    color: #0b132b;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

body.private-page #private-auth-panel button[type="submit"] {
    background: #22c55e;
    color: white;
    padding: 12px;
    font-size: 1.1rem;
}

body.private-page button:disabled {
    opacity: 0.6;
    cursor: wait;
}

body.private-page .private-message {
    margin-bottom: 0;
    color: #ffb703;
    font-weight: 700;
}

body.private-page .private-message[data-type="error"] {
    color: #f87171;
}

body.private-page .private-content h2 {
    margin: 24px 0 8px;
    color: #4cc9f0;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.private-page .private-user-email {
    color: #ffb703;
    font-weight: 800;
    word-break: break-word;
}

body.private-page .private-project-list {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #3a506b;
}

.btn-home {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.home-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

/* Cabeceras y fondos comunes */
body.games-page,
body.bingo-carton-page,
body.bingo-monitor-page,
body.infiltrado-page,
body.private-page {
    background:
        linear-gradient(rgba(11, 19, 43, 0.72), rgba(11, 19, 43, 0.9)),
        url('../images/IMG_1914.jpg') center/cover no-repeat fixed;
    color: #ffffff;
}

body.bingo-carton-page,
body.bingo-monitor-page,
body.infiltrado-page {
    padding-top: 28px;
}

body.private-page .private-login {
    background:
        linear-gradient(rgba(11, 19, 43, 0.72), rgba(11, 19, 43, 0.9)),
        url('../images/IMG_1914.jpg') center/cover no-repeat fixed;
    padding: 142px 24px 24px;
}

body.infiltrado-page #screen-lock.active,
body.bingo-monitor-page #pantallaLogin {
    background:
        linear-gradient(rgba(11, 19, 43, 0.72), rgba(11, 19, 43, 0.9)),
        url('../images/IMG_1914.jpg') center/cover no-repeat fixed;
}

.app-page-header {
    width: 100%;
    max-width: 620px;
    margin: 0 auto 24px;
    text-align: center;
}

.app-page-header .app-page-kicker {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #c72c43;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    backdrop-filter: blur(6px);
}

.app-page-header h1,
body.games-page .app-page-header h1,
body.bingo-carton-page .app-page-header h1,
body.bingo-monitor-page .app-page-header h1,
body.infiltrado-page .app-page-header h1,
body.private-page .app-page-header h1 {
    margin: 0;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 12vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

body.bingo-carton-page .app-page-header {
    margin-bottom: 16px;
}

body.bingo-monitor-page > .app-page-header,
body.infiltrado-page > .app-page-header {
    margin-top: 0;
    margin-bottom: 18px;
}

body.infiltrado-page .main-app-title {
    color: inherit;
    font-size: inherit;
    letter-spacing: 0;
    text-shadow: none;
}

body.private-page .login-page-title,
body.bingo-monitor-page .login-page-title,
body.infiltrado-page #screen-lock .login-page-title {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    margin: 0 auto;
    color: inherit;
}

/* Unificacion de accesos y 404 */
body.infiltrado-page #screen-lock.active,
body.bingo-monitor-page #pantallaLogin {
    padding: 142px 24px 24px;
}

body.infiltrado-page #screen-lock .login-box,
body.bingo-monitor-page .login-box {
    border: 2px solid #3a506b;
    border-radius: 14px;
    max-width: 420px;
}

body.infiltrado-page #screen-lock .btn-login-principal,
body.bingo-monitor-page .btn-login-principal {
    width: 100%;
    max-width: 420px;
    margin: 16px auto 0;
}

body.error-page {
    background-color: #0b132b;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 76px 24px 24px;
    min-height: 100vh;
    text-align: center;
}

body.error-page .login-page-title {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    margin: 0 auto;
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

body.error-page .contenedor-error {
    width: 100%;
    max-width: 420px;
    background: #1c2541;
    border: 2px solid #3a506b;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

body.error-page .numero-404 {
    font-size: 5rem;
    color: #f59e0b;
    margin-bottom: 15px;
}

body.error-page p {
    color: #cbd5e1;
    margin-bottom: 0;
}

body.error-page .error-actions {
    width: 100%;
    max-width: 420px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.error-page .btn-regresar {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    color: white;
    background: #475569;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

body.error-page .btn-regresar:hover {
    background: #64748b;
}

body.error-page .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body.error-page .modal-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #1c2541;
    border: 2px solid #3a506b;
    border-radius: 14px;
    padding: 30px 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

body.error-page .modal-box h3 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.error-page .modal-box p {
    margin-bottom: 20px;
}

body.error-page .modal-buttons-container {
    display: flex;
    gap: 12px;
}

body.error-page .btn-modal-link {
    flex: 1;
    display: block;
    padding: 14px;
    border: 2px solid #3a506b;
    border-radius: 10px;
    background: #0b132b;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

body.error-page .btn-modal-cancel {
    background: transparent;
}

body.error-page .close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: 0;
    color: #cbd5e1;
    font-size: 22px;
    cursor: pointer;
}

/* Tipografias globales */
body.valentina-page,
body.valentina-page * {
    font-family: 'Comic Neue', cursive;
}

body.home-page,
body.home-page button,
body.home-page input,
body.home-page textarea,
body.home-page a,
body.games-page,
body.games-page *,
body.error-page,
body.error-page *,
body.bingo-carton-page,
body.bingo-carton-page *,
body.bingo-monitor-page,
body.bingo-monitor-page *,
body.infiltrado-page,
body.infiltrado-page *,
body.private-page,
body.private-page * {
    font-family: 'Manrope', sans-serif;
}

body.home-page h1,
body.home-page h2,
body.home-page h3,
body.games-page h1,
body.games-page h2,
body.games-page h3,
body.error-page h1,
body.error-page h2,
body.error-page h3,
body.bingo-carton-page h1,
body.bingo-carton-page h2,
body.bingo-carton-page h3,
body.bingo-monitor-page h1,
body.bingo-monitor-page h2,
body.bingo-monitor-page h3,
body.infiltrado-page h1,
body.infiltrado-page h2,
body.infiltrado-page h3,
body.private-page h1,
body.private-page h2,
body.private-page h3 {
    font-family: 'Montserrat', sans-serif;
}

/* Mobile layout fixes */
@media (max-width: 768px) {
    body.home-page .buttons-grid,
    body.home-page .modal-buttons-container,
    body.valentina-page.valentina-home .grid {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    body.home-page .btn-section,
    body.home-page .btn-modal-link,
    body.valentina-page.valentina-home .game-button {
        width: 100%;
        box-sizing: border-box;
    }
}

#daily-access-formula {
    white-space: pre-line;
}
