/* ============================================
   SERVICES PAGE STYLES
   ============================================ */

.services-hero {
    padding: 120px 80px 60px;
    text-align: center;
}

.services-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.services-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ============================================
   FILTROS
   ============================================ */
.services-filters {
    padding: 40px 80px;
}

.filter-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
    color: var(--color-text);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

/* ============================================
   CONTENEDOR DE SERVICIOS
   ============================================ */
.services-container {
    padding: 20px 80px 100px;
}

.service-category {
    margin-bottom: 80px;
    opacity: 1;
    transition: all 0.5s ease;
}

.service-category.hidden {
    display: none;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.service-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-info h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-info p {
    font-size: 16px;
    color: var(--color-text-secondary);
}

/* ============================================
   GRID DE PLANES
   ============================================ */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.plan-card {
    background: rgba(20, 15, 30, 0.6);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.2);
}

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

.plan-card.popular {
    border-color: rgba(74, 144, 226, 0.4);
    background: rgba(30, 25, 40, 0.8);
}

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

.plan-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-tier {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.plan-tier.basic {
    background: rgba(93, 173, 226, 0.1);
    color: #5DADE2;
    border: 1px solid rgba(93, 173, 226, 0.2);
}

.plan-tier.intermediate {
    background: rgba(155, 89, 182, 0.1);
    color: #9B59B6;
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.plan-tier.advanced {
    background: rgba(230, 57, 70, 0.1);
    color: #E63946;
    border: 1px solid rgba(230, 57, 70, 0.2);
}

.plan-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.plan-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.spec-badge {
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-price {
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-left: 8px;
}

.plan-features {
    list-style: none;
    margin: 24px 0;
}

.plan-features li {
    padding: 12px 0;
    font-size: 14px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.plan-features li::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-cta {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.plan-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
}

.plan-card.popular .plan-cta {
    background: var(--gradient-rocket);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

.plan-card.popular .plan-cta:hover {
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.4);
}

/* ============================================
   ANIMACIONES DE ENTRADA
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.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; }
.plan-card:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   LOADING STATE
   ============================================ */
.loading-container {
    text-align: center;
    padding: 100px 0;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(74, 144, 226, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--color-text-secondary);
    font-size: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-hero {
        padding: 100px 40px 40px;
    }
    
    .services-title {
        font-size: 48px;
    }
    
    .services-filters {
        padding: 30px 40px;
    }
    
    .services-container {
        padding: 20px 40px 80px;
    }
    
    .service-info h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .services-title {
        font-size: 36px;
    }
    
    .filter-container {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: 80px 20px 30px;
    }
    
    .services-title {
        font-size: 28px;
    }
    
    .services-description {
        font-size: 16px;
    }
    
    .services-filters {
        padding: 20px;
    }
    
    .services-container {
        padding: 20px 20px 60px;
    }
    
    .plan-card {
        padding: 24px;
    }
    
    .plan-name {
        font-size: 24px;
    }
    
    .price-amount {
        font-size: 36px;
    }
}
