/*Sección con imagen de fondo*/
.accent-color {
    color: var(--dark1);
}
/* Hero Container */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: fit-content;
    max-height: 75vh;
    position: relative;
}

/* Video */
.heroVideo {
    width: 100%;
    height: auto;
    position: relative;
}

/* BOTÓN REPLAY */
.replayButton {
    position: absolute;
    top: 5.7%;
    left: 8.1%;
    font-size: 1.6rem;
    z-index: 99;
    color: rgba(255, 255, 255, 0.6);
}

.replayButton:hover {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

/* BOTÓN MUTE */
.muteButton {
    position: absolute;
    top: 5%;
    left: 5%;
    font-size: 2rem;
    z-index: 99;
    color: rgba(255, 255, 255, 0.6);
}

.muteButton:hover {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

.caption-hero {
    background-color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    position: absolute;
    bottom: 8%;
    left: 12%;
    z-index: 1;
}

.second-caption {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    max-width: 500px;
    height: 230px;
    top: 14%;
    right: 14%;
    z-index: 1;
}

.heroImg {
    max-height: 100% !important;
    height: 100% !important;
}

.fade-out {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.second-caption-text {
    color: var(--negro2);
    font-size: 1.3rem;
    font-weight: 600;
}

.presentation-text {
    color: var(--negro2);
    font-size: 1.6rem;
    font-weight: 600;
}

.alternative-text {
    font-size: 2.2rem;
}

.title-span {
    font-size: 2.2rem;
    font-weight: 600;
}

/*  QUIENES SOMOS   */

.quienes-somos-section .logo-bg {
    position: absolute;
    right: -30px;
    bottom: -30px;
    opacity: 0.2;
    width: 400px;
}

.quienes-somos-texto {
    font-size: 1.3rem !important;
}

/* TARJETAS CON LINKS */

.card-link {
    /* width: 250px;
    height: 450px; */
    background-color: #e6e8ff;
    text-align: center;
    max-width: 370px;
    margin: auto;
}

.card-link:hover {
    background-color: #dde0ff;
}

.card-img-top {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card-title {
    font-size: 1.2rem;
}

/*SECCIÓN COMPONENTES DE DATOS */
.seccion-cifras-sector {
    background: linear-gradient(45deg, #8e87b9, #382e79);
}

.data-card {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    color: white;
    height: 180px;
    backdrop-filter: blur(20px);
    padding: 0.5rem;
    border-radius: 1rem;
    width: 100%;
}

.data-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 120px;
    max-height: 120px;
}

.icono-cifras {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 50px;
    min-height: 50px;
    min-width: 50px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    border-radius: 1000px;
    color: #70699b;
    margin: 0;
    padding: 0.25rem;
}

.icono-cifras i {
    font-size: 1.75rem;
}

.icono-cifras img {
    max-height: 120px;
    width: auto;
    padding: 1rem;
}

.dato-numerico-cifras {
    width: 90%;
    text-align: center;
}

.count-up {
    transition: all 0.5s ease-out;
}

.contenedor-items-datos {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

.titulo-items-datos {
    width: 100%;
    font-size: 3rem;
    font-weight: 900;
    height: fit-content;
    text-align: center;
    padding: 1rem 0;
}

.items-datos {
    width: 100%;
}

/* SWIPER */
.container-swiper-socios {
    position: relative;
    padding: 0 5rem;
}

.swiper-socios {
    position: static;
}

.container-swiper-pertenecemos {
    position: relative;
    padding: 0 5rem;
}

.swiper-pertenecemos {
    position: static;
}

.swiper-socios .swiper-wrapper {
    align-items: center;
}

.swiper-pertenecemos .swiper-wrapper {
    align-items: center;
}

.slide-socios {
    display: flex;
    align-items: center;
    gap: 20px;
}

.slide-pertenecemos {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-pertenecemos .logo-pertenecemos {
    flex-grow: 1;
}

.slide-socios .logo-socios {
    flex-grow: 1;
}

.slide-socios .logo-socios img {
    max-height: 100%;
    object-fit: contain;
}

.slide-socios .logo-socios img {
    max-height: 100%;
    object-fit: contain;
}

.swiper-socios .swiper-button-prev,
.swiper-socios .swiper-button-next,
.swiper-pertenecemos .swiper-button-prev,
.swiper-pertenecemos .swiper-button-next {
    width: 40px;
    transform: translateY(-50%);
    margin: 0;
}

.swiper-socios .swiper-button-prev svg,
.swiper-pertenecemos .swiper-button-prev svg {
    rotate: 180deg;
}

.swiper-socios .swiper-button-prev::after,
.swiper-socios .swiper-button-next::after,
.swiper-pertenecemos .swiper-button-prev::after,
.swiper-pertenecemos .swiper-button-next::after {
    display: none;
}

.swiper-socios .swiper-button-prev .color,
.swiper-socios .swiper-button-next .color,
.swiper-pertenecemos .swiper-button-prev .color,
.swiper-pertenecemos .swiper-button-next .color {
    fill: var(--secundario);
}

.swiper-socios .swiper-pagination,
.swiper-pertenecemos .swiper-pagination {
    bottom: -40px;
}

.swiper-socios .swiper-pagination-bullet-active,
.swiper-pertenecemos .swiper-pagination-bullet-active {
    background-color: var(--principal);
}
/* EMPRESAS */
.empresa-imagen {
/*    height: 100px;*/
}

/* ORGANIZACIONES */

.organizaciones .col-lg-2 {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 200px;
    max-height: 300px;
}

.organizaciones img {
    max-height: 115px;
    object-fit: contain;
}

.logo-gris-a-color {
    filter: saturate(0);
    transition: filter 0.3s ease;
}

.logo-gris-a-color:hover {
    filter: saturate(1);
}

/* CARRUSEL */

.carousel-item img {
    object-fit: cover;
    height: 70vh;
    width: 100%;
}

/*  MODAL   */

.modal-socios span,
.modal-socios i {
    font-size: 1.2rem;
}

.info-container {
    display: flex;
    flex-direction: column;
}

.socio-info {
    display: flex;
    flex-direction: row;
    padding: 0.2rem 0;
}

.socio-info-icon {
    height: max-content;
    padding-right: 0.5rem;
}

@media (max-width: 1200px) {
    .second-caption {
        max-width: 600px;
        width: fit-content;
        position: absolute;
        top: 14%;
        right: 7%;
        background-color: rgba(255, 255, 255, 0.7);
        z-index: 1;
    }
}

@media (max-width: 991.5px) {
    .caption-hero {
        left: 7%;
    }

    .second-caption {
        max-width: 600px;
        width: fit-content;
        position: absolute;
        top: 14%;
        right: 7%;
        height: 200px;
        background-color: rgba(255, 255, 255, 0.7);
        z-index: 1;
    }

    .second-caption .presentation-text {
        font-size: 1.4rem !important;
    }

    .presentation-text {
        font-size: 1rem;
        padding: 1rem;
    }

    .title-span {
        font-size: 1.3rem;
        font-weight: 600;
    }

    .slide-socios .logo-socios {
        height: 180px;
    }

    .slide-pertenecemos .logo-socios {
        height: 180px;
    }
}

@media (max-width: 767.5px) {
    .caption-hero {
        bottom: 0;
        left: 0;
    }

    .second-caption {
        max-width: 500px;
        width: fit-content;
        position: absolute;
        top: 1%;
        right: 1%;
        height: 170px;
        background-color: rgba(255, 255, 255, 0.7);
        z-index: 1;
    }

    .second-caption .presentation-text {
        font-size: 1.25rem !important;
    }

    .container-swiper-socios,
    .container-swiper-pertenecemos {
        padding: 0 3rem;
    }

    .slide-socios {
        flex-direction: column;
        gap: 0;
    }

    .slide-pertenecemos {
        max-width: 300px;
    }

    .slide-pertenecemos .logo-pertenecemos {
        width: 200px;
        height: auto;
        align-content: center;
    }

    .slide-socios .logo-socios,
    .slide-pertenecemos .logo-pertenecemos {
        width: 100%;
        height: 120px;
        align-content: center;
    }

    .swiper-socios .swiper-button-prev,
    .swiper-socios .swiper-button-next,
    .swiper-pertenecemos .swiper-button-prev,
    .swiper-pertenecemos .swiper-button-next {
        width: 25px;
    }

    .swiper-socios .swiper-pagination,
    .swiper-pertenecemos .swiper-pagination {
        bottom: -25px;
    }

    @media (max-width: 567.5px) {
        .second-caption {
            position: absolute; /* Asegura que la posición esté activa */
            top: 7%; /* Ajusta la posición vertical, si es necesario */
            left: 45%;
            transform: translateX(
                -50%
            ); /* Centra el elemento horizontalmente */
            width: 90%; /* Ajusta el ancho en pantallas pequeñas (puedes modificar este valor según tus necesidades) */
            max-width: 400px; /* Limita el ancho máximo para que no se haga demasiado grande en pantallas pequeñas */
            z-index: 1; /* Asegura que se vea encima de otros elementos */
        }
    }
}
