body, h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", sans-serif;
}

body, html {
    height: 100%;
    line-height: 1.8;
    margin: 0; 
}

/* ==========================================================================
   ESTILOS BASE / PANTALLAS GRANDES (Mayor a 1020px)
   ========================================================================== */

.navbar-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 2%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 80px;
    box-sizing: border-box;
}

.nav-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #1a202c;
    font-weight: 500;
    font-size: 14px;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #009639;
}

.nav-links a.active {
    color: #009639;
    border-bottom: 2px solid #009639;
}

.whatsapp-btn {
    background-color: #009639;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.whatsapp-btn i{
    font-size: 1.2rem;
}

.whatsapp-btn:hover {
    background-color: #007a2e;
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    padding: 8px 16px;
}

.w3-top.custom-sticky {
    position: sticky !important;
    top: 0;
    z-index: 1000;
}

/* ==========================================================================
   ESTILOS: SECCIÓN PRINCIPAL (HERO) - TEXTO E IMAGEN
   ========================================================================== */
.hero-section {
    background-color: #fafafa;
    padding: 0 0 0 4%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.hero-container {
    max-width: 1300px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0 0 20px;
}

.hero-subtitle {
    color: #009639;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.3rem;
    color: #0c1b33;
    font-weight: 700;
    line-height: 1.15;
    margin: 15px 0 20px 0;
}

.hero-title .text-green {
    color: #009639;
}

.hero-description {
    font-size: 1.05rem;
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0c1b33;
    line-height: 1.2;
}

.feature-item i {
    font-size: 1.8rem;
    color: #009639;
}

.hero-buttons {
    display: flex;
    gap: 75px;
}

.btn-solid {
    background-color: #009639;
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-solid:hover {
    background-color: #007a2e;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #009639;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #009639;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: #e6f4ea;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-self: stretch;
}

.hero-image {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
    mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

/* ==========================================================================
   ESTILOS: SIMULADOR DE CRÉDITO (TARJETA FLOTANTE) COMPACTA
   ========================================================================== */
.simulator-card {
    position: absolute; 
    right: 1.5%; 
    top: 50%;
    transform: translateY(-50%); 
    background-color: white;
    width: 280px; 
    padding: 5px 14px; 
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 10;
}

.sim-title {
    text-align: center;
    color: #0c1b33;
    font-size: 1rem; 
    font-weight: 700;
    margin: 0 0 5px 0; 
}

.sim-group {
    margin-bottom: 1px; 
}

.sim-label {
    display: block;
    font-size: 0.75rem; 
    color: #0c1b33;
    font-weight: 600;
    margin-bottom: 0px; 
}

.sim-value {
    font-size: 0.72rem; 
    font-weight: 700;
    margin-bottom: 5px; 
}

.sim-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px; 
    border-radius: 2px;
    outline: none;
    margin-bottom: 4px;
}

.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px; 
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 2px solid #009639;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.sim-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 2px solid #009639;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sim-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem; 
    color: #718096;
}

.sim-result-box {
    background-color: #e6f4ea;
    border-radius: 8px;
    padding: 10px; 
    text-align: center;
    margin-bottom: 10px; 
}

.sim-result-label {
    font-size: 0.6rem; 
    color: #4a5568;
    margin: 0;
}

.sim-result-value {
    font-size: 0.85rem; 
    color: #0c1b33;
    font-weight: 700;
    margin: 1px 0;
}

.sim-result-note {
    font-size: 0.6rem; 
    color: #718096;
    margin: 0;
}

.btn-simulator {
    width: 100%;
    background-color: #001233; 
    margin-bottom: 7px;
    color: white;
    padding: 6px; 
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.7rem; 
    cursor: pointer;
    transition: 0.3s;
    font-family: "Poppins", sans-serif;
}

.btn-simulator:hover {
    background-color: #1a365d;
}

/* ==========================================================================
   ESTILOS: FRANJA VERDE INFERIOR (BENEFICIOS)
   ========================================================================== */
.benefits-banner {
    background-color: #054a29;
    padding: 40px 4%;
    display: flex;
    justify-content: center;
}

.benefits-container {
    max-width: 1300px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: white;
    flex: 1;
}

.benefit-card i {
    font-size: 2.5rem;
    color: #4ade80; 
}

.benefit-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.benefit-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.5;
}

/* ==========================================================================
   ESTILOS: SECCIÓN PASOS (ASÍ DE FÁCIL ES OBTENER TU CRÉDITO)
   ========================================================================== */
.steps-section {
    background-color: #ffffff; /* Fondo blanco limpio */
    padding: 70px 4%;
    display: flex;
    justify-content: center;
}

.steps-container {
    max-width: 1300px;
    width: 100%;
}

.steps-header {
    text-align: center;
    margin-bottom: 50px;
}

.steps-header h2 {
    font-size: 2rem;
    color: #0c1b33;
    font-weight: 700;
    margin: 0;
}

.header-line {
    width: 40px;
    height: 3px;
    background-color: #009639; /* Subrayado verde */
    margin: 10px auto 0;
    border-radius: 2px;
}

.steps-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.step-wrapper {
    position: relative; /* Para poder poner el circulito con el número en absolutas */
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Circulito verde con número */
.step-number {
    position: absolute;
    top: -14px;
    background-color: #009639;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

/* Tarjeta de cada paso */
.step-card {
    background-color: white;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 35px 20px 25px;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Sombrita sutil */
    box-sizing: border-box;
}

/* Círculo verde claro interno para el icono */
.step-icon {
    width: 60px;
    height: 60px;
    background-color: #e6f4ea; 
    color: #0c1b33; /* Icono oscuro */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto;
    font-size: 1.5rem;
}

.step-card h4 {
    font-size: 1rem;
    color: #0c1b33;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.step-card p {
    font-size: 0.8rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

.step-arrow {
    color: #cbd5e0; /* Flecha gris clara */
    font-size: 1.2rem;
}

/* ==========================================================================
   RESPONSIVIDAD (Adaptación a Celulares y Tablets)
   ========================================================================== */

@media (max-width: 1020px) and (min-width: 600px) {
    .navbar-flex {
        flex-direction: column;
        height: auto;
        padding: 20px 5%;
        gap: 15px;
    }
    .nav-links {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
    .whatsapp-btn {
        width: auto;
        justify-content: center;
    }
    .menu-toggle {
        display: none;
    }
}

@media (max-width: 1020px) {
    .hero-section {
        padding: 0;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        padding: 20px 4% 0;
    }
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-buttons {
        justify-content: center;
        gap: 30px;
    }
    .hero-visual {
        justify-content: center;
        margin-top: 20px;
        flex-direction: column;
        align-items: center;
    }
    .benefits-container {
        flex-wrap: wrap;
    }
    .benefit-card {
        min-width: 45%;
    }
    .hero-image {
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* Ajuste de la tarjeta en tablet/movil */
    .simulator-card {
        position: relative; 
        transform: none;
        top: auto;
        right: auto;
        margin: 20px auto 40px auto; 
        width: 92%; 
        max-width: 440px; 
        padding: 25px 30px; 
    }
    .sim-title { font-size: 1.3rem; margin-bottom: 20px; }
    .sim-group { margin-bottom: 18px; }
    .sim-label { font-size: 0.9rem; margin-bottom: 4px; }
    .sim-value { font-size: 1.5rem; margin-bottom: 10px; }
    .sim-slider { height: 6px; margin-bottom: 6px; }
    .sim-slider::-webkit-slider-thumb { width: 20px; height: 20px; border-width: 3px; }
    .sim-slider::-moz-range-thumb { width: 18px; height: 18px; border-width: 3px; }
    .sim-limits { font-size: 0.8rem; }
    .sim-result-box { padding: 16px; margin-bottom: 20px; }
    .sim-result-label { font-size: 0.9rem; }
    .sim-result-value { font-size: 1.7rem; margin: 4px 0; }
    .sim-result-note { font-size: 0.7rem; }
    .btn-simulator { padding: 14px; font-size: 1rem; margin-bottom: 0; }

    /* Ajuste de la nueva sección PASOS en pantallas menores a 1020px */
    .steps-row {
        flex-wrap: wrap; /* Permite que las tarjetas se apilen */
        gap: 40px 20px; /* Separación vertical y horizontal */
    }
    .step-wrapper {
        min-width: 45%; /* Dos columnas en tablets */
    }
    .step-arrow {
        display: none; /* Escondemos las flechas laterales cuando se apilan */
    }
}

@media (max-width: 600px) {
    .navbar-flex {
        flex-direction: row;
        height: 70px;
        justify-content: space-between;
        align-items: center;
        padding: 10px 4%;
    }
    .navbar-flex .nav-links, 
    .navbar-flex .whatsapp-btn {
        display: none !important;
    }
    .menu-toggle {
        display: inline-block;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    .feature-item {
        text-align: center;
    }
    .hero-buttons {
        flex-direction: column;
        padding: 0 10%;
    }
    .benefit-card {
        min-width: 100%;
    }
    
    /* Ajuste de PASOS en celular */
    .step-wrapper {
        min-width: 100%; /* Una sola columna en celulares */
    }
    .steps-header h2 {
        font-size: 1.6rem; /* Título un poco más pequeño en móviles */
    }
}