/* ==================== BENEFITS SHOWCASE (NEW) ==================== */
.benefits-showcase {
    margin: 40px 0 30px;
    padding: 30px;
    border-radius: 18px;
    background: radial-gradient(circle at 10% 20%, #fff4ea 0%, #ffffff 40%, #f6f7fb 100%);
    box-shadow: 0 12px 30px rgba(10, 10, 10, 0.08);
}

.benefits-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.benefits-heading h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1f1f1f;
    margin: 0;
}

.benefits-heading p {
    margin: 0;
    color: #5b5b5b;
    font-size: 14px;
    max-width: 420px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* IMPORTANTE: Cuando hay Swiper dentro, desactivar grid completamente */
.benefits-grid.has-swiper {
    display: block !important;
    position: relative;
    padding: 20px 40px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.benefits-grid.has-swiper .swiper {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.benefits-grid.has-swiper .swiper-wrapper {
    display: flex;
}

.benefits-grid.has-swiper .swiper-slide {
    display: flex !important;
    justify-content: center;
    align-items: stretch;
    height: auto;
    opacity: 0.7;
    transform: scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefits-grid.has-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.benefits-grid.has-swiper .swiper-slide-next {
    opacity: 0.85;
    transform: scale(0.97);
}

.benefits-grid.has-swiper .swiper-slide-prev {
    opacity: 0.85;
    transform: scale(0.97);
}

.benefit-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #ececec;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(10, 10, 10, 0.08);
    width: 100%;
    min-width: 0;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.benefit-card:hover {
    border-color: #ff7a2e;
    box-shadow: 0 16px 30px rgba(255, 90, 0, 0.2);
    transform: translateY(-2px);
}

/* Para grilla normal (sin Swiper) */
.benefits-grid:not(.has-swiper) .benefit-card {
    width: 100%;
}

/* Para Swiper slides */
.benefits-grid.has-swiper .benefit-card {
    width: 100% !important;
    flex: 0 0 auto;
}

.swiper-button-next, .swiper-button-prev {
    background: linear-gradient(135deg, #ff5a00 0%, #ff7a2e 100%) !important;
    color: white !important;
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 14px !important;
    font-weight: 900;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: linear-gradient(135deg, #ff7a2e 0%, #ff9950 100%);
    box-shadow: 0 12px 28px rgba(255, 90, 0, 0.45);
    transform: translateY(-50%) scale(1.08);
}

.swiper-button-next:active, .swiper-button-prev:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 6px 15px rgba(255, 90, 0, 0.35);
}

.swiper-button-next {
    right: -25px;
}

.swiper-button-prev {
    left: -25px;
}

.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== TRANSICIONES AVANZADAS DEL SLIDER ==================== */

/* Contenedor principal con perspectiva 3D */
.benefits-grid.has-swiper .swiper {
    perspective: 1000px;
}

/* Animación de entrada suave para diapositivas */
.benefits-grid.has-swiper .swiper-slide {
    will-change: transform, opacity;
}

/* Efecto de desvanecimiento suave en transiciones */
.benefits-grid.has-swiper .benefitSwiper.swiper-initialized .swiper-slide-active {
    animation: slideShowActive 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideShowActive {
    0% {
        opacity: 0.8;
        transform: scale(0.98) translateZ(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

/* Transiciones suaves de botones con efecto brillante */
.swiper-button-next::before, .swiper-button-prev::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.swiper-button-next:hover::before, .swiper-button-prev:hover::before {
    opacity: 1;
}

/* Mejora visual de la paginación */
.swiper-pagination-bullet {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-pagination-bullet-active {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s ease;
    box-shadow: 0 0 12px rgba(255, 90, 0, 0.5);
}

.swiper-pagination {
    bottom: -35px !important;
}

.swiper-pagination-bullet {
    background: #cfcfcf;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #ff5a00;
}

.benefit-card__top {
    padding: 22px 22px 16px;
    text-align: center;
    border-bottom: 1px solid #eeeeee;
    background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffb164 0%, #ff7a2e 55%, #ff5a00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 18px rgba(255, 90, 0, 0.25);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.12) rotate(5deg);
    box-shadow: 0 16px 28px rgba(255, 90, 0, 0.35);
}

.benefit-card__top h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1f1f1f;
    margin: 0 0 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    min-height: 22px;
}

.benefit-card__top p {
    margin: 0;
    font-size: 0.9rem;
    color: #5b5b5b;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.benefit-card__promo {
    padding: 18px 18px 10px;
    background: #f7f7f7;
    border-bottom: 1px solid #eeeeee;
}

.promo-rotator {
    position: relative;
    min-height: 140px;
}

.promo-item {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    text-align: center;
}

.promo-item.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: promoFade 0.8s ease-in-out;
}

@keyframes promoFade {
    0% { 
        opacity: 0; 
        transform: translateY(6px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.promo-tag {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: #2b2b2b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-tag-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-tag-title {
    font-size: 18px;
    font-weight: 800;
    color: #1f1f1f;
}

.promo-tag-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #5f5f5f;
}

.promo-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-align: center;
    font-weight: 800;
    font-size: 1.3rem;
    white-space: nowrap;
    align-self: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.benefit-card:hover .promo-discount {
    transform: scale(1.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    background: #1a1a1a;
}

.promo-range {
    margin-top: 8px;
    font-size: 1rem;
    color: #5f5f5f;
    text-align: center;
}

.promo-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    margin-top: 10px;
}

.promo-price .old {
    text-decoration: line-through;
    color: #8a8a8a;
    font-size: 1.5rem;
}

.promo-price .new {
    color: #ff5a00;
    font-size: 2.6rem;
    font-weight: 800;
}

.promo-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff2e6;
    color: #c24a00;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    margin-top: 10px;
}

.promo-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.promo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cfcfcf;
    border: none;
    padding: 0;
    cursor: pointer;
}

.promo-dot.is-active {
    background: #ff5a00;
}

.benefit-cta {
    margin: 14px 18px 18px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #ff5a00 0%, #ff7a2e 100%);
    color: #ffffff;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 16px;
    box-shadow: 0 12px 22px rgba(255, 90, 0, 0.25);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.benefit-cta:hover::before {
    left: 100%;
}

.benefit-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 32px rgba(255, 90, 0, 0.4);
}

.benefit-cta:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 8px 16px rgba(255, 90, 0, 0.25);
}

@media (max-width: 1024px) {
    .benefits-grid:not(.has-swiper) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefits-grid.has-swiper {
        padding: 20px 30px;
    }

    .swiper-button-next {
        right: -20px;
    }

    .swiper-button-prev {
        left: -20px;
    }
}

@media (max-width: 768px) {
    .benefits-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .benefits-grid:not(.has-swiper) {
        grid-template-columns: 1fr;
    }

    .benefits-grid.has-swiper {
        padding: 20px 20px;
    }

    .swiper-button-next, .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
        box-shadow: 0 3px 10px rgba(255, 90, 0, 0.25);
    }

    .swiper-button-next::after, .swiper-button-prev::after {
        font-size: 12px !important;
    }

    .swiper-button-next:hover, .swiper-button-prev:hover {
        box-shadow: 0 8px 20px rgba(255, 90, 0, 0.4);
    }

    .swiper-button-next {
        right: -18px;
    }

    .swiper-button-prev {
        left: -18px;
    }
}
