/* ========================================================================= */
/* 0. Variables y Reseteo Base */
/* ========================================================================= */
:root {
    /* Paleta de Colores (Naucara) */
    --color-primary: #0A192F; /* Azul Marino Oscuro (Fondo/Texto Principal) */
    --color-secondary: #4CAF50; /* Verde Esmeralda (Accento de éxito) */
    --color-accent: #D32F2F; /* Rojo Rubí (Accento de energía) */
    --color-text-light: #F7F7F7; /* Gris Claro (Fondo Light) */
    --color-text-dark: #333333; /* Texto principal */
    --color-bg-dark: #122847; /* Azul más oscuro para fondo de sección */

    /* Tipografía */
    --font-primary: 'Inter', sans-serif;
    --font-weight-regular: 300;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Previene scroll horizontal por animaciones */
    background-color: #ffffff;
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-text-light);
}

.bg-dark {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}
.bg-dark .section-title {
    color: var(--color-text-light);
}

/* ========================================================================= */
/* 1. Tipografía y Encabezados */
/* ========================================================================= */

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-primary);
}

h4 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
}

/* ========================================================================= */
/* 2. Botones y CTAs (Ultra-moderno) */
/* ========================================================================= */

.cta-primary, .cta-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px; /* Borde sutilmente redondeado */
    font-weight: var(--font-weight-bold);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-primary {
    background-color: var(--color-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.cta-primary:hover {
    background-color: #388E3C; /* Tono más oscuro de verde */
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
    transform: translateY(-2px);
}

.cta-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.cta-secondary.ghost {
    border-color: var(--color-text-light);
    color: var(--color-text-light);
}

.cta-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

.cta-secondary.ghost:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}


/* ========================================================================= */
/* 3. Header y Navegación */
/* ========================================================================= */

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

nav a {
    margin-left: 25px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-dark);
}
nav a:hover {
    color: var(--color-secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#lang-toggle {
    background: var(--color-text-light);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    transition: background 0.3s;
}

#lang-toggle:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
}

/* ========================================================================= */
/* 4. Hero Section */
/* ========================================================================= */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 50px;
    background: linear-gradient(135deg, var(--color-text-light) 0%, #ffffff 70%); /* Gradiente sutil */
}

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

.headline {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out; /* Animación sutil */
}

.subheadline {
    font-size: 1.3rem;
    color: var(--color-text-dark);
    margin-bottom: 40px;
    font-weight: var(--font-weight-regular);
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.tech-stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}

.badge {
    background-color: var(--color-bg-dark); /* Color de fondo tech oscuro */
    color: var(--color-text-light);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ========================================================================= */
/* 5. Servicios (Grid de Tarjetas) */
/* ========================================================================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Sombra suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-primary);
    min-height: 280px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-card.highlight {
    border-top-color: var(--color-accent); /* Borde Rojo Rubí para Contpaqi */
}

.service-card h4 {
    margin-bottom: 15px;
    color: var(--color-primary);
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.service-card ul li::before {
    content: '✓'; /* Icono de check moderno */
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: var(--font-weight-bold);
}

.service-card .tag {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: var(--font-weight-medium);
}

/* ========================================================================= */
/* 6. Industrias */
/* ========================================================================= */

.industry-grid {
    display: flex;
    gap: 30px;
    text-align: center;
}

.industry-item {
    flex: 1;
    padding: 30px;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--color-primary);
}

.industry-item.special {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-bottom-color: var(--color-secondary);
}

.industry-item.special h4 {
    color: var(--color-secondary);
}

.industry-item h4 {
    margin-bottom: 15px;
    color: var(--color-primary);
}

.industry-item.special h4 {
    color: var(--color-secondary);
}

/* ========================================================================= */
/* 7. Proceso de Trabajo */
/* ========================================================================= */

.process-flow {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 40px 0;
}

/* Línea de tiempo moderna */
.process-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: var(--color-text-light);
    z-index: 1;
}

.process-step {
    flex: 1;
    max-width: 180px;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-secondary);
    color: white;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
    border: 3px solid white;
}

.process-step h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* ========================================================================= */
/* 8. CTA Final (Formulario) */
/* ========================================================================= */

.cta-final {
    background-color: var(--color-bg-dark);
}

.cta-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

.cta-text {
    flex: 1;
    max-width: 450px;
}

.cta-text p {
    margin-bottom: 25px;
}

.whatsapp-link {
    background-color: #25D366; /* Color de WhatsApp */
    border-color: #25D366;
    color: white;
}
.whatsapp-link:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 350px;
}

.contact-form h4 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact-form input, .contact-form select, .contact-form textarea, .contact-form button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.contact-form button.submit-btn {
    margin-top: 10px;
}

.form-note {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
}

/* ========================================================================= */
/* 9. FAQs (Acordeón) */
/* ========================================================================= */

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

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: block;
    width: 100%;
    text-align: left;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    border: none;
    background-color: transparent;
    cursor: pointer;
    color: var(--color-primary);
    position: relative;
    border-bottom: 1px solid #eee;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    transition: transform 0.3s;
}

.faq-question.active::after {
    content: '-';
    transform: rotate(0deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding-bottom: 15px;
}

/* ========================================================================= */
/* 10. Footer */
/* ========================================================================= */

footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 40px 0;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

footer h4 {
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.contact-info p, .legal-links a {
    margin-bottom: 8px;
    display: block;
}

footer a {
    color: var(--color-text-light);
}

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

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #999;
}


/* ========================================================================= */
/* 11. Media Queries (Responsividad) */
/* ========================================================================= */

@media (max-width: 900px) {
    .cta-flex {
        flex-direction: column;
        text-align: center;
    }
    .cta-text {
        max-width: 100%;
    }
    .cta-text .whatsapp-link {
        display: block;
        width: 80%;
        margin: 0 auto 30px auto;
    }
    .contact-form {
        min-width: unset;
        width: 100%;
    }
    .process-flow {
        flex-wrap: wrap;
        justify-content: center;
    }
    .process-flow::before {
        display: none; /* Oculta la línea horizontal en móviles */
    }
    .process-step {
        width: 50%;
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    .headline {
        font-size: 2.5rem;
    }
    .subheadline {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .nav-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    nav {
        order: 2;
        margin-top: 15px;
    }
    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    .hero-ctas {
        flex-direction: column;
    }
    .process-step {
        width: 100%;
        max-width: 100%;
    }
    .industry-grid {
        flex-direction: column;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .legal-links a {
        margin-bottom: 15px;
    }
}