@charset "utf-8";
/* CSS Document */

/********************************************************
HOME HERO CON HTML
********************************************************/

#home-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#home-slider .carousel-inner {
    width: 100%;
}


/* ---------------------------------------------------------
   SLIDES
--------------------------------------------------------- */

#home-slider .hero-slide {
    position: relative;
    min-height: 560px;

    background-image: url('../img/hero/kv-background-hor.avif?04');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* ---------------------------------------------------------
   CAPA SOBRE LA IMAGEN
--------------------------------------------------------- */

#home-slider .hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(114, 29, 8, 0.88) 0%,
            rgba(114, 29, 8, 0.68) 26%,
            rgba(108, 54, 42, 0.20) 55%,
            rgba(108, 54, 42, 0) 100%
        );
}
/* ---------------------------------------------------------
   CONTENIDO
--------------------------------------------------------- */

#home-slider .hero-content {
    position: relative;
    z-index: 2;

    min-height: 560px;

    display: flex;
    align-items: center;
}


/* ---------------------------------------------------------
   BLOQUE DE TEXTO
--------------------------------------------------------- */

#home-slider .hero-copy {
    width: 50%;
    max-width: 650px;
    
    padding: 70px 25px 30px 25px;
    margin-top: 70px;
}

#home-slider .hero-kicker {
    margin-bottom: 12px;

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#home-slider .hero-copy .h1 {
    margin: 0 0 18px;

    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 0.88;

    font-weight: 800;
}

#home-slider .hero-copy .h1 strong {
    font-weight: 800;
}

#home-slider .hero-description {
    max-width: 500px;

    margin-bottom: 25px;

    font-size: 1rem;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   BOTONES
--------------------------------------------------------- */

#home-slider .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#home-slider .hero-buttons .btn {
    margin: 0;
    padding: 9px 18px;

    font-size: 0.85rem;
    font-weight: 700;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    #home-slider .hero-copy {
        width: 65%;
    }

    #home-slider .hero-copy .h1 {
        font-size: clamp(2.8rem, 7vw, 4.5rem);
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 767.98px) {

    #home-slider .hero-slide {
        min-height: 680px;
        
        background-image: url('../img/hero/kv-background-ver.avif');
        background-position: top right;
    }

    #home-slider .hero-content {
        min-height: 680px;

        align-items: flex-end;

        padding-bottom: 75px;
    }

    #home-slider .hero-copy {
        width: 100%;
        max-width: 100%;

        padding: 30px 25px;
    }

    #home-slider .hero-kicker {
        font-size: 0.7rem;
    }

    #home-slider .hero-copy .h1 {
        font-size: clamp(2.6rem, 12vw, 4rem);
        line-height: 0.9;
    }

    #home-slider .hero-description {
        font-size: 0.9rem;
    }

    #home-slider .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    #home-slider .hero-buttons .btn {
        width: auto;
    }

}



/* =========================================================
   LOGOS DEL HERO
========================================================= */

#home-slider .hero-logos {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 4;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding: 0 30px;
}


/* ---------------------------------------------------------
   PATROCINADORES: PORVENIR Y ADIDAS
--------------------------------------------------------- */

#home-slider .hero-sponsors {
    position: relative;
    z-index: 5;

    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    gap: 15px;

    visibility: visible;
    opacity: 1;
}

#home-slider .hero-sponsors a {
    display: block !important;
    flex: 0 0 auto;

    visibility: visible;
    opacity: 1;
}

#home-slider .hero-sponsors a:first-child {
    width: 150px;
    height: 68px;
}

#home-slider .hero-sponsors a:nth-child(2) {
    width: 115px;
    height: 75px;
}

#home-slider .hero-sponsors img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain;

    visibility: visible !important;
    opacity: 1 !important;
}


/* ---------------------------------------------------------
   SELLO WORLD ATHLETICS
--------------------------------------------------------- */

/*
#home-slider .hero-world-athletics {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 5;

    display: block;
    width: 80px;
    height: auto;

    transform: translateX(-50%);
}
*/


/* ---------------------------------------------------------
   GRUPO mmB + VERSA
--------------------------------------------------------- */

#home-slider .hero-brand-group {
    position: relative;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}


/* Logo mmB */

#home-slider .hero-race-logo {
    display: block;
    width: 200px;
    max-width: 200px;
    height: auto;
}


/* Sello Versa */

#home-slider .hero-versa-logo {
    display: block;
    width: 100px;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    #home-slider .hero-logos {
        padding-right: 20px;
        padding-left: 20px;
    }

    #home-slider .hero-race-logo {
        width: 160px;
    }

    #home-slider .hero-versa-logo {
        width: 85px;
    }

/*
    #home-slider .hero-world-athletics {
        width: 65px;
    }
*/

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 767.98px) {

    #home-slider .hero-logos {
        top: 20px;
        right: 15px;
        left: 15px;

        padding: 0;
    }

    #home-slider .hero-sponsors {
        gap: 8px;
    }

    #home-slider .hero-sponsors a:first-child {
        width: 90px;
        height: 41px;
    }

    #home-slider .hero-sponsors a:nth-child(2) {
        width: 70px;
        height: 46px;
    }

    #home-slider .hero-brand-group {
        gap: 5px;
    }

    #home-slider .hero-race-logo {
        width: 100px;
    }

    #home-slider .hero-versa-logo {
        width: 65px;
    }

}







/*******************************************************
SECCIÓN CONÓCENOS
*******************************************************/
.about-text {
    overflow: hidden;
    background-image: url('../img/asset-pattern-yellow.svg');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
}


/* --------------------------------
   BLOQUE DE TEXTO
-------------------------------- */

.about-content {
    position: relative;
}


/* --------------------------------
   VIDEO
-------------------------------- */

.about-video {
    position: relative;
    overflow: hidden;

    clip-path: polygon(
        18% 0,
        100% 0,
        100% 100%,
        0 100%
    );

    margin-left: -1px;
    width: calc(100% + 1px);
}

.about-video img {
    display: block;

    width: 100%;
    height: 500px;

    object-fit: cover;
}


/* --------------------------------
   BOTÓN PLAY
-------------------------------- */

.about-video-play {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 70px;
    height: 70px;

    border-radius: 50%;

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

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

    color: #888888;
    font-size: 40px;

    transition: transform .2s ease;
}

.about-video:hover .about-video-play {
    transform: translate(-50%, -50%) scale(1.08);
}


/* --------------------------------
   MOBILE
-------------------------------- */

@media (max-width: 991.98px) {

    .about-content {
        background-size: contain;
    }

    .about-video {
        clip-path: none;

        margin-left: 0;
        width: 100%;
    }

    .about-video img {
        height: 350px;
    }
}





/*******************************************************
   CARRUSEL DE PATROCINADORES HOME
*******************************************************/

.sponsors-home {
    width: 100%;
    overflow: hidden;

    padding: 25px 0 35px;
}

.sponsors-home-title {
    margin-bottom: 20px;
}


/* -----------------------------------------------------
   FILAS
----------------------------------------------------- */

.sponsors-marquee {
    width: 100%;
    overflow: hidden;

    margin: 8px 0;

    cursor: default;
}

.sponsors-track {
    display: flex;
    width: max-content;

    will-change: transform;

    animation-timing-function: linear;
    animation-iteration-count: infinite;
}


/* -----------------------------------------------------
   GRUPOS
----------------------------------------------------- */

.sponsors-group {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    gap: 30px;
    padding-right: 30px;
}


/* -----------------------------------------------------
   LOGOS
----------------------------------------------------- */

.sponsor-item {
    flex: 0 0 auto;

    width: 180px;
    height: 115px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsors-marquee-2 .sponsor-item {
    width: 144px;
    height: 92px;
}

.sponsor-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.sponsor-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background-color: #fff;

    border-radius: 10px;

    transition: transform 0.25s ease;
}


/* -----------------------------------------------------
   HOVER
----------------------------------------------------- */

.sponsor-item a:hover img {
    transform: scale(1.05);
}


/* -----------------------------------------------------
   MOVIMIENTO
----------------------------------------------------- */

/* Fila superior: más lenta, izquierda */
.sponsors-marquee-1 .sponsors-track {
    animation-name: sponsors-left;
    animation-duration: 35s;
}

/* Fila inferior: más rápida, derecha */
.sponsors-marquee-2 .sponsors-track {
    animation-name: sponsors-right;
    animation-duration: 22s;
}


/* -----------------------------------------------------
   PAUSA AL PASAR POR ENCIMA
----------------------------------------------------- */

.sponsors-marquee:hover .sponsors-track {
    animation-play-state: paused;
}


/* -----------------------------------------------------
   ANIMACIONES
----------------------------------------------------- */

@keyframes sponsors-left {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}

@keyframes sponsors-right {

    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }

}


/* -----------------------------------------------------
   MÓVIL
----------------------------------------------------- */

@media (max-width: 767.98px) {

    .sponsors-home {
        padding: 20px 0 25px;
    }

    .sponsor-item {
        width: 140px;
        height: 90px;
    }

    .sponsors-marquee-2 .sponsor-item {
        width: 112px;
        height: 72px;
    }

    .sponsors-group {
        gap: 15px;
        padding-right: 15px;
    }

    .sponsors-marquee-1 .sponsors-track {
        animation-duration: 28s;
    }

    .sponsors-marquee-2 .sponsors-track {
        animation-duration: 18s;
    }

}
