/* ============== HERO ============== */
.home-hero{
  background: linear-gradient(180deg, #fff 0%, #F9FBFD 100%);
  padding: 110px 0 48px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}
.hero-title{
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 12px;
}
.hero-sub{
  color: #4b5563;
  font-size: 1.05rem;
  max-width: 560px;
}
.hero-actions{ margin-top: 18px; display:flex; gap:12px; flex-wrap:wrap; }
.btn-outline{
  border: 2px solid #e5e7eb;
  padding: 9px 18px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
}
.btn-outline:hover{ border-color:#d1d5db; background:#fff; }
.hero-media .hero-image{ border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.07); width:100%; height:auto; }

/* ============== TITULARES DE SECCIÓN ============== */
.sec-title{
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: #1f2937;
}
.sec-sub{
  text-align: center;
  color: #6b7280;
  margin: 6px auto 18px;
}

/* ============== CATEGORÍAS ============== */
.home-cats{ padding: 36px 0 48px; }
.cats-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cat-card{
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(180deg, #fff, #f9fafb);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.cat-media{ 
    aspect-ratio: 3 / 2; 
    overflow:hidden; 
    
}
.cat-media .cat-img{ width:75%; height:100%; object-fit: contain; margin: auto; }
.cat-body{ padding: 14px; }
.cat-body h3{ margin-bottom: 6px; color:#111827; font-size:1.05rem; }
.cat-body p{ color:#6b7280; font-size:.95rem; min-height: 40px; }
.btn-mini{
  display:inline-block; margin-top:10px;
  background:#fff; border:1px solid #e5e7eb; padding:6px 10px;
  border-radius: 999px; font-weight:700; color:#374151;
}

/* ============== PRODUCTOS DESTACADOS ============== */
.home-featured{ padding: 36px 0 48px; }
.prod-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.prod-card{
  background:#fff; border-radius:16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  overflow:hidden; display:flex; flex-direction:column;
}
.prod-media{ display:block; aspect-ratio: 1 / 1; overflow:hidden; }
.prod-media .prod-img{ width:100%; height:100%; object-fit: cover; }
.prod-body{ padding:12px 14px; }
.prod-title{ font-size:1rem; color:#111827; margin-bottom:4px; }
.prod-title a{ color:inherit; }
.prod-price{ color:#10b981; font-weight:800; }
.btn-block{ margin: 10px 12px 14px; text-align:center; }

/* ============== PROMO ESPECIAL ============== */
.home-promo{ padding: 48px 0 48px; }
.promo-box{
  background: linear-gradient(45deg, #FF4F81, #FF9068);
  border-radius: 16px;
  padding: 26px 20px;
  color:#fff;
  text-align:center;
  box-shadow: 0 10px 26px rgba(255,79,129,.25);
}
.promo-icon{ font-size: 22px; margin-bottom: 4px; }
.promo-title{ font-size: clamp(18px, 3vw, 24px); font-weight:800; }
.promo-text{ opacity:.95; margin: 4px 0 10px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px){
  .hero-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 900px){
  .cats-grid{ grid-template-columns: repeat(2,1fr); }
  .prod-grid{ grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 640px){
  .cats-grid{ grid-template-columns: 1fr; }
  .prod-grid{ grid-template-columns: repeat(2,1fr); }
  .home-hero{
  padding: 125px 0 48px;
}

}
@media (max-width: 420px){
  .prod-grid{ grid-template-columns: 1fr; }

    .home-hero{
  padding: 125px 0 48px;
}

}

/**/
.prod-card {
  position: relative;
}

.prod-sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e63946; /* rojo oferta */
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
  text-transform: uppercase;
}
.prod-card{ position: relative; }
.prod-card:hover { scale: 1.01; }
/* Estado base */
.prod-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Efecto al pasar el mouse */
.prod-card:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 25px rgba(0,0,0,.12); /* opcional, para dar más relieve */
}
/* Etiqueta base */
.prod-sale-badge{
  position:absolute; top:10px; left:10px; z-index:2;
  background:#e63946; color:#fff; font-weight:800;
  padding:6px 10px; border-radius:10px;
  letter-spacing:.5px; text-transform:uppercase;
  box-shadow:0 6px 20px rgba(230,57,70,.35);
  /* Pulso */
  animation: flr-pulse 1.35s ease-in-out infinite;
}

/* Pulso: crece y vuelve */
@keyframes flr-pulse{
  0%   { transform: scale(1);   filter: brightness(1);   }
  50%  { transform: scale(1.08); filter: brightness(1.08);}
  100% { transform: scale(1);   filter: brightness(1);   }
}

/* Respeto a usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce){
  .prod-sale-badge{ animation:none; }
}

/* Aura que late alrededor */
.prod-sale-badge{
  position:absolute; top:10px; left:10px;
  background:#ff3b53; color:#fff; font-weight:800;
  padding:6px 10px; border-radius:999px;
  text-transform:uppercase; z-index:2;
}
.prod-sale-badge::after{
  content:""; position:absolute; inset:0;
  border-radius:inherit; z-index:-1;
  box-shadow:0 0 0 0 rgba(255,59,83,.45);
  animation: flr-ping 1.6s ease-out infinite;
}
@keyframes flr-ping{
  0%   { box-shadow:0 0 0 0 rgba(255,59,83,.45); transform:scale(1); }
  70%  { box-shadow:0 0 0 14px rgba(255,59,83,0); transform:scale(1.08); }
  100% { box-shadow:0 0 0 0 rgba(255,59,83,0); transform:scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .prod-sale-badge::after{ animation:none; }
}

/**/

.home-promos{
    padding: 40px 0;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.promo-card {
  padding: 2rem;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform .3s ease;
}

.promo-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.promo-icon {
  font-size: 1.8rem;
  margin-bottom: .5rem;
}

/**/

/* Grilla responsive: 1–2–3–4 columnas */
.cats-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;                 /* móvil */
}

@media (min-width: 640px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .cats-grid { grid-template-columns: repeat(4, 1fr); } /* máx. 4 por fila */
}

/* Tarjeta de categoría (tu estilo actual + algunos detalles) */
.cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

.cat-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16/12;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #d1d1d1, #f1c3da);
  margin-bottom: 14px;
}

.cat-img { max-width: 90%; height: auto; }

.cat-img--placeholder {
  font-size: 64px;
  opacity: .5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cat-body h3 {
  margin: 4px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.cat-body p {
  color: #5b6675;
  font-size: 14px;
  line-height: 1.45;
  min-height: 2.8em; /* estabiliza alturas */
}

.btn-mini {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 999px;
  background: #f4f6f8;
  color: #111827;
}

/* opcional: iguala alturas dentro de la grilla */
.cats-grid .cat-card { height: 100%; }

/**/
/* Ajuste de categorías en slider */
.cats-swiper {
  padding: 20px 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.cat-card {
  width: 100%;
  max-width: 280px;
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.cat-card:hover {
  transform: scale(1.05);
}

.cats-swiper .swiper-wrapper {
  transition-timing-function: linear !important; /* movimiento lineal y constante */
}

.btn-whatsapp:hover{
    color: #333;
    border: 3px solid #555;
}