
/* ==========================================================
   HB NETWORKS - HEADER CORPORATIVO
   Diseño original: Premium Dark / Aurora Glass
   ========================================================== */

/* VARIABLES DE DISEÑO */
:root {
    --bg-dark: #030712;
    --bg-card: rgba(8, 15, 37, 0.65);
    --bg-hover: rgba(37, 99, 235, 0.12);
    --accent-blue: #2563eb;
    --accent-glow: #3b82f6;
    --accent-purple: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-desc: #cbd5e1;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(37, 99, 235, 0.25);
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* AISLAMIENTO DE ESTILOS */
.hd-header,
.hd-mobile-overlay,
.hd-header *,
.hd-mobile-overlay * {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

/* ==========================================================
   1. CABECERA DESKTOP
   ========================================================== */

.hd-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.hd-header.scrolled {
    background: rgba(3, 7, 18, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.hd-logo img {
    height: 28px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.hd-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hd-item {
    position: relative;
}

.hd-item > a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    transition: var(--transition);
}

.hd-item:hover > a {
    color: var(--text-main);
}

/* ==========================================================
   2. MENÚS DESPLEGABLES
   ========================================================== */

.hd-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 330px;
    background: rgba(10, 18, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75),
                0 0 20px rgba(37, 99, 235, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hd-item:hover .hd-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2px);
}

.hd-dropdown a {
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: var(--text-main);
    border-radius: 8px;
    transition: var(--transition);
}

.hd-dropdown a:hover {
    background: rgba(37, 99, 235, 0.12);
}

.hd-dropdown a svg {
    color: var(--accent-blue);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.hd-drop-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hd-drop-desc {
    display: block;
    font-size: 12px;
    color: var(--text-desc);
    line-height: 1.5;
}

/* ==========================================================
   3. BOTÓN LOGIN
   ========================================================== */

.hd-btn-client {
    background-color: var(--accent-blue);
    color: #ffffff;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: var(--transition);
}

.hd-btn-client:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* ==========================================================
   4. BOTÓN MENÚ MÓVIL
   ========================================================== */

.hd-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hd-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================
   5. MENÚ MÓVIL AURORA GLASS
   ========================================================== */

.hd-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hd-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hd-mobile-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

/* BARRA LATERAL */

.hd-mob-sidebar {
    width: 68px;
    background-color: rgba(4, 8, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-mobile-overlay.active .hd-mob-sidebar {
    transform: translateX(0);
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.mob-side-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
    border: 1px solid transparent;
}

.mob-side-btn:hover,
.mob-side-btn.active {
    color: var(--text-main);
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
}

.mob-side-btn svg {
    width: 20px;
    height: 20px;
}

/* CONTENEDOR DEL MENÚ MÓVIL */

.hd-mob-container {
    flex: 1;
    background-color: rgba(3, 7, 18, 0.82);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.hd-mobile-overlay.active .hd-mob-container {
    transform: translateX(0);
}

/* ORBES AURORA */

.hd-mob-container::after,
.hd-mob-container::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.hd-mob-container::before {
    background: var(--accent-glow);
    top: 5%;
    right: -10%;
}

.hd-mob-container::after {
    background: var(--accent-purple);
    bottom: 10%;
    left: -10%;
}

/* CABECERA DEL MENÚ MÓVIL */

.hd-mob-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(4, 8, 20, 0.6);
    z-index: 2;
}

.hd-mob-header img {
    height: 26px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.35));
}

.hd-mob-header .close-btn {
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.hd-mob-header .close-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}

/* CONTENIDO DEL MENÚ MÓVIL */

.hd-mob-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    z-index: 1;
}

/* PANTALLAS INTERNAS */

.mob-screen {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mob-screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* BOTÓN VOLVER */

.mob-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    margin-bottom: 14px;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 8px;
    text-transform: uppercase;
    transition: var(--transition);
}

.mob-back:hover {
    background: rgba(37, 99, 235, 0.18);
    color: var(--text-main);
}

/* ==========================================================
   6. TARJETAS DE NAVEGACIÓN MÓVIL
   ========================================================== */

.mob-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(10px);
    animation: cardAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mob-card:nth-child(1) {
    animation-delay: 0.05s;
}

.mob-card:nth-child(2) {
    animation-delay: 0.1s;
}

.mob-card:nth-child(3) {
    animation-delay: 0.15s;
}

.mob-card:nth-child(4) {
    animation-delay: 0.2s;
}

.mob-card:nth-child(5) {
    animation-delay: 0.25s;
}

.mob-card:hover {
    background: rgba(18, 27, 58, 0.5);
    border-color: var(--border-glow);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

/* ICONOS DE TARJETAS */

.mob-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    flex-shrink: 0;
    transition: var(--transition);
}

.mob-card-icon svg {
    width: 16px !important;
    height: 16px !important;
}

.mob-card:hover .mob-card-icon {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

/* TEXTOS DE TARJETAS */

.mob-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mob-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.mob-card-desc {
    font-size: 11px;
    color: var(--text-desc);
    line-height: 1.4;
}

/* ==========================================================
   7. RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {

    .hd-nav,
    .hd-btn-client {
        display: none;
    }

    .hd-toggle {
        display: flex;
    }

    .hd-container {
        padding: 14px 24px;
        width: 100%;
        max-width: 960px;
    }

    .hd-logo img {
        height: 30px;
        filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.3));
    }
}
.hb-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f8fafc;
    text-decoration: none;
    font-size: 13px;
    margin-left: 12px;
}

.hb-cart-link svg {
    width: 19px;
    height: 19px;
}

.hb-cart-link span {
    background: #2563eb;
    color: #fff;
    border-radius: 20px;
    padding: 2px 7px;
    font-size: 11px;
}

@media (max-width: 1024px) {
    .hb-cart-link {
        margin-left: auto;
        margin-right: 8px;
    }
}