/* ==================================================
   NUTRICIÓN PARA CADA ETAPA: Niños, Jóvenes y próximos lanzamientos (portada)
   Prefijo bs- para no chocar con otras secciones.
   Variables de marca: las mismas que header.css (:root).
   ================================================== */

.bs-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
  padding: 90px 20px 100px;
  background-color: var(--bs-dark, #033a3f);
  background-image:
    radial-gradient(340px 300px at 90% 6%, rgba(40, 110, 140, 0.26), transparent),
    radial-gradient(320px 280px at 8% 94%, rgba(196, 217, 184, 0.14), transparent);
  /* El fondo llega de borde a borde aunque Divi encierre la sección en una columna */
  box-shadow: 0 0 0 100vmax var(--bs-dark, #033a3f);
  clip-path: inset(0 -100vmax);
  font-family: 'Montserrat', sans-serif;
  color: var(--bs-cream, #f2f1d5);
}
.bs-section *, .bs-section *::before, .bs-section *::after { box-sizing: border-box; }
.bs-section :is(h2, h3, h4, p, span, a, strong, del, ins) { font-family: 'Montserrat', sans-serif; }

.bs-wrap {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- Cabeceras ---------- */
.bs-head { text-align: center; margin-bottom: 14px; }
.bs-pretitle {
  display: block;
  margin-bottom: 8px;
  color: var(--bs-mint, #c4d9b8);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.bs-section .bs-title {
  margin: 0;
  padding: 0;
  color: var(--bs-cream, #f2f1d5);
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

/* ---------- Panel de etapa (cristal) ---------- */
.bs-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: center;
  padding: 40px 44px;
  border: 1px solid rgba(242, 241, 213, 0.16);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(242, 241, 213, 0.1) 0%, rgba(242, 241, 213, 0.03) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.bs-stage--rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.bs-stage--rev .bs-info { order: 2; }

.bs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: 1px solid rgba(196, 217, 184, 0.5);
  border-radius: 18px;
  background: rgba(196, 217, 184, 0.14);
  color: var(--bs-mint, #c4d9b8);
}
.bs-icon svg { width: 30px; height: 30px; }
.bs-section .bs-stage-title {
  margin: 0 0 14px;
  padding: 0;
  color: var(--bs-cream, #f2f1d5);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
}
.bs-section .bs-stage-text {
  margin: 0;
  padding: 0;
  max-width: 480px;
  color: rgba(242, 241, 213, 0.8);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- Tarjetas de producto ---------- */
.bs-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  justify-content: center;
}
.bs-prod,
.bs-launch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 20px 20px;
  border: 1px solid rgba(242, 241, 213, 0.16);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(242, 241, 213, 0.1) 0%, rgba(242, 241, 213, 0.03) 100%);
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease, box-shadow 0.45s ease;
}
.bs-prod:hover,
.bs-launch:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 217, 184, 0.55);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32), 0 0 28px rgba(196, 217, 184, 0.14);
}
.bs-prod-img,
.bs-launch-img {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 170px;
  margin-bottom: 14px;
}
.bs-prod-img::before,
.bs-launch-img::before {
  content: "";
  position: absolute;
  inset: 4% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 217, 184, 0.34), rgba(196, 217, 184, 0) 68%);
}
.bs-prod-img img,
.bs-launch-img img {
  position: relative;
  max-width: 85%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.bs-prod:hover .bs-prod-img img,
.bs-launch:hover .bs-launch-img img { transform: scale(1.07) translateY(-4px); }

.bs-section .bs-prod-name,
.bs-section .bs-launch-name {
  margin: 0 0 6px;
  padding: 0;
  color: var(--bs-cream, #f2f1d5);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}
/* Presentación / peso: recuadro con borde, con el branding */
.bs-prod-size {
  display: inline-block;
  margin: 2px 0 10px;
  padding: 3px 10px;
  border: 1px solid rgba(196, 217, 184, 0.5);
  border-radius: 8px;
  background: rgba(196, 217, 184, 0.1);
  color: var(--bs-mint, #c4d9b8);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
  text-transform: uppercase;
}
.bs-prod-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 14px;
  color: var(--bs-cream, #f2f1d5);
  font-size: 1.3rem;
  font-weight: 800;
}
.bs-prod-price del { color: rgba(242, 241, 213, 0.5); font-size: 0.85rem; font-weight: 500; }
.bs-prod-price ins { text-decoration: none; }

/* ---------- Botones ---------- */
.bs-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 12px 18px;
  border: none;
  border-radius: 50px;
  background: var(--bs-mint, #c4d9b8);
  color: var(--bs-dark-2, #043233);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.bs-prod .bs-btn { margin-top: 0; }
.bs-btn:hover {
  background: var(--bs-cream, #f2f1d5);
  color: var(--bs-dark-2, #043233);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.bs-btn:focus-visible { outline: 2px solid var(--bs-cream, #f2f1d5); outline-offset: 3px; }
.bs-btn.loading { opacity: 0.75; pointer-events: none; }
.bs-btn.loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(4, 50, 51, 0.3);
  border-top-color: var(--bs-dark-2, #043233);
  border-radius: 50%;
  animation: bsSpin 0.7s linear infinite;
}
.bs-btn.added { background: var(--bs-mint-2, #d1ddbc); }
@keyframes bsSpin { to { transform: rotate(360deg); } }
.bs-section .added_to_cart { display: none !important; }

.bs-btn--ghost {
  background: transparent;
  border: 1px solid var(--bs-mint, #c4d9b8);
  color: var(--bs-mint, #c4d9b8);
}
.bs-btn--ghost:hover {
  background: var(--bs-mint, #c4d9b8);
  color: var(--bs-dark-2, #043233);
}

/* ---------- Próximos lanzamientos ---------- */
.bs-soon-head { text-align: center; margin-top: 26px; }
.bs-section .bs-soon-title {
  margin: 0;
  padding: 0;
  color: var(--bs-cream, #f2f1d5);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
}
.bs-launch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.bs-launch {
  padding: 34px 28px 26px;
  border-style: dashed;
  border-color: rgba(196, 217, 184, 0.4);
  border-radius: 28px;
}
.bs-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bs-pink, #e30052);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(227, 0, 82, 0.4);
}
.bs-launch-img { height: 200px; margin-top: 18px; }
.bs-section .bs-launch-text {
  margin: 0 0 20px;
  padding: 0;
  color: rgba(242, 241, 213, 0.78);
  font-size: 0.92rem;
  line-height: 1.6;
}
.bs-launch .bs-btn { width: auto; padding: 12px 26px; }

.bs-section .bs-test-link {
  margin: 14px 0 0;
  padding: 0;
  text-align: center;
  color: rgba(242, 241, 213, 0.75);
  font-size: 0.98rem;
}
.bs-test-link a {
  color: var(--bs-mint, #c4d9b8);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bs-test-link a:hover { color: var(--bs-cream, #f2f1d5); }

/* ---------- Aparición al hacer scroll (solo si el JS está activo) ---------- */
.bs-wrap.is-reveal .bs-stage,
.bs-wrap.is-reveal .bs-launch { opacity: 0; transform: translateY(34px); }
.bs-wrap.is-reveal .bs-stage.is-visible,
.bs-wrap.is-reveal .bs-launch.is-visible { opacity: 1; transform: none; }
.bs-wrap.is-reveal .bs-launch.is-visible:hover { transform: translateY(-6px); }

/* ---------- Tablet / móvil ---------- */
@media (max-width: 980px) {
  .bs-section { padding: 70px 18px 80px; }
  .bs-stage,
  .bs-stage--rev { grid-template-columns: 1fr; gap: 28px; padding: 30px 24px; }
  .bs-stage--rev .bs-info { order: 0; }
  .bs-section .bs-stage-text { max-width: none; }
  .bs-launch-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bs-products { grid-template-columns: 1fr; }
  .bs-launch { padding: 54px 20px 22px; }
}

/* Quien desactiva animaciones en su sistema */
@media (prefers-reduced-motion: reduce) {
  .bs-stage,
  .bs-prod,
  .bs-launch,
  .bs-prod-img img,
  .bs-launch-img img,
  .bs-btn { transition: none !important; }
  .bs-wrap.is-reveal .bs-stage,
  .bs-wrap.is-reveal .bs-launch { opacity: 1; transform: none; }
  .bs-btn.loading::after { animation: none; }
}
