
body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--fuente-principal);
    margin: 0;
    min-height: 100vh; 
}

/* cuadricula */
.bento-grid {
    display: grid;
    gap: 15px;
    width: 100%;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
}

.bento-item {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 25px; 
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-2px);
}

/* estilo de las cajas internas */
.item-foto {
    background-size: cover;
    background-position: center;
    border: none;
    padding: 0; 
}

/* titulo */
.item-header h1 {
    font-size: 3.5em; 
    font-weight: 900; 
    margin: 0 0 5px 0;
    color: #000;
    letter-spacing: -3px; 
    line-height: 1;
}

.item-header p {
    font-size: 1.1em;
    margin: 0;
    color: #333;
    font-weight: 500;
}
.item-header { background: #ffc107; }

.item-buscador h3 {
    margin-top: 0;
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.item-menu h3 {
    margin-bottom: 8px
}

.bento-item.item-luz-info {
    padding: 3rem;
}

.item-luz-info h3 {
    margin-top: 0;
    color: #ffb74d;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.item-isotipo {
    background: #111; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.item-isotipo img {
    width: 30%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 193, 7, 0.2));
}

#widget-hora-dorada {
    font-size: 0.9em;
}

/* Buscador */
.form-buscador { display: flex; gap: 10px; width: 100%; }
.input-buscador {
    flex-grow: 1;
    padding: 12px;
    background: #0a0a0a;
    color: #fff;
    border: 1px solid #333;
    border-radius: 10px;
    outline: none;
}
.input-buscador:focus { border-color: #ffc107; }
.btn-buscador-submit {
    padding: 12px 20px;
    background: #ffc107;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* Botones del menú */
.botones-grid {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
}

.botones-grid h3{
    text-align: center;
}

.botones-grid a {
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    color: #201f1f;
    background: #ffc107;
    transition: 0.2s;
    font-size: 0.9em;
}
.botones-grid .btn-login, .botones-grid .btn-gincana {
    background: #ffc107;
    color: #000;
}
.botones-grid a:hover { filter: brightness(1.2); }

/* Hora Dorada Grid interno */
.hora-dorada-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.tarjeta-hora {
    background: #0a0a0a;
    padding: 5px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
}
.tarjeta-hora .icono { font-size: 1.5em; display: block; margin-bottom: 5px; }
.tarjeta-hora .hora { font-size: 1em; font-weight: bold; }
.tarjeta-hora.destacada { border-color: #ffc107; }
.tarjeta-hora.azul { border-color: #4fc3f7; }

@media (min-width: 900px) {
    body {
        height: 100vh;
        overflow: hidden;
    }
    
    .bento-grid {
        height: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 1fr); 
        gap: 15px;
    }

    
    .item-header      { grid-column: 1 / 3; grid-row: 1 / 2; } 
    .item-buscador    { grid-column: 1 / 3; grid-row: 2 / 3; } 
    .item-foto.foto-1 { grid-column: 3 / 5; grid-row: 1 / 3; } 

    /* --- FILA 3 (Cajas de información y logos) --- */
    .item-foto.foto-4 { grid-column: 1 / 2; grid-row: 3 / 4; } /* Foto Izq */
    .item-isotipo     { grid-column: 2 / 3; grid-row: 3 / 4; } /* Logo */
    .item-foto.foto-2 { grid-column: 3 / 4; grid-row: 3 / 4; } /* Foto Centro */
    .item-menu        { grid-column: 4 / 5; grid-row: 3 / 4; padding: 15px !important; } /* Menú */

    /* --- FILA 4 (Todas las fotos de base) --- */
    .bento-item.item-luz-info { grid-column: 1 / 2; grid-row: 4 / 5; padding: 1.5rem; } 
    .item-foto.foto-3         { grid-column: 2 / 3; grid-row: 4 / 5; } 
    
    .item-foto.foto-5         { grid-column: 4 / 5; grid-row: 4 / 5; } 
    
    .item-foto.foto-2 { grid-column: 3 / 4; grid-row: 3 / 5; } 
}