/* =========================
   NEW PRODUCTS – Suave + invertido (morado ←, azul →)
   ========================= */
   .section-new-products{
    /* Paleta suavizada (igual que antes) */
    --brand-purple: #112240;
    --brand-accent: #6112b3;
    --brand-blue:   #3656e8;
  
    --spark-size: 140px;
    --spark-speed: 28s;
  
    /* Fades hacia oscuro (no blanco) */
    --fade-h: 84px;                  /* alto del difuminado sup/inf */
    --edge-top-rgb:    28, 18, 44;   /* morado muy oscuro para arriba */
    --edge-bottom-rgb: 12, 18, 36;   /* azul/índigo muy oscuro para abajo */
    --edge-start: 0.55;              /* opacidad inicial (baja si lo ves muy fuerte) */
    --edge-mid:   0.12;              /* punto medio tenue */
  
    position: relative;
    padding: 56px 0;
    /*overflow: hidden;*/
  
    /* Fondo con patrón + radial + gradiente (SIN cambios) */
    background-image:
      url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.12' stroke-width='2' fill='none'%3E%3Cpath d='M20 38 l6 10 l-10 -6 l10 -6 l-6 10 Z'/%3E%3Cpath d='M90 20 l8 14 l-14 -8 l14 -8 l-8 14 Z'/%3E%3Cpath d='M150 60 l7 12 l-12 -7 l12 -7 l-7 12 Z'/%3E%3Cpath d='M50 120 l6 10 l-10 -6 l10 -6 l-6 10 Z'/%3E%3Cpath d='M120 130 l7 12 l-12 -7 l12 -7 l-7 12 Z'/%3E%3C/g%3E%3C/svg%3E"),
      radial-gradient(120% 120% at 10% 8%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 55%),
      linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-accent) 45%, var(--brand-blue) 100%);
    background-repeat: repeat, no-repeat, no-repeat;
    background-size: var(--spark-size) var(--spark-size), cover, cover;
    background-position: 0 0, center, center;
  
    animation: newSpark var(--spark-speed) linear infinite;
    will-change: background-position;
  }
  
  /* Loop del patrón */
  @keyframes newSpark {
    from { background-position: 0 0, center, center; }
    to   { background-position: 0 var(--spark-size), center, center; }
  }
  
  /* ---- Fades oscuros arriba/abajo (elegantes) ---- */
  .section-new-products::before,
  .section-new-products::after{
    content:"";
    position:absolute; left:0; right:0; height: var(--fade-h);
    pointer-events:none; z-index:2;
    /* Para que se integre mejor con el fondo */
    mix-blend-mode: multiply;
  }
  


  

  
.productos-carousel-container {
    max-width: 1230px;
    margin: 20px auto;
    padding: 40px 15px;
    overflow: hidden;
    

}

.carousel-header {
    background: linear-gradient(135deg, #667eea 0%, #500061 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    position: relative; /* necesario para ubicar el botón */
    text-align: center; /* mantiene el título centrado */
}

.carousel-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.ver-mas-nuevos {
    background: white;
    color: #500061;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 20px;   /* esquina derecha */
    top: 50%;
    transform: translateY(-50%); /* centra verticalmente */
    border: 2px solid white;
}

.ver-mas-nuevos:hover {
    background: #500061;
    color: white;
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}


.productos-carousel-wrapper {
  padding: 20px 10px 40px 10px;

  overflow: hidden;
  border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.productos-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
}

/* ===========================
   CARD – layout fijo y hover
   =========================== */
   .producto-card-item {
    position: relative;
    display: flex;              /* columna para empujar el botón al fondo */
    flex-direction: column;
    height: 100%;
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .producto-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }
  
  /* ===========================
     Badges / favorito
     =========================== */
  .discount-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #500061 100%);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
  }
  
  .favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #bdc3c7;
    transition: all 0.3s ease;
    z-index: 2;
  }
  .favorite-button:hover,
  .favorite-button.active {
    color: #e74c3c;
    transform: scale(1.1);
  }
  
  /* ===========================
     Imagen – altura consistente
     =========================== */
  .producto-image {
    width: 100%;
    height: 190px;            /* altura fija para cards parejos */
    object-fit: contain;
    border-radius: 10px;
    margin: 30px 0 16px 0;
  }
  
  /* ===========================
     Cuerpo info (columna)
     =========================== */
  .producto-info {
    display: flex;
    flex-direction: column;
    padding: 0 15px 15px;     /* top lo aporta el margen de la imagen */
    flex: 1 1 auto;           /* ocupa el alto disponible */
  }
  
  /* ===========================
     Textos
     =========================== */
  .producto-brand {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  
  .producto-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(16px * 1.35 * 2);
  }
  
  /* ===========================
     Precios – altura mínima
     =========================== */
  .precio-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    min-height: 24px;                /* asegura espacio aunque falte tachado */
  }
  
  .precio-actual {
    font-size: 1.3rem;
    font-weight: 800;
    color: #500061;
  }
  
  .precio-original {
    font-size: 1rem;
    color: #95a5a6;
    text-decoration: line-through;
    margin-left: 8px;
  }
  
  /* ===========================
     Delivery / chips
     =========================== */
  .delivery-info {
    display: flex;
    gap: 10px;
    margin: 10px 0 12px;
    flex-wrap: wrap;
  }
  
  .delivery-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #500061;
  }
  
  /* ===========================
     Botón – SIEMPRE al fondo
     =========================== */
  .ver-detalles-btn {
    margin-top: auto;                /* clave: empuja el botón al fondo */
    display: block;
    width: 100%;                     /* más sólido y alineado */
    background: linear-gradient(135deg, #667eea 0%, #500061 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: .4px;
    text-transform: uppercase;
  }
  .ver-detalles-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  }
  
  /* ===========================
     Carousel (navegación/indicadores)
     =========================== */
  .carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 3;
  }
  .carousel-nav-btn:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
  }
  .nav-prev { left: 10px; }
  .nav-next { right: 10px; }
  
  .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  .indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .indicator-dot.active {
    background: #667eea;
    transform: scale(1.2);
  }
  
  /* ===========================
     Responsive
     =========================== */
/* ======= Celulares (≤600px): 1 card por vista ======= */
/* ======= Celulares (≤600px): 2 cards por vista ======= */
@media (max-width: 600px) {
  .productos-carousel-container{
    padding: 16px 5px !important;

  }
    .delivery-badge {
            font-size: 0.7rem;
    }

  .productos-carousel-wrapper{
    padding: 14px 5px 40px 5px !important;
  }

  .productos-carousel-track{
    gap: var(--gap-mobile, 12px) !important; /* usa variable si la tienes */
  }

  /* 🔹 Dos tarjetas por vista (100% - gap) / 2 */
  .producto-card-item{
    flex: 0 0 calc((100% - var(--gap-mobile, 12px)) / 2) !important;
    max-width: calc((100% - var(--gap-mobile, 12px)) / 2) !important;

    border-radius: 10px !important;
    padding: 0px !important;
    min-width: 0 !important;
    height: auto !important;
  }

  .producto-image{ 
    height: 130px !important; 
    margin: 10px 0 !important;
  }
  .producto-title{
    font-size: .95rem !important;
    -webkit-line-clamp: 2 !important;
    min-height: calc(.95rem * 1.35 * 2) !important;
    line-height: 1.35 !important;
    margin: 0px;
  }

  /* Controles más compactos */
  .carousel-nav-btn{
    width: 34px !important; 
    height: 34px !important; 
    font-size: .95rem !important;
  }
  .nav-prev{ left: 6px !important; }
  .nav-next{ right: 6px !important; }

  /* Header */
  .carousel-header{
    padding: 14px 12px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }
  .carousel-header h2{
    font-size: 1.15rem !important;
    margin: 0 !important;
  }
  .ver-mas-nuevos{
    position: static !important;
    transform: none !important;
    display: inline-block !important;
    margin-top: 8px !important;
  }

  .producto-brand{ 
    display: none !important; 
  }
  .ver-detalles-btn {
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: .8rem !important;
  }
  .carousel-indicators{
    gap: 6px !important;
    margin-top: 10px !important;
  }
  .indicator-dot{
    width: 9px !important;
    height: 9px !important;
  }
  .indicator-dot.active{
    transform: scale(1.12) !important;
  }
}


/* ======= Tablets verticales (768–1024px, portrait): 3 cards por vista ======= */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait){
  .productos-carousel-container{
    max-width: 980px !important;
    padding: 32px 18px !important;
  }

  .productos-carousel-wrapper{
    padding: 24px 18px !important;
  }

  .productos-carousel-track{
    gap: 19px !important;
  }

  /* 3 columnas: (100% - 2 gaps) / 3 */
  .producto-card-item{
    flex: 0 0 calc((100% - (19px * 2)) / 3) !important;
    max-width: calc((100% - (19px * 2)) / 3) !important;
  }

  .producto-image{ height: 150px !important; }

  .carousel-nav-btn{
    width: 42px !important; height: 42px !important;
  }
  .nav-prev{ left: 10px !important; }
  .nav-next{ right: 10px !important; }

  .carousel-header h2{ font-size: 1.6rem !important; }
  .ver-mas-nuevos{
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

/* ======= Tablets (601–1024px, cualquier orientación): ajustes generales ======= */
@media (min-width: 601px) and (max-width: 1024px){
  .producto-card-item:hover{
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.12) !important;
  }
  .producto-title{
    -webkit-line-clamp: 2 !important;
    min-height: calc(1rem * 1.35 * 2) !important;
  }
  .producto-brand{ font-size: .8rem !important; }
}
