/* =========================
RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background: #ffffff;



}

/* =========================
CONTAINER
========================= */
.container {
  margin: auto;
  max-width: 1400px;
  padding: 0 20px;
}

/* =========================
TITULO CATEGORIA
========================= */
.titulo-categoria {
  text-align: center;
  font-size: 34px;
font-family:"Syne",sans-serif;
  font-weight: 600;
  margin-top: 60px;
  color: #078a8d;
  padding: 10px;

}

.titulo-categoria::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #1ed5d8;
  margin: 10px auto;
  border-radius: 5px;
}

/* =========================
BANNER CATEGORIA
========================= */
.banner-categoria {
  width: 100%;          /* ancho total */
  height: 50vh;         
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* mantiene proporción sin deformar */
}
.banner-img .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.banner-texto {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
}

.banner-texto h1 {
  font-family: "Neucha", cursive;
  font-weight: 700;
  font-size: 50px;
  margin-bottom: 10px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
   
  
}

.banner-texto p {
  font-family: "Neucha", cursive;
  font-weight: 400;
  font-size: 23px;
  color: rgba(255,255,255,0.9);
}


/* =========================
BREADCRUMB
========================= */
.breadcrumb {
  max-width: 1400px;
  margin: 20px auto 40px auto;
  padding: 0 20px;
  font-size: 15px;
  color: #666;
}

.breadcrumb a {
  text-decoration: none;
  color: #097b7d;
  font-weight: 600;
  transition: .3s;
}

.breadcrumb a:hover {
  color: #17bfc1;
}

.breadcrumb span {
  font-size: 16px;
  margin: 0 8px;
  color: #999;
}

/* =========================
ANIMACIÓN
========================= */
.fade-upca {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}

.fade-upca.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
FILTROS PRODUCTOS
========================= */
.filtros-productos {
  text-align: center;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px;
}

.btn-filtro {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: #e0f7f7;
  color: #078a8d;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-filtro:hover {
  background: #1ed5d8;
  color: #fff;
}

.btn-filtro.activo {
  background: #1ed5d8;
  color: #fff;
}

/* =========================
GRID PRODUCTOS PROPORCIONAL
========================= */
.grid-categoria {
  display: grid;
  gap: 30px;
  max-width: 1400px;
  margin: auto;
  padding: 60px 20px;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas en escritorio */
}

/* =========================
CARD PRODUCTO
========================= */
.card-tipo {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* sombra inicial sutil */
}

.card-tipo:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18); /* sombra más profunda al pasar el mouse */
}

/* IMAGEN PROPORCIONAL */
.card-tipo-img {
  width: 100%;
  aspect-ratio: 3/4; /* Mantiene proporción */
  overflow: hidden;
  background: #ffffff;
  position: relative;
  
}

/* TEXTO VER DETALLES */
.card-tipo-img::after{
content:"Ver detalles";
position:absolute;
bottom:12px;
left:50%;
transform:translateX(-50%) translateY(10px);
font-family: "syne";
background-color: #1ed5d8;
padding: 10px;
border-radius: 10px;
font-size:14px;
font-weight:600;
color:#ffffff;
max-width: 100px;
text-align: center;
opacity:0;
transition:.3s;
}

/* HOVER */
.card-tipo:hover .card-tipo-img::after{
opacity:1;
transform:translateX(-50%) translateY(0);
}

.card-tipo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* TEXTO CARD */
.card-tipo h3 {
  padding: 5px 8px;
  font-size: 17px;
  font-family: "Gelasio", sans-serif;
  font-weight: 400;
  color: #9e8c8c;
  text-align: left;
}

.card-tipo p {
  font-size: 14px;
  color: #777;
  padding: 0 15px 18px;
  text-align: left;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width:1200px) {
  .grid-categoria {
    grid-template-columns: repeat(3, 1fr);
  }
  .banner-texto h1 {
    font-size: 40px;
  }
}

@media (max-width:800px) {
  .grid-categoria {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .card-tipo p {
    font-size: 12px;
    padding: 0 15px 18px;
  }
  
}



/* =========================
BANNER RESPONSIVE
========================= */
@media (max-width:768px) {
 
  .banner-texto h1 {
    font-size: 35px;
  }
  .banner-texto p {
    font-size: 20px;
  }

    .titulo-categoria {
    font-size: 30px;
  }
  .grid-categoria {
    padding: 0px 10px;
    
  }
  
}

@media (max-width:480px) {
 
  .titulo-categoria {
    font-size: 25px;
    
  }
  .card-tipo-img::after {
    font-size: 12px;
    padding: 10px; 
    border-radius: 5px;
    
  }
    .card-tipo h3 {
    font-size: 15px;
  }
  .card-tipo p {
    font-size: 12px;
    padding: 0 10px 10px;
  }
}

@media (max-width:410px) {
 
  .titulo-categoria {
    font-size: 22px;
  }
  .card-tipo-img::after {
    font-weight: 100;
    padding:5px 2px; 
    border-radius: 5px;
  }
  .grid-categoria {
    padding: 0 5px;
    gap: 10px;
  }
}


