/* Diseño de Hero de la pagina sobre mi*/

.hero {
    width: 100%;
    margin: 0;
    padding: 80px 40px 0;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;

    position: relative;

    background: rgb(223, 199, 187);
}

/* Diseño de la foto */

.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
}

/* Diseño de presentacion */

.hero-inicio {
    max-width: 520px;

    font-size: 1.3rem;
    line-height: 1.7;
}

.hero-inicio p {
    margin: 0;
}

/* Diseño de frases */

.hero-frase {
    grid-column: 1 / -1;

    width: calc(100% + 80px);
    margin-left: -40px;

    max-width: none;

    padding: 100px 40px 130px;
    box-sizing: border-box;

    text-align: center;

    background: rgb(85, 68, 79);
    color: rgb(223, 199, 187);

    font-size: 1.2rem;
    line-height: 1.8;

    position: relative;
}

.hero-frase p {
    margin: 0;
}

/* Diseño de mi historia */

.historia {
    width: 100%;
    margin: 0;

    padding: 100px 40px;

    box-sizing: border-box;

    background: rgb(245, 238, 234);
}

.historia h2 {
    max-width: 820px;
    margin: 0 auto 50px;

    text-align: left;

    font-size: 2.5rem;
    font-weight: 400;

    color: rgb(85, 68, 79);
}

.historia-content {
    max-width: 820px;
    margin: 0 auto;

    font-size: 1.1rem;
    line-height: 1.8;
}

.historia-content p {
    margin: 0 0 25px;
}

/* ================================ */
/* RESPONSIVE PARA TABLET */
/* ================================ */

@media (max-width: 800px) {
    
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;

        padding: 60px 25px 90px;
    }

    .hero-image {
        order: 1;
    }

    .hero-inicio {
        order: 2;

        max-width: 650px;
        margin: 0 auto;

        text-align: center;
    }

    .hero-frase {
        order: 3;

        margin-top: 20px;
    }

    .historia {
        padding: 80px 25px;
    }
}

/* ================================ */
/* RESPONSIVE PARA TELEFONO */
/* ================================ */

@media (max-width: 500px) {
    .hero {
        padding: 45px 20px 70px;
    }

    .hero-image img {
        max-width: 330px;
    }

    .hero-inicio {
        font-size: 1.15rem;
        line-height: 1.7;
    }

    .hero-frase {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .historia {
        padding: 65px 20px;
    }

    .historia h2 { 
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .historia-content {
        font-size: 1.05rem;
        line-height: 1.8;
    }
}