/* ====================================
   PROCESS CAROUSEL - INTERACTIVE (WHITE BG)
   ==================================== */

/* Section Container */
.process-section-new {
    position: relative;
    padding: 100px 0 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f5f9 100%);
    overflow: hidden;
}

/* Section Header */
.process-section-new .section-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 80px;
}

.process-section-new .section-title {
    color: var(--color-dark);
    font-size: 48px;
    font-weight: 900;
}

.process-section-new .section-description {
    color: rgba(0, 0, 0, 0.6);
    font-size: 18px;
    margin-top: 20px;
}

.process-section-new .section-tag {
    background: rgba(164, 210, 51, 0.15);
    color: var(--color-primary);
    padding: 8px 20px;
    border-radius: 25px;
}

/* Carousel Wrapper - Más estrecho */
.process-carousel-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;  /* ✅ Reducido de 1200px a 900px */
    margin: 0 auto;
    padding: 0 20px;
}

/* Carousel Container */
.process-carousel {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    perspective: 2000px;
    position: relative;
}

/* Process Card */
.process-card {
    flex-shrink: 0;
    width: 240px;  /* ✅ Reducido de 280px a 240px */
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0.5;
    transform: scale(0.85) translateX(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Active Card - Grande y centrada */
.process-card.active {
    width: 350px;  /* ✅ Reducido de 400px a 350px */
    opacity: 1;
    transform: scale(1) translateX(0) rotateY(0deg);
    background: #ffffff;
    border-color: rgba(164, 210, 51, 0.4);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(164, 210, 51, 0.3),
        inset 0 1px 0 rgba(164, 210, 51, 0.1);
}

/* Previous Card - Izquierda pequeña */
.process-card.prev {
    opacity: 0.6;
    transform: scale(0.75) translateX(-30px) rotateY(15deg);
    filter: blur(1px);
}

/* Next Card - Derecha pequeña */
.process-card.next {
    opacity: 0.6;
    transform: scale(0.75) translateX(30px) rotateY(-15deg);
    filter: blur(1px);
}

/* Hidden Cards */
.process-card.hidden {
    opacity: 0;
    transform: scale(0.6) translateX(0);
    pointer-events: none;
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(164, 210, 51, 0.08) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.process-card.active .card-glow {
    opacity: 1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

/* Card Number */
.card-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #7ba82a);
    color: var(--color-white);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(164, 210, 51, 0.3);
    transition: all 0.3s ease;
}

.process-card.active .card-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 28px;
    box-shadow: 0 12px 30px rgba(164, 210, 51, 0.5);
    animation: numberBounce 2s ease-in-out infinite;
}

@keyframes numberBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Card Icon */
.card-icon {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.process-card.active .card-icon {
    font-size: 64px;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

/* Card Title */
.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;  /* ✅ Texto oscuro para fondo blanco */
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.process-card.active .card-title {
    font-size: 26px;
    margin-bottom: 20px;
}

/* Card Description */
.card-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.6);  /* ✅ Texto oscuro para fondo blanco */
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.process-card.active .card-description {
    opacity: 1;
    max-height: 100px;
    margin-top: 15px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.7);  /* ✅ Texto oscuro para fondo blanco */
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a;  /* ✅ Icono oscuro */
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-prev {
    left: -20px;  /* ✅ Más cerca del carousel */
}

.carousel-next {
    right: -20px;  /* ✅ Más cerca del carousel */
}

.carousel-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(164, 210, 51, 0.4);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Progress Bar */
.carousel-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);  /* ✅ Gris para fondo blanco */
    border-radius: 4px;
    margin-top: 50px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #8ab828);
    border-radius: 4px;
    width: 0;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(164, 210, 51, 0.6);
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);  /* ✅ Gris para fondo blanco */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator:hover {
    background: rgba(164, 210, 51, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--color-primary);
    width: 32px;
    border-radius: 8px;
}

.indicator.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* Hover Effects */
.process-card:not(.active):hover {
    opacity: 0.8;
    transform: scale(0.9) translateX(0);
    border-color: rgba(164, 210, 51, 0.3);
}

/* Decorative Elements for White BG */
.process-section-new::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(164, 210, 51, 0.08), transparent 70%);
    border-radius: 50%;
    animation: breathe 8s ease-in-out infinite;
    z-index: 0;
}

.process-section-new::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05), transparent 70%);
    border-radius: 50%;
    animation: breathe 10s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes breathe {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Responsive */
@media (max-width: 1024px) {
    .process-carousel {
        gap: 15px;
    }
    
    .process-card {
        width: 220px;
    }
    
    .process-card.active {
        width: 320px;
    }
    
    .carousel-nav {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .process-section-new {
        padding: 80px 0;
    }
    
    .process-section-new .section-title {
        font-size: 36px;
    }
    
    .process-carousel-wrapper {
        max-width: 100%;
    }
    
    .process-carousel {
        flex-direction: column;
        min-height: 600px;
        gap: 0;
        padding: 0 60px;
    }
    
    .process-card {
        width: 100%;
        max-width: 400px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%) scale(0.8);
        opacity: 0;
        pointer-events: none;
    }
    
    .process-card.active {
        width: 100%;
        max-width: 400px;
        position: relative;
        left: 0;
        transform: translateX(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }
    
    .process-card.prev,
    .process-card.next {
        display: none;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .card-icon {
        font-size: 40px;
    }
    
    .process-card.active .card-icon {
        font-size: 56px;
    }
}

@media (max-width: 480px) {
    .process-section-new {
        padding: 60px 0;
    }
    
    .process-section-new .section-title {
        font-size: 28px;
    }
    
    .process-carousel {
        padding: 0 50px;
    }
    
    .process-card {
        padding: 30px 20px;
    }
    
    .card-number {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 20px;
    }
    
    .process-card.active .card-number {
        width: 55px;
        height: 55px;
        line-height: 55px;
        font-size: 24px;
    }
    
    .carousel-nav {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}
