*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

@keyframes show {
    from {
        opacity: 0;
        scale: 25%;
    }

    to {
        opacity: 1;
        scale: 100%;
    }
}

body img{
    view-timeline-name: --image;
    view-timeline-axis: block;

    animation-timeline: --image;
    animation-name: show;

    animation-range: entry 25% cover 50%;
    animation-fill-mode: both;
}

@keyframes arr {
    from{
        opacity: 0;
        display: none;
        background-color: white;
    }

    to{
        opacity: 1;
        display: block;
        background-color: #4C6E4F;
    }
}

.btn-arr{
    position: fixed;
    width: 50px;
    height: 50px;
    z-index: 1;
    bottom: 2%;
    right: 2%;
    padding: 10px;
    border-radius: 50%;

    view-timeline-name: --imagea;
    view-timeline-axis: block;

    animation-timeline: --imagea;
    animation-name: arr;

    animation-range: entry 25% cover 50%;
    animation-fill-mode: both;
}

.btn-arr img{
    width: auto;
    height: auto;
}

/* cabecera */

.container-cab{
    height: 100vh;
    width: 100%;
    background-image: url("../img/background-cab.svg");
    background-size: cover;
    background-position: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.container-cab div{
    width: 700px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 10%;
}

.container-cab div img{
    max-width: 346px;
    margin-bottom: 140px;
}

.container-cab div h1{
    font-family: "Work Sans", sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 3rem + 3vw, 7rem);
    line-height: 90px;
    color: #35403a;
}

.container-cab div h2{
    font-family: "Nunito", serif;
    font-weight: 400;
    font-size: clamp(1rem, 1rem + 3vw, 5rem);
    color: #a4a69b;
    margin-bottom: 40px;
}

.container-cab div hr{
    height: 10px;
    border: 0;
    background-color: #232625;
    max-width: 100%;
}

#boton-di{
    background-color: none;
    font-family: 'Work Sans', sans-serif;
    color: black;
    text-decoration: none;
    position: absolute;
    right: 15%;
    top: 5%;
    font-size: 1.2rem;
}

#boton-cab{
    font-family: "Work Sans", sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.2rem;
    text-decoration: none;
    color: white;
    background-color: #35403a;
    padding: 30px;
    width: 250px;
    text-align: center;
    border-radius: 50px;
}

/* sec1 */

.container-sec1{
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
}

.flex-1{
    width: 45%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.img-flex1{
    max-width: 65%;
}

.texto-1{
    display: flex;
    flex-wrap: nowrap;
}

.texto-1 img{
    height: 60px;
    margin: 10px;
}

.texto-1 p{
    font-family: "Nunito", serif;
    font-weight: 400;
    font-size: 25px;
    max-width: 430px;
    text-align: justify;
}

.flex-2{
    width: 45%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.img-flex2{
    max-width: 70%;
}

.texto-2{
    display: flex;
    flex-wrap: nowrap;
}

.texto-2 img{
    height: 60px;
    margin: 10px;
}

.texto-2 p{
    font-family: "Nunito", serif;
    font-weight: 400;
    font-size: 25px;
    max-width: 430px;
    text-align: justify;
}

/* sec2 */

.container-sec2{
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 10px;
    width: 90%;
    max-height: 60vh;
}

.grid div{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.grid div img{
    max-height: 120px;
    max-width: 100%;
    margin-bottom: 10%;
}

.grid div p{
    font-family: "Nunito", serif;
    font-weight: 400;
    font-size: clamp(0.4rem, 0.5rem + 1vw, 1.8rem);
    text-align: justify;
    width: 80%;
}

.sec3{
    width: 100%;
    height: 20vh;
    background-color: #4C6E4F;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sec3 p{
    font-family: "Nunito", serif;
    font-size: 1.2rem;
    color: white;
    text-align: center;
}

/* planes */

.container-planes{
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.container-btn-planes{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: max-content;
}

.grid-planes{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    height: auto;
    width: 80%;
    padding-left: 30px;
    padding-right: 30px;
    justify-content: center;
    justify-items: center;
}

.grid-planes div{
    min-height: 500px;
    width: 90%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.grid-planes div ul{
    font-family: "Nunito", serif;
    color: white;
    font-size: clamp(0.5rem, 0,7rem, 1.2rem);
}

.grid-planes div h3{
    font-family: "Nunito", serif;
    color: white;
    font-size: 1.2rem;
}

.grid-planes div h2{
    font-family: "Nunito", serif;
    color: white;
    font-size: 2rem;
}

.plan-1{
    background-color: #4C5A4F;
    border-radius: 40px;
}

.plan-2{
    background-color: #35403A;
    border-radius: 40px;
}

.plan-3{
    background-color: #232625;
    border-radius: 40px;
}

.grid-planes div ul{
    list-style-type: "-";
}

.btn-wha{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

.btn-wha h4{
    font-family: "Nunito", serif;
    color: #232625;
    font-size: 1.4rem;
    text-align: center;
    margin-right: 10px;
}

.btn-wha a img{
    width: 60px;
    margin-left: 10px;
}

#titulo{
    font-family: "Nunito", serif;
    color: #A4A69B;
    font-size: 2rem;
    height: auto;
}

#boton{
    font-family: "Nunito", serif;
    color: white;
    font-size: 1.2rem;
    background-color: #35403A;
    text-decoration: none;
    padding: 20px 60px;
    height: auto;
    margin-top: 20px;
}

#nota{
    font-family: "Nunito", serif;
    color: black;
    font-size: 1.2rem;
    height: auto;
    margin-top: 20px;
    text-align: center;
}

/* clientes */

.container-cli{
    width: 100%;
    height: 40vh;
    /* background-color: #35403A; */
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.container-cli h1{
    font-family: "Nunito", serif;
    color: #4C5A4F;
    font-size: 2.0rem;
}

.container-cli h2{
    font-family: "Nunito", serif;
    font-size: 1.8rem;
    text-align: center;
}

.container-cli h3{
    font-family: "Work Sans", sans-serif;
    font-size: 1.8rem;
    text-align: center;
}

.container-cli img{
    width: 80%;
}

.container-cli a{
    background-color: #35403A;
    color: white;
    text-decoration: none;
    font-family: "Nunito", serif;
    padding: 10px 30px;
    border-radius: 10px;
    font-size: 1.4rem;
}

.grid-cli{
    width: 80%;
    height: 80%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-items: center;
    padding-left: 50px;
    padding-right: 50px;
}

.card{
    /* background-color: #A4A69B; */
    width: 85%;
    height: 80%;
    border-radius: 50px;
    transform-style: preserve-3d;
    transition: all 0.8s ease;
}

/* .card:hover{
    transform: rotateY(180deg);
} */

/* .card:focus{
    transform: rotateY(180deg);
} */

.front{
    position: absolute;
    /* background-color: #C0BFB7; */
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back{
    position: absolute;
    /* background-color: #A4A69B; */
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    justify-content: space-between;
}

.grid-cli div{
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* footer */

.container-foo{
    width: 100%;
    height: 60vh;
    background-color: #232625;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    margin-top: 50PX;
}

.container-foo img{
    width: 40%;
}

.flex-foo1{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flex-foo1 h2{
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    font-style: italic;
    color: white;
    text-align: center;
}

.flex-foo2{
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.flex-foo2 h2{
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    font-style: italic;
    color: white;
}

@media (max-width: 900px) {

    /* cabecera */

    .container-cab{
        height: 80vh;
        background-size: 100% 50vh;
        background-position: top left;
        background-repeat: no-repeat;
        background-image: url("../img/background-tablet.png");
        padding-top: 40%;
    }

    .container-cab img{
        visibility: hidden;
    }

    /* sec1 */

    .container-sec1{
        min-height: 65vh;
        height: 0;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .texto-1 img{
        height: 40px;
        margin: 10px;
    }

    .texto-2 img{
        height: 40px;
        margin: 10px;
    }

    /* sec2 */

    .container-sec2{
        height: auto;
    }

    .grid{
        max-height: max-content;
        height: auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .sec3 p{
        font-size: 1.2rem;
    }

    .grid div p{
        font-size: 1.5rem;
    }

    /* planes */

    .container-planes{
        min-height: 120vh;
        width: 100%;
    }

    .grid-planes{
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        height: auto;
        width: 100%;
    }

    .grid-planes div{
        width: auto;
    }

    .plan-1, .plan-2{
        width: 100%;
    }

    .plan-3{
        width: 50%;
        grid-column: -3/-1;
    }

    #nota{
        margin-top: 0;
        margin-left: 10px;
        margin-right: 10px;
    }

    /* clientes */

    .grid-cli{
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .container-cli h2{
        font-size: 1.2rem;
    }

    .container-cli h3{
        font-size: 1.2rem;
    }

    .container-cli a{
        font-size: 1.2rem;
    }

    #nom{
        font-size: 1rem;
    }

    #pue{
        font-size: 1rem;
    }

    #btn-t{
        font-size: 1rem;
    }

    /* footer */

    .container-foo{
    width: 100%;
    height: 40vh;
    background-color: #232625;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    }

    .container-foo img{
    width: 50%;
    }

    .flex-foo1 h2{
        font-size: 1rem;
    }

    .flex-foo2{
    display: flex;
    width: 100%;
    justify-content: space-around;
    }

    .flex-foo2 h2{
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    font-style: italic;
    color: white;
    font-size: 1rem;
    }

}

@media (max-width: 604px){

    /* cabecera */

    .container-cab{
        height: auto;
        background-size: 130% 45%;
        background-image: url("../img/background-cab.svg");
        background-repeat: no-repeat;
        background-position: top right;
        padding-top: 0;
    }

    .container-cab img{
        visibility: hidden;
    }

    .container-cab div{
        align-items: center;
    }

    .container-cab div h1{
        text-align: center;
        font-size: 3rem;
        line-height: 60px;
    }

    #boton-di{
        position: static;
        margin-bottom: 20px;
        font-size: 1.5rem;
    }

    hr{
        width: 100%;
        max-width: 0;
    }

    .container-cab div a{
        padding: 20px;
    }

    /* sec1 */

    .container-sec1{
        height: auto;
        flex-direction: column;
    }

    .flex-1{
        width: 100%;
    }

    .texto-1, .texto-2{
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .flex-2{
        width: 100%;
        flex-direction: column-reverse;
    }

    .texto-2 p, .texto-1 p{
        font-size: 1.2rem;
    }

    .texto-2 img, .texto-1 img{
        width: 40px;
    }

    /* sec2 */

    .container-sec2{
        height: auto;
        margin-top: 10px;
    }
    
    .grid{
        grid-template-columns: 1fr;
        height: auto;
        max-height: max-content;
    }

    .grid div p{
        width: 100%;
        font-size: 1rem;
    }

    .sec3 p{
        font-size: 0.8rem;
        margin: 10px;
    }

    /* planes */

    .grid-planes{
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
    }

    .grid-planes{
        width: 100%;
        gap: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .grid-planes div{
        width: 100%;
        border-radius: 0;
    }

    .plan-3{
        grid-column: auto;
    }

    #titulo{
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #nota{
        margin-top: 20px;
    }

    .btn-wha{
        flex-direction: column-reverse;
    }

    /* clientes */

    .container-cli{
        height: 130vh;
        margin-top: 40px;
    }

    .container-cli h2{
        font-size: 1rem;
    }

    .container-cli h3{
        font-size: 1rem;
    }

    .container-cli a{
        font-size: 1rem;
    }

    .grid-cli{
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }

    /* footer */

    .container-foo{
    width: 100%;
    height: 40vh;
    background-color: #232625;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    margin-top: 0;
    }

    .container-foo img{
    width: 70%;
    }

    .flex-foo2{
    flex-direction: column;
    align-items: center;
    }

    .flex-foo2 h2{
    margin-top: 20px;
    }
}