/* ============================================
   NAVBAR APP – FINTECH PREMIUM (FINAL)
============================================ */

.app-navbar {
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(200,200,200,0.4);
    width: 100%;
    padding: 8px 0;
    position: fixed;
    top: 0;
    z-index: 9999;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.app-nav-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO + TEXTO */
.app-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.app-logo {
    width: 50px; /* ← tamaño perfecto */
    height: auto;
}

/* Nombre */
.app-brand-text {
    margin-left: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #004AAD;
    white-space: nowrap;
}

/* BOTÓN HAMBURGUESA */
.app-menu-btn {
    width: 40px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-menu-btn span {
    display: block;
    height: 4px;
    background: #004AAD;
    border-radius: 5px;
    transition: 0.3s;
}

/* ANIMACIÓN AL ABRIR */
.app-menu-btn.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.app-menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.app-menu-btn.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* MENÚ MÓVIL */
.app-menu {
    width: 100%;
    background: rgba(255,255,255,0.96);
    max-height: 0;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 100%;
    transition: max-height .35s ease;
}

.app-menu.open {
    max-height: 350px;
}

/* LINKS MOBILE */
.app-menu a {
    display: block;
    padding: 16px 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #004AAD;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

/* BOTÓN */
.app-btn-primary {
    background: #004AAD !important;
    color: white !important;
    padding: 12px 0;
    width: 85%;
    margin: 18px auto;
    border-radius: 22px;
    text-align: center;
    font-size: 1.15rem;
}

/* DESKTOP */
@media (min-width: 992px) {

    .app-menu-btn {
        display: none;
    }

    .app-menu {
        position: static;
        max-height: none;
        display: flex;
        background: transparent;
        box-shadow: none;
        width: auto;
    }

    .app-menu a {
        border: none;
        margin-left: 25px;
        padding: 0;
        font-size: 1rem;
        font-weight: 600;
        color: #004AAD;
        line-height: 1;
        display: flex;
        align-items: center;
    }

    .app-btn-primary {
        width: auto;
        margin-left: 25px;
        padding: 10px 20px;
        border-radius: 22px;
        font-size: 1rem;
    }
}


/* ===== MOBILE (hasta 991px) ===== */
@media (max-width: 991px) {

    /* Tamaño del logo EN MÓVIL */
    .app-logo {
        width: 50px !important;   /* ← AJUSTA AQUÍ */
    }

    /* Tamaño del texto EN MÓVIL */
    .app-brand-text {
        font-size: 1.5rem !important;   /* ← AJUSTA AQUÍ */
        margin-left: 8px !important;    /* espacio entre logo y texto */
    }
}


/* ===== DESKTOP (desde 992px) ===== */
@media (min-width: 992px) {

    /* Tamaño del logo EN ESCRITORIO */
    .app-logo {
        width: 80px !important;   /* ← AJUSTA AQUÍ */
    }

    /* Tamaño del texto EN ESCRITORIO */
    .app-brand-text {
        font-size: 2.0rem !important;   /* ← AJUSTA AQUÍ */
        margin-left: 12px !important;
    }
}