/* =========================================
   Base y utilidades mínimas
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
html, body { background-color: #fff; } /* fallback rosado base */
body { line-height: 1.6; color: #333; padding-top: 0rem; } /* offset por header fijo (h-16) */

/* Respeta reducir animaciones del SO */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* =========================================
   Carrusel (Index)
   ========================================= */
.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.carousel-inner {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}
.carousel-item {
  position: relative;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Imagen de fondo */
.carousel-image {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
/* Overlay para legibilidad de texto */
.carousel-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}
.carousel-content {
  position: relative; z-index: 2; padding: 2rem;
  text-align: center; color: #fff;
}
.carousel-content h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
  font-weight: 700;
}
.carousel-content p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
/* Botones */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.3); color: #fff; border: 0;
  font-size: 2rem; padding: 1rem 1.25rem; cursor: pointer;
  transition: background 0.3s, transform 0.3s; border-radius: 8px; z-index: 3;
}
.carousel-btn:hover { background: rgba(255,255,255,0.5); transform: translateY(-50%) scale(1.06); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
/* Indicadores */
.carousel-indicators {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.indicator {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.8);
  cursor: pointer; transition: background 0.3s, transform 0.3s;
}
.indicator.active { background: #fff; transform: scale(1.2); }

@media (max-width: 768px) {
  .carousel-btn { font-size: 1.5rem; padding: 0.5rem 0.75rem; }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
}

/* =========================================
   Sección Productos (Index)
   ========================================= */
.productos { padding: 4rem 2rem; background: #fff; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: clamp(2rem, 4vw, 2.5rem);
  color: #e11d48; margin-bottom: 3rem; font-weight: 700;
}
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.product-image {
  width: 100%; height: 250px;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
}
.product-info { padding: 1.25rem 1.5rem; }
.product-info h3 { color: #e11d48; font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; }
.product-info p { color: #555; margin-bottom: 1rem; }
.price { font-size: 1.4rem; color: #15803d; font-weight: 700; }

/* =========================================
   Footer (degradado rosado SIEMPRE)
   ========================================= */
footer {
  position: relative;
  color: #fff;
  padding: 3rem 2rem 1.5rem;
  background-image: linear-gradient(135deg, #fda4af, #fb7185); /* SÓLIDO: Quitamos E6 para evitar transparencia */
  background-color: #fb7185;
  min-height: 320px;
}
.footer-content {
  max-width: 1200px; margin: 0 auto 2rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.footer-section h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.footer-section p, .footer-section a { margin-bottom: 0.5rem; color: #fff; text-decoration: none; }
.footer-section a:hover { text-decoration: underline; }
.social-icons { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-icon {
  width: 44px; height: 44px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #fb7185; background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.social-icon:hover { transform: translateY(-2px); background: #fb7185; color: #fff; border-color: #fb7185; }
.footer-bottom {
  text-align: center; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

/* =========================================
   Burbujas (header/footer) — ligeras y sin negro
   ========================================= */
.has-bubbles { position: relative; }

#footer-bubbles-canvas,
#bubbles-canvas {
  position: absolute;
  inset: 0;
  z-index: -10;
  background: transparent !important;
  pointer-events: none;
}

.bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.bubbles::before,
.bubbles::after {
  content: "";
  position: absolute;
  width: 200%; height: 200%;
  top: 0; left: 0;
  background: radial-gradient(circle 12px, rgba(255,255,255,0.7) 40%, transparent 60%) repeat;
  background-size: 100px 100px;
  animation: bubbleFloat 60s linear infinite;
  opacity: 0.5;
  will-change: transform;
}
.bubbles::after {
  animation-direction: reverse;
  animation-duration: 80s;
  opacity: 0.3;
}
@keyframes bubbleFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* =========================================
   Fixes varios
   ========================================= */
/* ELIMINADO: La regla que forzaba background-image con transparencia en móvil y causaba el problema del fondo negro */

/* Asegura stacking: contenido del footer por encima del canvas */
footer > * { position: relative; z-index: 1; }

/* ==============================
   Header degradado y burbujas
   ============================== */
#site-header::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-20;
  /* CORREGIDO: Usar colores sólidos sin E6 (transparencia) */
  background-image: linear-gradient(135deg, #fda4af, #fb7185);
  background-color:#fb7185;
  /* ELIMINADO: backdrop-filter que causaba problemas de mezcla de color */
}
#bubbles-canvas {
  z-index:-10;
  background:transparent !important;
}