
body{
    background-image: url('https://i.pinimg.com/564x/9d/3b/31/9d3b312eb4fab515c555b8ed6649b314.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-attachment: fixed;

    display: grid;
    grid-template-columns: repeat(7, 1fr) ;
    grid-template-rows: 100px 520px;
    grid-template-areas: 
    'he he he he he he he'
    '. ma ma ma ma ma .';
}

header{
    grid-area: he;
    color:azure;
    background-color: rgb(94, 104, 104);
    display:flex;
    justify-content: space-between;
    align-items: center;
    padding:15px 20px;
}

header ul{
    display:flex;
    list-style: none;
}

header nav ul li a{
    color:azure;
    text-align: none;
    margin: 0 15px;
    padding: 3px;
    transition:0.5s;
    text-decoration: none;
}

header nav ul li a:hover{
    background-color: beige;
    color:rgb(76, 81, 110);
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    align-content: center;
    padding: 10px;
    margin: 10px;
    color: azure;
    grid-area: ma;}

.s1{
    border-radius: 50px;
    background-color: rgba(85, 95, 104, 0.6);
    padding: 20px;
    margin: 10px;
    height: 260px;
    width: 260px;
}

.s1 img{border-radius: 50px;}

footer{
    align-content: center;
    display: flex;
    position: fixed;
    top: 92%;
    left: 89%;
}

footer img{margin:1px; padding: 8px; border-radius: 100px;background-color: azure;}

footer img:hover{
    padding: 10px;
    background-color: rgb(67, 100, 100);
}

/*COMENTARIO*/
.comentarios {
    padding: 20px;
    background-color: #3b3a34;
    border: 1px solid #000000;}

.comentarios form{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
    width: 500px; 
    height: 395px;
}

.comentarios form input, textarea{
    width: 500px;
    background-color: #ffffff;
    border-radius: 50px;
    transition: 0.5s;
}

.comentarios form button{
    width: 70px; 
    height: 40px;
    background-color: #ffffff;
    border: 2px solid #000000;
    transition:0.5s;
}

@keyframes adel-atras {             /* nombre*/
    from { left: -200px; }             /* animar desde la izquierda: 0px */
    to { left: calc(50% - 50px); } /* animar a la izquierda: 100%-50px */
  }
.comentarios .msj {
    animation: adel-atras 3s infinite alternate;
    position: relative;
    width: 60px;
    height: 40px;}

.comentarios form input:hover, textarea:hover{
    background-color: rgb(215, 219, 224);
}

.comentarios form button:hover{
    background-color: rgb(66, 130, 214);
    transform: scale(1.5);
}

/*PAISAJE*/
.paisaje {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
}

.paisaje div{
    position:relative;
    margin: 10px;
    padding: 10px;
    width: 30%;
    border-radius: 30px;
}

.paisaje div img{width: 100%; /* La imagen ocupará todo el ancho del div */
        height: 100%; /* La imagen ocupará todo el alto del div */
        object-fit: cover;/* La imagen se ajustará para cubrir el div */
        border: 4px solid #000000;;
        border-radius: 30px;}

.paisaje .texto{
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-52%, -50%);
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.651);
    color: rgb(0, 0, 0);
    padding: 10px;
    border-radius: 30px;
    transition: opacity 0.3s;
    width: 85%;
    height: 80%;
    }

.p1:hover .texto{opacity: 1;}
.p2:hover .texto{opacity: 1;}
.p3:hover .texto{opacity: 1;}
.p4:hover .texto{opacity: 1;}
.p5:hover .texto{opacity: 1;}
.p6:hover .texto{opacity: 1;}
.p7:hover .texto{opacity: 1;}
.p8:hover .texto{opacity: 1;}
.p9:hover .texto{opacity: 1;}

/*TRABAJOS*/
.trabajos{
    color: rgb(255, 255, 255);
    background-color:rgba(85, 95, 104, 0.6);
    border-radius: 30px;
}

.trabajos .prac{
    display: grid;
    justify-content: space-around;
    grid-template-columns: repeat(2, 1fr) ;
    grid-template-rows: 5px 350px;
    grid-template-areas:
    'tp tp' 
    'tp1 tp2';
}
.trabajos .tp {grid-area: tp;border:0 ;}
 .trabajos .tp1{grid-area: tp1;}
 .trabajos .tp2{grid-area: tp2;}

.trabajos div{
            margin: 15px;
            padding: 10px;
            border-radius: 30px;
            border: 2px solid black;}

.trabajos div h4{
            position: relative; 
            top:-40px;
            background-color:rgba(39, 43, 43, 0.623);
            margin: 10px;
            padding: 10px;
            border-radius: 30px;
            }

.trabajos .tp1:hover, .tp2:hover{
    transform: scale(1.1);
}

 /*TESTIMONIOS*/
.testimonios{
    display: grid;
    justify-content: space-around;
    grid-template-columns: repeat(4, 300px) ;
    grid-template-rows: 30px, 300px;
    grid-template-areas: 
    't t t t'
    'c1 c2 c3 c4';
    }

.testimonios div{
    width: 80%;
    color:rgb(255, 255, 255);
    border: 3px solid black;
    border-radius: 30px;
    padding: 20px;
    margin: 20px;
    background-color: rgba(115, 124, 124, 0.705);
}

.testimonios div img{
    width: 50%;
    border-radius: 90%;
    border: 2px solid rgb(255, 255, 255);
}

.testimonios h2{grid-area: t; text-align: center;}
.testimonios .c1 {grid-area: c1;}
.testimonios .c2 {grid-area: c2;}
.testimonios .c3 {grid-area: c3;}
.testimonios .c4 {grid-area: c4;}

.testimonios h3{text-align: center;}
.testimonios p{height: 120px;}

/*PAGINA 1*/
.pagina1 {
        background-color: rgba(85, 95, 104, 0.6);
        border: 2px solid rgba(105, 96, 96, 0.726);
        border-radius: 30px; 
        padding: 15px; }
.pagina1 a {
    position:absolute;
    top:20%;
    left: 85%;
    background-color: azure;
    border-radius: 30px; 
    padding: 10px; 
    color: rgb(0, 0, 0);
    border: 2px solid rgb(0, 0, 0);}

/*PAGINA 2*/
.pagina2 {background-color: rgba(85, 95, 104, 0.6);
            border: 2px solid rgba(105, 96, 96, 0.726);
            border-radius: 30px; 
            padding: 15px; }
.pagina2 a {
            position:absolute;
            top:20%;
            left: 85%;
            background-color: azure;
            border-radius: 30px; 
            padding: 10px; 
            color: rgb(0, 0, 0);
            border: 2px solid rgb(0, 0, 0);}


/*PARA TABLET*/
@media only screen and (max-width: 1024px){
     body{
        display: grid;
        grid-template-columns: repeat(4, 1fr) ;
        grid-template-rows: 90px 90px 768px;
        grid-template-areas: 
        'he he he he '
        'he he he he '
        'ma ma ma ma ';
    }
    header{
        grid-area: he;
        color:azure;
        background-color: rgb(94, 104, 104);
        display:flex;
        justify-content: space-between;
        align-items: center;
        padding:15px 20px;
    }
    header ul{
        display:flex;
        flex-direction: column;
        padding: 30px;
    }
    .paisaje {
        display: grid;
        grid-template-columns: repeat(2, 1fr) ;
    }
    .paisaje div {width: 90%;}

    .trabajos .prac{
        display: flex;
        flex-direction: column;
    }

    .testimonios{
        display: grid;
        justify-content: space-around;
        grid-template-columns: repeat(2, 400px) ;
        grid-template-rows: 30px 400px 400px;
        grid-template-areas: 
        't t '
        'c1 c2'
        'c3 c4';
        gap:10px;
    }

    .testimonios div img{
        width: 30%;
    }

    footer{
        top: 90%;
        left: 82%;
    }

}

@media only screen and (max-width: 768px){
    body{
        display: grid;
        grid-template-columns: repeat(4, 1fr) ;
        grid-template-rows: 90px 90px 768px;
        grid-template-areas: 
        'he he he he '
        'he he he he '
        'ma ma ma ma ';
    }
    header{
        grid-area: he;
        color:azure;
        background-color: rgb(94, 104, 104);
        display:flex;
        justify-content: space-between;
        align-items: center;
        padding:15px 20px;
    }
    header ul{
        display:flex;
        flex-direction: column;
        padding: 30px;
    }
    .paisaje {
        display: flex;
        flex-direction: column;
    }
    .paisaje div {width: 90%;}

    .trabajos .prac{
        display: flex;
        flex-direction: column;
    }

    .testimonios{
        display: grid;
        justify-content: space-around;
        grid-template-columns: repeat(2, 210px) ;
        grid-template-rows: 30px 400px 400px;
        grid-template-areas: 
        't t '
        'c1 c2'
        'c3 c4';
        gap:10px;
    }

    .testimonios div img{
        width: 30%;
    }

    .comentarios{
        gap: 10px;
        padding: 10px;
        width: 220px; 
        height: 410px;
        border-radius: 30px;
    }
    .comentarios form{
        gap: 10px;
        padding: 10px;
        width: 200px; 
        height: 410px;}

    .comentarios form input, textarea{
        width: 200px;
    }
    footer{
        top: 90%;
        left: 67%;
    }
}