/* CONFIGURACIÓN GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {

    font-family: Arial, Helvetica, sans-serif;

    background-color: #f4f4f4;

    color: #333;

}


/* ENCABEZADO */

header {

    background-color: #111827;

    color: white;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 15px 8%;

}


.logo {

    display: flex;

    align-items: center;

    gap: 15px;

}


.logo img {

    width: 60px;

    height: 60px;

    object-fit: contain;

}


nav a {

    color: white;

    text-decoration: none;

    margin-left: 20px;

    font-weight: bold;

}


nav a:hover {

    color: #facc15;

}


/* BANNER */

.banner {

    background-image: url("img/logo\ loteria.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    color: white;

    text-align: center;

    padding: 100px 20px;
}


.banner h2 {

    font-size: 42px;

    margin-bottom: 20px;

}


.banner p {

    font-size: 20px;

    margin-bottom: 30px;

}


button {

    background-color: #facc15;

    color: #111;

    border: none;

    padding: 15px 30px;

    font-size: 16px;

    font-weight: bold;

    border-radius: 8px;

    cursor: pointer;

}


button:hover {

    transform: scale(1.05);

}


/* RESULTADOS */

.resultados {

    padding: 70px 10%;

    text-align: center;

}


.resultados h2 {

    font-size: 32px;

    margin-bottom: 40px;

}






/* PRÓXIMOS SORTEOS */

.proximos {

    background-color: #111827;

    color: white;

    padding: 70px 10%;

    text-align: center;

}


.proximos h2 {

    margin-bottom: 30px;

}


.tabla-sorteos {

    max-width: 700px;

    margin: auto;

}


.sorteo {

    background-color: #1f2937;

    margin: 15px;

    padding: 20px;

    border-radius: 10px;

    display: flex;

    justify-content: space-between;

}


/* PIE DE PÁGINA */

footer {

    background-color: #000;

    color: white;

    text-align: center;

    padding: 25px;

}

/* RESULTADO DESTACADO */

.resultado-destacado {

    width: 100%;

    background: white;

    padding: 50px 30px;

    border-radius: 20px;

    box-shadow: 0 8px 30px rgba(0,0,0,0.15);

    text-align: center;

}


.encabezado-resultado h3 {

    font-size: 42px;

    color: #4f46e5;

    margin-bottom: 10px;

}


.encabezado-resultado p {

    font-size: 20px;

    color: #777;

}


/* NÚMEROS */

.resultado-destacado .numeros {

    display: flex;

    justify-content: center;

    gap: 30px;

    margin: 45px 0;

}


.resultado-destacado .numeros span {

    width: 110px;

    height: 110px;

    background-color: #7c3aed;

    color: white;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 55px;

    font-weight: bold;

    box-shadow: 0 5px 15px rgba(124,58,237,0.35);

}


/* SERIE */

.serie {

    margin-bottom: 35px;

}


.serie span {

    display: block;

    color: #777;

    font-size: 18px;

    margin-bottom: 5px;

}


.serie strong {

    font-size: 32px;

    color: #111827;

}


/* PREMIO */

.premio {

    background-color: #111827;

    color: white;

    padding: 25px;

    border-radius: 15px;

}


.premio span {

    display: block;

    font-size: 20px;

    margin-bottom: 10px;

}


.premio strong {

    font-size: 38px;

    color: #facc15;

}

@media (max-width: 600px) {

    .resultado-destacado {
        padding: 35px 15px;
    }

    .encabezado-resultado h3 {
        font-size: 30px;
    }

    .resultado-destacado .numeros {
        gap: 10px;
    }

    .resultado-destacado .numeros span {
        width: 65px;
        height: 65px;
        font-size: 30px;
    }

    .premio strong {
        font-size: 28px;
    }

}

.resultado-destacado .numeros span:last-child {
    background-color: #facc15;
    color: #111827;
}

/* HISTORIAL DE RESULTADOS */

.historial {
    background-color: #f4f4f4;
    padding: 60px 5%;
    text-align: center;
}

.historial h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #111827;
}

.descripcion-historial {
    color: #777;
    margin-bottom: 35px;
}

.historial-contenedor {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.resultado-anterior {
    background-color: white;
    width: 320px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.resultado-anterior h3 {
    color: #4f46e5;
    margin-bottom: 20px;
}

.numeros-anteriores {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.numeros-anteriores span {
    width: 45px;
    height: 45px;
    background-color: #7c3aed;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.resultado-anterior p {
    color: #777;
}

.resultado-anterior p strong {
    color: #111827;
}

.numeros-anteriores span:last-child {
    background-color: #facc15;
    color: #111827;
}