/* Hero Banner */
.hero_banner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 400px;
}

.hero_banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #DF0037;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0.7;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.hero_banner.loaded::before {
    opacity: 0;
    animation: none;
}

.hero_banner img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    position: relative;
    z-index: 2;
}

.hero_banner img.loaded,
.hero_banner img[complete] {
    opacity: 1;
}

/* Mostrar banner desktop por defecto */
.hero_banner__desktop {
    display: block;
}

.hero_banner__mobile {
    display: none;
}

.hero_banner__mobile {
    display: none;
}

.hero_banner__desktop {
    display: block;
}

/* Galería de Premios */
.awards_gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
}

.award-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    width: 100%;
}

.award-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #DF0037;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0.7;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.award-item.loaded::before {
    opacity: 0;
    animation: none;
}

.awards_gallery img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.awards_gallery img.loaded,
.awards_gallery img[complete] {
    opacity: 1;
}

/* Sección de Títulos */

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    margin: 2rem 0 0 0;
}

.title p {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--rojo);
    max-width: 800px;
}

.title img {
    width: 60px;
    height: auto;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.title img.loaded,
.title img[complete] {
    opacity: 1;
}

.__winners {
    flex-direction: column;
    align-items: center;
    gap: 0rem;
}

.__ph {
    margin: 0;
}

.__regular {
    font-weight: 400 !important;
}

.__winners--text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

/* Galería de Fechas */
.fechas_gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
}

.fecha-item {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    width: 100%;
}

.fecha-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #DF0037;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0.7;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.fecha-item.loaded::before {
    opacity: 0;
    animation: none;
}

.fechas_gallery img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    position: relative;
    z-index: 2;
}

.fechas_gallery img.loaded,
.fechas_gallery img[complete] {
    opacity: 1;
}

.fechas_gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Wrapper para alinear contenido */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Contenedor de imágenes (folios y souvenirs) */
.image_container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
    min-height: 400px;
    border-radius: 8px;
}

.image_container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #DF0037;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0.7;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.image_container.loaded::before {
    opacity: 0;
    animation: none;
}

.image_container img {
    width: 100%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    position: relative;
    z-index: 2;
}

.image_container img.loaded,
.image_container img[complete] {
    opacity: 1;
}

.image_container img:hover {
    transform: scale(1.02);
}

/* Texto informativo */
.info_text {
    text-align: center;
    padding: 1rem 2rem;
    margin: 0rem auto;
    max-width: 650px;
    background-color: #009DA9;
    border-radius: 60px;
}

.__souvenirs {
    max-width: 450px;
}

.info_text p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fff;
}

.__disclaimer {
    font-size: 0.9rem;
    margin: 1rem auto 2rem;
    opacity: 0.8;
    color: #DF0037;
    font-weight: 500;
    padding: 0 2rem;
    text-align: center;
    max-width: 1200px;
}

/* Tablet */
@media (width <=1024px) {
    .content-wrapper {
        padding: 0 1.5rem;
    }

    .awards_gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .awards_gallery img {
        max-width: 250px;
    }

    .title p {
        font-size: 1.3rem;
    }

    .title img {
        width: 50px;
    }

    .fechas_gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0rem 1.5rem;
    }

    .fecha-item {
        min-height: 220px;
    }

    .fechas_gallery img {
        max-width: 300px;
    }

    .image_container {
        padding: 1.5rem;
        min-height: 350px;
    }

    .image_container img {
        max-width: 700px;
    }

    .info_text {
        padding: 1rem 1.5rem;
    }

    .info_text p {
        font-size: 0.9rem;
    }

    .__disclaimer {
        font-size: 0.8rem;
        padding: 0 0.5rem;
        margin: 1rem auto 1.5rem;
    }
}

/* Mobile */
@media (width<= 768px) {
    .content-wrapper {
        padding: 0 1rem;
    }

    .hero_banner {
        margin-bottom: 2rem;
        min-height: auto;
        padding: 2rem 1rem;
    }

    /* Cambiar a banner móvil */
    .hero_banner__desktop {
        display: none;
    }

    .hero_banner__mobile {
        display: block;
    }

    .awards_gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .awards_gallery img {
        max-width: 200px;
    }

    .title {
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .title p {
        font-size: 1.1rem;
    }

    .title{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .__winners{
        flex-direction: column;
        gap: 0.5rem;
    }

    .fechas_gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0rem 1rem;
    }

    .fecha-item {
        min-height: 200px;
    }

    .fechas_gallery img {
        max-width: 100%;
    }

    .image_container {
        padding: 1.5rem 1rem;
    }

    .image_container img {
        max-width: 100%;
    }

    .info_text {
        padding: 1rem;
    }

    .info_text p {
        font-size: 1rem;
    }

    .__disclaimer {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

/* Animación de spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Small Mobile */
@media (width<=480px) {
    .content-wrapper {
        padding: 0 0.5rem;
    }

    .hero_banner {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1.5rem 0.0rem;
        min-height: auto;
    }

    .hero_banner img {
        max-width: 92%;
    }

    .awards_gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .awards_gallery img {
        max-width: 280px;
    }

    .title {
        gap: 1rem;
    }

    .title p {
        font-size: 1rem;
    }

    .fechas_gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 1rem;
    }

    .fecha-item {
        min-height: 180px;
    }

    .fechas_gallery img {
        max-width: 100%;
    }

    .image_container {
        padding: 0rem 0.5rem;
        min-height: 200px;
    }

    .image_container img {
        max-width: 100%;
    }

    .info_text {
        padding: 0.5rem 1rem;
        max-width: 90%;
    }

    .info_text p {
        font-size: 0.9rem;
    }
}