:root {
    --dgh-black: #111111;
    --dgh-gray: #6b6b6b;
    --dgh-border: #e5e5e5;
    --dgh-radius: 999px;
}

/* ===== Header base ===== */
.dgh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: #fff;
    position: relative;
    z-index: 10;
}

.dgh-logo {
    display: block;
    line-height: 0;
}

.dgh-logo img {
    height: 70px !important;
    display: block;
}

.dgh-nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
}

.dgh-link {
    color: var(--dgh-gray);
    text-decoration: none;
    font-size: 15px;
}

.dgh-link:hover {
    color: var(--dgh-black);
}

.dgh-btn {
    padding: 10px 20px;
    border-radius: var(--dgh-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    display: inline-block;
}

.dgh-btn-black {
    background: var(--dgh-black);
    color: #fff;
}

.dgh-btn-outline {
    background: #fff;
    color: var(--dgh-black);
    border: 1px solid var(--dgh-black);
}

/* ===== Botón hamburguesa (visible solo mobile) ===== */
.dgh-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.dgh-hamburger span {
    width: 100%;
    height: 2px;
    background: var(--dgh-black);
}

/* ===== Overlay mobile a pantalla completa ===== */
.dgh-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 999;
    flex-direction: column;
    overflow-y: auto;
}

.dgh-mobile-menu.dgh-open {
    display: flex;
}

.dgh-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.dgh-close {
    position: relative;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.dgh-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: var(--dgh-black);
}

.dgh-close span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.dgh-close span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.dgh-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0 24px;
}

.dgh-mobile-list li {
    border-bottom: 1px solid var(--dgh-border);
}

.dgh-mobile-list a {
    display: block;
    padding: 18px 4px;
    color: var(--dgh-gray);
    text-decoration: none;
    font-size: 16px;
}

.dgh-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
}

/* ===== Member (logueado) ===== */
.dgh-member {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.dgh-member-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #157e73;
    font-weight: 600;
    background: #eaf5f2;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.dgh-member-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #157e73;
}

.dgh-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--dgh-black);
    color: #fff;
    border: none;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
}

.dgh-avatar-mobile {
    display: grid;
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.dgh-member-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid var(--dgh-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    min-width: 170px;
    padding: 6px;
    z-index: 20;
}

.dgh-member-menu.dgh-member-menu-open {
    display: block;
}

.dgh-member-menu-item {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--dgh-black);
    text-decoration: none;
    border-radius: 8px;
}

.dgh-member-menu-item:hover {
    background: #f5f5f5;
}

/* ===== Mobile member block ===== */
.dgh-mobile-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--dgh-border);
}

.dgh-mobile-member-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
}

@media (max-width: 768px) {
    .dgh-member-status {
        display: none;
    }
}

/* ===== Breakpoint ===== */
@media (max-width: 768px) {
    .dgh-nav-desktop {
        display: none;
    }

    .dgh-hamburger {
        display: flex;
    }
}

@media (min-width: 769px) {
    .dgh-mobile-menu {
        display: none !important;
    }
}