@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;
}

.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;
    max-height: 70px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

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

/* ✅ ANIMACIÓN DE PRESENTACIÓN */
.bloque-presentacion {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
    gap: 1.5rem;
}

.contenedor-bandera {
    width: 180px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(-50px);
    opacity: 0;
    animation: entradaBandera 1s ease-out forwards;
}

.bandera-animada {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: ondularBandera 3s ease-in-out infinite alternate;
}

.nombre-pais {
    font-size: 3.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: entradaTexto 1s ease-out 0.5s forwards;
}

@media (min-width: 768px) {
    .contenedor-bandera {
        width: 240px;
        height: 160px;
    }
    .nombre-pais {
        font-size: 4.5rem;
    }
}

/* ✅ SECCIONES Y TARJETAS */
.seccion-torneos {
    margin-bottom: 3.5rem;
}

.titulo-seccion {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.indicador {
    width: 4px;
    height: 28px;
    border-radius: 2px;
}

.indicador.rojo { background-color: #ef4444; }
.indicador.azul { background-color: #3b82f6; }
.indicador.rosa { background-color: #ec4899; }
.indicador.amarillo { background-color: #facc15; }

.grid-tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
}

.tarjeta-torneo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tarjeta-torneo:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* ✅ ESCUDO 1:1 SIN DEFORMAR NUNCA */
.escudo-1-1 {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.escudo-1-1 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

/* ✅ PIE DE PÁGINA */
.enlace-red {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.enlace-red:hover {
    transform: translateY(-4px) rotate(5deg);
    background: rgba(255,255,255,0.15);
}

.icono-red {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* ✅ ANIMACIONES */
@keyframes entradaBandera {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes ondularBandera {
    0% { transform: skewX(-1deg); }
    100% { transform: skewX(1deg); }
}

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