/* =========================================================
   PALETA PRINCIPAL – Basada en tu imagen
========================================================= */
:root {
    --verde-oscuro: #0f4d2a;
    --verde-medio: #15723d;
    --verde-claro: #1fa251;
    --amarillo: #ffcc00;
    --amarillo-oscuro: #e6b800;
    --blanco: #ffffff;
    --gris-suave: #f3f3f3;
    --gris-texto: #2b2b2b;
    --sombra-suave: 0 8px 20px rgba(0,0,0,0.12);
}


/* =========================================================
   RESET GENERAL
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--gris-suave);
    color: var(--gris-texto);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1.2rem;
}


/* =========================================================
   ENCABEZADO PREMIUM + MENÚ + WHATSAPP
========================================================= */

.main-header {
    background: linear-gradient(180deg, #0b3824 0%, var(--verde-oscuro) 100%);
    padding: 1rem 0 2rem;
    text-align: center;
    border-bottom: 4px solid var(--amarillo);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0,0,0,.28);
}

/* Contenedor interno */
.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.2rem;
}

.logo-img {
    height: 45px;
    width: 45px;
    object-fit: contain;
    border-radius: 8px; /* opcional */
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blanco);
    white-space: nowrap;
}


/* MENÚ */
.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: .3s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--amarillo);
    border-radius: 4px;
    transition: width .3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* BOTÓN WHATSAPP */
.whatsapp-btn {
    background: var(--amarillo);
    color: var(--verde-oscuro);
    padding: .7rem 1.3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
    transition: .3s ease;
}

.whatsapp-btn i {
    font-size: 1.3rem;
}

.whatsapp-btn:hover {
    background: #ffd644;
    transform: translateY(-3px);
}

/* ESLOGAN */
.tagline {
    margin-top: .5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--amarillo);
    opacity: .9;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1.4rem;
    }
}

@media (max-width: 600px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
}




/* =========================================================
   HERO PRINCIPAL
========================================================= */
.hero {
    position: relative;
    padding: 6rem 1rem 8rem;
    text-align: center;
    color: var(--blanco);
    background: url('img/prestamosparapagina.png') center top / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.597); /* mucho más suave */
    backdrop-filter: blur(0px); /* sin blur para que no apague la imagen */
    z-index: 1;
}


.hero > .container {
    position: relative;
    z-index: 2;
}


.offer-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--amarillo);
    color: var(--verde-oscuro);
    font-weight: 900;
    padding: .8rem 1.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    box-shadow: var(--sombra-suave);
    animation: pulse 2s infinite ease-in-out;
}

.offer-badge i {
    margin-right: .7rem;
    font-size: 1.3rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.hero h2 {
    margin-top: 1.5rem;
    font-size: 2.6rem;
    font-weight: 900;
}


/* AVISO: Área de servicio */
.service-area-notice {
    background-color: rgba(255, 204, 0, .15);
    border: 3px solid var(--amarillo);
    color: var(--blanco);
    padding: 1rem;
    border-radius: 10px;
    margin: 2rem auto 0;
    max-width: 600px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-area-notice i {
    color: var(--amarillo);
    margin-right: .5rem;
    font-size: 1.4rem;
}


/* ICONOS DE CATEGORÍAS */
.collateral-icons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.icon-item {
    background-color: rgba(255,255,255,.15);
    padding: 1.7rem;
    border-radius: 15px;
    width: 140px;
    text-align: center;
    transition: .3s ease;
}

.icon-item:hover {
    transform: translateY(-8px);
    background-color: rgba(255,255,255,.25);
}

.icon-item i {
    font-size: 3rem;
    color: var(--amarillo);
    margin-bottom: .4rem;
}

.icon-item span {
    font-weight: 700;
    font-size: 1rem;
}


/* =========================================================
   FORMULARIO
========================================================= */
.form-section {
    background-color: var(--gris-suave);
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    color: var(--verde-oscuro);
    font-size: 2.4rem;
    font-weight: 900;
}

.section-subtitle {
    max-width: 650px;
    margin: .8rem auto 3rem;
    text-align: center;
    color: var(--gris-texto);
}

.loan-form {
    background-color: var(--blanco);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
}

fieldset {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 1.8rem;
    margin-bottom: 2rem;
}

legend {
    padding: 0 .7rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--verde-oscuro);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    font-weight: 700;
    margin-bottom: .3rem;
}

input, textarea, select {
    width: 100%;
    padding: .8rem .9rem;
    border-radius: 7px;
    border: 1px solid #bbb;
    font-size: 1rem;
    transition: .25s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--verde-medio);
    box-shadow: 0 0 0 3px rgba(21, 114, 61, .22);
}


/* BOTÓN ENVIAR */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--amarillo);
    color: var(--verde-oscuro);
    font-size: 1.3rem;
    font-weight: 900;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: .3s ease;
}

.submit-btn:hover {
    background-color: var(--amarillo-oscuro);
    transform: translateY(-4px);
}


/* =========================================================
   FOOTER
========================================================= */
.main-footer {
    background-color: var(--verde-oscuro);
    color: var(--blanco);
    padding: 3rem 1rem;
    text-align: center;
}

.main-footer h3 {
    font-size: 2rem;
    font-weight: 800;
}

.contact-info {
    margin-top: 1.3rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: .6rem;
    background-color: var(--verde-medio);
    padding: .8rem 1.2rem;
    border-radius: 10px;
    color: var(--blanco);
    text-decoration: none;
    font-weight: 700;
    transition: .3s;
}

.contact-info a:hover {
    background-color: var(--verde-claro);
}

.footer-copy {
    margin-top: 2rem;
    font-size: .9rem;
    opacity: .8;
}


/* =========================================================
   ANIMACIONES SCROLL
========================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: .7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* =========================================================
   SECCIÓN: PRÉSTAMOS
========================================================= */

.prestamos-section {
    padding: 4rem 0;
    background-color: var(--gris-suave);
}

.prestamos-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.prestamo-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--sombra-suave);
    text-align: center;
    transition: .3s ease;
    border-bottom: 4px solid var(--verde-claro);
}

.prestamo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.prestamo-card i {
    font-size: 3rem;
    color: var(--verde-claro);
    margin-bottom: 1rem;
}

.prestamo-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--verde-oscuro);
    margin-bottom: .8rem;
}

.prestamo-card p {
    color: #555;
    font-weight: 500;
}



/* =========================================================
   SECCIÓN: REQUISITOS
========================================================= */

.requisitos-section {
    padding: 4rem 0;
    background-color: var(--blanco);
}

.requisitos-list {
    max-width: 700px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.req-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--gris-suave);
    padding: 1.3rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    transition: .3s;
}

.req-item:hover {
    transform: translateY(-5px);
    background: #ffffff;
}

.req-item i {
    font-size: 1.8rem;
    color: var(--verde-medio);
}

.req-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gris-texto);
}
/* Animación al hacer clic en botones */
.btn-click-anim {
    animation: clickPulse 0.25s ease;
}

@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.92); }
    100% { transform: scale(1); }
}
/* MODO RESPONSIVE — Ocultar menú y botón de header */
@media (max-width: 650px) {

    .nav-menu,
    .whatsapp-btn {
        display: none !important;
    }

    /* Reducir altura del header */
    .main-header {
        padding: 1rem 0 .7rem !important;
    }

    /* Centrar y dejar solo el título */
    .header-container {
        justify-content: center !important;
    }

    /* Dar espacio al slogan */
    .tagline {
        margin-top: .4rem;
    }
}

/* =========================================================
   MENÚ INFERIOR ESTILO PREMIUM AJUSTADO
========================================================= */

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 50, 30, 0.65); /* Más transparente */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-around;
    padding: .5rem 0 .7rem;
    border-top: 3px solid var(--amarillo);
    z-index: 9999;
}

.mobile-nav a {
    color: var(--blanco);
    text-decoration: none;
    font-size: .85rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
}

.mobile-nav a i {
    font-size: 1.2rem;
}

.mobile-nav .solicitar-main {
    background: rgba(255, 204, 0, 0.88); 
    color: var(--verde-oscuro);
    padding: .55rem 1rem; 
    border-radius: 35px;
    font-weight: 800;
    transform: translateY(-15px);
    box-shadow: 0 5px 12px rgba(0,0,0,.25);
    transition: .3s ease;
}

.mobile-nav .solicitar-main i {
    font-size: 1.35rem;
}

.mobile-nav .solicitar-main:hover {
    background: rgba(255, 220, 70, 0.95);
    transform: translateY(-19px);
}
/* Ocultar menú inferior en pantallas grandes */
@media (min-width: 900px) {
    .mobile-nav {
        display: none !important;
    }
}
