/* --- CONFIGURACIÓN GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body.premio-page {
    background: radial-gradient(circle at 50% 40%, #e60000 0%, #500000 70%, #200000 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* LINEA DE LUZ PRINCIPAL (La curva brillante diagonal) */
body.premio-page::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 300px;
    bottom: -50px;
    right: -10%;
    /* Crea la franja de luz blanca/roja intensa */
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 40%,
        rgba(255, 40, 40, 0.8) 50%,
        rgba(255, 0, 0, 0) 80%
    );
    /* Curva y rota la línea para que cruce desde abajo a la derecha hacia arriba */
    transform: rotate(-25deg);
    transform-origin: bottom right;
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}

/* SEGUNDA LÍNEA DE REFLEJO (Para dar el efecto de ondas superpuestas) */
body.premio-page::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 150px;
    bottom: 80px;
    right: -20%;
    background: linear-gradient(
        to bottom,
        rgba(255, 100, 100, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 0, 0, 0) 100%
    );
    transform: rotate(-15deg);
    filter: blur(15px);
    pointer-events: none;
    z-index: 0;
}

/* DESTELLO DE LUZ EXTRA EN LA BOLA ROJA (Efecto resplandor de fondo) */
.numeros-ganadores-section {
    position: relative;
    z-index: 1;
}

/* Añade un destello brillante justo detrás de la zona de las esferas */
.numeros-ganadores-section::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 0, 0, 0) 70%);
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}


.dashboard-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    padding: 25px;
    text-align: center;
}

/* --- ENCABEZADO --- */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-logo {
    height: 35px;
    object-fit: contain;
}

.fecha-sorteo-top {
    text-align: right;
    font-size: 11px;
    opacity: 0.9;
}

.fecha-label {
    display: block;
    font-weight: 300;
    color: #ffcccc;
}

.fecha-valor {
    font-weight: 500;
}

/* --- SECCIÓN PREMIO MAYOR --- */
.main-prize-section {
    margin-bottom: 35px;
}

.premio-mayor-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.monto-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 15px;
}

.currency-badge {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
}

.premio-monto {
    font-size: 75px;
    font-weight: 800;
    line-height: 1;
}

.sub-badge {
    display: inline-block;
    background: linear-gradient(180deg, #333 0%, #111 100%);
    padding: 6px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- ESFERAS EN 3D --- */
.numeros-ganadores-section {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.bola {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.2), 0 6px 15px rgba(0,0,0,0.3);
}

.bola.blanca {
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e6e6e6 60%, #b3b3b3 100%);
    color: #111111;
}

.bola.roja {
    background: radial-gradient(circle at 30% 30%, #ff4d4d 0%, #cc0000 60%, #800000 100%);
    color: #ffffff;
}

/* --- PANEL CONTADOR (GLASSMORPHISM) --- */
.contador-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 25px;
}

.contador-header {
    font-size: 11px;
    font-weight: 600;
    color: #ffb3b3;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.estrella {
    color: #ffcc00;
}

.contador-fecha {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 15px;
}

.contador-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.tiempo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.tiempo-item .numero {
    font-size: 22px;
    font-weight: 700;
    color: #ffcc00; /* Color dorado amarillento para resaltar */
}

.tiempo-item .etiqueta {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.linea-divisoria {
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- BOTÓN CERRAR SESIÓN --- */
.logout-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.logout-btn:hover {
    background-color: #ffffff;
    color: #cc0000;
    border-color: #ffffff;
}

/* --- PIE DE PÁGINA --- */
.legal-footer {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 12px;
    text-align: center;
    font-size: 11px;
    opacity: 0.8;
    z-index: 1;
}/* ==========================================================================
   ESTILOS EXCLUSIVOS PARA LA PÁGINA DE LOGIN (index.html)
   ========================================================================== */

body.login-page {
    /* Mismo fondo espectacular con el destello curvo que logramos antes */
    background: 
        radial-gradient(circle at 85% 75%, rgba(255, 30, 30, 0.75) 0%, rgba(255, 0, 0, 0) 50%),
        radial-gradient(ellipse 70% 40% at 90% 70%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(circle at 50% 40%, #e60000 0%, #500000 70%, #200000 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra la tarjeta verticalmente */
    align-items: center;     /* Centra la tarjeta horizontalmente */
    overflow: hidden;
    position: relative;
    padding: 20px;
}

/* Tarjeta contenedora estilo Glassmorphism */
.login-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px 35px;
    width: 100%;
    max-width: 420px; /* Tamaño perfecto para verse estilizado */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    text-align: center;
    z-index: 1;
}

/* Encabezado y Logo */
.login-header {
    margin-bottom: 35px;
}

.login-logo {
    max-width: 220px;
    height: auto;
    object-fit: contain;
}

/* Formulario y cajas de entrada (Inputs) */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.input-group {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 12px;
    font-weight: 500;
    color: #ffcccc;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.input-group input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

/* Efecto cuando el usuario hace clic para escribir */
.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Marcador de posición (Placeholder text) */
.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Opciones extras */
.form-options {
    text-align: right;
    margin-top: -5px;
}

.forgot-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #ffcc00; /* Resalta en dorado al pasar el mouse */
}

/* Botón de Ingreso Sólido */
.login-btn {
    background: #ffffff;
    color: #cc0000;
    border: none;
    padding: 15px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    background: #ffcc00; /* Cambia a dorado brillante al pasar el mouse */
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
}

/* Footer del Login */
.legal-footer-login {
    position: absolute;
    bottom: 20px;
    font-size: 11px;
    opacity: 0.6;
    text-align: center;
    width: 100%;
    pointer-events: none;
}
