/* ==========================================
   1. ESTILOS DE LA VISTA INDIVIDUAL (dia_resultado.html)
   ========================================== */

/* Emisión y Títulos */
.emision {
    font-size: 1.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
}

.numero-sorteo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #32cd32; /* El verde que mencionas */
    background-color: #fff3e0;
    padding: 2px 6px;
    border-radius: 6px;
}

/* Bolas Generales (Usadas en ambas vistas) */
.bolas {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.bola {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.1);
}

.bola.principal { background-color: #007bff; }
.bola.extra { background-color: #dc3545; }

/* Desglose Vertical (Listas de aciertos/premios) */
.desglose-vertical {
    list-style: none;
    padding: 0;
    margin: 6px 0 14px 0;
    display: inline-block;
}

.desglose-vertical li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 6px 10px;
    background-color: #f5f7fa;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

/* Bolas de Sí / No */
.desglose-bola {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
}

.desglose-si { background-color: #e6f7ee; color: #00A651; }
.desglose-bola.si { background-color: #198754; }

.desglose-no { background-color: #fdeaea; color: #842029; }
.desglose-bola.no { background-color: #dc3545; }

/* Gana Gato */
.gana-gato-wrapper { display: flex; justify-content: center; margin: 30px 0; }
.hash-grid {
    display: grid;
    grid-template-columns: repeat(3, 70px);
    grid-template-rows: repeat(3, 70px);
    gap: 6px;
    background: #f5f5f5;
    padding: 12px;
    border-radius: 12px;
}
.hash-grid span {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8em; font-weight: bold; background: white; border-radius: 8px;
}
.hash-grid .gato { font-size: 2.2em; background: #ffeb3b; }

/* ==========================================
   2. ESTILOS DEL HISTÓRICO (historico_dia.html)
   ========================================== */

.vista-historico .seccion-anio {
    margin-bottom: 50px;
}

.vista-historico .titulo-anio {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    border-left: 6px solid #007bff;
    padding-left: 15px;
}

.vista-historico .grid-3-columnas {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* FORZAMOS 3 COLUMNAS */
    gap: 20px;
}

.vista-historico .result-card {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

/* Cabecera miniatura dentro de la card */
.card-top-historico {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #f8f9fa;
    padding-bottom: 8px;
}

.full-date-historico { font-size: 0.85rem; color: #64748b; font-weight: bold; }
.draw-tag { font-size: 0.75rem; color: #00A651; background: #e6f7ee; padding: 2px 8px; border-radius: 4px; }

/* Separador horizontal entre años */
.separador-anio {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 992px) {
    .vista-historico .grid-3-columnas { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    .vista-historico .grid-3-columnas { grid-template-columns: 1fr !important; }
    .vista-historico .bola { width: 36px !important; height: 36px !important; font-size: 1rem !important; }
}

/* Selector de fecha */

.selector-fecha-contenedor {
    display: flex;
    justify-content: center;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.input-date-custom {
    border: 2px solid #e2e8f0;
    padding: 8px;
    border-radius: 6px;
    margin-right: 10px;
}

.btn-consultar {
    background-color: #28a745; /* Verde para que resalte */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* --- Navegación Histórica --- */
.navegacion-dias {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0 30px 0;
}

.btn-nav {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none !important;
    color: #1e293b;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-nav:hover {
    border-color: #007bff;
    background: #f8fbff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

.nav-derecha {
    justify-content: flex-end;
    text-align: right;
}

.texto-nav {
    display: flex;
    flex-direction: column;
}

.texto-nav small {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.texto-nav span {
    font-weight: 700;
    font-size: 0.95rem;
}

.flecha {
    font-size: 1.5rem;
    color: #007bff;
    font-weight: bold;
    margin: 0 15px;
}

@media (max-width: 576px) {
    .btn-nav span { font-size: 0.8rem; }
    .flecha { margin: 0 5px; }
}


/* --- Historico Dia --- */

.vista-historico-neo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
    font-family: 'Lexend Mega', sans-serif;
    color: #1A1A1A;
}

/* Selector de Fecha */
.selector-fecha-neo {
    background-color: #FFF9D1;
    border: 4px solid #000000;
    box-shadow: 6px 6px 0px #000000;
    padding: 20px;
    margin-bottom: 25px;
}
.input-group-neo {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
.label-neo {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.input-date-neo {
    padding: 10px;
    border: 3px solid #000000;
    font-family: 'Lexend Mega', sans-serif;
    font-weight: 900;
    box-sizing: border-box;
}
.btn-consultar-neo {
    background-color: #00A859;
    color: #FFFFFF;
    border: 3px solid #000000;
    padding: 10px 20px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000000;
}
.btn-consultar-neo:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
}

/* Navegación */
.navegacion-dias-neo {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}
.btn-nav-neo {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #FFFFFF;
    border: 3px solid #000000;
    padding: 15px;
    text-decoration: none;
    color: #1A1A1A;
    box-shadow: 5px 5px 0px #000000;
}
.btn-nav-neo:hover {
    background-color: #FFF9D1;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #000000;
}
.nav-derecha-neo {
    justify-content: space-between;
}
.texto-nav small {
    display: block;
    font-size: 0.7rem;
    color: #666;
}
.texto-nav span {
    font-weight: 900;
    font-size: 0.9rem;
}

/* Header */
.header-main-neo {
    text-align: center;
    margin: 40px 0;
}
.badge-historico-neo {
    background-color: #1A1A1A;
    color: #FFFFFF;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}
.header-main-neo h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 10px 0;
}

/* Años y Grids */
.titulo-anio-neo {
    font-size: 1.8rem;
    font-weight: 900;
    background-color: #FFCC00;
    display: inline-block;
    padding: 5px 15px;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.grid-3-columnas-neo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 150fr));
    gap: 25px;
}

/* Tarjetas de Sorteo */
.result-card-neo {
    background-color: #FFFFFF;
    border: 4px solid #000000;
    box-shadow: 6px 6px 0px #000000;
    padding: 20px;
    position: relative;
}
.card-top-historico-neo {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 2px dashed #000000;
    padding-bottom: 10px;
}
.full-date-historico-neo {
    font-weight: 900;
    font-size: 0.85rem;
}
.draw-tag-neo {
    background-color: #E6E6E6;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 900;
    border: 1.5px solid #000000;
}

/* Bolas */
.bolas-contenedor-neo {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 15px 0;
}
.bola-neo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border: 3px solid #000000;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 2px 2px 0px #000000;
}
.principal-neo { background-color: #FFCC00; }
.extra-neo { background-color: #00A859; color: #FFFFFF; }

/* Separadores y Anuncios */
.separador-anio-neo {
    border-top: 4px dashed #000000;
    margin: 50px 0;
}
.contenedor-anuncio-neo {
    background-color: #F5F5F5;
    border: 3px dashed #000000;
    padding: 15px;
    margin: 40px 0;
    text-align: center;
}
.anuncio-label-neo {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #666;
    display: block;
    margin-bottom: 10px;
}
.no-results-box-neo {
    border: 4px solid #000000;
    background-color: #FF4D4D;
    color: #FFFFFF;
    padding: 30px;
    text-align: center;
    font-weight: 900;
    box-shadow: 6px 6px 0px #000000;
}

/* Contenedor General */
.contenedor-resultados-neo {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 15px;
    font-family: 'Lexend Mega', sans-serif;
    color: #000000;
}

/* Header */
.resultados-header-neo {
    text-align: center;
    margin-bottom: 30px;
}
.badge-oficial-neo {
    background-color: #00A859;
    color: #FFFFFF;
    padding: 5px 12px;
    font-weight: 900;
    border: 3px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: inline-block;
}
.titulo-resultados-neo {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 15px;
}
.fecha-larga-neo {
    display: block;
    font-size: 1.3rem;
    color: #555555;
    margin-top: 5px;
}

/* Tarjetas de Sorteos */
.card-sorteo-neo {
    background-color: #FFFFFF;
    border: 4px solid #000000;
    box-shadow: 7px 7px 0px #000000;
    padding: 25px;
    margin-bottom: 35px;
}
.header-sorteo-neo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #000000;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.emision-titulo-neo {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}
.badge-sorteo-num {
    background-color: #00A859;
    color: #FFFFFF;
    border: 2px solid #000000;
    padding: 4px 10px;
    font-weight: 900;
    font-size: 0.8rem;
}

/* Bolas Extras */
.bolas-extras-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    background-color: #F9F9F9;
    border: 2px dashed #000000;
    padding: 15px;
}
.bola-extra-item-neo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.extra-label-neo {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* Desglose Listas */
.desglose-contenedor-neo {
    margin-top: 25px;
    border-top: 3px solid #000000;
    padding-top: 20px;
}
.desglose-lista-neo {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}
.desglose-item-neo {
    background-color: #FFFFFF;
    border: 2px solid #000000;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    box-shadow: 3px 3px 0px #000000;
}
.concepto-label {
    font-weight: 900;
}
.valor-box-neo {
    font-weight: 900;
}
.item-si { background-color: #E6F4EA; }
.item-no { background-color: #FCE8E6; }
.icon-neo {
    margin-right: 3px;
}

/* SEO Sección */
.card-seo-descripcion-neo {
    background-color: #FFFFFF;
    border: 4px solid #000000;
    padding: 30px;
    box-shadow: 6px 6px 0px #000000;
    margin-top: 40px;
}
.callout-seo-neo {
    background-color: #FFF9D1;
    border: 2px solid #000000;
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
}
.titulo-descripcion-neo {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 3px solid #000000;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.contenido-descripcion-neo {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #333333;
}

/* ==========================================================================
   ESFERAS Y GANADORES NEOBRUTALISTAS
   ========================================================================== */

/* Contenedor lineal de los números de la combinación */
.bloque-numeros-neo {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.bloque-numeros-neo .bola,
.bola.principal {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 55px !important;
    height: 55px !important;
   
    background-color: #FFCC00 !important; 
    color: #000000 !important;
    
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    
    border: 4px solid #000000 !important;
    border-radius: 8px !important; /* Cuadradas con esquinas ligeramente curvas */
    box-shadow: 4px 4px 0px #000000 !important;
    
    text-shadow: none !important;
    transition: transform 0.1s ease !important;
}

.bloque-numeros-neo .bola:hover,
.bola.principal:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 6px 6px 0px #000000 !important;
}