/* =============================================
   VARIABLES GLOBALES (si no las carga site.css)
   ============================================= */
:root {
    --bg: #1a1a1a;
    --surface: #222;
    --border: #2f2f2f;
    --text: #f5f5f5;
    --text2: #bdbdbd;
    --brand: #f3c300;
    --r: 22px;
}

/* =============================================
   HEADER GENERAL
   ============================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 30;
}

/* =============================================
   TICKER DE NOTICIAS
   ============================================= */
.hb-ticker-container {
    display: flex;
    align-items: center;
    background: #111;
    border-bottom: 1px solid #2f2f2f;
    overflow: hidden;
    height: 50px;
    position: relative;
    padding: 0 15px;
}

.ticker-label-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #000;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 12px;
    z-index: 10;
    flex-shrink: 0;
}

.rec-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e11d48;
    animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: .3; } }

.ticker-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.hb-ticker-items {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-news 30s linear infinite;
}

.hb-ticker-item {
    display: inline-block;
    padding-right: 50px;
}

.hb-ticker-item a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.hb-ticker-item a:hover { color: var(--brand); }

@keyframes marquee-news {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   BARRA DE NAVEGACIÓN
   ============================================= */
.hb-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 0 4%;
    position: relative;
    background: linear-gradient(180deg, #1c1c1c, #161616);
    border-bottom: 1px solid var(--border);
}

/* =============================================
   LOGO
   ============================================= */
.hb-logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
}

.hb-logo svg {
    height: 65px;
    width: auto;
    transform: scale(3.8) translateX(18px);
    transform-origin: left center;
    max-width: none;
    max-height: none;
    transition: filter 0.3s ease;
}

.hb-logo:hover svg {
    filter: drop-shadow(0 0 10px var(--brand));
}

/* =============================================
   TABS / MENÚ
   ============================================= */
.hb-tabs-wrap {
    flex: 2;
    display: flex;
    justify-content: center;
}

.hb-tabs {
    display: flex;
    gap: 24px;
}

.hb-tabs .tab {
    position: relative;
    padding: 8px 14px;
    color: var(--text2);
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
    font-size: 15px;
}

.hb-tabs .tab.active,
.hb-tabs .tab:hover {
    color: #fff;
}

.hb-tabs .tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--brand);
    border-radius: 10px;
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 12px var(--brand);
}

.hb-tabs .tab.active::after,
.hb-tabs .tab:hover::after {
    transform: scaleX(1);
}

/* =============================================
   ACCIONES NAV (carrito)
   ============================================= */
.hb-nav-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hb-cart-btn {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.hb-cart-btn:hover {
    transform: scale(1.06);
    background: rgba(243, 195, 0, 0.1);
}

.hb-cart-svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
}

/* =============================================
   BOTÓN HAMBURGUESA (móvil)
   ============================================= */
.menu-btn {
    display: none;
}

/* =============================================
   DRAWER / CARRITO
   ============================================= */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    backdrop-filter: blur(4px);
}

.overlay.hidden { display: none; }

.drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    height: 100%;
    background: #1a1a1a;
    color: #fff;
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.drawer.open { right: 0; }
.drawer.hidden { display: none; }

.drawer-head {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.drawer-foot {
    padding: 20px;
    border-top: 1px solid #333;
}

.drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.drawer-item {
    display: block;
    padding: 12px;
    color: var(--text2);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

.drawer-item:hover {
    background: rgba(243, 195, 0, 0.08);
    color: var(--text);
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-item:hover { color: #ff4444; }

/* =============================================
   VISTA MÓVIL
   ============================================= */
@media (max-width: 768px) {
    .hb-tabs-wrap { display: none; }
    .hb-nav-actions { display: none; }

    .menu-btn {
        display: block;
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 28px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        z-index: 9999;
    }

    .hb-nav {
        height: 70px;
        padding: 0 14px;
    }

    .hb-logo svg {
        height: 26px;
        transform: scale(1) translateX(0);
    }
}
@media (max-width: 768px) {

    .hb-nav {
        height: 80px; /* opcional: baja altura del header */
    }

    .hb-logo svg {
        height: 40px;              /* tamaño base */
        transform: scale(4.8) translateX(-5px); 
    }

}
/* ===== CARRITO VISIBLE EN CELULAR ===== */
@media (max-width: 768px){

  .hb-nav {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
  }

  .menu-btn {
    display: flex;
    justify-content: flex-start;
  }

  .hb-logo {
    justify-content:flex-start;
    padding-left: 4px;
  }

  .hb-nav-actions {
    display: flex;
    justify-content: flex-end;
  }

  .hb-cart-btn {
    width: 40px;
    height: 40px;
  }

}
/* ===== DRAWER RESPONSIVE ===== */
@media (max-width: 768px){

  .drawer{
    width: 100%;
    right: -100%;
  }

  .drawer.open{
    right: 0;
  }

}
