/* Nav público Plantabase */
.pb-nav.navbar {
    padding: 0;
    background: transparent;
}

.fixed-top.pb-nav {
    top: 0;
    right: 0;
    left: 0;
    z-index: 1040;
}

/* Gana a Bootstrap (.navbar > .container-fluid { justify-content: space-between }) */
.pb-nav > .pb-nav-bar.container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
}

/* Wordmark en barra (home a un tap); el panel sigue con el mismo logo. */
.pb-nav-brand.navbar-brand {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    order: 1;
}

.pb-nav-brand img {
    display: block;
    width: auto;
    height: 22px;
    max-width: min(42vw, 160px);
    object-fit: contain;
}

.pb-nav .pb-nav-toggler.navbar-toggler {
    margin-left: auto;
    width: 46px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #FBBEDC;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 16px rgba(241, 168, 200, 0.2);
    order: 2;
}

.pb-nav .pb-nav-toggler:focus {
    box-shadow: 0 0 0 3px rgba(251, 190, 220, 0.35);
}

.pb-nav .pb-nav-toggler .navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Panel: siempre desde la derecha */
.pb-nav .pb-nav-panel.offcanvas.offcanvas-end {
    top: 0;
    right: 0 !important;
    left: auto !important;
    bottom: 0;
    width: min(320px, 88vw);
    height: 100%;
    margin: 0;
    border: 0;
    border-left: 1px solid #ffe4f0;
    border-radius: 0;
    background: #fff;
    opacity: 1;
    color: #3e4555;
    box-shadow: -12px 0 40px rgba(62, 69, 85, 0.14);
    transform: translateX(100%);
}

.pb-nav .pb-nav-panel.offcanvas.offcanvas-end.show {
    transform: none;
}

.pb-nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid #ffe4f0;
    background: #fff5f9;
}

.pb-nav-panel-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.pb-nav-panel-brand img {
    width: auto;
    height: 28px;
    max-width: 180px;
    object-fit: contain;
}

.pb-nav-panel-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    text-align: left;
    margin: 0;
    padding: 1rem 1.1rem 1.5rem;
    overflow-y: auto;
}

.pb-nav-list {
    gap: 0.15rem;
}

.pb-nav-list .nav-link {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #3e4555 !important;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    transition: background 0.15s ease, color 0.15s ease;
}

.pb-nav-list .nav-link:hover,
.pb-nav-list .nav-link:focus {
    background: #fff5f9;
    color: #3e4555 !important;
}

.pb-nav-list .dropdown-toggle::after {
    margin-left: 0.4rem;
    vertical-align: 0.15em;
}

.pb-nav-dropdown.dropdown-menu {
    background: #fff5f9;
    border: 1px solid #FBBEDC;
    border-radius: 12px;
    padding: 0.4rem;
    text-align: left;
    box-shadow: none;
}

.pb-nav-dropdown .dropdown-item {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #3e4555;
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
}

.pb-nav-dropdown .dropdown-item:hover,
.pb-nav-dropdown .dropdown-item:focus {
    background: #FBBEDC;
    color: #3e4555;
}

.pb-nav-cta {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #ffe4f0;
}

.pb-nav-cta .pb-home-btn {
    width: 100%;
}

.pb-nav .nav-item a {
    font-weight: 600;
    color: #3e4555;
    font-size: 0.95rem;
}
