body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--azul-oscuro);
    color: var(--texto-claro);
    /*padding-top: 70px;*/

}

.navbar {
    min-height: 64px;
}

.bg-dark-custom {
    background-color: rgba(11, 31, 58, 0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.nav-link {
    /*    color: var(--texto-claro);*/
    padding: 8px 14px;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--naranja);
}


.btn-main {
    background-color: #FF9800;
    color: #000;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-top: 10px;
}


.btn-main:hover {
    background-color: #e68900;
}

.btn-success-custom {
    background-color: var(--verde-acento);
    color: #000;
}

.footer {
    background-color: var(--azul-principal);
}

.social-link {
    color: var(--texto-claro);
    text-decoration: none;
}

.social-link:hover {
    color: var(--verde-acento);
}

.navbar-dark .navbar-nav .nav-link {
    color: #EAEAEA;
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--naranja);
}

.navbar-custom {
    background-color: #0B1F3A;
    /* azul ligeramente más claro */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.footer-section {
    background-color: #020D1A;
    color: #EAEAEA;
    border-top: 3px solid #FF9800;
}

.footer-section h6 {
    color: #F5E6C8;
    margin-bottom: 15px;
}

.footer-section p {
    margin-bottom: 8px;
    font-size: 14px;
}

.hero {
    min-height: 85vh;
    /* antes seguramente 70vh */
}


/*HERO con imagen de fondo (imagen 1)*/

.hero-section {
    background: linear-gradient(180deg, #0B1F3A, #07162B);
    padding: 90px 20px 70px;
    text-align: center;
}

.hero-overlay {
    background: none;
    /* CLAVE */
    width: 100%;
    text-align: center;
}

.hero-section h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
}

.hero-section p {
    color: #EAEAEA;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/*TARJETAS DE SERVICIOS – animación + clic*/

.service-card {
    display: block;
    background-color: #0B1F3A;
    padding: 25px;
    border-radius: 14px;
    color: #EAEAEA;
    text-decoration: none;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #FF9800;
}

.service-card h5 {
    margin-bottom: 12px;
    color: #F5E6C8;
}

/*SECCIONES DETALLE (base para crecer)*/

.detail-section {
    background-color: #071E34;
    color: #EAEAEA;
}

.detail-section.alt {
    background-color: #06182C;
}

/*CSS de la sección (en styles.css)*/

.section-padding {
    padding: 90px 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: #F5E6C8;
}

.section-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.section-list {
    list-style: none;
    padding: 0;
}

.section-list li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
}

.section-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--verde-acento);
    font-weight: bold;
}

.section-img {
    max-width: 420px;
}

/*PASO 2 — Scroll suave (UX básico obligatorio)*/

html {
    scroll-behavior: smooth;
}

/*PASO 3 — Animaciones al entrar en viewport*/

.animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}



.hero-new {
    background-color: var(--bg-main);
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border-soft);
}

.hero-content {
    max-width: 720px;
    margin-top: -80px;
}

.hero-new h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

.hero-new p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-primary {
    background-color: var(--accent);
    color: #111;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    height: 72px;
    width: 100%;
    border-bottom: none;
}

.header-logo {
    width: 280px;
    /* ajusta aquí */
    background: linear-gradient(180deg,
            #d7e3f3,
            #fbfbfc);
    /* o el color que quieras */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BLOQUE MENÚ */
.header-menu {
    flex: 1;
    background: linear-gradient(180deg, #0f172a, #111827);
    display: flex;
    align-items: center;
}

/* CONTENIDO DEL MENÚ */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 0 24px;

    gap: 32px;
}

.logo img {
    height: 46px;
}


.header-center,
.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;


}


.main-nav a {
    margin-left: 28px;
    text-decoration: none;
    color: #1F2937;
    font-size: 0.95rem;
    font-weight: 600;
    /* CLAVE */
}

.main-nav a:hover {
    color: #0B1F3A;
}

.nav-cta {
    background-color: #F59E0B;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
}

.services-new {
    background-color: #F9FAFB;
    padding: 80px 0;
}

.services-new h2 {
    font-size: 2.2rem;
    color: #1F2937;
    margin-bottom: 10px;
}

.services-intro {
    color: #6B7280;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-item {
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    padding: 28px;
    border-radius: 12px;
    text-decoration: none;
    color: #1F2937;
    transition: all 0.25s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    border-color: #F59E0B;
}

.section-detail {
    padding: 90px 0;
    background-color: #ffffff;
}

.section-inner {
    max-width: 900px;
}

.section-detail h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.section-detail p {
    color: #4B5563;
    margin-bottom: 25px;
}

.section-detail ul {
    margin-bottom: 30px;
}

.section-detail li {
    margin-bottom: 10px;
}

.btn-header {
    background: #f59e0b;
    color: #111827;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-header:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}


/*MENÚ CENTRADO (como la referencia)*/

.header-center {
    display: flex;
    gap: 32px;
}

.header-center a {
    color: #e5e7eb;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-center a:hover {
    color: #38bdf8;
    /* o el azul que prefieras */
}

/*BOTÓN “COMENZAR AHORA” A LA DERECHA*/

.btn-header {
    background: #f59e0b;
    color: #111827;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-header:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

/*CSS – ESTILO DE LA SECCIÓN (CLAVE)*/

.hero-main {

    background: #f8fafc;
    /*   padding: 50px 0 80px;*/
    /* padding-top: 72px;*/

}

/*.hero-main::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            #e5e7eb,
            transparent);
}*/

.hero-grid {
    /*display: grid;
    grid-template-columns: 1.1fr 1.3fr;*/
    align-items: center;
    gap: 70px;
}

/*Texto (columna izquierda)*/

.hero-badge {
    display: inline-block;
    background-color: rgba(56, 189, 248, 0.12);
    color: #0284C7;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1F2937;
    /* gris oscuro elegante */
}

.hero-text h1 span {
    color: #7DD3FC;
}

.hero-text p {
    font-size: 1.05rem;
    color: #4B5563;
    /* gris medio */
    max-width: 520px;
    margin-bottom: 35px;
}

/*Botones*/

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background-color: #0EA5E9;
    color: #ffffff;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #0284C7;
}

.btn-secondary {
    border: 1.5px solid #CBD5E1;
    /* gris visible */
    color: #1F2937;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    background-color: transparent;
}

.btn-secondary:hover {
    border-color: #0EA5E9;
    color: #0EA5E9;
    background-color: rgba(14, 165, 233, 0.05);
}

/*Imagen derecha*/

.hero-image img {
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    max-width: 430px;
    /* antes seguramente menor */
    height: auto;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}


/*CSS – FONDO OSCURO Y ESTILO (CLAVE)*/

.advantages-section {
    background-color: #EEF4FB;
    /* azul bancario pastel */
    padding: 100px 0;
    color: #1F2937;
}


/*Encabezado centrado */

.advantages-header {
    max-width: 720px;
    margin: 0 auto 70px;
    text-align: center;
}

.section-eyebrow {
    display: block;
    color: #38BDF8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.advantages-header h2 {
    font-size: 2.4rem;
    color: #0F172A;
    margin-bottom: 18px;
}

.advantages-header p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.section-eyebrow {
    color: #2563EB;
}

/*Tarjetas oscuras*/

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: #0F2347;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.6);
    transition: transform 0.25s ease;
}

.advantage-card:hover {
    transform: translateY(-6px);
}

.advantage-icon {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

/*Texto dentro de tarjetas*/

.advantage-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.advantage-card p {
    color: #CBD5E1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
}

/*MOBILE FIRST (pantallas pequeñas)*/

@media (max-width: 576px) {

    /*.hero-main {
        /* padding: 40px 0 60px;*/
    /* padding-top: 24px;*/
    /* antes estaba muy grande 
    }*/

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .hero-actions a {
        width: 100%;
        text-align: center;
    }
}



/*PASO 4 — Optimización mobile (clave)*/

@media (max-width: 768px) {

    .hero-section {
        padding: 70px 15px 55px;
    }

    .hero-avanza,
    .hero-main {
        padding-top: 96px;
        /* header (64px) + aire */
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 2000;
        pointer-events: none;
    }

    .menu-toggle {
        margin-left: auto;
        color: #ffffff;
        font-size: 1.6rem;
        border: none;
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 3001;
        background: none;
        border: none;

    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-img {
        max-width: 280px;
        margin-top: 30px;
    }

    .service-card {
        text-align: center;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .advantages-header h2 {
        font-size: 2rem;
    }

    .solutions-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        align-items: center;
    }

    .header-menu {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding-right: 16px;
        background: linear-gradient(180deg,
                #162f55,
                #0f2442);
    }

    .site-header {
        height: 64px;
        flex-direction: row;
        border-bottom: none;
    }

    .header-logo img {
        height: 48px;
        /* antes 40 */
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        /* 🔴 empieza arriba del todo */
        right: 0;
        /* 🔴 alineado a la derecha */
        width: 260px;
        /* ancho tipo drawer */
        height: 100vh;
        background: linear-gradient(180deg, #162f55, #0f2442);
        z-index: 2500;
        display: none;
        padding: 80px 20px 20px;
        /* deja respirar el logo */
        overflow-y: auto;
    }

    .hero-text {
        margin-top: 0;
    }

    .hero-text h1 {
        margin-top: 12px;
    }


}


@media (max-width: 992px) {

    /* .hero-main {
        padding-top: 24px;
        
    }*/

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        text-align: left;
        margin-top: 0;
        /* ajusta entre -20 y -60 según gusto */

    }


    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        font-size: 1rem;
    }

    .hero-text p {
        /* margin-left: auto;*/
        /*margin-right: auto;*/
        font-size: 1rem;
        text-align: left;

        /* max-width: 520px;/
        /* evita líneas demasiado largas */

    }

    /*    .hero-text p {
        font-size: 1rem;

    }*/

    .hero-actions {
        /*justify-content: center;*/
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .hero-image img {
        width: 100%;
        max-width: 100%;
    }

    /* Ocultar menú desktop */
    .desktop-menu {
        display: none;
    }

    /* Mostrar hamburguesa */
    .menu-toggle {
        display: block;
        font-size: 1.6rem;
        background: none;
        border: none;
        cursor: pointer;
        color: #ffffff !important;
    }

    /* Menú mobile */


    .mobile-menu a {
        padding: 12px 0;
        text-decoration: none;
        color: #e5e7eb;
        font-weight: 500;
        overflow-y: auto;
    }

    .btn-mobile {
        margin-top: 12px;
        padding: 12px;
        border-radius: 8px;
        text-align: center;
        font-weight: 600;
        background: #f59e0b;
        color: #111827;
    }

    .mobile-menu {
        display: none;
        background: #0f172a;
        border-top: 1px solid #e5e7eb;
        overflow-y: auto;
    }

}

/* Desktop */
@media (min-width: 993px) {
    .desktop-menu {
        display: flex;
    }

    /*.hero-main {
        padding-top: 24px;
       
    }*/
}


/* HERO AVANZA */
.hero-avanza {
    position: relative;
    padding: 0.5rem 0 1rem;
    background:
        radial-gradient(1200px circle at 15% 20%,
            rgba(130, 140, 255, 0.35),
            transparent 55%),
        radial-gradient(800px circle at 85% 80%,
            rgba(0, 180, 170, 0.25),
            transparent 55%),
        linear-gradient(135deg,
            #1b1f3b 0%,
            #2b2f77 35%,
            #2a4a7b 65%,
            #0b1d2e 100%);
    overflow: hidden;
}

.hero-avanza .hero-text {
    margin-top: 0;
    /* ajusta -40 / -60 / -80 */
}

.hero-avanza p {
    max-width: 520px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}


.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: #4f6ef7;
}

/*.hero-text p {
    font-size: 1.1rem;
    max-width: 520px;
    margin-bottom: 2rem;
    color: #555;
    text-align: justify;
}*/

.hero-badge {
    display: inline-block;
    background: #eef2ff;
    color: #4f6ef7;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image {
    /*position: relative;*/
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;

}


/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image img {
        margin: 0 auto;
    }
}

.hero-avanza .hero-text h1 {
    color: #ffffff;
}

.hero-avanza .hero-text h1 span {
    color: #7aa2ff;
}

.hero-avanza .hero-text p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===============================
   HEADER LOGO — FUENTE ÚNICA
   =============================== */

.header-logo {
    background: linear-gradient(180deg,
            #e6edf6,
            #d8e2ee);
    display: flex;
    align-items: center;
    justify-content: center;
}


.header-logo img {
    height: 54px;
    /* antes 40 */
}

/* Mobile */
@media (max-width: 768px) {
    .header-logo {
        background: linear-gradient(180deg,
                #e6edf6,
                #d8e2ee);
    }
}

.header-logo {
    position: relative;
    z-index: 3000;
}

/* ===============================
   MOBILE MENU – FIX DEFINITIVO
   =============================== */

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #162f55, #0f2442);
    z-index: 2500;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-menu.show {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu a {
    color: #ffffff;
    font-weight: 500;
}

body.menu-open {
    overflow: hidden;
}