/* Banderas de países */
.hero-flags {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
    opacity: 0.8;
}

.flags-row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.flag-container {
    position: relative;
    transform: translateY(0px);
    transition: all 0.4s ease;
}

.country-flag {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 235, 59, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}

.flag-container:hover {
    transform: translateY(-10px) scale(1.1);
    opacity: 1;
}

.flag-container:hover .country-flag {
    border-color: rgba(255, 235, 59, 0.8);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.4);
    filter: brightness(1.1) saturate(1.2);
}

/* Animación de entrada para las banderas */
@keyframes flagFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    100% {
        opacity: 0.8;
        transform: translateY(0px) scale(1);
    }
}

.flag-container {
    animation: flagFadeIn 1s ease-out both;
}

/* Delays escalonados para cada bandera */
.flags-row:nth-child(1) .flag-container:nth-child(1) { animation-delay: 0.1s; }
.flags-row:nth-child(1) .flag-container:nth-child(2) { animation-delay: 0.2s; }
.flags-row:nth-child(1) .flag-container:nth-child(3) { animation-delay: 0.3s; }
.flags-row:nth-child(2) .flag-container:nth-child(1) { animation-delay: 0.4s; }
.flags-row:nth-child(2) .flag-container:nth-child(2) { animation-delay: 0.5s; }
.flags-row:nth-child(2) .flag-container:nth-child(3) { animation-delay: 0.6s; }

/* Responsive para banderas */
@media (max-width: 768px) {
    .hero-flags {
        top: 8%;
        gap: 10px;
    }
    
    .flags-row {
        gap: 12px;
    }
    
    .country-flag {
        width: 30px;
        height: 20px;
    }
}