*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, sans-serif;
}

body{
  background:#dbeeff;
  color:#333;
}

/* PORTADA */

header{
  position:relative;
  height:300px;
  overflow:hidden;
}

header img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.45);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:white;
  padding:20px;
}

.overlay h1{
  font-size:3.5rem;
  margin-bottom:10px;
}

.overlay p{
  font-size:1.2rem;
}

.container{
  width:90%;
  max-width:1200px;
  margin:auto;
  padding:40px 0;
}

.section-title{
  text-align:center;
  font-size:2.2rem;
  margin-bottom:30px;
  margin-top:-30px;
  color:#d86c8b;
  font-weight:700;
  letter-spacing:1px;
  text-shadow:2px 2px 4px rgba(0,0,0,0.1);
  animation:fadeInScale 0.8s ease-out;
  position:relative;
  padding-bottom:15px;
}

.section-title::after{
  content:'';
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:80px;
  height:3px;
  background:linear-gradient(to right, #d86c8b, #f0a5c5);
  border-radius:2px;
}

@keyframes fadeInScale{
  from{
    opacity:0;
    transform:scale(0.9);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

/* PESTAÑAS (TABS) */

.tabs-wrapper{
  position:relative;
  margin-bottom:50px;
}

.tabs-container{
  display:flex;
  gap:0;
  overflow-x:auto;
  overflow-y:hidden;
  padding:0;
  scrollbar-width:none;
  scroll-behavior:smooth;
  overscroll-behavior:none;
  -ms-overflow-style:none;
}

.tabs-container::-webkit-scrollbar{
  display:none;
}

.tab-btn{
  border:none;
  background:none;
  padding:12px 16px;
  cursor:pointer;
  white-space:nowrap;
  font-weight:600;
  color:#888;
  font-size:0.95rem;
  position:relative;
  transition:all 0.3s ease;
  flex-shrink:0;
  padding-bottom:18px;
}

.tab-btn:last-child{
  padding-right:16px;
}

.tab-btn span{
  display:inline-block;
  transition:transform 0.2s ease;
}

.tab-btn:hover span{
  transform:scale(1.05);
}

.tab-btn.active{
  color:#d86c8b;
  font-weight:700;
  font-size:1.15rem;
  padding:12px 20px;
}

.tab-btn.active span{
  transform:scale(1.25);
}

.tabs-indicator{
  position:absolute;
  bottom:16px;
  left:0;
  height:3px;
  background:#d86c8b;
  border-radius:2px;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width:0;
  opacity:0;
}

/* PRODUCTOS */

.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px,1fr));
  gap:25px;
}

.product-card{
  background:white;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
  transition:0.3s;
}

.product-card:hover{
  transform:translateY(-5px);
}

/* IMAGEN */

.product-card img{
  width:50%;
  height:220px;
  object-fit:cover;
  display:block;
  margin:auto;
}

.product-info{
  padding:18px;
}

.product-info h3{
  margin-bottom:10px;
  color:#444;
  text-align:center;
}

.product-info p{
  color:#777;
  font-size:0.95rem;
}

.price{
  margin-top:15px;
  font-size:1.5rem;
  font-weight:bold;
  color:#d86c8b;
  text-align:center;
}

/* CONTACTO */

.contact{
  background:white;
  border-radius:18px;
  padding:35px;
  text-align:center;
  margin-top:50px;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.contact p{
  margin:12px 0;
}

footer{
  background:#d86c8b;
  color:white;
  text-align:center;
  padding:20px;
  margin-top:50px;
}

@media(max-width:768px){

  header{
    height:280px;
  }

  .overlay h1{
    font-size:2.3rem;
  }

  .products-grid{
    grid-template-columns:1fr;
  }

  .tab-btn{
    padding:10px 14px;
    padding-bottom:16px;
    font-size:0.9rem;
  }

  .tab-btn span{
    font-size:0.9rem;
  }

  .section-title{
    font-size:1.8rem;
  }

}

@media(max-width:480px){

  .tab-btn{
    padding:8px 12px;
    padding-bottom:14px;
    font-size:0.85rem;
  }

  .overlay h1{
    font-size:1.8rem;
  }

  .overlay p{
    font-size:1rem;
  }

}
