* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --color-backgroubd-claro: #F8F9FA;
    --color-background-naranja: #FF8A15;
    --color-texto-oscuro: #070707;
    --color-texto-claro: #F8F1F1;
}

/* HEADER  */
.header {
    display: flex;
    flex-direction: column;
}

.header-container {
    display: flex;
    /* flex-direction: column; */
    justify-content: space-evenly;
    align-items: center;
    background-color: var(--color-backgroubd-claro);
}

.header-container-info {
    display: flex;
    gap: 5px;
    align-items: center;
}

.header-container-info-container {
    display: flex;
    gap: 1rem
}

.header-container-info-img {
    height: 69px;
    width: 55px;
}

.header-container-info-link {
    text-decoration: none;
    color: var(--color-texto-oscuro);
    font-size: 20px;
    font-weight: 600;
}

.header-nav {
    display: flex;
    background-color: var(--color-background-naranja);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.header-nav-container {
    display: flex;
    justify-content: space-evenly;
    margin: 0 2rem;
    list-style: none;
    width: 100%;
}

.header-nav-container-list-link {
    text-decoration: none;
    color: var(--color-texto-claro);
    font-size: 25px;
    font-weight: bold;
    position: relative;
}
.header-nav-container-list-link:hover {
    color: #060606;
}
.header-nav-container-list-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: #060606;
    transition: width .3s ease-in-out;
}
.header-nav-container-list-link:hover::after {
    width: 100%;
}


/* MAIN */

main {
    background-color: var(--color-backgroubd-claro);
}

.hero-section-img {
    width: 100%;
    height: 800px;
    object-fit: cover;
}

.section1-white-container {
    background-color: var(--color-backgroubd-claro);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 7rem;
    margin-top: 2rem;
}

.text-tittle {
    font-size: 35px;
    font-weight: 400;
    margin-bottom: 1rem;
}

.section1-grey-container {
    background-color: #B8B7B7;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    height: 400px;
}

.section1-cards-container1 {
    width: 1000px;
    display: flex;
    justify-content: space-between;
    margin: 1rem;
    position: absolute;
    bottom: 200px;
}

.section1-cards-container2 {
    width: 1000px;
    display: flex;
    justify-content: space-between;
    margin: 1rem;
    position: absolute;
    top: 200px;
}

.section1-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 260px;
    height: 260px;
    border-radius: 6px;
    box-shadow: 0.5px 2px 6px 0.2px rgba(0, 0, 0, 0.5);
    background-color: #ffff;
}

.section1-card-container-img {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    justify-items: center;
    align-items: center;
    margin: 1rem 0;
}

.section1-card-container-text {
    text-align: center;
}

.section1-card-container-text>h3 {
    font-size: 21px;
    font-weight: 600;
}

.section1-card-container-text>h3::after {
    content: "";
    display: block;
    width: 187px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-background-naranja);
}

.section1-card-container-text>p {
    font-size: 15px;
    font-weight: 400;
    margin: 0.5em 1em 0 1em;
}

.section1-white-container-grid {
    background-color: var(--color-backgroubd-claro);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 8rem;
}

.section1-white-container-grid-text-container {
    text-align: center;
}

.button-orange {
    background-color: var(--color-background-naranja);
    color: var(--color-texto-claro);
    height: 56px;
    width: 228px;
    border-radius: 6px;
    font-size: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .5);
    transition: all 0.5s ease-in-out;
    position: relative;
    overflow: hidden;

    &:before {
        content: "";
        background-color: rgba(255, 255, 255, 0.5);
        height: 100%;
        width: 3em;
        display: block;
        position: absolute;
        top: 0;
        left: -4.5em;
        transform: skewX(-45deg) translateX(0);
        transition: none;
    }

    &:hover {
        color: #fff;
        border: 1px solid var(--color-texto-oscuro);

        &:before {
            transform: skewX(-45deg) translateX(13.5em);
            transition: all 0.7s ease-in-out;
        }
    }
}

.section2-orange-container {
    background-color: var(--color-background-naranja);
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
}

.section2-orange-container-img-container {
    position: absolute;
    top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.section2-orange-container-img {
    width: 300px;
    height: 450px;
}

.section3-black {
    background-color: #060606;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.section3-black>img {
    width: 100%;
    height: 100%;
}

.section2-black-form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.section2-black-form-container>p {
    font-size: 35px;
    color: var(--color-texto-claro);
    margin-top: 2rem;
}

.section2-black-form-container-form {
    width: 600px;
    height: 100%;
    margin: 0 auto 3rem;
    display: grid;
    align-items: flex-end;
    justify-items: center;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
        "name tel"
        "email ."
        "message button"
    ;
}

.name {
    grid-area: name;
}

.tel {
    grid-area: tel;
}

.email {
    grid-area: email;
}

.message {
    grid-area: message;
}

.button {
    align-self: flex-end;
    margin-bottom: 8px;
    grid-area: button;
}


.section2-black-form-container-form-input {
    width: 227px;
    padding: 12px 2px;
    margin: 8px 0;
    box-sizing: border-box;
    border: none;
    background-color: #060606;
    border-bottom: 2px solid orange;
    color: white;
}

.section2-black-form-container-form-input::placeholder {
    color: var(--color-texto-claro);
    font-size: 20px;
}

.section2-black-form-container-form-input::content {
    color: var(--color-texto-claro);
}

input[type=submit]:hover {
    background-color: #ff7f00;
}

.section2-black-form-container-form-button {
    background-color: var(--color-background-naranja);
    color: var(--color-texto-claro);
    height: 49px;
    width: 227px;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.5s ease-in-out;
    position: relative;
    overflow: hidden;

    &:before {
        content: "";
        background-color: rgba(255, 255, 255, 0.5);
        height: 100%;
        width: 3em;
        display: block;
        position: absolute;
        top: 0;
        left: -4.5em;
        transform: skewX(-45deg) translateX(0);
        transition: none;
    }

    &:hover {
        color: #fff;
        border: 2px solid var(--color-texto-claro);

        &:before {
            transform: skewX(-45deg) translateX(17.5em);
            transition: all 0.7s ease-in-out;
        }
    }
}

.section1-white-container-grid2 {
    background-color: var(--color-backgroubd-claro);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 8rem;
}

.section2-orange-container-square {
    background-color: var(--color-background-naranja);
    position: relative;
    height: 200px;
    display: flex;
    justify-content: center;
}

.section2-orange-container-img-container-square {
    position: absolute;
    top: -110px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.section2-orange-container-img-container-square>img {
    height: 250px;
    width: 300px;
}

/* FOOTER */

.footer-grey {
    height: 22px;
    background-color: #888888;
    border-top: 1px solid #707070;
    border-bottom: 1px solid #707070;
}

.footer-black {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 1rem;
    height: 190px;
    gap: 6rem;
    background-color: #060606;
}

/* MEDIA QUERIES */

@media screen and (max-width: 1000px) {
    .header-container {
        flex-direction: column;
    }

    .hero-section-img {
        height: auto;
    }

    .section1-cards-container1 {
        width: auto;
        gap: 2rem;
    }

    .section1-cards-container2 {
        width: auto;
        gap: 2rem;
    }

    .section2-orange-container-img {
        width: 200px;
        height: 300px;
    }

    .text-tittle {
        font-size: 20px;
        margin-bottom: 0px;
    }

    .button-orange {
        font-size: 20px;
        width: 200px;
    }

    .section2-orange-container-img-container-square>img {
        width: 200px;
        height: auto;
    }

    .section1-card-container {
        width: 180px;
        height: 260px;
    }

    .section1-card-container-text>h3::after {
        width: 130px;
    }

    .section1-card-container-text>h3 {
        font-size: 20px;
    }

    .section1-card-container-text>p {
        font-size: 15px;
    }

    .section2-orange-container {
        height: 250px;
    }

    .section1-white-container-grid {
        margin-bottom: 4rem;
    }

    .section2-orange-container-img-container {
        top: -20px;
    }

    .section1-white-container-grid2 {
        margin-bottom: 4rem;
    }

    .section2-orange-container-img-container-square {
        top: -30px;
    }

    .section2-orange-container-square {
        height: 150px;
    }

    .section3-black {
        display: block;
    }

    .section3-black>img {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    .header-container-info-img {
        height: 59px;
        width: 45px;
    }
    .header-container-info-link {
        font-size: 15px;
    }
    .header-nav-container-list-link{
        font-size: 18px;
    }
}
@media screen and (max-width: 686px) {
    .text-tittle {
        font-size: 18px;
    }
    .button-orange{
        width: 150px;
        height: 46px;
    }
    .section2-black-form-container-form-button{
        width: 200px;
        height: 46px;
    }
    .section1-white-container{
        margin-bottom: 2rem;
    }
    .section1-grey-container{
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .section1-cards-container1{
        position:relative;
        flex-direction: column;
        bottom: 0px;
        align-items: center;
        margin: 1em;

    }
    .section1-cards-container2{
        position:relative;
        flex-direction: column;
        top: 0px;
        align-items: center;
        margin: 1em;
    }
    .section2-orange-container-img{
        width: 150px;
        height: 225px;
    }
    .section2-orange-container{
        height: 180px;
    }
    .section1-white-container-grid{
        margin-top: 2rem;
        margin-bottom: 2rem;
        display: flex;
        gap: 1rem;
        flex-direction: column;
    }
    .section1-white-container-grid2{
        display: flex;
        gap: 1rem;
        flex-direction: column;
    }
    .section2-orange-container-square{
        height: 100px;
    }
    .section2-orange-container-img-container-square > img{
        width: 140px;
    }
    .footer-grey{
        height: 16px;
    }
    .footer-black{
        height: 120px;
    }
    .footer-black > a > img{
        width: 70px;
        height: 70px;
    }
    .section2-black-form-container-form{
        margin-top: 1em;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    .button{
        align-self: center;
    }
}
@media screen and (max-width: 550px)
{
    .section2-orange-container{
        height: 950px;
    }
    .section2-orange-container-img-container{
        position: relative;
        top:0px;
        flex-direction: column;
    }
    .section2-orange-container-img{
        width: 215px;
        height: 300px;
    }
    .section2-orange-container-square{
        height: 670px;
    }
    .section2-orange-container-img-container-square{
        flex-direction: column;
    }
    .section2-orange-container-img-container-square > img{
        width: 300px;
    }
    .header-container-info-img{
        height: 35px;
        width: 30px;
    }
    .header-container-info-link{
        font-size: medium;
    }
    .header-nav-container-list-link{
        font-size: medium;
    }
    .header-container-logo{
        width: 230px;
    }
    .header-nav{
        padding: 1rem;
    }
    .header-container-info-container{
        flex-direction: column;
        margin-bottom: 1em;
    }
    .header-nav-container{
        margin: 0px;
    }
    .footer-black{
        gap: 3rem;
    }
}

@media screen and (max-width: 420px) {
    .section1-grey-container{
        grid-template-columns: 1fr;
    }
    .section1-card-container{
        flex-direction: row;
        width: 310px;
        height: 175px;
    }
}