body{

  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}


.inicio{ 
grid-area: header;   
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;       
margin: 4em 4em 0 4em;
color: white;
font-family: "Mountains of Christmas", serif;
font-weight: 700;
font-style: normal;
font-size: xx-large;

}
.inicio h1{
text-shadow: 
2px 2px 1px rgb(0, 0, 0),
4px 4px 1px rgb(42, 135, 32);
}
.img0{
object-fit: cover;
width: 250px;
height: 350px;
filter: sepia(80%);
border-radius: 10em;  
opacity: 0.8;
transform: scale(150%);

}


/* .nieve{
width: 100%;
position: fixed;
} */

.quienesomos{
grid-area: main;
color: white;
margin: 2em;
padding: 2em;
text-align: justify;
background-color: rgba(38, 38, 38, 0.7);
}
.quienesomos h2{
text-align: center;
font-family: "Mountains of Christmas", serif;
font-weight: 700;
font-style: normal;
font-size: xx-large;
text-shadow: 
2px 2px 1px rgb(0, 0, 0),
3px 3px 1px rgb(42, 135, 32);
}
footer{
grid-area: footer;
height: 100px;  
background-color: rgb(0, 0, 0);
color: white;
display: flex;
flex-wrap: wrap;
gap: 2px;
align-items: center;
padding: 10px;      
font-family: "Mountains of Christmas", serif;
font-weight: 700;
font-style: normal;
font-size: xx-large;
}
.iconf{
width: 10%;
}

.scroll-to-top {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #333;
color: white;
padding: 10px 15px;
border-radius: 50px;
text-decoration: none;
font-size: 14px;

box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: opacity 0.3s ease-in-out;
}

.scroll-to-top:hover{
background-color: #555;
}

body:has(.scroll-to-top:target) .scroll-to-top {
display: block;
}


@media (max-width: 576px ){


body{
background-image: url(../img/fondo\ tim\ burton.jpg);

display: grid;
grid-template-areas:
  "navbar navbar" 
  "header header"
  "main main"
  "section section"
  "footer footer";

grid-template-columns: 150px 1fr;
    grid-template-rows: auto-fill 1fr auto;
    min-height: 100vh;
    text-align: center;
    margin: 0;
  } 
.img0{
display: none;
}
.navbar-xl{
display: none;
}
.navbar{
grid-area: navbar;
background-color: rgb(36, 36, 36);
color: rgb(255, 255, 255);
padding: 1em;      
display: flex ;
justify-content: space-between;
align-items: center;
font-family: "Mountains of Christmas", serif;
font-weight: 400;
font-style: normal;
font-size: medium; 

}

ul p:hover{
color: aqua;
}
ul p{
color: white;
}
ul{
text-decoration: none;
list-style: none;
display: flex ;
flex-wrap: wrap;
gap: 5px;
justify-content: space-around;
line-height: 1px;
}
.inicio{
grid-area: header;
align-items: center;
font-size: larger;
justify-content: left;
}
.inicio h1{
transform: scale(130%);
}
.quienesomos p{
font-size: small;
}


section{
grid-area: section;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;

}
.contenedor {
perspective: 300px;
display: flex;
flex-wrap: wrap;   
justify-content: center; 
margin: 0.5em 3em 3em 2em;
gap: 1em ;
}
/* Distancia del ojo al plano -  cambiar de valor */
.tarjeta:hover{
transform: scale(70%);
}
.tarjeta {
width: 8em;
height: 15em;    
border: 1px solid rgb(0, 0, 0);
transform-style: preserve-3d;
position: relative;
transition: transform 0.6s;
  /* animation: giro 3s infinite; */
}

.tarjeta.rotar {
transform: rotateY(180deg);
}

.cara {
position: absolute;
width: 100%;
height: 100%;
display: flex;
flex-wrap: wrap;    
justify-content: center;
align-items: center;
backface-visibility: hidden;
box-shadow: 4px 4px 1px rgb(0, 0, 0);
}

.caraFrontal {    
color: white;
font-size: 12px;
background-color: rgba(0, 0, 0, 0.8);
filter: grayscale(70%);
text-align: center; 
letter-spacing: 1px;
}

.caraTrasera {
color: white;    
background-color: rgba(0, 0, 0, 0.8);
filter: grayscale(70%);         
transform: rotateY(180deg);
display: flex;
flex-wrap: wrap;

}

.imgtrasera{  
width: 50px;
height: 75px;
object-fit: cover;
object-position: center;
} 
.imgfrontal{
margin-top: 5px;
width: 91px;
height: 110px;  
object-position: center;
}
.boton{
width: 50%;           
background-color: rgb(255, 255, 255);
color: rgb(2, 2, 2);
padding: 0.4em;
margin-bottom: 5px;
margin-left: 2px;
margin-right: 2px;
border-radius: 2em;
font-family: "Mountains of Christmas", serif;
font-weight: 400;
font-style: normal;
font-size: small;
text-shadow: 1px 1px 1px rgb(42, 135, 32);
box-shadow: 1px 1px 1px rgb(42, 135, 32);
}
.boton:hover{
background-color: aqua;
transform: scale(110%);

}



@keyframes giro {
0% {
transform: rotateY(0deg);
}
50% {
transform: rotateY(180deg);
}
100% {
transform: rotateY(360deg);
}
}

.muestras{
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2em;
padding-left: 2em;
padding-right: 2em;
margin: 5em 2em 4em 2em;
}
.card{    
width: 250px;
height: 250px;   
box-shadow: 2px 2px 5px 2px black;  
border-radius: 1em; 

}
.card:hover{
transform: scale(110%);
transition: ease-in-out;
transition-delay: 20ms;  

}
.card:active{    
filter: invert(80%);

}

.galleria{
width: 250px;
height: 250px;
object-fit: cover;
object-position: left;         
border-radius: 1em;
}
.galleria:hover{
filter: sepia(80%);
transition: ease-in-out;
transition-delay: 100ms;  

}
footer{
grid-area: footer;  
align-content: center;
height: 150px;
}
footer img{
transform: scale(70%);
margin: 0%;
}
footer h5{
transform: scale(50%);
margin: 0;
}
}
@media (min-width: 576px){
body{
background-image: url(../img/Fondo\ B.jpg);
display: grid;
grid-template-areas: 
  "header header"
  "main main"
  "section section"
  "footer footer";

grid-template-columns: 150px 1fr;
    grid-template-rows: auto-fill 1fr auto;
    min-height: 100vh;
    text-align: center;
    margin: 0;
    
}
.navbar{
display: none;
}
.scroll-to-top{
display: none;
}

/* menu lateral patanlla grande */

/* Estilos básicos para el botón del menú */
.menu-button {
font-size: 30px;
cursor: pointer;
margin: 20px;
position: fixed;
top: 0;
left: 0;
}

/* Estilos para el menú lateral */
.side-menu {
height: 100%;
width: 0;
position: fixed;
top: 0;
left: 0;
background-color: #383838;
opacity: 0.8;
overflow-x: hidden;
transition: width 0.5s;
padding-top: 60px;
color: white;
z-index: 1;
font-family: "Mountains of Christmas", serif;
font-weight: 400;
font-style: normal;
font-size: xx-large;
}

/* Estilos para los enlaces dentro del menú lateral */
.side-menu a {
padding: 10px 15px;
text-decoration: none;
font-size: 25px;
color: #ffffff;
display: block;
transition: color 0.6s;
}

/* Cambia el color del enlace al pasar el ratón */
.side-menu a:hover {
color: #f1f1f1;
}

/* Estilo para abrir el menú */
.side-menu.open {
width: 250px;
}

/* Estilos para el botón de cierre dentro del menú */
.side-menu .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
}

section{
grid-area: section;
display: flex;
flex-wrap: wrap;
gap: 2em;
  justify-content: center;
  align-items: center;
  
}
.contenedor {
perspective: 300px;
display: flex;
flex-wrap: wrap;
gap: 1em;
margin: 0.5em 3em 3em 2em;
}
/* Distancia del ojo al plano -  cambiar de valor */
.tarjeta:hover{
transform: scale(110%);
}
.tarjeta {
width: 16em;
height: 24em;
border: 1px solid rgb(0, 0, 0);
transform-style: preserve-3d;
position: relative;
transition: transform 0.6s;
/* animation: giro 3s infinite; */
}

.tarjeta.rotar {
transform: rotateY(180deg);
}

.cara {
position: absolute;
width: 100%;
height: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
backface-visibility: hidden;
box-shadow: 4px 4px 1px rgb(0, 0, 0);
}

.caraFrontal {    
color: white;
background-color: rgba(0, 0, 0, 0.8);
filter: grayscale(70%);
text-align: center; 
letter-spacing: 1px;
}

.caraTrasera {
color: white;
background-color: rgba(0, 0, 0, 0.8);
filter: grayscale(70%);         
transform: rotateY(180deg);
display: flex;
flex-wrap: wrap;
gap: 2px;
}

.imgtrasera{  
width: 100px;
height: 150px;
object-fit: cover;
object-position: center;
} 
.imgfrontal{
margin-top: 10px;
width: 183px;
height: 220px;  
object-position: center;
}
.boton{
width: 90%;           
background-color: rgb(255, 255, 255);
color: rgb(2, 2, 2);
padding: 0.4em;
margin-bottom: 1em;
margin-left: 2em;
margin-right: 2em;
border-radius: 2em;
font-family: "Mountains of Christmas", serif;
font-weight: 400;
font-style: normal;
font-size: x-large;
text-shadow: 1px 1px 1px rgb(42, 135, 32);
box-shadow: 1px 1px 1px rgb(42, 135, 32);
}
.boton:hover{
background-color: aqua;
transform: scale(110%);

}



@keyframes giro {
0% {
transform: rotateY(0deg);
}
50% {
transform: rotateY(180deg);
}
100% {
transform: rotateY(360deg);
}
}

.muestras{
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2em;
padding-left: 2em;
padding-right: 2em;
margin: 5em 2em 4em 2em;
}
.card{
/* margin: 4em; */
width: 250px;
height: 250px;   
box-shadow: 2px 2px 5px 2px black;  
border-radius: 1em; 

}
.card:hover{
transform: scale(110%);
transition: ease-in-out;
transition-delay: 20ms;  

}
.card:active{    
filter: invert(80%);

}

.galleria{
width: 250px;
height: 250px;
object-fit: cover;
object-position: left;         
border-radius: 1em;
}
.galleria:hover{
filter: sepia(80%);
transition: ease-in-out;
transition-delay: 100ms;  

}
.img0:hover{
transform: scale(180%);
filter: brightness(200%);
}
.inicio h1:hover{
transform: scale(140%);
}
}