﻿.country-card {
    position: relative;
    height: 150px;
    background-size: cover;
    background-position: center;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important; /* <- NECESARIO para centrar vertical */
    text-decoration: none;
    color: #ffffff !important;
    border-radius: 12px;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7); /* mejora la visibilidad */
    transition: transform .25s ease, box-shadow .25s ease;
}

    .country-card:hover {
        transform: scale(1.03);
        box-shadow: 0 6px 18px rgba(0,0,0,.3);
    }

    .country-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.35);
        border-radius: inherit;
        transition: background .25s ease;
        z-index: 0; /* Overlay detrás del texto */
    }

    .country-card h2 {
        position: relative;
        z-index: 1;
        color: #fff !important;
        font-weight: 800;
    }

.section-title {
    padding-top: 10px;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #31033a; /* tu color corporativo */
    animation: fadeInDown .6s ease-out;
}

.subtitle {
    font-size: 1.15rem;
    color: #6c757d;
    margin-top: 4px;
    animation: fadeIn .8s ease-out;
}

/* Animaciones suaves */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Ajustes responsivos */
@media (max-width: 576px) {
    .main-title {
        font-size: 1.7rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}
