/* ==========================================
   NUESTRA HISTORIA
========================================== */

#nuestraHistoria {

    padding: 2rem 0;

    scroll-margin-top: 15rem;

}


/* ==========================================
   CONTENEDOR
========================================== */

#nuestraHistoria .container {

    width: 90%;

    max-width: none;

    flex-direction: column;

    align-items: center;

    gap: 5rem;

}


/* ==========================================
   STORY CHAPTER
========================================== */

.story-chapter {

    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 4rem;

    padding: 2rem;

    background: var(--color-header);

    border-radius: var(--radius-large);

    overflow: hidden;

    margin-block: .2rem;

}


/* Alternar imagen/texto */

.story-chapter:nth-child(even) {

    flex-direction: row-reverse;

}


/* ==========================================
   TEXTO
========================================== */

.story-content {

    width: 60%;

    display: flex;

    flex-direction: column;

    gap: 1.5rem;

}


.story-number {

    font-size: .9rem;

    color: var(--color-accent);

    letter-spacing: .2rem;

    font-weight: var(--font-semibold);

}


.story-title {

    font-size: 2.8rem;

    font-weight: var(--font-light);

    color: var(--color-text-light);

}


.story-text {

    font-size: 1.25rem;

    line-height: 1.9;

    color: var(--color-text-light);

    text-align: justify;

}


/* ==========================================
   IMAGEN
========================================== */

.story-image {

    width: 40%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border-radius: var(--radius-medium);

}

.story-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

/* Placeholder */
/*
.story-image::before {

   content: "Ilustración";

    color: rgba(255, 255, 255, .35);

    font-size: 1rem;

    letter-spacing: .08rem;

} */


/* ==========================================
   HOVER
========================================== */

.story-chapter {

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.story-chapter:hover {

    transform: scale(1.02);
}