
    @font-face {
  font-family: 'MuseoSans';
  src: url('../fonts/MuseoSans.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'MuseoSans', sans-serif !important;
      background-color: #fff;
    }

    h1 {
      color: #007bff;
      text-align: center;
      padding: 20px 0;
    }

    .titulo2-categoria {
      font-size: 35px;
      font-weight: 900;
      text-align: center;
      margin-top: 20px;
    }



    .tituloConImagen  
    {

      display: flex; 
      align-items: center; 
      gap: 5px; 
      margin-top: 25px;  
      font-weight: bold;
    }

    .volver {
      color: #666;
      margin: 10px 20px;
      display: block;
      text-decoration: none;
    }

    .productos {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2px;
      row-gap: 55px;    /* espacio entre filas */
      max-width: 850px;
      margin: 0 auto 40px auto;
	    padding: 0; /* elimina padding interno */
    }

    /*.productos {
      display: grid !important;
      grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important; 
      gap: 20px !important;
      column-gap: 10px !important;
      row-gap: 10px !important;
      justify-items: center !important;
    }*/

    .producto {
      position: relative;
      width: 250px;
      height: 300px;
      border-radius: 12px;
      overflow: hidden;
      background-color: #fff;
      margin-bottom: 50px;
    }

/*.producto {
  
  position: relative;
  width: 100% !important;        
  max-width: 200px !important;   
  height: 185px !important;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
} */



.img-container {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 75%; /* 70% visible + 10% invadiendo azul */
  
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  z-index: 2;
  display: flex;
  align-items: baseline; /* baja la imagen para que invada 10% azul */
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-in-out;
}



/* Texto azul ocupando 35% y respetando bordes inferiores */
.producto p {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 45%;

  color: white;
  font-size: 16px;
  display: flex;
  align-items: flex-end; /* baja el texto dentro del área azul */

	padding: 10px; /* espacio desde la base y laterales */
  justify-content: flex-end; /* baja el texto verticalmente */
  padding-bottom: 10px; /* espacio desde la base */
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 1;
	
  text-align: center; /* justifica el texto horizontalmente */
  top: 175px;
  justify-content: center;
}
	
.botonatras {
    color: gray;    
    margin-left: 0px;
    margin-top: 40px;
    display: inline-block; /* permite aplicar márgenes verticales */
    font-weight: bold;     /* texto en negrita */
    font-size: 28px;
}

@media (max-width: 767px) {

    /* contenedor de productos */
    .productos {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;           /* espacio entre cajitas */
        padding: 0;          /* quitar padding */
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;           /* quitar márgenes */
    }

    /* cada producto */
    .producto {
        width: calc(50% - 5px);  /* dos productos por fila con gap pequeño */
        margin: 0;                /* sin márgenes */
        text-align: left;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        box-sizing: border-box;
    }



    /* imagen adaptable */
    .producto .img-container img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* título del producto alineado a la izquierda */
    .colorProductos {
        font-size: 14px;
        padding: 8px;
        color: #066a88;
        text-align: left;
    }


    .tituloConImagen {
    display: flex;
    align-items: center;
    gap: 10px;        /* espacio entre imagen y título */
    justify-content: flex-start; /* alinear todo a la izquierda */
    margin-left: 0;
}

  .botonatras {
      color: gray;    
      margin-left: 0px !important;
      margin-top: 90px !important;
      display: inline-block; /* permite aplicar márgenes verticales */
      font-weight: bold;     /* texto en negrita */
      font-size: 14px !important;
  }

  .producto p {
    height: 35% !important;
  }

}

@media only screen and (min-width: 768px) {
  .producto {
    width: 200px !important;
  }

  .img-container {
    box-shadow: 0px 0px 0px rgba(51, 48, 48, 0.2);
  }

}

@media only screen and (min-width: 1200px) {

  .botonatras {
    color: gray;    
    margin-left: 0px;
    margin-top: 150px;
    display: inline-block; /* permite aplicar márgenes verticales */
    font-weight: bold;     /* texto en negrita */
    font-size: 24px;
  }

  .productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* siempre 3 columnas */
    gap: 36px !important;      /* horizontal y vertical */
    row-gap: 60px;  /* si quieres vertical extra */
    max-width: 1700px; /* más espacio en pantallas grandes */
    margin-left: 25px;
    margin-right: 25px;
    margin-top: 0px !important;
  }

  .producto {
    width: 100% !important;   /* ocupa toda la columna */
    height: 300px !important; /* si quieres fijo en altura, ok */
    border-radius: 12px !important;
    overflow: inherit !important;
    background-color: #fff !important;
  }

  .img-container {
     box-shadow: 10px 5px 5px rgba(51, 48, 48, 0.2);
  }

}


@media only screen and  (min-width: 1400px) {

#producto_destacado {
  height: auto !important;       /* base responsive */
  min-height: 88vh !important;  /* mínimo */
  overflow-y: auto !important; /* habilita scroll vertical si el contenido supera la altura */

  overflow-y: scroll; /* permite scroll */
  scrollbar-width: none;  /* Firefox: oculta scrollbar */
  -ms-overflow-style: none; /* IE 10+ */
}

#producto_destacado::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

    .tituloConImagen  
    {
      display: flex; 
      align-items: center; 
      gap: 5px; 
      margin-top: 3px !important;  
      font-weight: bold;
  
    }

.titulo-categoria {
    font-size: 32px !important;

}

.descripcion {

      font-size: 20px !important;
}


}

/*ESTA LOGICA PERMITE ADAPTAR A CUALQUIER PANTALLA*/
@media (min-width: 769px) and (max-width: 1599px) {

#producto_destacado {

 height: auto !important;       /* base responsive */
  min-height: 88vh !important;  /* mínimo */
  overflow-y: auto !important; /* habilita scroll vertical si el contenido supera la altura */
}

#producto_destacado {
  overflow-y: scroll; /* permite scroll */
  scrollbar-width: none;  /* Firefox: oculta scrollbar */
  -ms-overflow-style: none; /* IE 10+ */
}

#producto_destacado::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

}
