/* assets/css/product-summary.css */
/**
 * Bloque: Resumen del producto (beneficios)
 *
 * Requisitos:
 * - MÓVIL: carrusel horizontal + texto completo + números visibles
 *   + segundo elemento claramente visible (peek real)
 *   + pista de deslizamiento implícita (fade, sin iconos ni texto)
 * - DESKTOP: 2 columnas, TODO visible, SIN números, con marca visual (check)
 */

.nutri-product-summary{
  margin-top: 1.35rem;
}

/* ===== Base ===== */
.nutri-summary-grid{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Item base */
.nutri-summary-item{
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin: 0;
  padding: 0.15rem 0;
}

/* Línea (móvil) */
.nutri-summary-item::before{
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: -10px;
  width: 1px;
  background: rgba(11, 53, 87, 0.12);
}

/* Badge (móvil con número) */
.nutri-summary-badge{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 123, 158, 0.12);
  box-shadow: 0 6px 18px rgba(11, 53, 87, 0.08);
}

.nutri-summary-badge__num{
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 800;
  color: #0b3557;
}

/* Contenido + halo */
.nutri-summary-content{
  position: relative;
  min-width: 0;
}

.nutri-summary-content::before{
  content: "";
  position: absolute;
  left: -6px;
  right: 8%;
  top: 1.05rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(0, 123, 158, 0.10);
  z-index: 0;
}

.nutri-summary-item p{
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #0b3557;
}

/* =========================================================
   MÓVIL: carrusel + peek REAL + pista implícita
   ========================================================= */
@media (max-width: 767px){

  .nutri-product-summary{
    position: relative;
  }

  .nutri-summary-grid{
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;

    overflow-x: auto;
    overflow-y: visible;

    /* espacio extra a la derecha para que el 2º se vea claro */
    padding: 0.25rem 20vw 0.55rem 0.15rem;

    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
  }
  .nutri-summary-grid::-webkit-scrollbar{ display: none; }

  /* 👇 CLAVE: ancho fijo legible + peek */
  .nutri-summary-item{
    flex: 0 0 auto;
    min-width: 240px;          /* pedido explícito */
    max-width: 78%;
    scroll-snap-align: start;
    padding: 0.35rem 0.15rem;
  }

  /* Línea corta en horizontal */
  .nutri-summary-item::before{
    bottom: auto;
    height: 18px;
  }

  /* Fade interno sutil en el borde derecho del carrusel
     (no es un icono, es ritmo visual) */
  .nutri-product-summary::after{
    content:"";
    position:absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
      to right,
      rgba(255,255,255,0),
      rgba(255,255,255,0.95)
    );
  }
}

/* =========================================================
   DESKTOP: 2 columnas + sin números (icono check)
   ========================================================= */
@media (min-width: 768px){
  .nutri-summary-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.05rem 2rem;
  }

  .nutri-summary-item{
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0;
  }

  .nutri-summary-item::before{
    display: none;
  }

  .nutri-summary-badge{
    width: 18px;
    height: 18px;
    background: rgba(0, 123, 158, 0.14);
    border-radius: 999px;
    box-shadow: none;
    position: relative;
  }

  .nutri-summary-badge__num{
    display: none;
  }

  .nutri-summary-badge::before{
    content: "✓";
    font-size: 0.9rem;
    font-weight: 900;
    color: #0b3557;
    line-height: 1;
  }

  .nutri-summary-content::before{
    left: -2px;
    right: 14%;
    opacity: .85;
  }

  .nutri-summary-item p{
    font-size: 1rem;
  }

  /* sin pistas de carrusel en desktop */
  .nutri-product-summary::after{
    display: none;
  }
}
