:root {
    --primary: #2563EB; /* Azul Eléctrico */
    --primary-dark: #1E40AF;
    --secondary: #06B6D4; /* Cian Tech */
    --dark: #0F172A; /* Azul Marino Profundo */
    --light: #F8F9FA;
    --text: #334155;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

a { text-decoration: none; }
ul { list-style: none; }

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

/* --- Navbar Styles Actualizados --- */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    z-index: 1001; /* Asegura que el logo quede sobre el menú móvil */
}
.logo .highlight { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a.nav-link {
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

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

/* Botón Hamburguesa (Oculto en Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Buttons */
.btn {
    padding: 1.0rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

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

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

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 90vh; /* Altura del viewport */
    overflow: hidden;
    color: var(--white);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
}

.slide.active { opacity: 1; }

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-content2 h2 {
    font-size: 3.0rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group { gap: 2rem; display: flex; justify-content: center;}

/* Slider Controls */
/* .prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.prev-slide:hover, .next-slide:hover { background: rgba(255,255,255,0.3); }
.prev-slide { left: 20px; }
.next-slide { right: 20px; } */

/* Timeline Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}
.dot.active { background: var(--secondary); transform: scale(1.2); }

.timeline-bar {
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: var(--secondary);
    /* Animación definida en JS para reiniciarse */
}

/* Problem Section */
.problem-section {
    padding: 5rem 0;
    background: var(--white);
    text-align: center;
}

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

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

.card-problem {
    padding: 2rem;
    border-radius: 10px;
    background: var(--light);
    transition: var(--transition);
}
.card-problem:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.icon-lg {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    background: var(--dark); /* Contraste fuerte */
    color: var(--white);
}

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

.price-card {
    background: var(--white);
    color: var(--text);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
}

.price-card:hover { transform: translateY(-10px); }

.price-card.recommended {
    border: 3px solid var(--secondary);
    transform: scale(1.05);
}
.price-card.recommended:hover { transform: scale(1.08); }

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.card-header {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header h3 { font-size: 1.8rem; color: var(--dark); }
.ideal-for { color: #666; font-size: 0.9rem; margin-top: 0.5rem; }

.features-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.features-list i { color: var(--secondary); }

.full-width {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 1.5rem;
}
.price-card .btn-outline {
    color: var(--primary);
    border-color: var(--primary);
}
.price-card .btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Process Section */
.process-section {
    padding: 5rem 0;
}
.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--dark);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

/* Footer */
footer {
    background: #0b1120;
    color: #94a3b8;
    padding: 4rem 0 0 0;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
footer h3 { color: var(--white); margin-bottom: 1rem; }
footer h4 { color: var(--white); margin-bottom: 1rem; }
footer ul li { margin-bottom: 0.5rem; }
footer a { color: #94a3b8; transition: var(--transition); }
footer a:hover { color: var(--secondary); }

.copyright {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* Floating Buttons */
.float-btn {
    position: fixed;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.whatsapp-btn {
    bottom: 20px;
    background: #25D366;
}
.whatsapp-btn:hover { background: #20BA56; transform: scale(1.1); }

.top-btn {
    bottom: 90px;
    background: var(--dark);
    font-size: 1.5rem;
    opacity: 0; /* Oculto por defecto */
    pointer-events: none;
}
.top-btn.show { opacity: 1; pointer-events: auto; }
.top-btn:hover { background: var(--primary); }

/* Modal Privacy Policy */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideDown 0.4s ease;
}

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-modal:hover { color: #000; }

.modal-body p { margin-bottom: 1rem; color: #4b5563; font-size: 0.95rem; }
/* --- Responsive Navbar (Móvil) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Mostrar hamburguesa */
    }

    .nav-links {
        position: absolute;
        top: 100%; /* Justo debajo del navbar */
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        
        /* Estado inicial: Oculto y desplazado hacia arriba */
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none; /* No clickeable cuando está oculto */
        transition: all 0.3s ease;
    }

    /* Estado Activo (Clase añadida por JS) */
    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a.nav-link {
        display: block;
        padding: 10px 0;
        font-size: 1.2rem;
    }

    /* Ajuste del botón CTA en móvil */
    .nav-cta {
        margin-top: 10px;
        width: 80%; /* Botón ancho en móvil */
        text-align: center;
    }

    /* Animación de Hamburguesa a "X" */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- Sección FAQs --- */
.faq-section {
    padding: 5rem 0;
    background-color: var(--light); /* Fondo claro para contraste */
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--secondary); /* Borde cian al pasar el mouse */
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

/* Estado Activo (Abierto) */
.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg); /* Gira la flecha */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 1.5rem;
    background-color: var(--white);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}
/* --- Sección Quiénes Somos --- */
.about-section {
    padding: 6rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-badge {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.1); /* Azul muy suave */
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.about-content .section-title {
    text-align: left; /* Alineación izquierda específica para esta sección */
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.about-content p {
    color: var(--text);
    margin-bottom: 1rem;
}

.about-visual {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-visual i {
    font-size: 10rem;
    color: #f1f5f9; /* Gris muy claro para fondo */
    text-shadow: 0 0 0 rgba(0,0,0,0); /* Reset shadow */
    background: -webkit-linear-gradient(45deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

/* --- Sección Propuesta de Valor (CTA) --- */
.value-prop-section {
    padding: 4rem 0 6rem 0; /* Espacio antes del footer */
    background-color: var(--white);
}

.value-card {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

/* Efecto de fondo abstracto sutil */
.value-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
}

.value-card h2, .value-card p, .value-card .cta-wrapper {
    position: relative;
    z-index: 1;
}

.value-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.value-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1;
}

.highlight-text {
    color: var(--secondary); /* Cian para resaltar la fórmula */
    font-weight: 700;
    display: block;
    margin-top: 0.5rem;
}

/* Botón especial brillante */
.btn-secondary-glow {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    display: inline-block;
}

.btn-secondary-glow:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

/* Responsive ajustes */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .about-content .section-title {
        text-align: center;
    }

    .about-visual i {
        font-size: 6rem;
    }

    .value-card {
        padding: 3rem 1.5rem;
    }
    
    .value-card h2 {
        font-size: 1.5rem;
    }
}
/* --- Sección de Contacto --- */
.contact-section {
    padding: 5rem 0;
    background-color: var(--light);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text);
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Estilos del Formulario Tech --- */
.contact-form-wrapper {
    flex: 1;
    min-width: 320px;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary);
}

.tech-form .form-group {
    margin-bottom: 1.5rem;
}

.tech-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: var(--transition);
}

.tech-form input,
.tech-form select,
.tech-form textarea {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem; /* Padding izq para el icono */
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    background: #f8fafc;
    transition: var(--transition);
}

.tech-form textarea {
    padding-left: 1rem; /* Sin icono en textarea */
    resize: vertical;
}

/* Estado Focus (Al escribir) */
.tech-form input:focus,
.tech-form select:focus,
.tech-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tech-form input:focus + i, 
.input-icon-wrap input:focus ~ i, /* Selector para colorear el icono */
.input-icon-wrap select:focus ~ i {
    color: var(--primary);
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    .contact-form-wrapper {
        width: 100%;
        padding: 1.5rem;
    }
}
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    /* Sombra suave para que el logo destaque si tiene fondo oscuro */
    box-shadow: var(--shadow-md);
    /* Opcional: si el logo es muy oscuro, un borde sutil ayuda */
    border: 1px solid #e5e7eb; 
}