/* =============================================
   HERO CAROUSEL
   ============================================= */
.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.hero-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 4px 0;
    scroll-behavior: smooth;
    border-radius: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-scroll::-webkit-scrollbar { display: none; }

.hero-card {
    flex: 0 0 calc(100% - 80px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 48px 50px;
    gap: 30px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #1a1a1a, #111);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: border-color 0.3s ease, background 0.3s ease;
    min-height: 280px;
    max-height: 380px;
    overflow: hidden;
}

.hero-card:hover {
    border-color: rgba(243, 195, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(243, 195, 0, 0.06));
}

.hero-card-left {
    flex: 1;
    min-width: 0;
}

.hero-card-right {
    flex: 0 0 280px;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-card-right img {
    width: 280px;
    height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
}

.hero-card:hover .hero-card-right img {
    transform: scale(1.05) rotate(2deg);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    font-size: 18px;
    transition: background 0.3s, color 0.3s;
}

.hero-nav:hover {
    background: var(--brand);
    color: #000;
    border-color: var(--brand);
}

.hero-nav.prev { left: -22px; }
.hero-nav.next { right: -22px; }

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}

.hero-dot.active {
    background: var(--brand);
    width: 30px;
    border-radius: 10px;
}

/* =============================================
   PRODUCTOS CAROUSEL
   ============================================= */
.prod-carousel-section { padding: 40px 0 20px; }

.prod-carousel-wrapper {
    position: relative;
    width: 100%;
}

.prod-scroll {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    overflow-x: scroll;
    overflow-y: hidden;
    gap: 14px;
    padding: 8px 0 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 338px;
}

.prod-scroll::-webkit-scrollbar { display: none; }

.pmag-card {
    width: calc(33.333% - 10px);
    min-width: 280px;
    height: 162px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.98));
    border: 1px solid rgba(243, 195, 0, 0.14);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.pmag-card:hover {
    border-color: rgba(243, 195, 0, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(243, 195, 0, 0.1);
}

.pmag-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 14px 12px 14px 16px;
    min-width: 0;
}

.pmag-title {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.pmag-desc {
    font-size: 11px;
    color: var(--text2);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pmag-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}

.pmag-img-wrap {
    flex: 0 0 110px;
    width: 110px;
    height: 162px;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pmag-img-wrap img {
    width: 110px;
    height: 162px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.pmag-card:hover .pmag-img-wrap img { transform: scale(1.06); }

.pmag-img-ph {
    width: 110px;
    background: #1a1a1a;
    border-left: 1px dashed #333;
    height: 100%;
}

.prod-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    font-size: 16px;
    transition: background 0.3s, color 0.3s, opacity 0.3s;
}

.prod-nav:hover {
    background: var(--brand);
    color: #000;
    border-color: var(--brand);
}

.prod-nav.prev { left: -20px; }
.prod-nav.next { right: -20px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .pmag-card { min-width: 240px; }
}

@media (max-width: 768px) {
    .hero-card {
        flex: 0 0 calc(100% - 40px);
        padding: 30px 20px;
        gap: 16px;
        max-height: none;
    }
    .hero-card-right {
        flex: 0 0 130px;
        width: 130px;
        height: 130px;
    }
    .hero-card-right img {
        width: 130px;
        height: 130px;
    }
    .hero-nav { display: none; }
}

@media (max-width: 560px) {
    .pmag-card { min-width: 200px; height: 153px; }
    .prod-nav { display: none; }
    .prod-scroll { height: 320px; }
}

@media (max-width: 480px) {
    .hero-card {
        flex-direction: column-reverse;
        flex: 0 0 calc(100% - 24px);
        padding: 24px 16px;
    }
    .hero-card-right {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
    .hero-card-right img {
        width: 100%;
        height: 200px;
    }
}
/* ====== PRODUCTO 1 POR FILA EN CELULAR ====== */
@media (max-width: 600px) {

  .prod-scroll {
    flex-direction: row;   /* horizontal real */
    height: auto;
  }

  .pmag-card {
    width: 100% !important;
    min-width: 100% !important;
  }

}
@media (max-width: 600px) {

  .pmag-card {
    width: 92% !important;
    min-width: 92% !important;
    margin: 0 4%;
  }

}