@font-face {
    font-family: title;
    src: url();
}

:root {
    --color-primary: #CC0000;
    --color-secondary: #036125;
    --color-light: #FFFFFF;
    --color-dark: #000000;
    --color-gray: #222222;

    --font-title: "Montserrat", Arial, sans-serif;
    --font-text: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ESTILOS PARA EL CONTENIDO PRINCIPAL */

#contenido.blur {
    filter: blur(6px);
    transition: filter .3s ease;
}

/* Estilos para el HEADER */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: max-content;
    z-index: 2000;
    background-color: var(--color-primary);
    transition: transform .3s ease;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 1em 1.3rem;
    align-items: center;
    will-change: transform;
}

.header-hidden {
    transform: translateY(-100%);
}

header .logo {
    max-height: 3em;
}

.btn-toggle {
    border: none;
    background: none;
    color: var(--color-secondary);
    font-size: 1em;
    font-family: var(--font-text);
}

#btn-close {
    position: absolute;
    right: 2.5rem;
    color: var(--color-gray);
}

.btn-partidos a {
    color: var(--color-secondary);
    text-decoration: none;
}

.nav {
    opacity: 0;
    visibility: hidden;

    display: flex;
    flex-direction: column;
    position: fixed;
    width: 100%;
    height: 120vh;
    top: 0;
    left: -100%;
    background-color: var(--color-secondary);
    padding: 2rem;
    overflow-y: auto;
    transition: all .5s ease;
}

.nav.active {
    opacity: 1;
    visibility: visible;
    left: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2em;
    margin-top: 4rem;
}

.nav-list li {
    width: 100%;
    height: auto;
    list-style: none;
}

.nav-list a {
    display: block;
    width: 100%;
    padding: .8rem 0;
    color: var(--color-light);
    text-decoration: none;
    font-family: var(--font-text);
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: .3s ease;
}

.nav-list a:hover,
a:active {
    background: rgba(0, 0, 0, 0.1);
    padding-left: .8rem;
}

/*=========================
        TEAMS HERO
=========================*/

.teams-hero {
    position: relative;
    height: 50vh;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    margin-top: 5rem;
    overflow: hidden;
}

.teams-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.teams-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    z-index: 2;
}

.teams-hero-content {
    position: relative;
    z-index: 3;
    animation: heroFade 1s ease;
}

@keyframes heroFade {
    
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teams-hero-content h1 {

    color: white;

    font-size: 3rem;
    font-family: var(--font-title);

    margin: 1rem 0;
}

.teams-hero-content p {

    color: rgba(255, 255, 255, .85);
    font-family: var(--font-text);

    max-width: 600px;
}

/*=========================
        TEAMS SECTION
=========================*/

.teams-section {

    padding: 5rem 1.5rem;

    background: #111;
}

/* TABS */

.teams-tabs {

    display: flex;

    gap: 1rem;

    overflow-x: auto;

    margin-bottom: 3rem;

    padding-bottom: .5rem;
}

.team-tab {

    border: none;

    background: rgba(255, 255, 255, .05);

    color: white;
    font-family: var(--font-text);

    padding: .9rem 1.4rem;

    border-radius: 999px;

    white-space: nowrap;

    cursor: pointer;

    transition: .3s ease;
}

.team-tab.active {

    background: var(--color-primary);

    color: white;
}

/* TEAM HEADER */

.team-header {

    text-align: center;

    margin-bottom: 3rem;
}

.team-header h2 {

    color: white;
    font-size: 2rem;
    font-family: var(--font-title);

    margin-bottom: .5rem;
}

.team-header p {

    color: rgba(255, 255, 255, .7);
    font-family: var(--font-text);
}

/*=========================
        SLIDER
=========================*/

.players-slider {

    display: flex;
    align-items: center;
    gap: 1rem;
}

.players-container {

    display: flex;

    gap: 1.5rem;

    overflow-x: auto;

    scroll-behavior: smooth;

    scrollbar-width: none;

    width: 100%;
}

.players-container::-webkit-scrollbar {

    display: none;
}

/* CARD */

.player-card {

    min-width: 250px;

    background: rgba(255, 255, 255, .05);

    border-radius: 24px;

    overflow: hidden;

    backdrop-filter: blur(10px);

    transition: .3s ease;
}

.player-card:hover {

    transform: translateY(-6px);
}

.player-image {

    height: 300px;

    overflow: hidden;
}

.player-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .4s ease;
}

.player-card:hover img {

    transform: scale(1.05);
}

.player-info {

    padding: 1.5rem;

    text-align: center;
}

.player-info h3 {

    color: white;
    font-family: var(--font-title);

    margin-bottom: .4rem;
}

.player-info p {

    color: rgba(255, 255, 255, .7);
    font-family: var(--font-text);
}

/* BUTTONS */

.slider-btn {

    min-width: 50px;
    height: 50px;

    border-radius: 50%;

    border: none;

    background: var(--color-primary);

    color: white;

    cursor: pointer;

    transition: .3s ease;
}

.slider-btn:hover {

    transform: scale(1.1);
}

/*=========================
        COACHES
=========================*/

.coaches-section {

    margin-top: 5rem;
}

.coaches-section h3 {

    color: white;

    text-align: center;

    margin-bottom: 2rem;

    font-size: 2rem;
    font-family: var(--font-title);
}

.coaches-container {

    display: grid;

    grid-template-columns: 1fr;

    gap: 1.5rem;
}

.coach-card {

    background: rgba(255, 255, 255, .05);

    border-radius: 20px;

    overflow: hidden;

    text-align: center;
}

.coach-card img {

    width: 100%;

    height: 300px;

    object-fit: cover;
}

.coach-card-content {

    padding: 1.5rem;
}

.coach-card-content h4 {

    color: white;
    font-family: var(--font-title);

    margin-bottom: .5rem;
}

.coach-card-content p {
    color: rgba(255, 255, 255, .7);
    font-family: var(--font-text);
}

/*=========================
        DESKTOP
=========================*/

@media (min-width: 768px) {

    .teams-section {

        padding: 7rem 5%;
    }

    .players-container {

        gap: 2rem;
    }

    .player-card {

        min-width: 320px;
    }

    .coaches-container {

        grid-template-columns: repeat(3, 1fr);
    }

}

/* Estilos para el FOOTER */

.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 4rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0 1.5rem 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand img {
    width: 120px;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, .7);
    line-height: 1.6;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.8rem;
}

.footer-socials a {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 45px;
    height: 45px;

    border-radius: 50%;
    background: rgba(255, 255, 255, .05);

    color: white;

    transition: .3s ease;
}

.footer-socials a:hover {
    background: var(--color-primary);
    transform: translateY(-4px);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: .3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .08);
    gap: .5rem;
    padding: 1.5rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
}

.footer-bottom span {
    color: white;
    font-size: .95rem;
    font-style: italic;
}

/* ESTILOS PARA EL OVERLAY */

.overlay {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9999 !important;
}

.overlay.active {
    display: flex;
}

.overlay.active button {
    position: relative;
    padding: .3em 1em;
    border: 3px solid var(--color-secondary);
    border-radius: 3rem;
    background: none;
    color: white;
    font-family: var(--font-text);
    font-size: 1em;
    cursor: pointer;
}

.copiado {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.copiado::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid transparent;
}

.mostrar {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
}

/* Estilos para DESKTOP */

@media screen and (min-width: 768px) {

    /* Estilos para el FOOTER */

    .footer-container {
        display: grid;
        grid-template-columns: 1.2fr .8fr 1fr;
        align-items: start;
        gap: 4rem;
        padding: 0 5% 4rem;
    }

    .footer-brand {
        align-items: flex-start;
        text-align: left;
    }

    .footer-links,
    .footer-contact {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 5%;
    }
}

@media screen and (min-width: 1024px) {

    /* Estilos para el HEADER */

    header {
        padding: 1em 2.5rem;
    }

    #btn-open,
    #btn-close {
        display: none;
    }

    #btn-contact {
        order: 1;
    }

    header .logo {
        max-height: 4em;
    }

    .nav {
        opacity: 1;
        visibility: visible;

        position: static;
        width: auto;
        height: auto;

        background-color: transparent;
        padding: 0;
    }

    .nav-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2em;
        margin-top: 0rem;
    }

    .nav-list li {
        width: auto;
    }

    .nav-list a {
        padding: 1rem 1rem;
        border-bottom: none;
    }
}