/* ═══════════════════════════════════════════════════════════
   BIOSFERA NAV — Minimal Glass Navigation
   v2.0 — 2026
═══════════════════════════════════════════════════════════ */

/* ── Reset body padding for fixed nav ── */
body { padding-top: 72px; }
body.has-fullhero { padding-top: 0; }

/* ══════════════════════════════════════
   NAV WRAPPER
══════════════════════════════════════ */
.bs-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9990;
    transition: background 0.38s ease, box-shadow 0.38s ease;
    background: transparent;
}

.bs-nav--solid {
    background: rgba(6, 20, 28, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Inner layout ── */
.bs-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 40px;
    max-width: 1440px;
    margin: 0 auto;
}

/* ══════════════════════════════════════
   LOGO
══════════════════════════════════════ */
.bs-nav__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.bs-nav__logo img {
    height: 52px;
    width: auto;
    transition: opacity 0.2s;
}
.bs-nav__logo:hover img { opacity: 0.82; }

/* ══════════════════════════════════════
   DESKTOP MENU
══════════════════════════════════════ */
.bs-nav__menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Nav item */
.bs-nav__item {
    position: relative;
    padding: 8px 13px;
    font-family: 'Roboto', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

/* Underline hover effect */
.bs-nav__item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%; right: 50%;
    height: 1px;
    background: #5ec4b0;
    transition: left 0.26s ease, right 0.26s ease;
}
.bs-nav__item:hover,
.bs-nav__item--active { color: #fff; }
.bs-nav__item:hover::after,
.bs-nav__item--active::after { left: 13px; right: 13px; }

/* ── Experiencias — item destacado ── */
.bs-nav__item--highlight {
    color: #f28b4a !important;
    font-weight: 700 !important;
}
.bs-nav__item--highlight::after {
    background: #f28b4a !important;
    height: 2px !important;
}

/* ── Experiencias dropdown ── */
.bs-nav__drop { position: relative; }

.bs-nav__item--has-sub { padding-right: 22px; }

.bs-nav__item--has-sub .bs-nav__chevron {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    font-style: normal;
    line-height: 1;
    transition: transform 0.24s;
    pointer-events: none;
}

.bs-nav__drop:hover .bs-nav__item--has-sub .bs-nav__chevron {
    transform: translateY(-50%) rotate(180deg);
}

.bs-nav__sub {
    position: absolute;
    top: 100%;                        /* pegado al borde inferior del drop — sin gap */
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 228px;
    background: rgba(6, 20, 28, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1.5px solid #5ec4b0;
    border-radius: 0 0 10px 10px;
    padding: 10px 0 6px;              /* padding-top crea el espacio visual sin romper hover */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.18s;
    box-shadow: 0 24px 48px rgba(0,0,0,0.45);
    pointer-events: none;
}

.bs-nav__drop:hover .bs-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}

.bs-nav__sub a {
    display: block;
    padding: 11px 26px;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: color 0.18s, padding-left 0.2s;
}
.bs-nav__sub a:hover {
    color: #5ec4b0;
    padding-left: 32px;
}
.bs-nav__sub a:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ══════════════════════════════════════
   RIGHT ACTIONS (cart + auth + burger)
══════════════════════════════════════ */
.bs-nav__right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Icon buttons */
.bs-nav__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.80);
    font-size: 17px;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}
.bs-nav__icon:hover {
    color: #fff;
    transform: translateY(-1px);
}

/* Cart badge */
.bs-nav .biosfera-cart-badge {
    position: absolute;
    top: -6px; right: -8px;
    background: #c8643c;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* Auth box wrapper */
#nav-auth-box {
    display: flex;
    align-items: center;
}

/* ── Hamburger ── */
.bs-nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.bs-nav__burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: rgba(255,255,255,0.88);
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}
/* Burger → X animation */
.bs-nav--open .bs-nav__burger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.bs-nav--open .bs-nav__burger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.bs-nav--open .bs-nav__burger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ══════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════ */
.bs-mobile {
    position: fixed;
    top: 0; right: 0;
    width: min(340px, 100vw);
    height: 100vh;
    background: rgb(7, 20, 28);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: 24px 28px 36px;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.bs-mobile--open { transform: translateX(0); }

/* Close button */
.bs-mobile__close {
    align-self: flex-end;
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    margin-bottom: 36px;
    transition: color 0.2s;
    line-height: 1;
}
.bs-mobile__close:hover { color: #fff; }

/* Mobile nav links */
.bs-mobile__nav {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bs-mobile__nav > a,
.bs-mobile__drop-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 0;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.18s;
}
.bs-mobile__nav > a:hover,
.bs-mobile__drop-btn:hover { color: #5ec4b0; }

.bs-mobile__drop-btn i {
    font-size: 10px;
    transition: transform 0.25s;
    color: rgba(255,255,255,0.3);
}
.bs-mobile__drop--open .bs-mobile__drop-btn { color: #5ec4b0; }
.bs-mobile__drop--open .bs-mobile__drop-btn i {
    transform: rotate(180deg);
    color: #5ec4b0;
}

/* Sub items */
.bs-mobile__sub {
    display: none;
    flex-direction: column;
    padding: 4px 0 6px 14px;
    border-left: 1px solid rgba(94,196,176,0.25);
    margin: 0 0 2px 6px;
}
.bs-mobile__drop--open .bs-mobile__sub { display: flex; }

.bs-mobile__sub a {
    padding: 9px 0;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.18s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.bs-mobile__sub a:hover { color: #5ec4b0; }

/* Footer info */
.bs-mobile__footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bs-mobile__footer > a {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.bs-mobile__footer > a:hover { color: rgba(255,255,255,0.68); }

.bs-mobile__social {
    display: flex;
    gap: 16px;
    margin-top: 18px;
}
.bs-mobile__social a {
    color: rgba(255,255,255,0.35);
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s;
}
.bs-mobile__social a:hover { color: #5ec4b0; }

/* Backdrop overlay */
.bs-mobile__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.38s, visibility 0.38s;
}
.bs-mobile__overlay--show {
    opacity: 1;
    visibility: visible;
}

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════ */
@media (max-width: 1200px) {
    .bs-nav__item { padding: 8px 10px; letter-spacing: 1.4px; font-size: 11px; }
    .bs-nav__inner { padding: 0 24px; }
}

@media (max-width: 960px) {
    .bs-nav__menu { display: none; }
    .bs-nav__burger { display: flex; }
    .bs-nav__inner { padding: 0 20px; }
}

@media (max-width: 480px) {
    .bs-nav__logo img { height: 44px; }
    .bs-nav__inner { height: 62px; }
    body { padding-top: 62px; }
    body.has-fullhero { padding-top: 0; }
}

/* ── Ocultar botón "scroll to top" del template viejo ── */
.scroll-to-top { display: none !important; }

/* ══════════════════════════════════════
   BOTÓN FLOTANTE — Reserva Aquí
══════════════════════════════════════ */
.bs-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9980;
    display: flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #3a7d6e 0%, #5ec4b0 100%);
    color: #fff !important;
    text-decoration: none !important;
    padding: 13px 22px;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    box-shadow: 0 8px 28px rgba(62,185,160,0.38), 0 2px 8px rgba(0,0,0,0.20);
    opacity: 0;
    transform: translateY(18px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.38s ease, transform 0.38s ease, box-shadow 0.22s ease;
    white-space: nowrap;
}
.bs-fab--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.bs-fab:hover {
    background: linear-gradient(135deg, #2e6458 0%, #4ab09e 100%);
    box-shadow: 0 12px 36px rgba(62,185,160,0.52), 0 4px 12px rgba(0,0,0,0.26);
    transform: translateY(-3px) scale(1.03);
    color: #fff !important;
}
.bs-fab i { font-size: 13px; }

@media (max-width: 600px) {
    .bs-fab {
        bottom: 20px;
        right: 16px;
        padding: 11px 16px;
        font-size: 11px;
        letter-spacing: 1.2px;
    }
}

