
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
  position: relative;
  min-height: 100vh;
  padding-bottom: 80px;
}
#cabecera {
  display: flex;                 /* Activamos Flexbox */
  align-items: center;           /* Centra verticalmente logotipo y menú */
  justify-content: space-between; /* Logo a la izquierda, menú a la derecha */
  padding: 10px 20px;
  background-color: #12876f; 
  flex-wrap: wrap;    /* Ejemplo de color de fondo de la cabecera */
}

#logotipo img {
  height: 50px; /* Ajusta el tamaño del logo */
}

#menu {
  display: flex;   /* Activamos Flexbox para los items del menú */
  gap: 10px;       /* Espacio entre los elementos del menú */
  align-items: center; /* Centrar los elementos verticalmente */
}

.nav_item {
  color: black;       /* Color del texto */
  cursor: pointer;    /* Cambia el cursor al pasar por encima */
}

.nav_item img {
  height: 24px;       /* Ajusta el tamaño de los iconos */
}
button{
    background-color: #12876f;
    padding: 15px 5%;
    font-size: 1.2rem;
    min-width: 150px;
    border-radius: 25px;
    
    
}
#subir_producto{
    background-color: orange;
}
#botones{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 1%;
}
#titulo{
    display: flex;
    flex-direction: column;
    align-items: center;
    
}
h2,h3{
    display: flex;
    justify-content: center;
}
#categoria{
   
  display: flex;
  flex-wrap: wrap;       /* Permite que los elementos pasen a la siguiente fila */
  gap: 20px;             /* Espacio entre cartas */
  justify-content: center; /* Centra horizontalmente las filas */

}

.img_categoria{
    width: 300px;
    height: 300px;
    border: 3px solid black;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.5);
}
.carta_categoria {
  flex: 1 1 calc(33.33% - 20px); /* Cada carta ocupa un tercio del contenedor menos el gap */
  box-sizing: border-box;
  text-align: center;
  
  padding: 10px;
  border-radius: 8px;
}
footer {
    display: flex;
    justify-content: center; /* Empuja los elementos a los extremos */
    align-items: center; 
    text-align: center; 
    background-color: #12876f;
    padding: 20px;             
    gap: 10px;  
    position: absolute;
    width: 100%;
    bottom: 0;
    height: 80px;
    
  }              
#iconos_redes i {
    font-size: 20px;
    color: white;
    margin-right: 10px;
}
#menu i{
    color:black
}
.carta_producto{
  flex: 1 1 calc(33.33% - 20px); /* Cada carta ocupa un tercio del contenedor menos el gap */
  box-sizing: border-box;
  text-align: start;
  padding: 10px;
  border-radius: 8px;

}

.carta_producto img,.producto_carrito img{
   width: 300px;
    height: 300px;
    border: 5px solid black;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.5);
}
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10%;
}
input,
textarea,
select {
    width: 100%;
    max-width: 400px;     /* tamaño ideal en escritorio */
    padding: 12px 15px;   /* alto cómodo */
    font-size: 16px;      /* tamaño legible */
    border: 1px solid #ccc;
    border-radius: 8px;   /* toque moderno */
    box-sizing: border-box;
    background-color: gray;
}
li{
  display: flex;
  flex-direction: column;
  margin-top: 1%;
  margin-bottom: 1%;
}

#producto{
  display: flex;
  flex-direction: row;
   margin-left: 20%;
   margin-top: 10%;
 
  
}
.foto_producto img{
   width: 500px;
    height: 500px;
    border: 5px solid black;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.5);
   
}
.producto{
   margin-left: 20%;
   margin-top: 10%;
}
.nombre{
  font-size:xx-large;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}
.precio{
  color: blue;
  font-size:xx-large;
  
  
}
.datos_producto{
  margin-top: 3%;
  margin-left: 3%;
  p{
    margin-bottom: 5%;
  }
}
h1,h2,h3,p{
  font-family: Arial, Helvetica, sans-serif;
}
.descripcion,.estado,.autor{
  font-size: x-large;
}
.producto_carrito{
   margin-left: 5%;
}
@media screen and (max-width: 768px) {
    #producto {
        flex-direction: column;  /* apila la foto y datos */
        margin-left: 0;
    }

    #foto_producto img {
        width: 100%;   /* ocupa todo el ancho disponible */
        height: auto;
    }

    #datos_producto {
        width: 100%;
        padding: 10px;
    }
}