/* Generales y Reset */
:root {
    --primary-color: #3f51b5; /* Azul profundo */
    --secondary-color: #ff9800; /* Naranja vibrante */
    --text-color: #333;
    --light-text-color: #666;
    --background-light: #f4f7f6;
    --background-dark: #2c3e50; /* Azul oscuro para footer */
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: 0 4px 10px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
}

/* Header */
.main-header {
    background-color: var(--card-bg);
    padding: 15px 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05em;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Botones CTA */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    margin-right: 15px;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6a82fb 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
    flex-wrap: wrap; /* Para responsiveness */
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h2 {
    font-size: 3.5em;
    color: white;
    margin-bottom: 0.2em;
    line-height: 1.1;
}

.hero-content .subtitle {
    font-size: 1.4em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Sections Generales */
section {
    padding: 60px 0;
    text-align: center;
}

section:nth-of-type(even) { /* Fondo alternado para legibilidad */
    background-color: var(--background-light);
}

section h3 {
    font-size: 2.2em;
    margin-bottom: 40px;
}

/* Features Section */
.features-section {
    background-color: var(--card-bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
    /* Simulación de iconos con CSS si no se usa Font Awesome */
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: rgba(63, 81, 181, 0.1);
    margin: 0 auto 20px auto;
}
/* Estilos para los iconos simulados */
.icon-dashboard::before { content: "📊"; } /* Puedes usar emojis o SVGs */
.icon-chatbot::before { content: "💬"; }
.icon-insights::before { content: "💡"; }


.feature-card h4 {
    font-size: 1.4em;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--light-text-color);
    font-size: 0.95em;
}

/* Clients Section */
.clients-section {
    background-color: var(--background-light);
    padding-bottom: 80px;
}

.client-links {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.link-card {
    background-color: white;
    padding: 25px 35px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: center;
    min-width: 250px;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    color: var(--primary-color);
}

.link-card span {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.link-card small {
    display: block;
    font-size: 0.85em;
    color: var(--light-text-color);
}

/* Footer */
.main-footer {
    background-color: var(--background-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 0;
    text-align: center;
    margin-top: auto; /* Empuja el footer hacia abajo */
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-footer p {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsiveness */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }
    .main-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav ul li {
        margin: 0 15px 10px 15px;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h2 {
        font-size: 2.5em;
    }
    .hero-content .subtitle {
        font-size: 1.2em;
    }
    .hero-image {
        margin-top: 40px;
    }
    .cta-buttons {
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .hero-content h2 {
        font-size: 2em;
    }
    .hero-content .subtitle {
        font-size: 1em;
    }
    .client-links .link-card {
        min-width: unset;
        width: 100%;
    }
}

/* En style.css */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

 /* Estilos adicionales para las nuevas secciones */
        .services-section {
            padding: 80px 0;
            background-color: #f8f9fa;
        }
        
        .services-section h3 {
            text-align: center;
            margin-bottom: 50px;
            font-family: 'Poppins', sans-serif;
            font-size: 2.5rem;
            color: #333;
        }
        
        .service-content {
            display: flex;
            align-items: center;
            gap: 50px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .service-text {
            flex: 1;
        }
        
        .service-image {
            flex: 1;
            text-align: center;
        }
        
        .service-image img {
            max-width: 100%;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .service-text h4 {
            font-family: 'Poppins', sans-serif;
            font-size: 1.8rem;
            margin-bottom: 20px;
            color: #333;
        }
        
        .service-text p {
            font-family: 'Inter', sans-serif;
            font-size: 1.1rem;
            line-height: 1.6;
            color: #666;
            margin-bottom: 25px;
        }
        
        .service-features {
            list-style: none;
            padding: 0;
        }
        
        .service-features li {
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
        }
        
        .service-features i {
            color: #4a6cf7;
            margin-right: 10px;
            margin-top: 5px;
        }
        
        .clients-section {
            padding: 80px 0;
            background-color: #fff;
        }
        
        .clients-section h3 {
            text-align: center;
            margin-bottom: 50px;
            font-family: 'Poppins', sans-serif;
            font-size: 2.5rem;
            color: #333;
        }
        
        .client-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .client-card {
            background: #fff;
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .client-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }
        
        .client-icon {
            font-size: 3rem;
            margin-bottom: 20px;
            color: #4a6cf7;
        }
        
        .client-card h4 {
            font-family: 'Poppins', sans-serif;
            font-size: 1.3rem;
            margin-bottom: 10px;
            color: #333;
        }
        
        .client-card p {
            font-family: 'Inter', sans-serif;
            color: #666;
            margin-bottom: 15px;
        }
        
        .client-link {
            display: inline-block;
            color: #4a6cf7;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .client-link:hover {
            text-decoration: underline;
        }
        
        @media (max-width: 768px) {
            .service-content {
                flex-direction: column;
            }
            
            .service-image {
                order: -1;
            }
        }