/* ========================================= */
/* LANDING: CRÉDITO AUTOMOTRIZ       */
/* CSS independiente para esta landing        */
/* Color dominante: Verde        */
/* ========================================= */

/* ─── Variables ─── */
:root {
    --pri: #1a3c8b;
    --pri-dark: #0d1b3e;
    --pri-light: #e8eeff;
    --accent: #ffcc00;
    --accent-hover: #ffd633;
    --txt: #2d3748;
    --txt-light: #718096;
    --bg: #f7f8fc;
    --white: #ffffff;
    --wa: #25d366;
    --ok: #2ecc71;
    --max-w: 1200px;
    --radius: 14px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    /* Color específico de este crédito */
    --credit-color: #00b894;
    --credit-gradient: linear-gradient(135deg, #00b894, #55efc4);
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'DM Sans', sans-serif; color: var(--txt); line-height: 1.6; background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ─── Utilidades ─── */
.container { width: 90%; max-width: var(--max-w); margin: 0 auto; padding: 0 15px; }
.section { padding: 80px 0; }

.stitle {
    font-family: 'Montserrat', sans-serif; font-size: 2.4rem; font-weight: 800;
    color: var(--pri); text-align: center; margin-bottom: 15px; line-height: 1.15; letter-spacing: -0.02em;
}
.stitle::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent); border-radius: 2px; margin: 12px auto 0; }
.ssub { text-align: center; color: var(--txt-light); font-size: 1.05rem; margin-bottom: 45px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ─── Animaciones ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseWa { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.anim { opacity: 0; }
.anim.visible { animation: fadeUp 0.7s ease-out forwards; }

/* ========================================= */
/* NAV COMPLETO CON HAMBURGUESA              */
/* ========================================= */
nav { background: var(--pri); position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.15); }
.nav-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.logo { font-family: 'Montserrat', sans-serif; font-size: 1.9rem; font-weight: 900; color: var(--white); text-decoration: none; z-index: 1001; position: relative; }
.logo span { color: var(--accent); }

/* Links de navegación */
.nav-links { display: flex; list-style: none; align-items: center; gap: 8px; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 14px; border-radius: 8px; transition: all 0.25s; display: inline-flex; align-items: center; gap: 6px; }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }

/* Botón WhatsApp en nav */
.nav-cta { background: var(--wa) !important; color: var(--white) !important; padding: 8px 20px !important; border-radius: 50px !important; font-weight: 700 !important; }
.nav-cta:hover { background: #1db954 !important; transform: scale(1.03); }

/* Hamburguesa: oculta en desktop */
.menu-toggle { display: none; font-size: 1.4rem; cursor: pointer; background: none; border: none; color: var(--white); z-index: 1001; padding: 5px; }

/* ========================================= */
/* HERO                                      */
/* ========================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 100px 0 50px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,20,50,0.95) 0%, rgba(26,60,139,0.9) 50%, rgba(13,27,62,0.93) 100%); }
.hero-pattern { position: absolute; inset: 0; z-index: 0; opacity: 0.03; background-image: radial-gradient(circle, var(--white) 1px, transparent 1px); background-size: 30px 30px; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-text { color: var(--white); }

/* Badge tipo de crédito */
.tipo-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--pri); padding: 7px 18px; border-radius: 50px; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }

.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.3); color: #6dd5a0; padding: 8px 20px; border-radius: 50px; font-size: 0.88rem; font-weight: 600; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; background: var(--ok); border-radius: 50%; animation: pulseWa 2s infinite; }

.hero-text h1 { font-family: 'Montserrat', sans-serif; font-size: 2.8rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.025em; }
.accent { color: var(--accent); }
.hero-sub { font-size: 1.1rem; line-height: 1.65; color: rgba(255,255,255,0.85); margin-bottom: 25px; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; color: rgba(255,255,255,0.9); }
.pill i { color: var(--accent); font-size: 0.8rem; }

.hero-logos { display: flex; align-items: center; gap: 15px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 10px; }
.hero-logos span { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.hero-logos img { height: 24px; opacity: 0.5; filter: grayscale(100%) brightness(2); }

/* ─── Form card ─── */
.hero-form-col { display: flex; justify-content: flex-end; }
.form-card { background: var(--white); border-radius: var(--radius); width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); overflow: hidden; }
.form-card-top { background: var(--credit-gradient); padding: 22px 28px; text-align: center; }
.form-card-top h2 { font-family: 'Montserrat', sans-serif; color: var(--white); font-size: 1.25rem; font-weight: 700; }
.form-card-top p { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin-top: 4px; }

.form-card form { padding: 22px 28px 10px; }
.fg { margin-bottom: 14px; }
.fg label { display: block; font-weight: 600; font-size: 0.88rem; color: #444; margin-bottom: 5px; }
.fg input, .fg select { width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 15px; font-family: 'DM Sans', sans-serif; transition: all 0.25s; background: var(--white); }
.fg input:focus, .fg select:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(26,60,139,0.1); }

.chk { display: flex; align-items: flex-start; gap: 10px; padding: 0 28px; margin-bottom: 14px; }
.form-card .chk { padding: 0; }
.chk input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; cursor: pointer; accent-color: var(--pri); }
.chk label { font-size: 0.82rem; color: var(--txt-light); line-height: 1.4; cursor: pointer; }
.chk label a { color: var(--pri); font-weight: 600; }

.btn-submit { width: 100%; padding: 13px; background: var(--credit-color); color: var(--white); border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: 'DM Sans', sans-serif; }
.btn-submit:hover { background: var(--pri-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.form-card .btn-submit { margin: 0 28px 8px; width: calc(100% - 56px); }

.form-sep { text-align: center; padding: 8px 28px; position: relative; }
.form-sep span { background: var(--white); padding: 0 12px; color: #bbb; font-size: 0.82rem; position: relative; z-index: 1; }
.form-sep::before { content: ''; position: absolute; top: 50%; left: 28px; right: 28px; height: 1px; background: #e8e8e8; }

.btn-wa-alt { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 28px 22px; padding: 12px; background: var(--wa); color: var(--white); border-radius: 10px; font-weight: 700; font-size: 0.92rem; text-decoration: none; transition: all 0.3s; }
.btn-wa-alt:hover { background: #1db954; transform: translateY(-2px); }

/* ========================================= */
/* FEATURES / BENEFICIOS DEL PRODUCTO        */
/* ========================================= */
.sec-features { background: var(--white); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.feature { background: var(--bg); border-radius: var(--radius); padding: 24px; display: flex; align-items: flex-start; gap: 16px; transition: all 0.3s; border: 1px solid transparent; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(26,60,139,0.1); }

.feature-ico { width: 48px; height: 48px; background: var(--credit-gradient); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white); font-size: 1.1rem; }

.feature h4 { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; color: var(--pri); margin-bottom: 4px; }
.feature p { color: var(--txt-light); font-size: 0.88rem; }

/* ========================================= */
/* PROCESO                                   */
/* ========================================= */
.sec-proceso { background: var(--bg); }
.pasos { display: flex; align-items: flex-start; justify-content: center; gap: 15px; }
.paso { text-align: center; flex: 1; max-width: 260px; padding: 20px; }
.paso-num { width: 44px; height: 44px; background: var(--credit-color); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 800; margin: 0 auto 14px; }
.paso h4 { font-family: 'Montserrat', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--pri); margin-bottom: 6px; }
.paso p { color: var(--txt-light); font-size: 0.88rem; }
.paso-line { width: 50px; height: 2px; background: #dde3f0; margin-top: 40px; flex-shrink: 0; }

/* ========================================= */
/* CTA FINAL                                 */
/* ========================================= */
.sec-cta-final { background: var(--white); padding: 60px 0; }
.cta-box { background: var(--credit-gradient); border-radius: 20px; padding: 50px 40px; text-align: center; color: var(--white); position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; inset: 0; opacity: 0.04; background-image: radial-gradient(circle, var(--white) 1px, transparent 1px); background-size: 20px 20px; }
.cta-box h2 { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-box p { font-size: 1.05rem; color: rgba(255,255,255,0.8); margin-bottom: 25px; position: relative; }
.cta-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; position: relative; }
.btn-cta-primary { background: var(--accent); color: var(--pri); padding: 14px 30px; border-radius: 10px; font-weight: 800; font-size: 1rem; text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-cta-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-cta-wa { background: var(--wa); color: var(--white); padding: 14px 30px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-cta-wa:hover { background: #1db954; transform: translateY(-2px); }

/* ========================================= -->
/* FOOTER COMPACTO                           */
/* ========================================= */
footer { background: var(--pri-dark); color: var(--white); padding: 40px 0 15px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-left p { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 5px; }
.footer-center { display: flex; flex-direction: column; gap: 8px; }
.footer-center span { color: rgba(255,255,255,0.6); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.footer-center i { color: var(--accent); }
.footer-right { display: flex; gap: 12px; align-items: center; }
.footer-right img { height: 28px; opacity: 0.5; filter: grayscale(100%); transition: all 0.3s; }
.footer-right img:hover { opacity: 0.9; filter: grayscale(0); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 15px; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; margin-left: 10px; }
.footer-bottom a:hover { color: var(--accent); }

/* ========================================= */
/* WHATSAPP FLOTANTE                         */
/* ========================================= */
.wa-float { position: fixed; width: 60px; height: 60px; bottom: 28px; right: 28px; background: var(--wa); color: var(--white); border-radius: 50%; font-size: 32px; display: flex; align-items: center; justify-content: center; text-decoration: none; z-index: 10000; box-shadow: 0 4px 15px rgba(37,211,102,0.4); transition: all 0.3s; animation: pulseWa 2s infinite; }
.wa-float:hover { background: #1db954; transform: scale(1.1); color: var(--white); }

/* ========================================= */
/* RESPONSIVE                                */
/* ========================================= */
@media (max-width: 992px) {
    .stitle { font-size: 2rem; }

    /* Menú hamburguesa */
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--pri); padding: 15px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15); z-index: 999;
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: flex; justify-content: center; padding: 14px 20px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-links a:hover { background: rgba(255,255,255,0.1); }
    .nav-cta { margin: 10px 20px; border-radius: 10px !important; justify-content: center; }

    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-badge, .tipo-badge { margin-left: auto; margin-right: auto; }
    .hero-pills { justify-content: center; }
    .hero-logos { justify-content: center; }
    .hero-form-col { justify-content: center; }
    .form-card { max-width: 100%; }
    .features-grid { grid-template-columns: 1fr; }
    .pasos { flex-direction: column; align-items: center; }
    .paso-line { width: 2px; height: 25px; margin: 0; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-center { align-items: center; }
    .footer-right { justify-content: center; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .stitle { font-size: 1.7rem; }
    .hero { padding: 80px 0 40px; }
    .hero-text h1 { font-size: 1.8rem; }
    .form-card-top { padding: 18px 20px; }
    .form-card form { padding: 18px 20px 8px; }
    .form-card .btn-submit { margin: 0 20px 8px; width: calc(100% - 40px); }
    .form-sep { padding: 8px 20px; }
    .form-sep::before { left: 20px; right: 20px; }
    .btn-wa-alt { margin: 0 20px 18px; }
    .cta-box { padding: 35px 25px; }
    .cta-box h2 { font-size: 1.5rem; }
    .wa-float { width: 52px; height: 52px; font-size: 28px; bottom: 20px; right: 20px; }
}