/* ===== GENERAL ===== */
html, body {
    height: 100%;
    margin: 0;
    background-color: #f8fafc;
    overflow-x: hidden; /* evita scroll lateral en móvil */
}

/* ===== NAVBAR ===== */
.custom-navbar {
    background: linear-gradient(105deg, #0b1c2a 0%, #0e2a38 100%);
    padding: 0.75rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Logo */
.logo-img {
    height: 60px;
    width: auto;
    transition: opacity 0.2s ease;
}
.logo-img:hover {
    opacity: 0.92;
}

/* ===== MENÚ PRINCIPAL ===== */
.menu-btn {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    padding: 0.5rem 1.2rem !important;
    border-radius: 40px;
    transition: all 0.2s ease;
    color: #eef2f5 !important;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.menu-btn:hover {
    background: rgba(0, 123, 255, 0.12);
    color: #ffffff !important;
}

.menu-btn.active {
    background: #007bff;
    color: white !important;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 123, 255, 0.2);
}

/* ===== BOTONES LATERALES ===== */
.btn-nav {
    border-radius: 40px;
    padding: 0.5rem 1.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-left: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #f0f4f8;
    background: transparent;
}
.btn-outline-light:hover {
    background: rgba(0, 123, 255, 0.12);
    border-color: #007bff;
    color: #ffffff;
}

.btn-primary-nav,
.btn-dueno {
    background: #007bff;
    border: none;
    color: white;
}
.btn-primary-nav:hover,
.btn-dueno:hover {
    background: #0066d6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1.5rem;
        background: linear-gradient(105deg, #0b1c2a, #0e2a38);
        border-radius: 1rem;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .menu-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        min-width: auto; /* 🔥 FIX */
    }

    .btn-nav {
        width: 100%;
        margin: 0.3rem 0;
        justify-content: center;
    }

    /* 👇 IMPORTANTE: NO usamos .d-flex global */
    .navbar-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== FOOTER ===== */
.footer-blue {
    background: linear-gradient(105deg, #0b1c2a 0%, #0e2a38 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    padding: 2rem 0 1.5rem;
}

.footer-link {
    color: #cfdfed;
    text-decoration: none;
    margin: 0 0.75rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.social-icon {
    color: #cfdfed;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.social-icon:hover {
    color: #ffffff;
}

.footer-brand .brand-title {
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.brand-title::after {
    content: "";
    display: block;
    width: 45px;
    height: 2px;
    background: #007bff;
    margin-top: 6px;
}

.brand-subtitle {
    font-size: 0.85rem;
    opacity: 0.75;
    color: #cfdfed;
}

.footer-b {
    background: linear-gradient(105deg, #0b1c2a 0%, #0e2a38 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    padding: 2rem 0 1.5rem;
}