/* 1. RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Descomenta la línea de abajo si quieres ver las cajas Rojas mañana */
   /* outline: 1px solid red;*/
}

body {
    background: radial-gradient(circle, #1a1a1a 0%, #000000 100%);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Evita scroll lateral */
}

/* 2. ESTRUCTURA PRINCIPAL */
main {
    flex: 1; /* Empuja al footer al fondo */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#pantalla-dividida {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* 3. PANEL SUPERIOR (Compactado) */
#logo-grande.logo {
    display: block;
    margin: 5px auto;
    width: 140px; /* Un poco más pequeño para ganar espacio */
    opacity: 0.6;
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 2px 2px 4px  rgba(0, 0, 0, 0.5);
    margin-top: 10px;
    margin-bottom: 5px;
    margin: 5px 0;
    text-align: center;
}

#configuracion {
    margin: 5px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

#numero-sorteado {
    font-size: 80px;
    font-weight: bold;
    color: #ff007f;
    text-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
    margin: 5px 0 ;
    line-height: 1;
    text-align: center;
    width: 100%;
}

/* 4. SECCIÓN DE SORTEO (Lado a Lado) */
#contenedor-magico {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 95%;
    height: 55vh; /* Altura controlada para que quepa todo */
    gap: 20px;
    margin-bottom: 10px;
}

#afiche-principal.img-responsiva {
    max-height: 100%;
    width: auto;
    border-radius: 10px;
    object-fit: contain;
}

#tablero {
    width: 45%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 5. BOTONES Y LISTAS */
#botones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

#botones button {
    flex: 1 1 45%;
    padding: 8px;
    cursor: pointer;
    background-color: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 5px;
}

#columna-ganadores, #columna-descartes {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #1a1a1a;
    scrollbar-gutter: stable;
}

#columna-ganadores h2, #columna-descartes h2 {
    font-size: 1rem;
    margin-bottom: 5px;
}

/* 6. FOOTER (Siempre al fondo) */
footer {
    padding: 10px;
    background-color: #000;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid #222;
}

/* 7. SCROLLBAR ESTILO NEÓN */
#columna-ganadores::-webkit-scrollbar, 
#columna-descartes::-webkit-scrollbar {
    width: 6px;
}

#columna-ganadores::-webkit-scrollbar-thumb, 
#columna-descartes::-webkit-scrollbar-thumb {
    background: #ff007f;
    border-radius: 10px;
}

/* 8. RESPONSIVE */
@media (max-height: 700px) {
    #logo-grande { width: 100px; }
    #numero-sorteado { font-size: 60px ; }
    #contenedor-magico { height: 45vh; }
}

span,#numero-grande-rosa {
  color: #fff; 
  font-weight: bold;
  text-shadow: 0 0 8px #d10056, 0 0 15px #d10056; /* Efecto neón rosa */  
 border-bottom: 2px solid #ff4d94; /* Línea más gruesa y del mismo color */
 display: inline-block; /* ¡IMPORTANTE! Ayuda a que los márgenes y bordes se apliquen mejor */
}
