/* ========================================
   NOSOTROS — PRESENTACIÓN
======================================== */

.about-presentation {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    gap: 32px;
}

/* Filas */
.about-presentation__row {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
    width: 100%;
}

/* Contenido de texto */
.about-presentation__content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    padding-left: 20%;
    padding-right: 10%;
}


.about-presentation__row:last-child .about-presentation__content {
    padding-left: 10%;
    padding-right: 20%;
}


/* Imágenes */
.about-presentation__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.14 / 1;
    overflow: hidden;
    background-color: #f1eee9;
}

.about-presentation__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease;
}

.about-presentation__image:hover img {
    transform: scale(1.1);
}


/* Invertir las filas pares */
.about-presentation__row:nth-child(even) {
    direction: rtl;
}

.about-presentation__row:nth-child(even)>* {
    direction: ltr;
}


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

@media (max-width: 1200px) {
    .about-presentation__row {
        align-items: flex-start;
    }
}

@media (max-width: 1000px) {
    .about-presentation__image {
        aspect-ratio: 1 / 1;
    }

    .about-presentation__row:last-child .about-presentation__content {
        padding-left: 5%;
        padding-right: 5%;
    }

    .about-presentation__content {
        padding-left: 5%;
        padding-right: 5%;
    }
}

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

@media (max-width: 700px) {
    .about-presentation {
        gap: 0px;
    }

    .about-presentation__row {
        grid-template-columns: 1fr;
    }

    .about-presentation__image {
        aspect-ratio: 1.15 / 1;
    }

    .about-presentation__row:first-child .about-presentation__content {
        padding: 0px 0px 32px 0px;
    }

    .about-presentation__row:last-child .about-presentation__content {
        padding: 32px 0px;
    }
}

/* ========================================
   ACCESIBILIDAD
======================================== */

@media (prefers-reduced-motion: reduce) {
    .about-presentation__image img {
        transition: none;
    }
}






/* ========================================
   BLOQUE SUPERIOR: PROCESO
======================================== */

.home-process {
    display: grid;
    grid-template-columns: 0.7fr 2fr;
    align-items: center;
    box-sizing: border-box;
}

.home-process__intro {
    padding-right: 5%;
}

.home-process__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.home-process__step {
    min-width: 0;
    border-left: 1px solid var(--color-grey);
    box-sizing: border-box;
    padding: 0px 0px 0px 10%;
}

.home-process__step h4 {
    padding: 0px;
    font-family: var(--font-light);
}

.home-process__step p:first-of-type {
    font-family: var(--font-medium);
}

.home-process__step p:last-of-type {
    padding-bottom: 0px;
    font-size: 16px;
}


.home-process__line {
    display: block;
    width: 26px;
    height: 1px;
    background: var(--color-grey);
}


/* ========================================
   BANNER: IMAGEN CON PARALLAX
======================================== */

.home-feature-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.home-feature-banner__image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.home-feature-banner__image img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 100%;
    height: 130%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: translate3d(-50%,
            calc(-50% + var(--parallax-y, 0px)),
            0);
    will-change: transform;
}

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

@media (max-width: 900px) {
    .home-process {
        grid-template-columns: 1fr;
        padding: 32px 0px;
    }

    .home-process__intro {
        padding-bottom: 32px;
        padding-right: 0px;
    }

    .home-feature-banner {
        height: 200px;
    }

    .home-feature-banner__image img {
        height: 150%;
    }

}

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

@media (max-width: 600px) {
    .home-process__steps {
        grid-template-columns: 1fr;
    }

    .home-process__step,
    .home-process__step:first-child {
        border-left: 0;
    }



    .home-process__step {
        padding: 0px;
    }

}

/* ========================================
   ACCESIBILIDAD
======================================== */

@media (prefers-reduced-motion: reduce) {
    .home-feature-banner__image img {
        will-change: auto;
    }
}






/* ========================================
   FAQ — ESTRUCTURA
======================================== */

.faq {
    display: grid;
    grid-template-columns: 3fr 4fr;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   INTRODUCCIÓN
======================================== */

.faq__intro {
    min-width: 0;
    box-sizing: border-box;
    padding-right: 20%;
}

/* ========================================
   ACORDEÓN
======================================== */

.faq__accordion {
    min-width: 0;
    width: 100%;
}

.faq__item {
    width: 100%;
    border-bottom: 2px solid var(--color-grey);
    box-sizing: border-box;
}

.faq__question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    padding: 18px 0px;
}

.faq__question p {
    font-family: var(--font-medium);
    font-size: 17px;
    padding: 0px;
}

.faq__question svg {
    display: block;
    flex: 0 0 15px;
    width: 15px;
    height: auto;
    transition: transform 0.3s ease;
    margin-top: 8px;
}

/* Respuesta cerrada por defecto */
.faq__answer {
    display: none;
}

.faq__answer p {
    font-size: 17px;
    padding-top: 0px;
    padding-bottom: 30px;
}

.faq__item.is-open .faq__question svg {
    transform: rotate(180deg);
}

/* Accesibilidad del botón */

.faq__question:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

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

@media (max-width: 1000px) {
    .faq {
        grid-template-columns: 1fr;
    }
    .faq__accordion{border-top: 8px solid var(--color-grey-lineal); padding-top: 32px;}

    .faq__intro {
        padding-right: 0%;
        padding-bottom: 32px;
    }
}

/* ========================================
   ACCESIBILIDAD
======================================== */
@media (prefers-reduced-motion: reduce) {
    .faq__question img {
        transition: none;
    }
}