/* CSS Stylesheet for Crédito Inteligente */

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0d233a;
    --navy-light: #163654;
    --gold: #b89752;
    --gold-light: #c5a059;
    --bg-light: #f8f9fa;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --white: #ffffff;
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.small-container {
    max-width: 580px;
}

/* Typography Helpers */
a {
    text-decoration: none;
    color: inherit;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
}

.btn-primary {
    background-color: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--navy-light);
}

.btn-primary-dark {
    background-color: var(--navy);
    color: var(--white);
    font-size: 1rem;
    padding: 12px;
}

.btn-primary-dark:hover {
    background-color: var(--navy-light);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-dark);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--navy);
}

.btn-outline-dark {
    border: 2px solid var(--navy);
    color: var(--navy);
    background: transparent;
}

.btn-outline-dark:hover {
    background-color: var(--navy);
    color: var(--white);
}

/* Top Navbar Navbar */
.navbar {
    background-color: var(--white);
    border-bottom: 1px solid #edf2f7;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.brand-sub {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* Hero Display Area */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 90px 0;
    position: relative;
    align-self: stretch; /* Se estira a todo el ancho disponible del padre */
    width: 100%;        /* Asegura el ancho completo */
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content .badge {
    display: inline-block;
    background-color: rgba(184, 151, 82, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #cbd5e0;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Interactive Card Mimic Visual */
.hero-card-visual {
    display: flex;
    justify-content: center;
}

.fin-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.card-header-glow {
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.metric-label {
    font-size: 0.95rem;
    color: #a0aec0;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.metric-value.deleted {
    text-decoration: line-through;
    color: #e53e3e;
    font-size: 1.1rem;
}

.metric-value.highlighted {
    color: #48bb78;
    font-size: 1.65rem;
}

.card-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.08);
    margin: 24px 0 16px 0;
}

.card-footnote {
    font-size: 0.75rem;
    color: #a0aec0;
    text-align: center;
    line-height: 1.4;
}

/* Solutions Grid Section */
.solutions {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--navy);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(13,35,58,0.04);
    border-color: var(--gold);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Benefits Grid layouts */
.benefits {
    padding: 90px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.benefits-text h2 {
    font-size: 2.25rem;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.lead-p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.list-icon {
    background-color: rgba(184, 151, 82, 0.1);
    color: var(--gold);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefits-box {
    background-color: var(--bg-light);
    border-radius: 16px;
    padding: 40px;
    border-left: 4px solid var(--gold);
}

.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.8;
    line-height: 1;
}

.process-step h4 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 6px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Lead Forms Capture Area */
.contact {
    padding: 10px 0;
    background-color: var(--bg-light);
}

.contact-box {
    background-color: var(--white);
    border-radius: 16px;
    padding: 44px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.contact-box h2 {
    font-size: 2.25rem;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-buttons {
    margin-bottom: 28px;
}

.divider-text {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
}

.divider-text::before, .divider-text::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.divider-text::before { margin-right: 16px; }
.divider-text::after { margin-left: 16px; }

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--navy);
}

/* Footer Section */
footer {
    background-color: var(--navy);
    color: #a0aec0;
    padding: 48px 0;
    font-size: 0.85rem;
    border-top: 4px solid var(--gold);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.footer-content .disclaimer {
    max-width: 820px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #718096;
}

.footer-links a {
    color: var(--gold-light);
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Structural Breakpoints */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .contact-box {
        padding: 32px 20px;
    }
}

/* --- Estilos del Banner Deslizante --- */
.refinance-banner {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.swiper {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(13, 35, 58, 0.1);
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.banner-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
    min-height: 400px;
    color: var(--white);
}

.slide-content {
    max-width: 700px;
    margin: 0 auto; /* Centra el bloque dentro del slide */
    text-align: center;
}

.slide-badge {
    background-color: var(--gold);
    color: var(--navy);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
}

.slide-content h2 {
    font-size: 2.2rem;
    color: var(--gold-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #e2e8f0;
}

.highlight-text {
    font-weight: 700;
    color: var(--white) !important;
    font-size: 1.4rem !important;
}

.slide-content ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente los elementos <li> */
    text-align: center;
}

.slide-content li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    position: relative;
}

.slide-content li::before {
    content: "•";
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.check-list li::before {
    display: none;
}

.benefits-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.benefits-grid span {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.small-text {
    font-size: 0.9rem !important;
    color: var(--gold-light) !important;
    font-style: italic;
}

/* Cambiar color de flechas y puntos de Swiper a Dorado */
.swiper-button-next, .swiper-button-prev {
    color: var(--gold) !important;
}
.swiper-pagination-bullet-active {
    background-color: var(--gold) !important;
}
.swiper-pagination-bullet {
    background-color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .slide-content h2 { font-size: 1.8rem; }
    .banner-slide { padding: 50px 20px; min-height: 450px; }
    .benefits-grid { flex-direction: column; gap: 10px; }
}