body {
    height: auto;
    background-image: url(../../../public/images/inicio/sobre_nosotros/fondo.webp);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* -----------------------------------
       CONTENIDO "SOBRE NOSOTROS"
   --------------------------------- */
.contenedor-nosotros,
.contenedor-cortesia {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contenedor-nosotros .h1-info {
    font-family: Avenir black;
    font-size: clamp(48px, 7vw, 82px);
    text-align: center;
    line-height: 1;
    margin-top: clamp(25px, 5vw, 50px);
    margin-bottom: clamp(24px, 5vw, 30px);

    background: var(--degradado-cdmx);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contenedor-nosotros p {
    text-align: center;
}

.contenedor-nosotros .p-info {
    color: var(--gris-oscuro);
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
    margin-inline: 25px;
    max-width: 676px;
}

.contenedor-nosotros .p-info2 {
    color: var(--azul-marino-medex);
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    font-style: normal;
    line-height: normal;
    margin-inline: 45px;
}

@media (min-width: 480px) {
    .contenedor-nosotros .p-info2 span {
        display: block;
    }
}

/* -----------------------------------
                CARRUSEL
   --------------------------------- */
.parallax {
    height: 412px;
    /* Segunda imagen */
    background-attachment: fixed;
    background-image: url(../../../public/images/inicio/sobre_nosotros/parallax.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* Centrar contenido */
    display: grid;
    justify-content: center;
}

@media (max-width: 576px) {
    .parallax {
        height: 479px;
    }
}

.parallax .carousel {
    max-width: 740px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
}

.parallax .carousel h1 {
    text-align: center;
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 800;
    line-height: 42px;

    position: absolute;
    top: 10%;
}

.parallax .carousel .carousel-inner {
    width: 80%;
}

@media (max-width: 700px) {
    .parallax .carousel h1 {
        top: 3%;
        max-width: 350px;
    }

    .parallax .carousel .carousel-inner {
        width: 90%;
    }
}

/* Animaciones carrusel de textos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(150px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item {
    animation: fadeInUp 0.6s ease-out;
}

.carousel-item h2 {
    font-size: clamp(24px, 5vw, 28px);
    font-weight: bold;
}

.carousel-item p {
    font-size: clamp(16px, 5vw, 20px);
    line-height: normal;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    width: 27px;
    height: 40px;
}
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}

/* -----------------------------------
           Cortesía de ingreso
   --------------------------------- */
.contenedor-gafetes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    grid-template-areas:
        'tarjetas info'
        'tarjetas boton';
    max-width: 1220px;
    width: 100%;
    justify-items: center;
}

.tarjetas {
    grid-area: tarjetas;
    text-align: end;
}

.info {
    grid-area: info;
    text-align: center;
    display: grid;
    align-items: end;
}

.boton {
    grid-area: boton;
}

@media (max-width: 576px) {
    .contenedor-gafetes {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            'info'
            'tarjetas'
            'boton';
    }

    .tarjetas {
        text-align: center;
    }
}

.tarjetas img {
    max-width: 500px;
    width: 80%;
    height: auto;
    aspect-ratio: 8/7;
}

.info p {
    font-size: clamp(32px, 5vw, 40px);
    font-weight: 400;
    line-height: normal;
    padding-inline: 15px;
    background: var(--degradado-cdmx-invertido);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info p span {
    font-weight: bold;
}

.boton a {
    text-decoration: none;
}

.boton .btn-20 {
    width: 199px;
    height: 32px;
    flex-shrink: 0;
}
