/* Forfaits Section Modernizada */
.forfaits-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.pricing-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-title span {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.3rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Billing Toggle Switch */
.billing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.billing-toggle {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.billing-option {
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.billing-option.active {
    color: white;
}

.billing-option:hover:not(.active) {
    color: #007bff;
}

.billing-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.save-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
}

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

/* Plan Cards Modernizadas */
.plan-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card.popular {
    border-color: #007bff;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    transform: scale(1.05);
    z-index: 2;
}

.plan-card.popular::before {
    opacity: 1;
    background: linear-gradient(90deg, #ffd700, #007bff, #ffd700);
}

.popular-badge {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    z-index: 10;
    animation: bounce 2s infinite;
}

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

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.75rem;
}

.plan-header p {
    color: #6c757d;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.5;
}

/* Price Section Mejorada */
.plan-price {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.price-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.plan-price .current {
    font-size: 3.5rem;
    font-weight: 800;
    color: #000;
    line-height: 1;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-price .current small {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 400;
}

.plan-price .old {
    font-size: 1.3rem;
    color: #adb5bd;
    text-decoration: line-through;
    display: inline-block;
    position: relative;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.5rem;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* Team Pack Toggle Button */
.team-toggle-btn {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    font-weight: 600;
    color: #495057;
}

.team-toggle-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #007bff;
    color: #007bff;
}

.team-toggle-btn i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.team-toggle-btn.active i {
    transform: rotate(180deg);
}

.team-toggle-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-badge {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Team Pack Expandible */
.team-pack {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.team-pack.show {
    max-height: 300px;
    opacity: 1;
    margin-top: 1.5rem;
}

.team-pack-content {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border: 2px solid #b8daff;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.team-pack-content::before {
    content: '🏢';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    opacity: 0.1;
}

.team-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0056b3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.team-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #000;
    margin: 0.5rem 0;
}

.team-price small {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

.team-note {
    font-size: 0.9rem;
    color: #495057;
    margin-top: 0.75rem;
    line-height: 1.6;
}

.team-note strong {
    color: #007bff;
    font-weight: 700;
}

/* Features List */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 1rem 0;
    color: #495057;
    font-size: 1.05rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.plan-features li:hover {
    padding-left: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* Buttons */
.btn-select {
    padding: 1.2rem 2.5rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1.1rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.btn-select::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-select:hover::before {
    width: 300px;
    height: 300px;
}

.btn-select:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-dark {
    background: linear-gradient(135deg, #343a40 0%, #23272b 100%);
    color: white;
}

/* Bottom Text */
.bottom-text {
    font-size: 1.15rem;
    color: #495057;
    max-width: 750px;
    margin: 4rem auto 0;
    line-height: 1.8;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.bottom-text strong {
    color: #007bff;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 992px) {
    .plan-card.popular {
        transform: scale(1);
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .forfaits-section {
        padding: 60px 0;
    }
    
    .pricing-title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .billing-toggle-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .billing-option {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .plan-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .plan-price .current {
        font-size: 2.8rem;
    }
    
    .team-pack.show {
        max-height: 350px;
    }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-card {
    animation: fadeInUp 0.6s ease-out;
}

.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.2s; }
.plan-card:nth-child(3) { animation-delay: 0.3s; }

/* Comparison Tooltip */
.comparison-tip {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    animation: wiggle 3s infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}