/* /site/templates/css/components/pricing-card.css */

/* Gradiente para hero */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============ CARRUSEL GALERÍA INFINITA CORREGIDO ============ */
.pricing-gallery-wrapper {
    position: relative;
    padding: 80px 0;
    overflow: visible;
    min-height: 750px;
    background: white;
}

/* ================ Estilos del card */
.card-body {
    z-index: 9;
}

.card-title {
    color: #000;
}

.mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;  
}

.badge-elegant {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid rgba(220, 53, 69, 0.3);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-elegant:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.12),
        0 0 0 2px rgba(220, 53, 69, 0.2) inset;
    background: rgba(255, 255, 255, 0.98);
}

.pricing-gallery-container {
    position: relative;
    width: 100%;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

/* Gradiente de difuminación en los bordes - SOLO DESKTOP */

/* Carrusel */
.pricing-gallery-track {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 680px;
}

/* Cards */
.pricing-gallery-card {
    position: absolute;
    width: 380px;
    transition: all 0.4s ease;
    transform-origin: center;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Card CENTRAL (activa) */
.pricing-gallery-card.active {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    z-index: 3;
    pointer-events: all;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Card IZQUIERDA - SOLO DESKTOP/TABLET */
.pricing-gallery-card.left {
    opacity: 0.7;
    transform: translateY(-50%) scale(0.9) translateX(-120%);
    z-index: 2;
}

/* Card DERECHA - SOLO DESKTOP/TABLET */
.pricing-gallery-card.right {
    opacity: 0.7;
    transform: translateY(-50%) scale(0.9) translateX(120%);
    z-index: 2;
}

/* Cards fuera de vista */
.pricing-gallery-card.hidden {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
    z-index: 1;
    pointer-events: none;
}

/* Controles */
.gallery-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-control:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

.gallery-control.prev {
    left: 30px;
}

.gallery-control.next {
    right: 30px;
}

/* Indicadores */
.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 5;
    padding: 40px 0 20px 0;
    margin-top: -20px;
}

.gallery-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active {
    background: #667eea;
    transform: scale(1.3);
}

.gallery-indicator:hover {
    transform: scale(1.2);
    background: #94a3b8;
}

/* Altura fija para cards */
.pricing-gallery-card .pricing-card {
    height: 680px;
    overflow: hidden;
}

/* CTA Button */

.cta-button {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, #ff7d45, #ffb347);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 125, 69, 0.3);
    font-size: 1rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 125, 69, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.cta-button:hover::after {
    left: 100%;
}

/* ============ RESPONSIVE CRÍTICO PARA MÓVIL ============ */

/* Desktop grande - MANTENER 3 CARDS */
@media (min-width: 1200px) {
    .pricing-gallery-card {
        width: 380px;
    }
    
    .pricing-gallery-card .pricing-card {
        height: 680px;
    }
}

/* Tablet (992px - 1199px) - MANTENER 3 CARDS PERO MÁS PEQUEÑAS */
@media (max-width: 1199px) and (min-width: 992px) {
    .pricing-gallery-wrapper {
        min-height: 650px;
        padding: 70px 0;
    }
    
    .pricing-gallery-card {
        width: 320px;
    }
    
    .pricing-gallery-card .pricing-card {
        height: 620px;
    }
    
    .pricing-gallery-card.left {
        transform: translateY(-50%) scale(0.9) translateX(-110%);
    }
    
    .pricing-gallery-card.right {
        transform: translateY(-50%) scale(0.9) translateX(110%);
    }
    
    .pricing-gallery-container::before,
    .pricing-gallery-container::after {
        width: 150px;
    }
    
    .gallery-control {
        width: 50px;
        height: 50px;
    }
    
    .gallery-control.prev {
        left: 20px;
    }
    
    .gallery-control.next {
        right: 20px;
    }
}

/* Tablet pequeña (768px - 991px) - MOSTRAR SOLO 1 CARD */
@media (max-width: 991px) and (min-width: 768px) {
    .pricing-gallery-wrapper {
        min-height: 620px;
        padding: 60px 0;
    }
    
    .pricing-gallery-container {
        min-height: 600px;
    }
    
    .pricing-gallery-card {
        width: 340px; /* Un poco más ancha para tablet */
    }
    
    .pricing-gallery-card .pricing-card {
        height: 600px;
    }
    
    /* EN TABLET: OCULTAR TODAS LAS CARDS EXCEPTO LA ACTIVA */
    .pricing-gallery-card:not(.active) {
        opacity: 0 !important;
        transform: translateY(-50%) scale(0.8) !important;
        pointer-events: none !important;
        z-index: 1 !important;
    }
    
    .pricing-gallery-card.active {
        width: 340px;
        transform: translateY(-50%) scale(1);
        opacity: 1;
        z-index: 3;
    }
    
    .gallery-control {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .gallery-control.prev {
        left: 15px;
    }
    
    .gallery-control.next {
        right: 15px;
    }
}

/* Mobile grande (576px - 767px) - SOLO 1 CARD */
@media (max-width: 767px) and (min-width: 576px) {
    .pricing-gallery-wrapper {
        min-height: 600px;
        padding: 50px 20px;
        overflow: visible;
    }
    
    .pricing-gallery-container {
        min-height: 580px;
        margin-bottom: 30px;
    }
    
    .pricing-gallery-card {
        width: 320px;
    }
    
    .pricing-gallery-card .pricing-card {
        height: 580px;
    }
    
    /* EN MOBILE: SOLO LA CARD ACTIVA ES VISIBLE */
    .pricing-gallery-card:not(.active) {
        opacity: 0 !important;
        transform: translateY(-50%) scale(0.8) !important;
        pointer-events: none !important;
        z-index: 1 !important;
    }
    
    .pricing-gallery-card.active {
        width: 320px;
        transform: translateY(-50%) scale(1);
        opacity: 1;
        z-index: 3;
    }
    
    .gallery-control {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .gallery-control.prev {
        left: 10px;
    }
    
    .gallery-control.next {
        right: 10px;
    }
}

/* Mobile pequeño (0px - 575px) - SOLO 1 CARD */
@media (max-width: 575px) {
    .pricing-gallery-wrapper {
        min-height: 580px;
        padding: 40px 15px;
        overflow: visible;
    }
    
    .pricing-gallery-container {
        min-height: 560px;
        margin-bottom: 25px;
    }
    
    .pricing-gallery-card {
        width: 100%; /* Usar todo el ancho disponible */
        max-width: 300px;
    }
    
    .pricing-gallery-card .pricing-card {
        height: 560px;
    }
    
    /* EN MOBILE PEQUEÑO: SOLO LA CARD ACTIVA ES VISIBLE */
    .pricing-gallery-card:not(.active) {
        opacity: 0 !important;
        transform: translateY(-50%) scale(0.8) !important;
        pointer-events: none !important;
        z-index: 1 !important;
        display: none !important; /* Ocultar completamente */
    }
    
    .pricing-gallery-card.active {
        width: 100%;
        max-width: 300px;
        transform: translateY(-50%) scale(1);
        opacity: 1;
        z-index: 3;
        left: 50%;
        transform: translateX(-50%) translateY(-50%); /* Centrar perfectamente */
    }
    
    .gallery-control {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        background: white;
        border: 1px solid #e2e8f0;
    }
    
    .gallery-control.prev {
        left: 5px;
    }
    
    .gallery-control.next {
        right: 5px;
    }
    
    .gallery-indicators {
        padding: 30px 0 15px 0;
        gap: 10px;
    }
}

/* Mobile muy pequeño (0px - 380px) */
@media (max-width: 380px) {
    .pricing-gallery-wrapper {
        padding: 30px 10px;
        min-height: 550px;
    }
    
    .pricing-gallery-container {
        min-height: 530px;
    }
    
    .pricing-gallery-card.active {
        max-width: 280px;
    }
    
    .pricing-gallery-card .pricing-card {
        height: 530px;
    }
    
    .gallery-control {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}