@media (max-width: 600px) {
    .logo span {
        font-size: 1.1rem !important;
    }
}
/* --- Fix: Más margen superior en móvil para el hero (inicio) --- */
@media (max-width: 600px) {
    .hero {
        padding-top: 8rem !important; /* Mucho más margen superior en móvil */
        min-height: calc(100vh - 3rem) !important; /* Ajusta para evitar solapamiento */
    }
}
        :root {
            --emerald: #10B981;
            --emerald-dark: #047857;
            --blue: #2563EB;
            --blue-dark: #1D4ED8;
            --dark: #1F2937;
            --dark-light: #374151;
            --gray-light: #F9FAFB;
            --white: #FFFFFF;
            --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }

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

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--dark);
            overflow-x: hidden;
        }

        .playfair {
            font-family: 'Playfair Display', serif;
        }

        /* Navigation */
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            padding: 1rem 0;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(16, 185, 129, 0.1);
        }

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

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--emerald);
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--emerald);
        }

        .cta-nav {
            background: var(--emerald);
            color: var(--white) !important;
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            transition: all 0.3s ease;
        }

        .cta-nav:hover {
            background: var(--emerald-dark);
            transform: translateY(-2px);
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            background: linear-gradient(135deg, var(--gray-light) 0%, rgba(16, 185, 129, 0.05) 100%);
            display: flex;
            align-items: center;
            padding-top: 100px;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 200%;
            background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
            animation: float 20s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            50% { transform: translate(-20px, -20px) rotate(5deg); }
        }

        .hero-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .hero-content h1 {
            font-size: 3.5rem;
            line-height: 1.2;
            margin-bottom: 1.5rem;
            color: var(--dark);
        }

        .hero-highlight {
            color: var(--emerald);
            position: relative;
        }

        .hero-highlight::after {
            content: '';
            position: absolute;
            bottom: 5px;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--emerald);
            opacity: 0.3;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: var(--dark-light);
            margin-bottom: 2rem;
            line-height: 1.8;
        }

        .hero-stats {
            display: flex;
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .stat {
            text-align: center;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--emerald);
        }

        .stat-text {
            font-size: 0.9rem;
            color: var(--dark-light);
        }

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

        .btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            cursor: pointer;
            font-size: 1rem;
        }

        .btn-primary {
            background: var(--emerald);
            color: var(--white);
            box-shadow: var(--shadow);
        }

        .btn-primary:hover {
            background: var(--emerald-dark);
            transform: translateY(-3px);
            box-shadow: var(--shadow-xl);
        }

        .btn-secondary {
            background: var(--white);
            color: var(--dark);
            border: 2px solid var(--emerald);
        }

        .btn-secondary:hover {
            background: var(--emerald);
            color: var(--white);
            transform: translateY(-3px);
        }

        .hero-visual {
            position: relative;
        }

        .hero-image {
            width: 100%;
            height: 500px;
            background: linear-gradient(135deg, var(--emerald) 0%, var(--blue) 100%);
            border-radius: 20px;
            box-shadow: var(--shadow-xl);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 6rem;
            position: relative;
            overflow: hidden;
        }

        .floating-cards {
            position: absolute;
            top: -20px;
            right: -20px;
            width: 300px;
            height: 200px;
        }

        .floating-card {
            position: absolute;
            background: var(--white);
            border-radius: 15px;
            padding: 1rem;
            box-shadow: var(--shadow);
            animation: floatCard 6s ease-in-out infinite;
        }

        .floating-card:nth-child(1) {
            top: 0;
            left: 0;
            animation-delay: 0s;
        }

        .floating-card:nth-child(2) {
            top: 60px;
            left: 100px;
            animation-delay: 2s;
        }

        .floating-card:nth-child(3) {
            top: 120px;
            left: 50px;
            animation-delay: 4s;
        }

        @keyframes floatCard {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-10px) rotate(2deg); }
        }

        /* Problems Section */
        .problems {
            padding: 5rem 0;
            background: var(--white);
        }

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

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-title {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: var(--dark);
        }

        .section-subtitle {
            font-size: 1.2rem;
            color: var(--dark-light);
            max-width: 600px;
            margin: 0 auto;
        }

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

        .problem-card {
            background: var(--gray-light);
            padding: 2rem;
            border-radius: 20px;
            border-left: 5px solid #EF4444;
            transition: all 0.3s ease;
        }

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

        .problem-icon {
            width: 60px;
            height: 60px;
            background: rgba(239, 68, 68, 0.1);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            color: #EF4444;
            font-size: 1.5rem;
        }

        .problem-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--dark);
        }

        .problem-text {
            color: var(--dark-light);
            line-height: 1.7;
        }

        /* Solutions Section */
        .solutions {
            padding: 5rem 0;
            background: linear-gradient(135deg, var(--gray-light) 0%, rgba(37, 99, 235, 0.05) 100%);
        }

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

        .solution-card {
            background: var(--white);
            padding: 2.5rem;
            border-radius: 20px;
            box-shadow: var(--shadow);
            border-top: 5px solid var(--emerald);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .solution-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--emerald) 0%, var(--blue) 100%);
        }

        .solution-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-xl);
        }

        .solution-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--emerald) 0%, var(--blue) 100%);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            color: var(--white);
            font-size: 1.8rem;
        }

        .solution-title {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--dark);
        }

        .solution-text {
            color: var(--dark-light);
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }

        .solution-benefits {
            list-style: none;
            margin-bottom: 2rem;
        }

        .solution-benefits li {
            padding: 0.5rem 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--dark-light);
        }

        .solution-benefits li::before {
            content: '✓';
            color: var(--emerald);
            font-weight: bold;
        }

        /* Demo Section */
        .demo {
            padding: 5rem 0;
            background: var(--dark);
            color: var(--white);
        }

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

        .demo-content h2 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
        }

        .demo-tabs {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .demo-tab {
            background: var(--dark-light);
            color: var(--white);
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .demo-tab.active {
            background: var(--emerald);
            transform: scale(1.05);
        }

        .demo-tab:hover {
            background: var(--emerald-dark);
        }

        .demo-interface {
            background: var(--white);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--shadow-xl);
            min-height: 500px;
        }

        .demo-header {
            background: var(--gray-light);
            padding: 1rem 1.5rem;
            border-bottom: 1px solid #E5E7EB;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

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

        .demo-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .demo-dot:nth-child(1) { background: #EF4444; }
        .demo-dot:nth-child(2) { background: #F59E0B; }
        .demo-dot:nth-child(3) { background: var(--emerald); }

        .demo-title {
            color: var(--dark);
            font-weight: 600;
        }

        .demo-content-area {
            padding: 2rem;
            color: var(--dark);
        }

        .demo-panel {
            display: none;
        }

        .demo-panel.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

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

        .chat-message {
            margin-bottom: 1rem;
            padding: 1rem;
            border-radius: 15px;
            max-width: 80%;
        }

        .chat-bot {
            background: var(--emerald);
            color: var(--white);
            margin-right: auto;
        }

        .chat-user {
            background: var(--gray-light);
            color: var(--dark);
            margin-left: auto;
        }

        .dashboard-metrics {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .metric-card {
            background: var(--gray-light);
            padding: 1.5rem;
            border-radius: 15px;
            text-align: center;
        }

        .metric-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--emerald);
        }

        .metric-label {
            font-size: 0.9rem;
            color: var(--dark-light);
        }

        /* Success Cases */
        .success-cases {
            padding: 5rem 0;
            background: var(--white);
        }

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

        .case-card {
            background: var(--gray-light);
            padding: 2rem;
            border-radius: 20px;
            transition: all 0.3s ease;
        }

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

        .case-results {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .case-result {
            text-align: center;
            padding: 1rem;
            background: var(--white);
            border-radius: 10px;
        }

        .case-number {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--emerald);
        }

        .case-text {
            font-size: 0.8rem;
            color: var(--dark-light);
        }

        /* FAQ Section */
        .faq {
            padding: 5rem 0;
            background: var(--gray-light);
        }

        .faq-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .faq-item {
            background: var(--white);
            margin-bottom: 1rem;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

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

        .faq-question:hover {
            background: var(--gray-light);
        }

        .faq-question h3 {
            font-weight: 600;
            color: var(--dark);
        }

        .faq-icon {
            color: var(--emerald);
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }

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

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

        .faq-answer-content {
            padding: 0 1.5rem 1.5rem;
            color: var(--dark-light);
            line-height: 1.7;
        }

        /* Final CTA */
        .final-cta {
            padding: 5rem 0;
            background: linear-gradient(135deg, var(--emerald) 0%, var(--blue) 100%);
            color: var(--white);
            text-align: center;
        }

        .cta-content {
            max-width: 800px;
            margin: 0 auto;
            margin-bottom: 3rem;
        }

        .cta-content h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .form-container {
            max-width: 500px;
            margin: 0 auto;
            background: var(--white);
            padding: 2rem;
            border-radius: 20px;
            box-shadow: var(--shadow-xl);
        }

        .form-group {
            margin-bottom: 1.5rem;
            text-align: left;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--dark);
            font-weight: 500;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            border: 2px solid #E5E7EB;
            border-radius: 10px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--emerald);
        }

        .form-submit {
            width: 100%;
            background: var(--emerald);
            color: var(--white);
            border: none;
            padding: 1rem 2rem;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .form-submit:hover {
            background: var(--emerald-dark);
            transform: translateY(-2px);
        }

        /* Footer */
        .footer {
            background: var(--dark);
            color: var(--white);
            padding: 3rem 0;
            text-align: center;
        }

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

        .footer-section h3 {
            margin-bottom: 1rem;
            color: var(--emerald);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links a {
            color: var(--white);
            text-decoration: none;
            opacity: 0.8;
            transition: opacity 0.3s ease;
        }

        .footer-links a:hover {
            opacity: 1;
            color: var(--emerald);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .hero-container {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .hero-content h1 {
                font-size: 2.5rem;
            }

            .hero-stats {
                justify-content: center;
            }

            .demo-container {
                grid-template-columns: 1fr;
            }

            .problems-grid,
            .solutions-grid,
            .cases-grid {
                grid-template-columns: 1fr;
            }

            .floating-cards {
                display: none;
            }
        }

        /* Animations */
        .animate-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .animate-on-scroll.animated {
            opacity: 1;
            transform: translateY(0);
        }

        /* Loading Animation */
        .loading-dots {
            display: inline-flex;
            gap: 4px;
        }

        .loading-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--emerald);
            animation: loadingDot 1.4s ease-in-out infinite both;
        }

        .loading-dot:nth-child(1) { animation-delay: -0.32s; }
        .loading-dot:nth-child(2) { animation-delay: -0.16s; }

        @keyframes loadingDot {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1); }
        }