* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #08121f;
    color: white;
}

/* VIDEO */

.contenedor-video {
    height: 400vh;
    position: relative;
}

.logo-mundial {
    width: 320px;
    max-width: 80%;
}

#videoMundial {
    position: sticky;
    top: 0;

    width: 100%;
    height: 100vh;

    object-fit: cover;
}

/* LOGO */

.capa-logo {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    z-index: 10;

    pointer-events: none;
}

.logo-mundial {
    width: 320px;
    max-width: 80%;
}

.texto-scroll {

    margin-top: 25px;

    font-size: 1rem;

    letter-spacing: 2px;

    animation: flotar 2s infinite;
}

.imagen-fondo {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 0;

    z-index: 1;
}

.contenido-tarjeta {
    position: relative;
    z-index: 2;

    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.imagen-fondo {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: .35;
}

.imagen-fondo::after {
    content: "";
}

@keyframes flotar {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0);
    }

}

/* GRUPOS */

#seccion-grupos {
    padding: 180px 30px 80px;
    background: #08121f;
}

.subtitulo {
    color: #f4c804;
    letter-spacing: 4px;
    font-size: .9rem;
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
}

.encabezado h1 {
    font-size: 5rem;
    margin-bottom: 15px;
}

.encabezado {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 60px;
    /* ¡AÑADE ESTO! Puedes subir el número (ej. 80px u 100px) si lo quieres aún más separado */
}

.encabezado h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.encabezado p {
    opacity: .8;
}

/* BENTO GRID */

.rejilla-bento {
    max-width: 700px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tarjeta-ancha {
    grid-column: span 2;
}

.tarjeta-completa {
    grid-column: span 2;
}

.tarjeta {
    position: relative;
    overflow: hidden;

    background: rgba(255, 255, 255, .05);

    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 25px;

    backdrop-filter: blur(15px);
}

.tarjeta:hover {
    transform: translateY(-8px);
}

.tarjeta h2 {
    color: #f4c804;
    margin-bottom: 15px;
}

.tarjeta p {
    margin-bottom: 8px;
}

.tarjeta-grande {
    width: 100%;
    height: 200px;
}

.tarjeta-horizontal {
    grid-column: span 2;
}

.tarjeta::after {

    content: "";

    position: absolute;

    inset: 0;

    /* background:
        linear-gradient(to top,
            rgba(0, 0, 0, .85),
            rgba(0, 0, 0, .2)); */

    z-index: 2;
}

.contenido-tarjeta {

    position: absolute;

    left: 20px;
    bottom: 20px;

    z-index: 3;

    color: white;
}

/* TABLET */

@media(max-width:1024px) {

    .rejilla-bento {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* MOVIL */

@media(max-width:768px) {

    .logo-mundial {
        width: 180px;
    }

    .encabezado h1 {
        font-size: 2.2rem;
    }

    .rejilla-bento {
        grid-template-columns: 1fr;
    }

    .tarjeta-grande,
    .tarjeta-horizontal {
        grid-column: span 1;
        grid-row: span 1;
    }

}


.grupo {
    width: 100%;
    /* background: #ffffff; */
    border-top-left-radius: 7px;
    border-bottom-right-radius: 7px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.grupo-header {
    /* background: #b7e300; */
    /* color: #000; */
    color: #f4c804;
    text-align: center;
    font-weight: bold;
    padding: 1px;
    letter-spacing: 1px;
}

.equipo-grupo {
    color: #000;
    width: 100%;
    height: 100%;
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.equipo-grupo h2 {
    color: #f4c804;
    font-weight: bold;
    padding: 1px;
    margin-top: 15px;
    margin-left: 25px;
    letter-spacing: 1px;
}

.equipos {
    list-style: none;
    margin: 0;
    padding: 10px;
}

.equipo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-weight: bold;
}
/* ===== FOOTER ===== */

.footer-equipo {
    background: #0f172a;
    color: white;
    margin-top: 60px;
}

.footer-contenido {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-info h3 {
    color: #facc15;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.footer-info ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.footer-info li {
    margin-bottom: 8px;
}

.footer-imagen img {
    width: 350px;
    max-width: 100%;
    border-radius: 15px;
   
}

.footer-copy {
    text-align: center;
    padding: 15px;
    background: #020617;
    font-size: 0.9rem;
}
.footer-info a {
    color: white;
    text-decoration: none;
}

.footer-info a:hover {
    color: #facc15;
    text-decoration: underline;
}
/* Responsive */

@media (max-width: 768px) {

    .footer-contenido {
        flex-direction: column;
        text-align: center;
    }

    .footer-imagen img {
        width: 280px;
    }
}

.equipo img {
    width: 28px;
    height: 18px;
    object-fit: cover;
}

.equipo span {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.capa-logo {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.capa-logo.visible {
    opacity: 1;
}