/* Servidor de IA - Custom Styles */
/* Works WITH the site's leh.css + modern-header.css (light theme) */

:root {
    --ai-primary: #0ea5e9;
    --ai-secondary: #8b5cf6;
}

/* Override body background for AI page dark sections */
.ai-page .start,
.ai-page .aweb.ai-n8n-section {
    background: #0f172a;
    color: #f8fafc;
    padding: 80px 0;
}

.ai-page .aweb.ai-n8n-section {
    background: #0c1322;
}

/* Hero Override for dark theme */
.ai-page .header.hero-modern {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.85));
    padding: 70px 0 120px;
}

.ai-page .header.hero-modern h1 {
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ai-page .header.hero-modern h2 {
    color: #94a3b8;
    font-weight: 400;
    font-size: 18px;
}

/* Toggle Pricing */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.toggle-label {
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--ai-primary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--ai-primary);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

/* Section Header */
.ai-page .section-header {
    margin-bottom: 50px;
}

.ai-page .section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.ai-page .section-header .icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.ai-page .section-header p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 800px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.price-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--ai-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.price-card.popular {
    background: rgba(14, 165, 233, 0.05);
    border-color: var(--ai-primary);
}

.badge-popular {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--ai-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.price-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.price-card .card-desc {
    color: #94a3b8;
    margin-bottom: 10px;
}

.price-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0;
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #fff;
}

.price-card .price .currency {
    font-size: 1.5rem;
    margin-left: 5px;
}

.price-card .price .period {
    font-size: 1rem;
    font-weight: 400;
    color: #94a3b8;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.price-card ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
}

.price-card ul li i {
    color: var(--ai-primary);
    font-size: 14px;
}

.btn-ai {
    display: inline-block;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    background: #334155;
    color: white;
}

.btn-ai:hover {
    background: #475569;
    color: white;
    text-decoration: none;
}

.btn-ai.primary {
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
}

.btn-ai.primary:hover {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    transform: scale(1.02);
    color: white;
    text-decoration: none;
}

/* FAQ Cards */
.faq-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.faq-card h4 {
    color: var(--ai-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-card p {
    color: #94a3b8;
    margin-bottom: 0;
}

/* Animations */
[data-aos] {
    transition-duration: 800ms !important;
}

/* Responsive */
@media (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-page .section-header h2 {
        font-size: 1.6rem;
    }
}
