/* ═══════════════════════════════════════════════════════
   base.css — bribool Capital v2 (dark premium gold)
   Variables, reset, topbar, navbar, hamburger, mobile nav,
   .ad-btn-primary, responsive global navbar
═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gold:        #b07820;
    --gold-mid:    #d4a020;
    --gold-light:  #e8b840;
    --gold-pale:   #f5d888;
    --gold-cream:  #fdf0c8;
    --bg:          #0e0321;
    --bg-card:     rgba(255,255,255,.04);
    --border:      rgba(210,155,25,.13);
    --border-soft: rgba(255,255,255,.06);
    --text:        #ffffff;
    --text-soft:   rgba(255,255,255,.62);
    /* Variables originales del tema (usadas en cursos y características) */
    --ad-purple:   #2d0e60;
    --ad-purple-2: #4b168c;
    --ad-purple-hover:   #6a2cf3;
    --ad-purple-hover-2: #8d3dff;
    --ad-blue:     #3f69ff;
    --ad-orange:   #ff9321;
    --ad-text:     #121938;
    --ad-text-soft:#5c657d;
    --ad-border:   #eceffd;
    --ad-section-title-size:   clamp(30px, 2.7vw, 46px);
    --ad-section-title-weight: 600;
    --ad-section-title-line:   1.12;
    --ad-section-copy-size:    16px;
    --ad-section-copy-line:    1.7;
    --ad-card-title-weight:    600;
    --ad-section-eyebrow-size: 15px;
    --ad-section-eyebrow-weight: 700;
    --text-muted:  rgba(255,255,255,.38);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* El main hereda el fondo oscuro del body, igual que en el maqueta */
.ad-main { background: var(--bg); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: 0; background: none; cursor: pointer; font-family: inherit; }

.ad-container { width: min(1220px, 90%); margin: 0 auto; }

/* ═══════════════════════════
   TOPBAR
═══════════════════════════ */
.ad-topbar {
    border-bottom: 1px solid rgba(210,155,25,.07);
    background: rgba(14,3,33,.95);
}
.ad-topbar__inner {
    width: min(1220px, 90%); margin: 0 auto;
    min-height: 46px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 20px;
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,.50);
}
.ad-topbar__left, .ad-topbar__right {
    display: flex; align-items: center; flex-wrap: wrap; gap: 28px;
}
.ad-topbar__item {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,.50); transition: color .2s;
}
.ad-topbar__item:hover { color: var(--gold-mid); }
.ad-social-links { display: inline-flex; align-items: center; gap: 12px; }
.ad-social-links a {
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    color: rgba(255,255,255,.45); font-size: 13px; transition: color .2s;
}
.ad-social-links a:hover { color: var(--gold-mid); }

/* ═══════════════════════════
   NAVBAR
═══════════════════════════ */
.ad-site-header {
    position: sticky; top: 0; z-index: 90;
    background: rgba(14,3,33,.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(210,155,25,.07);
    transition: box-shadow .25s, background .25s;
}
.ad-site-header.is-scrolled {
    background: rgba(14,3,33,.97);
    box-shadow: 0 4px 32px rgba(0,0,0,.50);
}
.ad-navbar__inner {
    width: min(1220px, 90%); margin: 0 auto;
    min-height: 72px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 24px;
}
.ad-logo { display: flex; align-items: center; flex-shrink: 0; gap: 14px; }
.ad-logo__icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.ad-logo__icon img { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); }
.ad-logo__icon img.ad-logo__img--custom { filter: none; }
.ad-logo--wordmark { gap: 0; }
.ad-logo--wordmark .ad-logo__icon {
    width: clamp(150px, 12vw, 190px);
    height: 50px;
    justify-content: flex-start;
}
.ad-logo--wordmark .ad-logo__icon img {
    width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    filter: none;
}
.ad-logo__text { line-height: 1; text-transform: uppercase; }
.ad-logo__text strong { display: block; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 1px; }
.ad-logo__text span  { display: block; margin-top: 3px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 4px; }

.ad-nav-menu {
    display: flex; align-items: center; gap: 34px;
    margin: 0; padding: 0; list-style: none;
    font-size: 14px; font-weight: 700; text-transform: uppercase;
}
.ad-nav-menu a {
    position: relative; color: #ffffff; transition: color .25s;
}
.ad-nav-menu a::after {
    content: ""; position: absolute; left: 0; bottom: -8px;
    width: 0; height: 2px; border-radius: 10px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    transition: width .25s;
}
.ad-nav-menu a:hover, .ad-nav-menu a.active { color: var(--gold-mid); }
.ad-nav-menu a:hover::after, .ad-nav-menu a.active::after { width: 100%; }

/* Ocultar ítems mobile en desktop */
.ad-nav-menu__mobile-action { display: none; }

.ad-navbar__actions { display: flex; align-items: center; flex-shrink: 0; gap: 18px; }
.ad-login-link {
    color: #ffffff; font-size: 13px; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase; transition: color .25s;
}
.ad-login-link:hover { color: var(--gold-mid); }

.ad-navbar-cart {
    min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #ffffff;
    font-size: 17px;
    line-height: 1;
    transition: color .25s, transform .2s;
}
.ad-navbar-cart:hover {
    color: var(--gold-mid);
    transform: translateY(-2px);
}

.ad-btn-primary {
    min-height: 44px; padding: 0 24px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #e8b840 0%, #c8902a 40%, #9a6c10 70%, #c8902a 100%);
    color: #1c0e00 !important; font-size: 13px; font-weight: 800;
    letter-spacing: .5px; text-transform: uppercase;
    border: 1px solid rgba(232,184,64,.45);
    transition: transform .2s;
}
.ad-btn-primary:hover { transform: translateY(-2px); }

/* Hamburger */
.ad-menu-toggle {
    display: none; flex-direction: column; justify-content: center;
    align-items: center; gap: 5px;
    width: 40px; height: 40px; border-radius: 8px;
    border: 1px solid rgba(210,155,25,.18);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.75);
    flex-shrink: 0;
}
.ad-menu-toggle span {
    display: block; width: 18px; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.ad-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ad-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ad-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.ad-mobile-nav {
    display: none;
    background: rgba(14,3,33,.97);
    border-top: 1px solid rgba(210,155,25,.10);
    padding: 16px 0 24px;
}
.ad-mobile-nav.is-open { display: block; }
.ad-mobile-nav ul { list-style: none; padding: 0 5%; }
.ad-mobile-nav li a {
    display: block; padding: 13px 0;
    color: #ffffff; font-size: 15px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: color .2s;
}
.ad-mobile-nav li:last-child a { border-bottom: 0; }
.ad-mobile-nav li a:hover, .ad-mobile-nav li a.active { color: var(--gold-mid); }
.ad-mobile-nav__actions {
    display: flex; flex-direction: column; gap: 10px;
    padding: 18px 5% 0;
}
.ad-mobile-nav__actions .ad-btn-primary {
    width: 100%; min-height: 48px; border-radius: 12px; font-size: 14px;
}
.ad-mobile-cart-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: color .2s;
}
.ad-mobile-cart-link:hover { color: var(--gold-mid); }
.ad-mobile-nav__actions .ad-login-link {
    text-align: center; padding: 10px; font-size: 14px;
    border: 1px solid rgba(255,255,255,.10); border-radius: 12px;
}

/* Bribool Capital: menú principal oscuro con acento dorado plano */
.ad-topbar {
    background: rgba(14,3,33,.95);
    border-bottom-color: rgba(212,160,32,.07);
}

.ad-site-header {
    background: rgba(14,3,33,.88);
    border-bottom-color: rgba(212,160,32,.07);
}

.ad-site-header.is-scrolled {
    background: rgba(14,3,33,.97);
}

.ad-logo__text strong,
.ad-logo__text span {
    color: #ffffff;
}

.ad-logo--wordmark .ad-logo__icon img {
    filter: none;
}

.ad-logo--wordmark .ad-logo__icon img.ad-logo__img--custom {
    filter: none;
}

.ad-nav-menu a,
.ad-login-link,
.ad-navbar-cart,
.ad-mobile-nav li a,
.ad-mobile-cart-link {
    color: #ffffff;
}

.ad-topbar__item,
.ad-social-links a {
    color: rgba(255,255,255,.50);
}

.ad-nav-menu a:hover,
.ad-nav-menu a.active,
.ad-login-link:hover,
.ad-navbar-cart:hover,
.ad-mobile-nav li a:hover,
.ad-mobile-nav li a.active,
.ad-mobile-cart-link:hover,
.ad-topbar__item:hover,
.ad-social-links a:hover {
    color: #d4a020;
}

.ad-nav-menu a::after {
    background: #d4a020;
}

.ad-navbar__actions .ad-btn-primary,
.ad-mobile-nav__actions .ad-btn-primary {
    background: linear-gradient(160deg, #e8b840 0%, #c8902a 40%, #9a6c10 70%, #c8902a 100%);
}

.ad-menu-toggle {
    border-color: rgba(212,160,32,.18);
    color: rgba(255,255,255,.75);
}

.ad-mobile-nav {
    background: rgba(14,3,33,.97);
    border-top-color: rgba(212,160,32,.10);
}

.ad-mobile-nav li a {
    border-bottom-color: rgba(255,255,255,.05);
}

.ad-mobile-nav__actions .ad-login-link {
    border-color: rgba(255,255,255,.10);
}

.ad-menu-toggle {
    border-color: rgba(212,160,32,.20);
}

.ad-mobile-nav {
    background: rgba(14,3,33,.97);
    border-top-color: rgba(212,160,32,.10);
}

/* Responsive navbar */
@media (max-width: 900px) {
    .ad-topbar { display: none; }
    .ad-nav-menu, .ad-navbar__actions { display: none; }
    .ad-menu-toggle { display: flex; }
    .ad-logo--wordmark .ad-logo__icon {
        width: 148px;
        height: 44px;
    }
    .ad-logo--wordmark .ad-logo__icon img {
        max-height: 42px;
    }
}
