@font-face {
    font-family: 'Branding Bold';
    src: url('assets/fonts/branding-bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
    font-family: 'Branding Bold', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #ffffff;
}

html, body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #0A84C7 0%, #9B1B3A 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.fondo-animado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(10,132,199,0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(155,27,58,0.12) 0%, transparent 50%);
    z-index: -1;
    animation: parpadeoSuave 8s ease-in-out infinite alternate;
}

/* ENCABEZADO ARREGLADO, LOGO SIN APLASTAR NUNCA */
.cabecera {
    padding: 1rem 0;
    background-color: #055a8a;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    margin-bottom: 1rem;
}

.logo-encabezado {
    width: 70px;
    height: auto; /* CLAVE: MANTIENE LA PROPORCIÓN ORIGINAL */
    max-height: 70px;
    object-fit: contain; /* CLAVE: NUNCA DEFORMA NI APALSTA */
    object-position: left center;
    display: block;
}

@media (min-width: 768px) {
    .logo-encabezado {
        width: 90px;
        max-height: 90px;
    }
}

.titulo-principal {
    font-size: 3rem;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 3rem;
}
@media (min-width: 768px) {
    .titulo-principal {
        font-size: 4.5rem;
    }
}

.contenedor-bandera {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.bandera {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.tarjeta-pais {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(30px);
    opacity: 0;
    animation: entradaTarjeta 0.7s ease forwards;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    background-color: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.tarjeta-pais:nth-child(1) { animation-delay: 0.1s; }
.tarjeta-pais:nth-child(2) { animation-delay: 0.2s; }
.tarjeta-pais:nth-child(3) { animation-delay: 0.3s; }
.tarjeta-pais:nth-child(4) { animation-delay: 0.4s; }
.tarjeta-pais:nth-child(5) { animation-delay: 0.5s; }

.tarjeta-pais:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.3);
}

.enlace-red {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.05);
}

.enlace-red:hover {
    transform: translateY(-5px) rotate(8deg);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.icono-red {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: filter 0.3s ease;
}

.enlace-red:hover .icono-red {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)) brightness(1.2);
}

@keyframes parpadeoSuave {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

@keyframes entradaTarjeta {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
