/* ==========================================================================
   ByteTaller LLC - Enterprise IT Retainers (Igualas Tecnológicas)
   Aesthetic: High-Tech Enterprise Dark Theme, Obsidian Glass, Glowing Accents
   ========================================================================== */

:root {
    --primary: #0070f3;
    --primary-glow: #38bdf8;
    --orange-accent: #f97316;
    --orange-glow: #ff7a00;
    --success: #10b981;
    --purple-accent: #8b5cf6;
    
    --dark-bg: #030712;
    --dark-surface: #0a1124;
    --dark-card: rgba(14, 23, 46, 0.75);
    --dark-card-hover: rgba(20, 32, 64, 0.9);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(56, 189, 248, 0.35);
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    
    --brand-gradient: linear-gradient(135deg, #0070f3 0%, #38bdf8 100%);
    --brand-gradient-hover: linear-gradient(135deg, #005bb5 0%, #0284c7 100%);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 9999px;
    
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.5);
}

/* Base Body */
body.pricing-page {
    font-family: var(--font-body);
    color: var(--text-muted);
    background-color: var(--dark-bg);
    margin: 0;
    padding: 0;
    padding-top: 75px;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. Hero de la Página de Igualas
   ========================================================================== */
.pricing-hero {
    position: relative;
    padding: 80px 20px 40px;
    background: radial-gradient(circle at 50% 0%, #0d1a38 0%, var(--dark-bg) 75%);
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-hero-container {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-glow);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-pill-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.pricing-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 18px 0;
}

.pricing-hero h1 .gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, #38bdf8 60%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-hero p.subtitle {
    font-size: 1.12rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 auto 30px auto;
    max-width: 760px;
}

/* Trust Badges Row */
.trust-metrics-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-subtle);
}

.trust-metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

.trust-metric-item svg {
    color: var(--primary-glow);
    flex-shrink: 0;
}

/* ==========================================================================
   2. Interruptor de Ciclo de Facturación (Mensual / Anual)
   ========================================================================== */
.billing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 40px auto 10px auto;
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s ease;
}

.toggle-label.active {
    color: #ffffff;
    font-weight: 700;
}

.billing-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background: #1e293b;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.3s ease;
    border: 1px solid var(--border-subtle);
    outline: none;
    padding: 3px;
}

.billing-switch.active {
    background: var(--primary);
}

.billing-switch .slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.billing-switch.active .slider {
    transform: translateX(28px);
}

.discount-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(16, 185, 129, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

/* ==========================================================================
   3. Cuadrícula de Tarjetas de Precios
   ========================================================================== */
.pricing-section {
    padding: 50px 20px 70px;
    max-width: 1240px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.pricing-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
    background: var(--dark-card-hover);
}

/* Tarjeta Destacada */
.pricing-card.featured {
    border: 1px solid var(--primary-glow);
    box-shadow: 0 20px 50px rgba(0, 112, 243, 0.25);
    background: linear-gradient(180deg, rgba(14, 27, 58, 0.85) 0%, rgba(9, 17, 36, 0.95) 100%);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 112, 243, 0.4);
    border-color: #60a5fa;
}

.featured-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0070f3 0%, #0284c7 100%);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 14px rgba(0, 112, 243, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* Header de la tarjeta */
.card-header-plan {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 20px;
}

.plan-tier-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.plan-tier-pill.tier-1 {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.plan-tier-pill.tier-2 {
    background: rgba(0, 112, 243, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(0, 112, 243, 0.35);
}

.plan-tier-pill.tier-3 {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.card-header-plan h2 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.plan-tagline {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
    min-height: 48px;
}

/* Contenedor de Precio */
.plan-price-wrapper {
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-currency {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.price-amount {
    font-family: var(--font-mono);
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.price-cycle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.price-subnote {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Lista de Características del Plan */
.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.plan-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin-bottom: 14px;
}

.plan-features-list li strong {
    color: #ffffff;
}

.plan-features-list li.highlight-item {
    font-weight: 700;
    color: var(--primary-glow);
}

.feature-check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.feature-check-icon.primary {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-glow);
    border-color: rgba(56, 189, 248, 0.3);
}

.feature-check-icon svg {
    width: 12px;
    height: 12px;
}

/* Botones de Acción en Tarjetas */
.plan-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-tier-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid var(--border-subtle);
}

.btn-tier-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-tier-primary {
    background: linear-gradient(135deg, #0070f3 0%, #0284c7 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 112, 243, 0.4);
}

.btn-tier-primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0070f3 100%);
    box-shadow: 0 10px 25px rgba(0, 112, 243, 0.6);
    transform: translateY(-2px);
}

.btn-tier-enterprise {
    background: rgba(249, 115, 22, 0.15);
    color: #ff9800;
    border: 1px solid rgba(249, 115, 22, 0.35);
}

.btn-tier-enterprise:hover {
    background: rgba(249, 115, 22, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. Tabla Comparativa de Características
   ========================================================================== */
.comparison-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-wrap h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.section-title-wrap p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.comparison-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
    background: rgba(10, 17, 36, 0.8);
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.comparison-table th.col-tier {
    text-align: center;
    width: 22%;
}

.comparison-table th.col-tier.featured {
    background: rgba(0, 112, 243, 0.15);
    color: var(--primary-glow);
    border-top: 3px solid var(--primary);
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.category-row td {
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-glow);
    padding: 12px 20px;
}

.cell-center {
    text-align: center;
}

.icon-check-yes {
    color: var(--success);
    display: inline-flex;
}

.icon-check-no {
    color: #475569;
    display: inline-flex;
}

.badge-included {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   5. Calculadora Interactiva de Igualas
   ========================================================================== */
.calculator-section {
    padding: 40px 20px 70px;
    max-width: 1040px;
    margin: 0 auto;
}

.calculator-card {
    background: linear-gradient(135deg, #091226 0%, #0d1a3a 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-hover);
    padding: 40px;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.calc-control-group {
    margin-bottom: 22px;
}

.calc-control-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.calc-range-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #1e293b;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.calc-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-glow);
    cursor: pointer;
    box-shadow: 0 0 12px var(--primary-glow);
}

.calc-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.calc-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #cbd5e1;
    cursor: pointer;
}

.calc-check-item input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.calc-result-box {
    background: rgba(14, 23, 46, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.calc-recommended-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-glow);
    margin-bottom: 8px;
}

.calc-plan-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.calc-price-estimate {
    font-family: var(--font-mono);
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.calc-price-cycle {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   6. Preguntas Frecuentes (FAQ Accordion)
   ========================================================================== */
.faq-section {
    padding: 40px 20px 80px;
    max-width: 880px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--dark-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    user-select: none;
}

.faq-question svg {
    transition: transform 0.3s ease;
    color: var(--primary-glow);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ==========================================================================
   7. Modal de Cotización de Plan
   ========================================================================== */
.plan-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(14px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.plan-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.plan-modal-container {
    background: var(--dark-surface);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.plan-modal-overlay.active .plan-modal-container {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-header-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: #ffffff;
}

.modal-header-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group-modal {
    margin-bottom: 16px;
}

.form-group-modal label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.form-control-modal {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    box-sizing: border-box;
}

.form-control-modal:focus {
    outline: none;
    border-color: var(--primary-glow);
    background: rgba(255, 255, 255, 0.06);
}

.modal-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ==========================================================================
   8. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-6px);
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}
