/* ==========================================================================
   CSS Variables & Base Styles (SaaS Modern B2B)
   ========================================================================== */
   :root {
    /* Color Palette */
    --bg-main: #F8FAFC; /* Ultra-light gray */
    --bg-white: #FFFFFF;
    
    --primary-blue: #0F172A; /* Deep Blue / Slate 900 for headings */
    --secondary-blue: #1E293B; /* Slate 800 */
    
    --accent-purple: #8B5CF6; /* Violet 500 */
    --accent-purple-hover: #7C3AED; /* Violet 600 */
    --accent-purple-light: #EDE9FE; /* Violet 100 */
    
    --accent-mint: #10B981; /* Emerald 500 */
    --accent-mint-light: #D1FAE5; /* Emerald 100 */
    
    --text-main: #334155; /* Slate 700 */
    --text-muted: #64748B; /* Slate 500 */
    
    --border-color: #E2E8F0; /* Slate 200 */
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --section-padding: 6rem 1.5rem;
    
    /* UI Elements */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--accent-purple);
    transition: color var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-accent { color: var(--accent-purple); }
.text-accent-mint { color: var(--accent-mint); }
.bg-white { background-color: var(--bg-white); }
.w-100 { width: 100%; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    gap: 0.5rem;
}

a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--accent-purple);
    color: var(--bg-white);
}

.btn-primary:hover, .cta-interactive:hover {
    background-color: var(--accent-purple-hover);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--btn-shadow, rgba(15, 23, 42, 0.25));
}

.btn-secondary {
    background-color: var(--primary-blue);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--secondary-blue);
    color: var(--bg-white);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--border-color);
}

.btn-outline-primary:hover {
    border-color: var(--primary-blue);
    background-color: var(--bg-main);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius-lg);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.desktop-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.dropdown-toggle:hover {
    color: var(--accent-purple);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--bg-white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    z-index: 1000;
    top: 100%;
    left: -100px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-menu a {
    color: var(--text-main);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color var(--transition), color var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--bg-main);
    color: var(--accent-purple);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding: 1rem 0;
    z-index: 1000;
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 55px;
    transition: transform var(--transition);
}

.logo-img:hover {
    transform: scale(1.02);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   Hero Section (Bloque 1)
   ========================================================================== */
.hero {
    position: relative;
    padding: 11rem 0 7rem;
    background-color: var(--bg-white);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-mint-light);
    color: #065F46; /* Darker emerald for text contrast */
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Grids & Cards
   ========================================================================== */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card > p:last-of-type, .card > ul:last-of-type {
    margin-bottom: auto;
}

.card > .btn, .card > div[style*="text-align: center"] {
    margin-top: auto;
}

.interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-purple-light);
}

/* ==========================================================================
   Diagnóstico Section (Bloque 2)
   ========================================================================== */
.diagnostico-section {
    padding: var(--section-padding);
}

.warning-icon {
    width: 60px;
    height: 60px;
    background-color: #FEF3C7; /* Amber 100 */
    color: #D97706; /* Amber 600 */
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.diagnostico-section .card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* ==========================================================================
   Solución Section (Bloque 3)
   ========================================================================== */
.solucion-section {
    padding: var(--section-padding);
}

.layer-card {
    position: relative;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.layer-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-purple);
}

.layer-badge {
    position: absolute;
    top: -12px;
    left: 2rem;
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.layer-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Metodología / Pricing Table (Bloque 4)
   ========================================================================== */
.metodologia-section {
    padding: var(--section-padding);
}

.pricing-table-wrapper {
    overflow-x: auto;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px; /* Force scroll on small screens */
}

.pricing-table th,
.pricing-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    background-color: var(--bg-main);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--border-color);
}

.pricing-table td {
    color: var(--text-main);
}

.highlight-col {
    background-color: rgba(139, 92, 246, 0.03); /* Very light purple */
    border-left: 2px solid var(--accent-purple-light);
    border-right: 2px solid var(--accent-purple-light);
}

.pricing-table th.highlight-col {
    background-color: var(--accent-purple-light);
    color: var(--primary-blue);
    border-top: 3px solid var(--accent-purple);
}

.price-row td {
    background-color: var(--bg-main);
    border-bottom: none;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.price-row .highlight-col {
    background-color: rgba(139, 92, 246, 0.08);
}

.price-range {
    display: block;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-blue);
}

.price-unit {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Ofertas Destacadas (Bloque 5)
   ========================================================================== */
.ofertas-section {
    padding: var(--section-padding);
}

.pricing-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.highlighted {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-md);
    transform: scale(1.03);
    z-index: 2;
}

.badge-recommended {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-purple);
    color: var(--bg-white);
    padding: 0.35rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.2);
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--bg-main);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    line-height: 1.4;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-price {
    background-color: var(--bg-main);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
}

.pricing-price.offer {
    background-color: var(--accent-purple-light);
}

.pricing-price span {
    display: block;
}

.pricing-price .label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pricing-price.offer .label {
    color: var(--accent-purple-hover);
}

.pricing-price .amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pricing-price .amount small {
    font-size: 1rem;
}

.pricing-price .period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-price .regular-price {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-price .recurring {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.addons {
    font-size: 0.875rem;
    color: var(--text-main);
    background: rgba(16, 185, 129, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    border: 1px dashed var(--accent-mint);
}

.pricing-action {
    margin-top: auto;
}

/* ==========================================================================
   Planes Mensuales (Bloque 6)
   ========================================================================== */
.recurrentes-section {
    padding: var(--section-padding);
}

.recurrent-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.recurrent-card:hover {
    border-color: var(--accent-mint);
    box-shadow: var(--shadow-md);
}

.recurrent-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.tier-subtitle {
    font-size: 0.875rem;
    color: var(--accent-purple);
    font-weight: 600;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.feature-list li i {
    margin-top: 0.25rem;
}

.feature-list .list-desc {
    padding-left: 1.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
}

.recurrent-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: var(--bg-main);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    text-align: center;
}

.recurrent-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
}

.premium-tier {
    background: var(--primary-blue);
    color: var(--bg-white);
    border: none;
}

.premium-tier h3 {
    color: var(--bg-white);
    border-color: rgba(255,255,255,0.1);
}

.premium-tier .recurrent-price {
    background: rgba(255,255,255,0.1);
    color: var(--bg-white);
}

.premium-tier .recurrent-price span {
    color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   Canales de Distribución (Bloque 7)
   ========================================================================== */
.canales-section {
    padding: var(--section-padding);
}

.channels-grid {
    gap: 2rem;
}

.channel-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.channel-icon {
    font-size: 2.5rem;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
}

.channel-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.channel-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Blindaje Operativo (Bloque 8)
   ========================================================================== */
.blindaje-section {
    padding: 4rem 1.5rem;
}

.alert-box {
    background-color: var(--bg-main);
    border-left: 4px solid var(--text-muted);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.alert-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.alert-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.alert-content p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.alert-content strong {
    color: var(--text-main);
}

/* ==========================================================================
   Conversión Form (Bloque 9)
   ========================================================================== */
.conversion-section {
    padding: var(--section-padding);
    background-color: var(--primary-blue);
    color: var(--bg-white);
}

.conversion-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.conversion-text h2 {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.conversion-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.conversion-form-container {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary-blue);
}

.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px var(--accent-purple-light);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

.form-microcopy {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--accent-purple);
}

.footer-bottom {
    background-color: var(--bg-main);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .pricing-cards-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .pricing-card.highlighted {
        transform: none;
    }
    
    .conversion-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-features {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo-img {
        height: 42px;
    }
    
    .nav-cta .btn {
        padding: 0.5rem 1.0rem;
        font-size: 0.85rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .logo-img {
        height: 34px;
    }
    
    .navbar {
        padding: 0.6rem 0;
    }
    
    .nav-cta {
        gap: 0.5rem;
    }
    
    .nav-cta .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        border-radius: var(--border-radius-sm);
    }
    
    .nav-btn-text {
        display: none;
    }
    
    .conversion-form-container {
        padding: 1.5rem 1rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 1rem 0.5rem;
        font-size: 0.95rem;
    }
    
    .pricing-table {
        min-width: 650px; /* Force scroll so it doesn't squish */
    }
    
    .pricing-table th {
        font-size: 1.05rem;
    }
    
    .pricing-table-wrapper {
        padding-bottom: 0.5rem; /* Room for scrollbar */
    }
    
    /* Hint for horizontal scroll */
    .pricing-table-wrapper::after {
        content: "Desliza horizontalmente para ver más →";
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: var(--text-muted);
        padding: 0.5rem;
        font-style: italic;
    }
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1EBE5D;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

.modal-content {
    background-color: var(--bg-white);
    width: 90%;
    max-width: 700px;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    position: relative;
    transform: translateY(-20px);
    transition: all var(--transition);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
}

.modal-close:hover {
    color: #EF4444; /* Red for close */
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-body h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ==========================================================================
   LMS Themes
   ========================================================================== */
.theme-moodle {
    --primary-blue: #222222; /* Dark Gray / Black */
    --accent-purple: #F98012; /* Moodle Orange */
    --accent-purple-hover: #e07310;
    --accent-purple-light: #fbe6d4;
    --accent-mint: #F98012; 
    --btn-shadow: rgba(249, 128, 18, 0.35);
}

.theme-chamilo {
    --primary-blue: #0A5389; /* Chamilo Blue */
    --accent-purple: #81B941; /* Chamilo Green */
    --accent-purple-hover: #6ca035;
    --accent-purple-light: #e6f1dc;
    --accent-mint: #81B941; 
    --btn-shadow: rgba(129, 185, 65, 0.35);
}

.theme-dokeos {
    --primary-blue: #00235a; /* Dokeos Blue */
    --accent-purple: #008be1; /* Dokeos Light Blue */
    --accent-purple-hover: #0076c0;
    --accent-purple-light: #cce8f9;
    --accent-mint: #008be1; 
    --btn-shadow: rgba(0, 139, 225, 0.35);
}
