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

:root {
    --primary-purple: #8a68ff;
    --primary-pink: #e91e8c;
    --dark-bg: #000000;
    --dark-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Canvas 3D Background - Solo en el header */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Full viewport height for better visibility */
    min-height: 1080px;
    /* Ensure minimum height for large displays */
    z-index: 0;
    opacity: 1.0;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Navigation - Estilo Active Theory */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 2rem 0;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 0.5rem;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.login-button {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.7rem 1.5rem;
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 300;
    font-family: 'IBM Plex Mono', monospace;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.login-button:hover {
    background: var(--text-primary);
    color: var(--dark-bg);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.login-button::after {
    content: none !important;
    display: none !important;
}


/* Hero Section - Estilo Active Theory */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 8rem 3rem 4rem;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    /* Gradient overlay for better text readability against the ripple background */
    /* Smoother transition to avoid hard lines */
    z-index: 1;
    /* Ensure it sits above the canvas */
}

.hero-content {
    max-width: 1000px;
}

.hero-badge {
    display: inline-block;
    background: transparent;
    /* border removed */
    /* padding removed to fit image better */
    margin-bottom: 3rem;

    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 7rem;
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -3px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    /* Lift text off background */
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 700px;
}

.hero-description {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Lift text off background */
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
}


.pricing-card .btn-primary {
    margin-top: auto;
    width: 100%;
}


.btn-primary {
    background: var(--text-primary);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
    color: var(--dark-bg);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.btn-primary.large,
.btn-secondary.large {
    padding: 1.3rem 3rem;
    font-size: 1rem;
}




/* Features Section - Minimalista */
.features {
    padding: 10rem 3rem;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.section-header {
    max-width: 800px;
    margin: 0 0 6rem;
}

.section-badge {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border-color);
}

.feature-card {
    background: transparent;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.feature-card:nth-child(3n) {
    border-right: none;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-8px);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    opacity: 1;
}

.feature-icon {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card.large {
    grid-column: span 2;
}

.feature-icon {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.feature-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.feature-link:hover {
    opacity: 0.7;
}

/* Split Content Sections */
.empresas-section,
.pymes-section {
    padding: 10rem 3rem;
    border-top: 1px solid var(--border-color);
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.split-content.reverse {
    direction: rtl;
}

.split-content.reverse>* {
    direction: ltr;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    padding-left: 0;
}

/* Visual Cards */
.visual-card {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.visual-dots {
    display: flex;
    gap: 0.5rem;
}

.visual-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

.visual-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visual-body {
    padding: 3rem;
}

.chart-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    height: 250px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-purple), var(--primary-pink));
    border-radius: 0;
    opacity: 0.9;
}

.pyme-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.pyme-stat-card {
    text-align: center;
    padding: 3rem 2rem;
    border-right: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.pyme-stat-card:last-child {
    border-right: none;
}

.pyme-stat-card:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: scale(1.05);
}

.pyme-stat-card:hover .stat-value {
    color: var(--primary-purple);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    padding: 12rem 3rem;
    background: var(--dark-bg);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.cta-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    padding: 5rem 3rem 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.footer-social {
    display: flex;
    gap: 2.5rem;
}

.footer-social a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-social a:hover {
    color: var(--text-primary);
}

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

    .feature-card.large {
        grid-column: span 2;
    }

    .split-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .hero {
        padding: 6rem 2rem 4rem;
    }

    .hero-title {
        font-size: 3.5rem;
        letter-spacing: -1px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 3rem;
    }

    .nav-menu {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card.large {
        grid-column: span 1;
    }

    .feature-card {
        border-right: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2.5rem;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .pyme-stats {
        grid-template-columns: 1fr;
    }

    .pyme-stat-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .pyme-stat-card:last-child {
        border-bottom: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Smooth Animations - Estilo Active Theory */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Smooth transitions globales */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero animations */
.hero-content {
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

.hero-badge {
    animation: fadeIn 0.8s ease 0s backwards;
}

.hero-title {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

.hero-subtitle {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s backwards;
}

.hero-description {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.7s backwards;
}

.hero-buttons {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.9s backwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Verticales Section */
.verticales {
    padding: 8rem 3rem;
    background: var(--dark-bg);
}

.verticales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.vertical-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.vertical-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    background: rgba(138, 104, 255, 0.05);
    box-shadow: 0 20px 60px rgba(138, 104, 255, 0.1);
}

.vertical-card.emergia:hover {
    border-color: var(--primary-pink);
    background: rgba(233, 30, 140, 0.05);
}

.vertical-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.vertical-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.vertical-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.vertical-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.vertical-link:hover {
    transform: translateX(5px);
    color: var(--primary-pink);
}

/* Planes Section */
.planes-section {
    padding: 8rem 3rem;
    background: var(--dark-secondary);
    border-top: 1px solid var(--border-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    box-shadow: 0 30px 80px rgba(138, 104, 255, 0.15);
}

.pricing-card.featured {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, rgba(138, 104, 255, 0.1) 0%, rgba(233, 30, 140, 0.05) 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.pricing-price {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-currency {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.pricing-price-usd {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
}

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

.pricing-features li {
    color: var(--text-secondary);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: auto;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

/* SAAS Section */
.saas-section {
    padding: 8rem 3rem;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.saas-price {
    margin-top: 2rem;
    text-align: center;
}

.price-large {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.price-usd {
    font-size: 1.2rem;
    color: var(--text-tertiary);
}

.saas-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.saas-module {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.saas-module:hover {
    transform: translateY(-5px);
    border-color: var(--primary-pink);
    background: rgba(233, 30, 140, 0.05);
    box-shadow: 0 15px 40px rgba(233, 30, 140, 0.1);
}

.module-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.saas-module h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.saas-module p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Business Model Section */
.business-model {
    padding: 8rem 3rem;
    background: var(--dark-secondary);
    border-top: 1px solid var(--border-color);
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.model-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(138, 104, 255, 0.1);
}

.model-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.model-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.market-info {
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.market-info h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.market-stat {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary-purple);
    padding: 2rem;
    transition: all 0.3s ease;
}

.market-stat:hover {
    background: rgba(138, 104, 255, 0.05);
    transform: translateX(10px);
}

.market-stat h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

.market-stat p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
    align-items: center;
}

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

.contact-icon {
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-purple);
}

/* SAAS Overview Section */
.saas-overview {
    padding: 8rem 3rem;
    background: var(--dark-secondary);
    border-top: 1px solid var(--border-color);
}

.saas-price-hero {
    text-align: center;
    margin: 3rem 0;
}

.saas-features-highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-highlight {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-highlight:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 60px rgba(138, 104, 255, 0.15);
}

.highlight-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.highlight-text {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.saas-modules-section {
    margin-top: 6rem;
}

.saas-modules-section h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
}

.saas-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.saas-module-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.saas-module-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 50px rgba(138, 104, 255, 0.1);
}

.saas-module-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.saas-module-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.saas-addon-note {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 2rem;
    background: rgba(138, 104, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.saas-addon-note strong {
    color: var(--primary-purple);
}


/* Providers Section */
.providers-section {
    padding: 8rem 3rem;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.provider-content {
    margin-top: 4rem;
}

.provider-diagram {
    margin-bottom: 5rem;
}

.diagram-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.flow-item {
    flex: 1;
    text-align: center;
}

.flow-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-icon svg {
    width: 40px;
    height: 40px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 1.5;
}

.flow-item h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.flow-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-purple);
    font-weight: bold;
}

.provider-modules {
    margin: 5rem 0;
}

.provider-modules h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
}

.modules-grid-providers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.provider-module {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.provider-module:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 50px rgba(138, 104, 255, 0.1);
}

.provider-module .module-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.provider-module .module-icon svg {
    width: 32px;
    height: 32px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 1.5;
}

.provider-module h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.provider-module p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.provider-benefits {
    margin-top: 5rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(138, 104, 255, 0.05), rgba(233, 30, 140, 0.05));
    border: 1px solid var(--border-color);
}

.provider-benefits h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.benefits-list li {
    color: var(--text-secondary);
    padding: 1rem 0;
    font-size: 1rem;
}

/* PyMES Expanded Section */
.pymes-section-expanded {
    padding: 8rem 3rem;
    background: var(--dark-secondary);
    border-top: 1px solid var(--border-color);
}

.pymes-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin: 4rem 0;
}

.pyme-type {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pyme-type:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    box-shadow: 0 30px 70px rgba(138, 104, 255, 0.15);
}

.pyme-type.featured-type {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, rgba(138, 104, 255, 0.08), rgba(233, 30, 140, 0.04));
}

.pyme-type-header {
    margin-bottom: 2rem;
}

.type-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-icon svg {
    width: 40px;
    height: 40px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 1.5;
}

.pyme-type h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.type-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.pyme-type-features h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pyme-type-features ul {
    list-style: none;
}

.pyme-type-features li {
    color: var(--text-secondary);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pyme-type-features li:last-child {
    border-bottom: none;
}

.pymes-modules-section {
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.pymes-modules-section h3 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pymes-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pyme-module-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pyme-module-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-pink);
    background: rgba(233, 30, 140, 0.05);
    box-shadow: 0 15px 40px rgba(233, 30, 140, 0.1);
}

.module-icon-large {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-icon-large svg {
    width: 48px;
    height: 48px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 1.5;
}

.pyme-module-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.pyme-module-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive para nuevas secciones */
@media (max-width: 768px) {

    .verticales-grid,
    .pricing-grid,
    .saas-modules-grid,
    .model-grid,
    .market-stats,
    .pymes-types,
    .pymes-modules-grid,
    .modules-grid-providers,
    .benefits-list {
        grid-template-columns: 1fr;
    }

    .price-large {
        font-size: 2rem;
    }

    .market-info h3 {
        font-size: 1.8rem;
    }

    .saas-features-highlight {
        grid-template-columns: 1fr;
    }

    .diagram-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .agentes-benefits {
        margin-top: 3rem;
    }

    .benefits-grid-agentes {
        grid-template-columns: 1fr;
    }
}

/* Agentes de IA Section */
.agentes-section {
    padding: 8rem 3rem;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.agentes-benefits {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.agentes-benefits h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.benefits-grid-agentes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-purple);
    background: rgba(138, 104, 255, 0.05);
    box-shadow: 0 20px 50px rgba(138, 104, 255, 0.15);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 40px;
    height: 40px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 1.5;
}

.benefit-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CHAT WIDGET STYLES ===== */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-launcher:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}

.chat-launcher:active {
    transform: scale(0.95);
}

.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    animation: slideUp 0.3s ease-out;
}

@media (max-width: 500px) {
    .chat-widget {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        bottom: 90px;
    }
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.chat-header-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    position: relative;
}

.chat-header-subtitle {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
}

.chat-messages {
    padding: 12px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
    max-height: 320px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.msg {
    margin-bottom: 12px;
    display: flex;
    animation: slideUp 0.2s ease-out;
}

.msg.user {
    justify-content: flex-end;
}

.msg.bot {
    justify-content: flex-start;
}

.bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.bubble:hover {
    transform: translateY(-1px);
}

.msg.user .bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.msg.bot .bubble {
    background: #ffffff;
    color: #1f2937;
    border-bottom-left-radius: 4px;
    border: 1px solid #e5e7eb;
}

.chat-input {
    border-top: 1px solid #e5e7eb;
    padding: 14px 16px;
    background: #ffffff;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.chat-input input[type="text"] {
    flex: 1;
    min-width: 0;
    border-radius: 24px;
    border: 2px solid #e5e7eb;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: #f9fafb;
}

.chat-input input[type="text"]:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-input button {
    border-radius: 50%;
    border: none;
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 17px;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    flex-shrink: 0;
}

.chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chat-input button:active {
    transform: translateY(0);
}

.chat-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#chatSend {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    font-size: 20px;
}

.recording {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    animation: pulse 1.5s ease-in-out infinite;
}

.recording::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.5);
    animation: ripple 1.5s ease-out infinite;
}

.recording-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.recording-indicator.active {
    display: flex;
}

.recording-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    animation: pulse 1s ease-in-out infinite;
}

.recording-time {
    margin-left: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.typing {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 4px;
}

.clear-chat-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.clear-chat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

.clear-chat-btn:active {
    transform: rotate(180deg) scale(0.9);
}

.icon-svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-mic {
    width: 18px;
    height: 18px;
}

.icon-send {
    width: 18px;
    height: 18px;
}

.icon-file {
    width: 18px;
    height: 18px;
}