/* ==========================================================================
   Configuración General y Variables
   ========================================================================== */
:root {
    --primary-color: #0d2c54;
    --secondary-color: #007bff;
    --text-color: #333333;
    --light-text-color: #ffffff;
    --background-color: #ffffff;
    --light-gray-bg: #f8f9fa;
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Estilos Generales y Header
   ========================================================================== */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem 5%; 
    background-color: var(--background-color); 
    box-shadow: var(--box-shadow); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.logo img { 
    height: 45px; 
}
.nav-links { 
    list-style: none; 
    display: flex; 
    margin: 0; 
    padding: 0; 
}
.nav-links li { 
    padding: 0 1.2rem; 
}
.nav-links a { 
    text-decoration: none; 
    color: var(--text-color); 
    font-weight: bold; 
    font-size: 1rem; 
    transition: color 0.3s ease; 
}
.nav-links a:hover { 
    color: var(--secondary-color); 
}
.cta-button { 
    background-color: var(--secondary-color); 
    color: var(--light-text-color); 
    padding: 0.7rem 1.5rem; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: background-color 0.3s ease, transform 0.2s ease; 
}
.cta-button:hover { 
    background-color: var(--primary-color); 
    transform: translateY(-2px); 
}

.hero-section { 
    background: linear-gradient(rgba(13, 44, 84, 0.8), rgba(13, 44, 84, 0.8)), url('hero-background.png'); 
    background-size: cover; 
    background-position: center; 
    color: var(--light-text-color); 
    text-align: center; 
    padding: 7rem 5%; 
}
.hero-content h1 { 
    font-size: 3rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
}
.hero-content p { 
    font-size: 1.25rem; 
    max-width: 800px; 
    margin: 0 auto 2.5rem auto; 
    color: rgba(255, 255, 255, 0.9); 
}
.hero-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 1rem; 
}
.secondary-button { 
    background-color: transparent; 
    color: var(--light-text-color); 
    padding: 0.7rem 1.5rem; 
    border: 2px solid var(--light-text-color); 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: background-color 0.3s, color 0.3s, transform 0.2s ease; 
}
.secondary-button:hover { 
    background-color: var(--light-text-color); 
    color: var(--primary-color); 
    transform: translateY(-2px); 
}

section { 
    padding: 5rem 5%; 
    text-align: center; 
}
section h2 { 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem; 
    color: var(--primary-color); 
}
section > p { 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
    margin-bottom: 4rem; 
    font-size: 1.1rem; 
    color: #555; 
}

/* ==========================================================================
   Secciones de Contenido (Problema, Solución, etc.)
   ========================================================================== */
.problem-section { 
    background-color: var(--light-gray-bg); 
}
.problem-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
}
.problem-card { 
    background: var(--background-color); 
    padding: 2.5rem; 
    border-radius: 8px; 
    box-shadow: var(--box-shadow); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.problem-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); 
}
.problem-card img { 
    height: 50px; 
    margin-bottom: 1rem; 
}
.problem-card h3 { 
    font-size: 1.4rem; 
    margin-bottom: 0.5rem; 
    color: var(--primary-color); 
}

.solution-section { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: center; 
    text-align: left; 
}
.solution-content ul { 
    list-style: none; 
    padding: 0; 
    margin-top: 2rem; 
}
.solution-content li { 
    padding-left: 2rem; 
    position: relative; 
    margin-bottom: 1rem; 
    font-size: 1.1rem; 
}
.solution-content li::before { 
    content: '✔'; 
    font-size: 1.5rem; 
    color: var(--secondary-color); 
    position: absolute; 
    left: 0; 
    top: 0; 
}
.solution-image img { 
    max-width: 100%; 
    border-radius: 8px; 
    box-shadow: var(--box-shadow); 
}

.benefits-section { 
    background-color: var(--light-gray-bg); 
}
.benefits-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; 
}
.benefit-card { 
    background-color: var(--primary-color); 
    color: var(--light-text-color); 
    padding: 2.5rem; 
    border-radius: 8px; 
    transition: transform 0.3s ease; 
}
.benefit-card:hover { 
    transform: scale(1.05); 
}
.benefit-card h3 { 
    font-size: 1.4rem; 
    margin-bottom: 0.5rem; 
    color: var(--light-text-color); 
}
.benefit-card p { 
    color: var(--light-text-color); 
}

.steps-container { 
    display: flex; 
    justify-content: space-between; 
    gap: 2rem; 
    margin-top: 3rem; 
    text-align: center; 
}
.step { 
    flex-basis: 23%; 
}
.step span { 
    display: inline-block; 
    width: 50px; 
    height: 50px; 
    line-height: 50px; 
    border-radius: 50%; 
    background-color: var(--secondary-color); 
    color: var(--light-text-color); 
    font-weight: bold; 
    font-size: 1.8rem; 
    margin-bottom: 1rem; 
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4); 
}
.step h3 { 
    font-size: 1.3rem; 
    color: var(--primary-color); 
}

.final-cta-section { 
    background: linear-gradient(rgba(13, 44, 84, 0.9), rgba(13, 44, 84, 0.9)); 
    color: var(--light-text-color); 
}
.final-cta-section h2 { 
    color: var(--light-text-color); 
}
.final-cta-section p { 
    color: rgba(255, 255, 255, 0.9); 
}
.final-cta-section .cta-button { 
    background-color: var(--light-text-color); 
    color: var(--primary-color); 
    font-size: 1.1rem; 
    padding: 1rem 2rem; 
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { 
    background-color: #333333; 
    color: var(--light-text-color); 
    padding: 4rem 5% 2rem; 
}
.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    gap: 2rem; 
    margin-bottom: 3rem; 
    text-align: left; 
}
.footer-logo { flex: 1; }
.footer-contact, .footer-links { flex: 1; }
.footer-logo img { max-width: 200px; margin-bottom: 1rem; }
.footer h4 { margin-bottom: 1rem; font-size: 1.1rem; }
.footer a { color: var(--light-text-color); text-decoration: none; transition: color 0.3s ease; }
.footer a:hover { color: var(--secondary-color); }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-bottom { text-align: center; border-top: 1px solid #555; padding-top: 2rem; margin-top: 2rem; font-size: 0.9rem; }

/* ==========================================================================
   Menú Móvil Hamburguesa - FIXED
   ========================================================================== */
.hamburger-menu { display: none; }

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    z-index: 1005;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.is-active {
    right: 0;
}

.mobile-nav .close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    width: 80%;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
    background-color: rgba(13, 44, 84, 0.1);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-nav-overlay.is-active {
    display: block;
}

/* ==========================================================================
   Estilos de Carrusel y Responsividad
   ========================================================================== */
.carousel-container.mobile-only { display: none; }

@media (max-width: 992px) {
    .solution-section { grid-template-columns: 1fr; text-align: center; }
    .solution-section .solution-content { text-align: center; }
    .steps-container { flex-direction: column; align-items: center; }
    .step { width: 80%; }
}

@media (max-width: 768px) {
    .nav-links, .navbar .cta-button { display: none; }
    .hero-content h1 { font-size: 2.2rem; }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 2rem;
        height: 2rem;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1010;
    }
    .hamburger-line { width: 2rem; height: 0.25rem; background: var(--primary-color); border-radius: 10px; transition: all 0.3s linear; }
    .hamburger-menu.is-active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger-menu.is-active .hamburger-line:nth-child(2) { opacity: 0; }
    .hamburger-menu.is-active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

    .problem-grid, .benefits-grid, .steps-container { display: none; }
    .carousel-container.mobile-only { display: block; position: relative; overflow: hidden; }

    .carousel-track { display: flex; transition: transform 0.3s ease-in-out; }
    .carousel-slide { width: 100%; flex-shrink: 0; box-sizing: border-box; padding: 0 0.5rem; }
    
    .how-it-works-section .carousel-slide.step { flex-basis: 100%; background-color: transparent; box-shadow: none; padding: 1rem; }
    .how-it-works-section .carousel-slide.step span { font-size: 1.2rem; width: 40px; height: 40px; line-height: 40px; }
    
    .carousel-nav { display: flex; justify-content: center; gap: 12px; padding: 1.5rem 0; }
    .carousel-dot { border: none; width: 10px; height: 10px; background: #ccc; border-radius: 50%; padding: 0; cursor: pointer; transition: background-color 0.3s ease; }
    .carousel-dot.active { background: var(--secondary-color); }

    .problem-card p { color: #495057; }
    .benefit-card p { color: rgba(255, 255, 255, 0.9); }

    .footer-content { flex-direction: column; align-items: center; text-align: center; }
}