/* =====================================================================
   3 GARRAFAS NEVERÍA — productos.css
   1) Sello circular giratorio
   2) Productos — 6 secciones apiladas con goteo entre cada una
   3) Compartir sabe mejor — foto de fondo + goteo coral PNG
   ===================================================================== */

/* ═══════════════════════════════════════════════════════════════
   1) SELLO CIRCULAR GIRATORIO
   ═══════════════════════════════════════════════════════════════ */

.home-sello {
  position: relative;
  height: 200px;
  background: #fcf1d8;
  overflow: visible;
  z-index: 20;
  display: flex;
  align-items: center;
}
.home-sello-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 8%;
}
.home-sello-badge {
  display: block;
  width: 200px;
  height: 200px;
  animation: sello-spin 26s linear infinite;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}
@keyframes sello-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .home-sello-badge { animation: none; }
}
@media (max-width: 700px) {
  .home-sello { height: 160px; }
  .home-sello-badge { width: 150px; height: 150px; }
}

/* ═══════════════════════════════════════════════════════════════
   2) PRODUCTOS — 6 secciones apiladas con goteo entre cada una
   ═══════════════════════════════════════════════════════════════ */

.productos {
  position: relative;
  width: 100%;
  background: #5448dd;
}

.producto-slide {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40vh 24px 60px;
  gap: 30px;
}

.producto-goteo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 45vh;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
  z-index: 2;
  pointer-events: none;
}

.producto-visual {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.producto-imagen {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  animation: producto-float 5s ease-in-out infinite;
}
@keyframes producto-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.producto-titulo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-family: 'MidcentDisco', 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(140px, 20vw, 300px);
  line-height: 0.85;
  letter-spacing: -6px;
  color: #fcf1d8;
  white-space: nowrap;
  text-align: center;
  user-select: none;
  pointer-events: none;
  margin: 0;
}

.producto-texto {
  position: relative;
  z-index: 5;
  max-width: 620px;
  text-align: center;
  color: #fcf1d8;
  padding: 0 20px;
}
.producto-copy {
  font-family: 'Grift', 'Manrope', system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  opacity: 0.95;
}
.producto-copy-strong {
  font-family: 'MidcentDisco', 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  display: block;
  margin-top: 10px;
  font-size: 20px;
  letter-spacing: 0.2px;
}

@media (max-width: 900px) {
  .producto-slide {
    padding: 30vh 20px 60px;
    gap: 24px;
  }
  .producto-goteo { height: 18vh; }
  .producto-visual { height: 45vh; min-height: 300px; }
  .producto-titulo {
    font-size: clamp(90px, 24vw, 180px);
    letter-spacing: -3px;
  }
  .producto-copy { font-size: 15px; }
  .producto-copy-strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .producto-imagen { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   3) COMPARTIR SABE MEJOR — foto de fondo + goteo coral PNG
   ═══════════════════════════════════════════════════════════════ */

.home-compartir-v2 {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #7ec0e8;
}

.home-compartir-sky {
  position: absolute;
  top: -8%;
  left: 0;
  right: 0;
  height: 116%;
  background-image: url('../assets/img/compartir/frappe-cielo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  will-change: transform;
}

.home-compartir-drip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url('../assets/img/productos/goteo-coral.svg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%;
  height: 45vh;
}

.home-compartir-content {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 32vh 0 60px 8%;
  max-width: 620px;
}

.home-compartir-text {
  color: #6b4023;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.home-compartir-text.is-in {
  opacity: 1;
  transform: translateY(0);
}

.home-compartir-title {
  font-family: 'MidcentDisco', 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -1.8px;
  margin: 0 0 22px;
  color: #6b4023;
}
.home-compartir-cuchara-v2 {
  display: block;
  width: 200px;
  height: auto;
  margin: 0 0 30px;
}
.home-compartir-sub-v2 {
  font-family: 'Grift', 'Manrope', system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 34px;
  max-width: 380px;
  color: #6b4023;
  opacity: 0.92;
}
.home-compartir-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  background: #e95068;
  color: #fcf1d8;
  border: none;
  border-radius: 100px;
  font-family: 'Grift', 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .3s ease, background-color .2s;
  box-shadow: 0 10px 24px -10px rgba(233, 80, 104, 0.55);
}
.home-compartir-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(233, 80, 104, 0.7);
  background: #d94054;
}

@media (max-width: 700px) {
  .home-compartir-content {
    padding: 26vh 6% 60px 6%;
    max-width: 100%;
  }
  .home-compartir-drip { height: 22vh; }
  .home-compartir-title { font-size: clamp(42px, 12vw, 60px); }
  .home-compartir-cuchara-v2 { width: 160px; }
}


/* =====================================================================
   CIRCLE TRANSITION — cada producto se revela con círculo desde arriba
   Solo activo cuando <html> tiene .js-ready (JS confirmó estar listo).
   ===================================================================== */

.js-ready .producto-slide {
  opacity: 0; transform: translateY(-40px);
  transition: opacity 450ms ease-out, transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-ready .producto-slide.is-in {
  opacity: 1; transform: translateY(0);
}

/* Vaso: entra con fade retrasado, justo cuando el círculo ya reveló su área */
.js-ready .producto-slide .producto-imagen {
  opacity: 0;
  transition: opacity 350ms ease-out 200ms;
}
.js-ready .producto-slide.is-in .producto-imagen {
  opacity: 1;
}

/* Respeto a usuarios con motion reducido */
@media (prefers-reduced-motion: reduce) {
  .js-ready .producto-slide,
  .js-ready .producto-slide .producto-imagen {
    opacity: 0; transform: translateY(-40px);
    opacity: 1;
    transition: none;
  }
}

/* =====================================================================
   CASCADA DE ENTRADA — título y copy con delays escalonados
   Solo activo con .js-ready. Cada elemento tiene su propio timing
   para dar sensación de composición gradual del slide.
   ===================================================================== */

/* Slide entero: solo fade (sin translateY para no competir con hijos) */
.js-ready .productos .producto-slide {
  opacity: 0;
  transform: none;
  transition: opacity 450ms ease-out;
}
.js-ready .productos .producto-slide.is-in {
  opacity: 1;
}

/* Copy descriptivo: fade con delay (transform lo maneja el parallax) */
.js-ready .productos .producto-slide .producto-texto {
  opacity: 0;
  transition: opacity 500ms ease-out 400ms;
}
.js-ready .productos .producto-slide.is-in .producto-texto {
  opacity: 1;
}

/* Motion reducido: sin animaciones */
@media (prefers-reduced-motion: reduce) {
  .js-ready .productos .producto-slide,
  .js-ready .productos .producto-slide .producto-texto {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
