:root {
    --verde-principal: #2E7D32;
    --verde-claro: #66BB6A;
    --cafe: #6D4C41;
    --amarillo: #FBC02D;
    --gris-suave: #F5F5F5;
}

body {
    padding-top: 110px;
}

/* ============================= */
/* ===== NAVBAR NUEVO ========== */
/* ============================= */

.navbar {
    position: fixed;      /* 🔥 Fija arriba */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Navbar transparente (Index) */
.navbar-transparente {
    background: transparent !important;
    box-shadow: none !important;
}

/* Navbar blanco (páginas internas o scroll) */
.navbar-blanco {
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* Navbar cuando menú móvil está abierto */
.menu-abierto {
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* ============================= */
/* ===== LINKS NAVBAR ========== */
/* ============================= */

/* Links en navbar transparente */
.navbar-transparente .nav-link {
    color: #ffffff !important;
}

/* Links en navbar blanco */
.navbar-blanco .nav-link,
.menu-abierto .nav-link {
    color: var(--verde-principal) !important;
}

.nav-link {
    font-weight: 500;
}

.nav-link:hover {
    color: #1b5e20 !important;
}

/* ============================= */
/* ===== TOGGLER =============== */
/* ============================= */

/* Ícono hamburguesa en transparente */
.navbar-transparente .navbar-toggler {
    border-color: #ffffff;
}

.navbar-transparente .navbar-toggler-icon {
    filter: invert(1);
}

/* Ícono normal cuando es blanco */
.navbar-blanco .navbar-toggler-icon,
.menu-abierto .navbar-toggler-icon {
    filter: none;
}

/* ============================= */
/* ===== LOGO =================== */
/* ============================= */

.logo-navbar {
    height: 85px;
    transition: all 0.3s ease;
}

/* ============================= */
/* ===== MENÚ MÓVIL ============ */
/* ============================= */

@media (max-width: 991px) {

    .navbar-collapse {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        text-align: right;
    }

    .navbar-nav {
        align-items: flex-end;
    }

    /* 🔥 FORZAR VERDE EN MÓVIL SIEMPRE */
    .navbar-collapse .nav-link {
        color: var(--verde-principal) !important;
    }

}


/* ============================= */
/* ===== BOTONES =============== */
/* ============================= */

.btn-principal {
    background-color: var(--amarillo);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 6px;
}

.btn-principal:hover {
    background-color: #f9a825;
}

/* ============================= */
/* ===== HERO CON VIDEO ======== */
/* ============================= */

.hero-video {
    position: relative;
    height: 55vh;
    min-height: 420px;
    overflow: hidden;
    padding-top: 110px;
}

.video-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

/* Capa oscura encima del video */
.hero-video::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    top: 0;
    left: 0;
    z-index: -1;
}

.contenido-hero {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: white;
}

/* ============================= */
/* ===== TÍTULO HERO =========== */
/* ============================= */

.titulo-hero {
    font-size: 3rem;
    font-weight: 700;
    color: var(--verde-principal);

    /* Contorno limpio con sombras */
    text-shadow:
        1px 1px 0 #ffffff,
        -1px 1px 0 #ffffff,
        1px -1px 0 #ffffff,
        -1px -1px 0 #ffffff,
        3px 3px 8px rgba(0, 0, 0, 0.6);
}


/* ============================= */
/* ===== SECCIONES ============= */
/* ============================= */

.seccion-gris {
    background-color: var(--gris-suave);
    padding: 60px 0;
}

/* ============================= */
/* ===== TARJETAS ============== */
/* ============================= */

.card {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border: none;
}

/* ============================= */
/* ===== TÍTULOS GENERALES ===== */
/* ============================= */

h1, h2, h3 {
    color: var(--verde-principal);
}

/* ============================= */
/* ===== AJUSTE HERO MÓVIL ===== */
/* ============================= */

/* ============================= */
/* ===== AJUSTE HERO MÓVIL ===== */
/* ============================= */

@media (max-width: 768px) {

    .titulo-hero {
        font-size: 2.2rem;
        line-height: 1.2;
        letter-spacing: 0.5px;

        text-shadow:
            0.5px 0.5px 0 #ffffff,
            -0.5px 0.5px 0 #ffffff,
            0.5px -0.5px 0 #ffffff,
            -0.5px -0.5px 0 #ffffff,
            2px 2px 6px rgba(0, 0, 0, 0.7);
    }

}

@media (max-width: 768px) {
    .hero-interno {
        height: 45vh;
        min-height: 300px;
        padding-top: 110px;
        text-align: center;
    }
}

/* ===== HERO INTERNO ===== */
.hero-interno {
    position: relative;
    height: 50vh;
    min-height: 380px;
    padding-top: 120px; /* espacio para navbar */
    background: url('/assets/hero/hero.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    color: #ffffff;
}

/* Capa oscura encima de la imagen */
.hero-interno::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* nivel de oscurecido */
}

/* Contenido encima de la capa */
.hero-interno .container {
    position: relative;
    z-index: 2;
}

/* Título interno */
.titulo-interno {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ===== BLOQUE DIFERENCIAL ===== */
.bloque-diferencial {
    background: linear-gradient(135deg, #1b5e20, var(--verde-principal));
}

/* ===== TÍTULOS SOBRE FONDO VERDE ===== */

.hero-interno .titulo-interno,
.hero-interno p {
    color: #ffffff !important;
}

/* ===== FORZAR TEXTO BLANCO EN HERO INTERNO ===== */

.hero-interno h1,
.hero-interno h2,
.hero-interno h3,
.hero-interno p {
    color: #ffffff !important;
}

/* ===== TEXTO BLANCO EN BLOQUE DIFERENCIAL ===== */

.bloque-diferencial h1,
.bloque-diferencial h2,
.bloque-diferencial h3,
.bloque-diferencial p {
    color: #ffffff !important;
}

/* ===== ACORDEÓN PERSONALIZADO ===== */

.accordion-button {
    font-weight: 600;
    color: var(--verde-principal);
}

.accordion-button:not(.collapsed) {
    background-color: var(--verde-principal);
    color: #ffffff;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body ul {
    padding-left: 20px;
}

.accordion-body li {
    margin-bottom: 8px;
}

/* ===== SECCIÓN INTRO ===== */
.lead {
    font-size: 1.1rem;
}

/* ===== TARJETAS PROCESO ===== */
.card h5 {
    color: var(--verde-principal);
    font-weight: 600;
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.accordion-button i {
    color: var(--verde-principal);
    font-size: 1.2rem;
}

/* ===== SIMULADOR ===== */

.card-simulador{
    border-radius:15px;
    box-shadow:0 15px 30px rgba(0,0,0,0.08);
    border:none;
}

.btn-azul{
    background:#0d47a1;
    color:white;
    border:none;
}

.btn-azul:hover{
    background:#08306b;
}

.resumen-box{
    background:#f8fbff;
    border-left:5px solid #0d47a1;
    padding:20px;
    border-radius:10px;
    margin-top:20px;
}

.table thead{
    background:#0d47a1;
    color:white;
}

.aviso-legal{
    font-size:13px;
    color:#666;
    margin-top:20px;
}

/* ===== SECCIÓN SIMULADOR MODERNO ===== */

.simulador-section{
    background: linear-gradient(135deg, #f4f8ff, #ffffff);
}

.simulador-card,
.resultado-card{
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: none;
}

/* Inputs modernos */
.input-estilizado{
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-estilizado:focus{
    border-color: #0d47a1;
    box-shadow: 0 0 0 0.2rem rgba(13,71,161,0.15);
}

/* Botón fintech */
.btn-fintech{
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-fintech:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Pago destacado */
.pago-destacado{
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d47a1;
}

/* Resumen */
.resumen-item{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
    font-size: 15px;
}

.resumen-visual {
    margin-top: 25px;
    padding: 15px;
    background: #f4f6f9;
    border-radius: 10px;
}

.barra-contenedor {
    width: 100%;
    height: 30px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    background: #ddd;
    margin-top: 10px;
}

.barra-capital {
    background: #003366;
    width: 0%;
    transition: width 1s ease;
}

.barra-intereses {
    background: #cc0000;
    width: 0%;
    transition: width 1s ease;
}

.leyenda {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 14px;
}

.leyenda .capital {
    color: #003366;
    font-weight: bold;
}

.leyenda .intereses {
    color: #cc0000;
    font-weight: bold;
}

.contacto-section{
    background: #f8fafc;
}

.contacto-card{
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.contacto-card:hover{
    transform: translateY(-4px);
}

.contacto-input{
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid #dbe3ec;
    transition: all 0.3s ease;
}

.contacto-input:focus{
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13,110,253,.15);
}

.btn-fintech{
    background: linear-gradient(90deg, #0d6efd, #084298);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-fintech:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13,110,253,.25);
}

/* ===== BOTÓN WHATSAPP PROFESIONAL ===== */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #0d6efd, #084298);
    color: #fff;
    padding: 14px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-float i {
    font-size: 20px;
}

.whatsapp-text {
    white-space: nowrap;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #198754, #146c43);
}

/* Versión móvil */
@media (max-width: 768px) {
    .whatsapp-text {
        display: none;
    }

    .whatsapp-float {
        padding: 16px;
        border-radius: 50%;
    }
}

/* ===== PÁGINAS LEGALES ===== */

.legal-section {
    background: #f8fafc;
}

.legal-card {
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: none;
}

.legal-card h4 {
    color: var(--verde-principal);
}

.legal-card h5 {
    color: var(--verde-principal);
    margin-top: 25px;
}

.legal-card p {
    line-height: 1.7;
    color: #444;
}

.legal-card ul {
    padding-left: 20px;
}

.legal-card li {
    margin-bottom: 8px;
}

.btn-regresar {
    background: transparent;
    border: 2px solid var(--verde-principal);
    color: var(--verde-principal);
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-regresar:hover {
    background: var(--verde-principal);
    color: #ffffff;
}

/* ===== FOOTER RESPONSIVO ===== */

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* En móvil se acomodan vertical */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}