* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*----------codigos de colores:
--#f4dbd8 color mas claro de fondo
--#BEA8A7 color vison
--#C09891 rosa nude
--#775144 marron
--#2A0800 marron oscuro */
/*html*/
html {
  font-size: 62,5%; /* 1rem = 10px */
}

/*---------------body*/

body {
   background-color: #f4dbd8; /* color mas claro de fondo */
   
}

/*-------------header*/

header {
    border-bottom: 10px solid #f4dbd8; /* rosa nude */
    text-align: center;
    padding: 20px 0;
    background-image: url(../img/fondonuevo.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-around

}
.logo {
    width: 150px;
    height: auto;
    flex-direction: row;
    display: flex;
    justify-content: start
    border: none
}
/*--------------nav*/
nav ul {
    list-style: none;


}
nav ul li {
    display: inline-block;
    font-weight: bold;
    font-size: medium;
    margin: 0 16px; /* separa cada li */
}

a {
    text-decoration: none;
    text-transform: uppercase;
    color: #2A0800; /* marron oscuro */
    text-shadow: 0px -6px 8px rgba(238,223,223,1);

}
main {
    margin: 20px 0px;
    padding: 20px 0px;
    background-image: url(../img/fondonuevo.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

h1 {
    text-align: center;
    color: #2A0800;
}
h2 {
    color: #775144
    text-align: center;
    margin-bottom: 10px;
}
/*footer*/
footer {
    text-align: center;
    padding: 10px 20px;
    border-top: 1px solid black;
    background-image: url(../img/fondonuevo.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
/*.....productos....*/
.productos {
  display: grid;
  grid-template-columns: 1fr 1fr;

}
.producto {
    background-color: #BEA8A7; /* color vison */
    border: 1px solid #C09891; /* rosa nude */
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
    box-shadow: 18px 17px 5px 0px rgba(0,0,0,0.74);}
.imgProducto {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}
.productos h2 {
    text-align: center;
    color: #2A0800; /* marron oscuro */
}
h1, h2 {
  text-align: center;
  margin: 0 auto;
  text-shadow: 4px 4px 5px rgba(24,22,22,0.77);
}
.principal {
    background-image: url(../img/fondonuevo.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
     

    display: grid;
    grid-template-areas:
    "titulo titulo titulo"
    "h2 h2 fotohome"
    "parrafo parrafo fotohome"; 
    grid: template columns 25% 25% 30%;
    grid-template-rows: auto auto auto;

    justify-items: center;
    align-items: center;
    justify-content: center;

}
.titulo {
    grid-area: titulo;
     font-size: 2rem;
}
.h2 {
    grid-area: h2;
    font-size: 1.5rem;
}
.parrafo {
    grid-area: parrafo;
    font-size: 1rem;
    text-align: center;
    


}
.fotohome {
    grid-area: fotohome;
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.principal img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
/*...mediaq..*/
    @media (max-width: 480px) {
    .principal {
        grid-template-areas:
        "titulo"
        "h2"
        "fotohome"
        "parrafo";
        
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
    .productos {
        width: 100%; /* ancho del grid */
        height: 100%; /* alto del grid */
        margin:0%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .producto {
        margin: 10px auto; /* centra los productos */
        width: 90%; /* ancho del producto */
    }
    .fotohome {
       display: none; /* oculta la imagen de la home en pantallas pequeñas */
    }
    @media (max-width: 481px) {
        .productos {
            grid-template-columns: 1fr; /* una columna */

        }
    
    }