/* ===================================================
   VITRINA DE OFERTAS — Grid de productos con precio real
   Aplica sólo dentro de .vit-section
   =================================================== */

.vit-section {
    margin-bottom: 2.4rem;
}

/* ─── Encabezado tipo "súper oferta" ─────────────── */
.vit-heading {
    text-align: center;
    margin-bottom: 1.8rem;
}

.vit-heading-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #e0263c, #ff5252);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(224, 38, 60, .32);
    margin-bottom: .8rem;
    animation: vit-tag-pulse 2.2s ease-in-out infinite;
}

@keyframes vit-tag-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .vit-heading-tag {
        animation: none;
    }
}

.vit-heading-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2.1rem);
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.25;
}

.vit-heading-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    background: #e0263c;
    border-radius: 999px;
    margin: 14px auto 0;
}

/* ─── Carrusel ──────────────────────────────────── */
.vit-carousel {
    position: relative;
}

.vit-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 10px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.vit-grid::-webkit-scrollbar {
    display: none;
}

.vit-grid .vit-card {
    flex: 0 0 auto;
    width: clamp(150px, 19vw, 210px);
    scroll-snap-align: start;
}

.vit-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e8f0ee;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
    color: #1e293b;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.vit-arrow:hover {
    background: #6eaba5;
    color: #fff;
}

.vit-arrow svg {
    width: 16px;
    height: 16px;
}

.vit-arrow--prev {
    left: -14px;
}

.vit-arrow--next {
    right: -14px;
}

.vit-arrow[disabled] {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 767px) {
    .vit-grid .vit-card {
        width: clamp(135px, 42vw, 165px);
    }

    .vit-arrow {
        width: 32px;
        height: 32px;
    }

    .vit-arrow--prev {
        left: -6px;
    }

    .vit-arrow--next {
        right: -6px;
    }
}

/* ─── Card ──────────────────────────────────────── */
.vit-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e8f0ee;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.vit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
}

.vit-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #6eaba5;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.vit-badge--15 {
    background: #e0263c;
}

.vit-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f6f5;
}

.vit-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .38s ease;
}

.vit-card:hover .vit-img-wrap img {
    transform: scale(1.05);
}

.vit-body {
    padding: .85rem .9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
}

.vit-nombre {
    font-family: 'Poppins', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.3;
}

.vit-nombre:hover {
    color: #6eaba5;
}

.vit-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}

.vit-price-old {
    font-family: 'Poppins', sans-serif;
    font-size: .8rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.vit-price-new {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #e0263c;
}

/* Aclara que el precio mostrado es unitario, no por paquete */
.vit-price-unit {
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.vit-note {
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    color: #64748b;
    line-height: 1.35;
    margin-top: -2px;
}

.vit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: .6rem;
    background: #6eaba5;
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    text-align: center;
    padding: .55rem .8rem;
    border-radius: 999px;
    transition: background .18s ease, transform .15s ease;
}

.vit-btn:hover {
    background: #5a9490;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

@media (max-width: 575px) {
    .vit-nombre {
        font-size: .82rem;
    }

    .vit-price-new {
        font-size: 1rem;
    }

    .vit-note {
        font-size: .66rem;
    }

    .vit-btn {
        font-size: .7rem;
        padding: .5rem .6rem;
    }
}
