/* =========================================================
   ALLIANZ 15K - COMPONENTES DEL SITIO
   Estilos adicionales a Bootstrap 5

   Este archivo contiene:
   1. Hero reutilizable para Home y páginas internas
   2. Sección "Todo listo para correr"
   3. Carrusel de patrocinadores
   4. FAQ resumidas del Home
   ========================================================= */


/* =========================================================
   1. HERO
   Componente reutilizable
   ---------------------------------------------------------
   Estructura base:

   <section class="hero">
       <div class="hero-carousel">...</div>
       <div class="hero-overlay"></div>

       <div class="container hero-content">
           <div class="hero-copy">...</div>
           ...
       </div>
   </section>

   Variantes futuras pueden usar:
   .hero-home
   .hero-inner
   etc.
   sin duplicar todo el componente.
   ========================================================= */

.hero {
    position: relative;
    min-height: calc(100vh - 70px);
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
}


/* ---------------------------------------------------------
   Fondo
   --------------------------------------------------------- */

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}


/* ---------------------------------------------------------
   Carrusel de fondo
   El carrusel contiene únicamente las imágenes.
   --------------------------------------------------------- */

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    width: 100%;
    height: 100%;
}


/* ---------------------------------------------------------
   Overlay
   --------------------------------------------------------- */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        90deg,
        rgba(3, 20, 58, .92) 0%,
        rgba(3, 20, 58, .70) 35%,
        rgba(3, 20, 58, .15) 65%,
        rgba(3, 20, 58, .05) 100%
    );
}


/* ---------------------------------------------------------
   Contenido
   --------------------------------------------------------- */

.hero-content {
    position: relative;
    z-index: 2;

    min-height: calc(100vh - 70px);

    display: flex;
    align-items: center;
}

.hero-copy {
    width: 55%;
    padding-top: 50px;
    padding-bottom: 150px;
}


/* ---------------------------------------------------------
   Textos
   --------------------------------------------------------- */

.hero-tagline {
    margin: 10px 0 25px;

    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: 500;
}

.hero-title {
    margin: 0;

    font-size: clamp(2rem, 3vw, 3.5rem);
    line-height: .5;
    font-weight: 800;
}

.hero-date {
    margin: 5px 0 15px;

    font-size: clamp(1.5rem, 2.2vw, 2.5rem);
}

.hero-description {
    max-width: 600px;

    font-size: 1rem;
    line-height: 1.5;

    margin-bottom: 30px;
}


/* ---------------------------------------------------------
   Countdown
   --------------------------------------------------------- */

.hero-countdown {
    position: absolute;
    bottom: 30px;
    left: 50%;

    transform: translateX(-50%);

    text-align: center;
    z-index: 3;
}

.hero-countdown small {
    display: block;

    font-size: .9rem;
    font-weight: 600;
    letter-spacing: 2px;

    margin-bottom: 5px;
}


/* ---------------------------------------------------------
   Logo del evento
   --------------------------------------------------------- */

.hero-logo {
    position: absolute;

    right: 0;
    bottom: 25px;

    z-index: 3;

    width: 260px;
}

.hero-logo img {
    width: 100%;
    height: auto;
    display: block;
}


/* =========================================================
   HERO - PÁGINAS INTERNAS
   Versión más compacta que el Hero del Home
   ========================================================= */

.hero-inner {
    min-height: 500px;
}

.hero-inner .hero-content {
    min-height: 500px;
}

.hero-inner .hero-copy {
    padding-top: 30px;
    padding-bottom: 80px;
}


/* =========================================================
   HERO - MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .hero {
        min-height: 720px;
        align-items: flex-start;
    }

    .hero-content {
        min-height: 720px;
        align-items: flex-start;
        padding-top: 35px;
    }

    .hero-bg img {
        object-position: center center;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(3, 20, 58, .85) 0%,
            rgba(3, 20, 58, .55) 45%,
            rgba(3, 20, 58, .15) 75%,
            rgba(3, 20, 58, .05) 100%
        );
    }

    .hero-copy {
        width: 80%;
        padding: 0 15px 180px;
        text-align: left;
    }

    .hero-tagline {
        font-size: 1.3rem;
        margin: 10px 0 25px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }

    .hero-date {
        font-size: 1.4rem;
        margin: 5px 0 15px;
    }

    .hero-description {
        font-size: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-countdown {
        bottom: 25px;
        width: 100%;
    }

    .hero-logo {
        width: 150px;
        left: 35px;
        right: auto;
        bottom: 150px;
    }
    
    /*hero secciones internas*/
    .hero-inner {
        min-height: 520px;
    }

    .hero-inner .hero-content {
        min-height: 520px;
    }

    .hero-inner .hero-copy {
        padding-bottom: 100px;
    }
    
    .hero-inner .hero-logo {
        width: 130px;
        left: auto;
        right: 20px;
        bottom: 20px;
    }
}


/* =========================================================
   2. INFORMACIÓN HOME
   "Todo listo para correr tus 15K"
   ========================================================= */

.info-15k {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.info-15k-content {
    position: relative;
    min-height: 400px;
}

.info-15k-text {
    position: relative;
    z-index: 2;
    width: 60%;
    padding: 35px 0 30px;
}

.info-15k-text h2 {
    margin: 0 0 15px;
    color: #122b6b;
    font-size: 2rem;
    font-weight: 800;
}

.info-15k-text > p {
    max-width: 760px;
    margin-bottom: 30px;
    color: #24365f;
    line-height: 1.4;
}

.info-15k-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-15k-feature {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.info-15k-feature img {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.info-15k-feature strong {
    display: block;
    color: #122b6b;
    font-size: .9rem;
}

.info-15k-feature span {
    display: block;
    margin-top: 3px;
    color: #24365f;
    font-size: .8rem;
    line-height: 1.25;
}


/* Botones de esta sección */

.info-15k-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* Foto diagonal */

.info-15k-image {
    position: absolute;
    top: 0;
    right: 0;

    width: 48%;
    height: 100%;

    clip-path: polygon(
        45% 0,
        100% 0,
        100% 100%,
        5% 100%
    );
}

.info-15k-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Tablet */

@media (max-width: 1070px) {

    .info-15k-image {
        display: none;
    }

    .info-15k-text {
        width: 100%;
        padding: 35px 15px;
    }

    .info-15k-text h2 {
        font-size: 1.7rem;
    }

    .info-15k-features {
        grid-template-columns: 1fr 1fr;
        gap: 25px 15px;
    }
}


/* Mobile */

@media (max-width: 600px) {

    .info-15k-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .info-15k-buttons .btn {
        width: 100%;
        min-width: 0;
    }
}


/* =========================================================
   3. CARRUSEL DE PATROCINADORES
   ========================================================= */

.sponsors-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.sponsors-track {
    --visible: 4;

    display: flex;
    transition: transform .6s ease;
    will-change: transform;
}

.sponsor-item {
    flex: 0 0 calc(100% / var(--visible));
    width: calc(100% / var(--visible));

    padding: 20px 30px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 80px;

    width: auto;
    height: auto;

    display: block;
}


/* Tablet */

@media (max-width: 991px) {

    .sponsors-track {
        --visible: 3;
    }
}


/* Mobile */

@media (max-width: 575px) {

    .sponsors-track {
        --visible: 2;
    }

    .sponsor-item {
        padding: 15px 20px;
    }

    .sponsor-item img {
        max-height: 65px;
    }
}


/* =========================================================
   4. FAQ RESUMIDAS DEL HOME
   ---------------------------------------------------------
   Bootstrap 5 se encarga del accordion.
   Solo ocultamos su indicador/chevron porque el diseño
   utiliza el signo "+"
   ========================================================= */

#homeFaq .accordion-button::after {
    display: none;
}
