/* ============================================
   LOHMIA PRICING PAGE v1.0
   Pagina de planes y precios
   ============================================ */

/* === PAGE LAYOUT === */
.pricing-page {
    min-height: 100vh;
    background: var(--bg-primary, #0f172a);
    padding-top: 80px; /* Space for fixed header */
}

.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* === HERO SECTION === */
.pricing-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
}

.pricing-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-blue, #3b82f6), var(--accent-purple, #8b5cf6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary, #94a3b8);
    max-width: 600px;
    margin: 0 auto;
}

/* === BILLING TOGGLE === */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.billing-toggle span {
    font-size: 0.9rem;
    color: var(--text-secondary, #94a3b8);
}

.billing-toggle span.active {
    color: var(--text-primary, #f1f5f9);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
    background: var(--bg-tertiary, #334155);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.annual {
    background: linear-gradient(135deg, var(--accent-blue, #3b82f6), var(--accent-purple, #8b5cf6));
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.annual::after {
    transform: translateX(28px);
}

.billing-discount {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* === PRICING CARDS GRID === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* === PRICING CARD === */
.pricing-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, #475569);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    border-color: var(--accent-blue, #3b82f6);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

/* Featured badge */
.pricing-card.featured::before {
    content: 'MAS POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-blue, #3b82f6), var(--accent-purple, #8b5cf6));
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* === CARD HEADER === */
.pricing-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color, #475569);
}

.pricing-plan-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.pricing-card.featured .pricing-plan-name {
    color: var(--accent-blue, #3b82f6);
}

.pricing-card.enterprise .pricing-plan-name {
    color: #f59e0b;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.pricing-currency {
    font-size: 1.25rem;
    color: var(--text-primary, #f1f5f9);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    line-height: 1;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-secondary, #94a3b8);
}

.pricing-description {
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
}

/* === FEATURES LIST === */
.pricing-features {
    flex: 1;
    margin-bottom: 1.5rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #94a3b8);
}

.pricing-features li::before {
    content: '\2713';
    color: var(--accent-green, #10b981);
    font-weight: bold;
    flex-shrink: 0;
}

.pricing-features li.highlight {
    color: var(--text-primary, #f1f5f9);
    font-weight: 500;
}

.pricing-features li.disabled {
    color: var(--text-muted, #64748b);
    text-decoration: line-through;
}

.pricing-features li.disabled::before {
    content: '\2717';
    color: var(--text-muted, #64748b);
}

/* === LIMITS SECTION === */
.pricing-limits {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.pricing-limits-title {
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.pricing-limit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.pricing-limit-item .label {
    color: var(--text-secondary, #94a3b8);
}

.pricing-limit-item .value {
    color: var(--text-primary, #f1f5f9);
    font-weight: 600;
}

.pricing-limit-item .value.unlimited {
    color: var(--accent-green, #10b981);
}

/* === CTA BUTTON === */
.pricing-cta {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.pricing-cta.primary {
    background: linear-gradient(135deg, var(--accent-blue, #3b82f6), var(--accent-purple, #8b5cf6));
    color: white;
}

.pricing-cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.pricing-cta.secondary {
    background: transparent;
    border: 2px solid var(--border-color, #475569);
    color: var(--text-primary, #f1f5f9);
}

.pricing-cta.secondary:hover {
    border-color: var(--accent-blue, #3b82f6);
    color: var(--accent-blue, #3b82f6);
}

.pricing-cta.enterprise {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.pricing-cta.enterprise:hover {
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* === FAQ SECTION === */
.pricing-faq {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.pricing-faq h2 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 2rem;
}

.faq-item {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, #475569);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary, #f1f5f9);
    margin: 0;
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--text-secondary, #94a3b8);
    transition: transform 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
}

/* === COMPARISON TABLE === */
.pricing-comparison {
    margin: 4rem 0;
    overflow-x: auto;
}

.pricing-comparison h2 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary, #1e293b);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color, #475569);
}

.comparison-table th {
    background: var(--bg-tertiary, #334155);
    color: var(--text-primary, #f1f5f9);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td:first-child {
    text-align: left;
    color: var(--text-secondary, #94a3b8);
}

.comparison-table td {
    color: var(--text-primary, #f1f5f9);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-check {
    color: var(--accent-green, #10b981);
    font-size: 1.25rem;
}

.comparison-cross {
    color: var(--text-muted, #64748b);
    font-size: 1rem;
}

/* === CTA BOTTOM === */
.pricing-bottom-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 16px;
    margin: 2rem 0;
}

.pricing-bottom-cta h2 {
    font-size: 1.75rem;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 1rem;
}

.pricing-bottom-cta p {
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 1.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 1.75rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 4rem;
    }

    .pricing-container {
        padding: 1rem;
    }

    .pricing-amount {
        font-size: 2.5rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .pricing-hero h1 {
        font-size: 1.5rem;
    }

    .pricing-hero p {
        font-size: 0.95rem;
    }

    .billing-toggle {
        flex-wrap: wrap;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-bottom-cta {
        padding: 2rem 1rem;
    }
}
