/* ─── Google Fonts ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ─── Design tokens ─────────────────────────────────────────────────── */
:root {
    --hsg-green:      #f0460e;
    --hsg-green-dark: #c7260a;
    --hsg-green-deep: #800b01;
    --hsg-green-lt:   #fef0ec;
    --hsg-green-mid:  #fdd0c0;
    --hsg-dark:       #111827;
    --hsg-text:       #1a1a1a;
    --hsg-muted:      #6b7280;
    --hsg-border:     #e0e0e0;
    --hsg-bg:         #f2f2f2;       /* light gray body — cards are white */
    --hsg-card:       #ffffff;       /* card / surface background */
    --hsg-bg-subtle:  #e8e8e8;       /* slightly darker gray for contrast areas */
}

/* ─── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--hsg-text);
    background: var(--hsg-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--hsg-green);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ─── Header / Nav ───────────────────────────────────────────────────── */
.hsg-header {
    background: var(--hsg-card);
    border-bottom: 1px solid var(--hsg-border);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.hsg-header .navbar {
    padding-top: .85rem;
    padding-bottom: .85rem;
}

.hsg-header .navbar-brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--hsg-text);
    display: flex;
    align-items: center;
    gap: .45rem;
    letter-spacing: -.015em;
}
.hsg-header .navbar-brand:hover { text-decoration: none; color: var(--hsg-text); }

.hsg-brand-world {
    color: var(--hsg-green);
    font-weight: 700;
}

.hsg-logo-icon { flex-shrink: 0; }

.hsg-header .nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--hsg-muted);
    padding: .35rem .65rem;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.hsg-header .nav-link:hover,
.hsg-header .nav-link:focus {
    color: var(--hsg-text);
    background: var(--hsg-bg-subtle);
    text-decoration: none;
}

.hsg-header .dropdown-menu {
    border: 1px solid var(--hsg-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    padding: .4rem;
    min-width: 190px;
    background: var(--hsg-card);
}
.hsg-header .dropdown-item {
    font-size: .875rem;
    border-radius: 6px;
    padding: .45rem .75rem;
    color: var(--hsg-text);
}
.hsg-header .dropdown-item:hover {
    background: var(--hsg-bg-subtle);
    color: var(--hsg-green);
}

/* ─── Hero Carousel ──────────────────────────────────────────────────── */
.hsg-carousel {
    width: 100%;
}

.hsg-carousel .carousel-item { height: 380px; }

@media (max-width: 767px) {
    .hsg-carousel .carousel-item { height: 270px; }
}

.hsg-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hsg-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10,10,10,.60) 40%,
        rgba(128,11,1,.50) 100%
    );
}

.hsg-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    padding: 0 1.5rem;
    color: #fff;
    text-align: center;
}

.hsg-slide-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #ffb89a;
    margin-bottom: .75rem;
}

.hsg-slide-content h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 .85rem;
}

.hsg-slide-content p {
    font-size: clamp(.875rem, 1.5vw, 1rem);
    color: rgba(255,255,255,.8);
    line-height: 1.65;
    margin: 0 auto 1.75rem;
    max-width: 46ch;
}

.hsg-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--hsg-green);
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    padding: .65rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s, transform .1s;
    letter-spacing: -.01em;
}
.hsg-slide-btn:hover {
    background: var(--hsg-green-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Carousel indicators */
.hsg-carousel .carousel-indicators {
    bottom: 1rem;
    margin: 0;
    gap: .4rem;
}
.hsg-carousel .carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    transition: background .2s, transform .2s;
}
.hsg-carousel .carousel-indicators .active {
    background: #fff;
    transform: scale(1.3);
}

/* Carousel controls */
.hsg-carousel-ctrl {
    width: 44px;
    opacity: 0;
    transition: opacity .2s;
}
.hsg-carousel:hover .hsg-carousel-ctrl { opacity: 1; }

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn-primary-brand {
    background: var(--hsg-green);
    color: #fff;
    border: 1.5px solid var(--hsg-green);
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    padding: .6rem 1.4rem;
    transition: background .15s, transform .1s;
}
.btn-primary-brand:hover {
    background: var(--hsg-green-dark);
    border-color: var(--hsg-green-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-outline-brand {
    background: transparent;
    color: var(--hsg-green);
    border: 1.5px solid var(--hsg-green);
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    padding: .6rem 1.4rem;
    transition: background .15s, color .15s;
}
.btn-outline-brand:hover {
    background: var(--hsg-green-lt);
    color: var(--hsg-green);
    text-decoration: none;
}

/* ─── Section label + heading pattern (Orisa-inspired) ───────────────── */
/*
   Usage:
   <div class="hsg-section-header mb-5">
       <p class="hsg-section-eyebrow">Popular Topics</p>
       <h2 class="hsg-section-heading">Start exploring</h2>
   </div>
*/
.hsg-section-header { display: flex; flex-direction: column; gap: .4rem; }

.hsg-section-eyebrow {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--hsg-green);
    margin: 0;
}
.hsg-section-eyebrow::after {
    content: '';
    display: block;
    height: 1.5px;
    width: 28px;
    background: var(--hsg-green);
    border-radius: 2px;
    flex-shrink: 0;
}

.hsg-section-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.2;
    color: var(--hsg-text);
    margin: 0;
}

/* Legacy small-cap section title — kept for compatibility */
.hsg-section-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--hsg-muted);
    margin-bottom: 1.25rem !important;
}

/* ─── Topic cards ────────────────────────────────────────────────────── */
.hsg-topic-card {
    display: block;
    border: 1px solid var(--hsg-border);
    border-radius: 10px;
    background: var(--hsg-card);
    overflow: hidden;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hsg-topic-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
    transform: translateY(-3px);
    text-decoration: none;
}

.hsg-topic-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--hsg-bg-subtle);
}
.hsg-topic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.hsg-topic-card:hover .hsg-topic-img img {
    transform: scale(1.05);
}

.hsg-topic-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--hsg-text);
    text-align: center;
    padding: .7rem .5rem;
    line-height: 1.3;
    letter-spacing: -.01em;
}

/* ─── Article cards ──────────────────────────────────────────────────── */
.hsg-article-card {
    border: 1px solid var(--hsg-border);
    border-radius: 10px;
    background: var(--hsg-card);
    transition: box-shadow .15s, border-color .15s, transform .15s;
}
.hsg-article-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    border-color: #d1d5db;
    transform: translateY(-2px);
}
.hsg-article-card .card-body { padding: 1.35rem; }
.hsg-article-card .card-title {
    font-size: .96rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.01em;
    margin: .35rem 0 .5rem;
}
.hsg-article-card .card-title a {
    color: var(--hsg-text);
}
.hsg-article-card .card-title a:hover {
    color: var(--hsg-green);
    text-decoration: none;
}
.hsg-article-card .card-text {
    font-size: .85rem;
    color: var(--hsg-muted);
    line-height: 1.55;
    margin: 0;
}

/* ─── Content type badges ────────────────────────────────────────────── */
.badge-content-type {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: .22rem .58rem;
    border-radius: 4px;
    line-height: 1.4;
}

.badge-explainer     { background: #eff6ff; color: #1d4ed8; }
.badge-buying_guide  { background: #f0fdf4; color: #166534; }
.badge-comparison    { background: #faf5ff; color: #6d28d9; }
.badge-how_to        { background: #fffbeb; color: #92400e; }
.badge-solution      { background: #fff1f2; color: #9f1239; }
.badge-product_review{ background: #fef3c7; color: #92400e; }
.badge-compatibility { background: #ecfeff; color: #155e75; }
.badge-troubleshooting{ background: #fef2f2; color: #991b1b; }
.badge-ideas         { background: #fdf4ff; color: #86198f; }
.badge-news          { background: #f8fafc; color: #475569; }
.badge-default       { background: #f1f1f1; color: var(--hsg-muted); }

/* ─── Article page ───────────────────────────────────────────────────── */
.hsg-article-header {
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--hsg-border);
    margin-bottom: 2rem;
}
.hsg-article-header h1 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin: .5rem 0 .75rem;
}
.hsg-article-header .lead {
    font-size: 1.05rem;
    color: var(--hsg-muted);
    line-height: 1.6;
    margin: 0;
}
.hsg-article-overview {
    font-size: .97rem;
    line-height: 1.65;
    color: var(--hsg-muted);
    border-left: 3px solid var(--hsg-green);
    padding: .75rem 1rem;
    background: rgba(0,150,80,.04);
    border-radius: 0 .4rem .4rem 0;
}

.hsg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .82rem;
    color: var(--hsg-muted);
    margin-top: 1rem;
}
.hsg-meta span { display: flex; align-items: center; gap: .3rem; }

/* ─── Article body ───────────────────────────────────────────────────── */
.hsg-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #1a1a1a;
    max-width: 68ch;
}

.hsg-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 2.5rem 0 .75rem;
    color: var(--hsg-text);
}

.hsg-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 2rem 0 .5rem;
    color: var(--hsg-text);
}

.hsg-body p { margin: 0 0 1.25rem; }

.hsg-body ul, .hsg-body ol {
    padding-left: 1.4rem;
    margin: 0 0 1.25rem;
}
.hsg-body li { margin-bottom: .35rem; }

.hsg-body strong { font-weight: 600; }

.hsg-body a {
    color: var(--hsg-green);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.hsg-body a:hover { text-decoration-thickness: 2px; }

.hsg-body blockquote {
    border-left: 3px solid var(--hsg-green-deep);
    padding: .5rem 1rem;
    margin: 1.5rem 0;
    color: var(--hsg-muted);
    font-style: italic;
}

.hsg-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    margin: 1.5rem 0;
    background: var(--hsg-card);
    border-radius: 8px;
    overflow: hidden;
}
.hsg-body th {
    text-align: left;
    font-weight: 600;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--hsg-muted);
    border-bottom: 1px solid var(--hsg-border);
    padding: .55rem .75rem;
}
.hsg-body td {
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--hsg-border);
    vertical-align: top;
}
.hsg-body tr:last-child td { border-bottom: none; }

/* ─── Disclosure ─────────────────────────────────────────────────────── */
.hsg-disclosure {
    font-size: .82rem;
    color: var(--hsg-muted);
    background: var(--hsg-card);
    border: 1px solid var(--hsg-border);
    border-radius: 6px;
    padding: .65rem 1rem;
    line-height: 1.55;
}

/* ─── Product cards ──────────────────────────────────────────────────── */
.hsg-products h2 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--hsg-muted);
}

.hsg-product-card {
    border: 1px solid var(--hsg-border);
    border-radius: 10px;
    background: var(--hsg-card);
    transition: box-shadow .15s, transform .15s;
}
.hsg-product-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.hsg-product-card .card-body { padding: 1.25rem; }
.hsg-product-card h3 {
    font-size: .9rem;
    line-height: 1.4;
    color: var(--hsg-text);
    margin: 0 0 .4rem;
    letter-spacing: -.01em;
}

/* ORDEN editorial card */
.hsg-orden {
    background: var(--hsg-bg-subtle);
    border: 1px solid var(--hsg-border) !important;
    border-radius: 8px !important;
    font-size: .8rem;
}
.hsg-orden-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--hsg-muted);
}

/* CTA button */
.hsg-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--hsg-green);
    border: 1.5px solid var(--hsg-green);
    border-radius: 8px;
    padding: .5rem 1rem;
    width: 100%;
    transition: background .15s, color .15s;
    text-decoration: none;
}
.hsg-cta-btn:hover {
    background: var(--hsg-green-dark);
    border-color: var(--hsg-green-dark);
    color: #fff;
    text-decoration: none;
}

/* ─── Trust bar ──────────────────────────────────────────────────────── */
.hsg-trust-bar {
    background: var(--hsg-card);
    border-top: 1px solid var(--hsg-border);
    border-bottom: 1px solid var(--hsg-border);
}
.hsg-trust-stat {
    text-align: center;
    padding: 1.5rem 1rem;
}
.hsg-trust-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--hsg-text);
    line-height: 1;
    margin-bottom: .3rem;
}
.hsg-trust-stat span {
    font-size: .78rem;
    font-weight: 500;
    color: var(--hsg-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.hsg-footer {
    background: var(--hsg-dark);
    color: #9ca3af;
}
.hsg-footer h6 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #e5e7eb;
    margin-bottom: .75rem;
}
.hsg-footer a {
    color: #9ca3af;
    font-size: .875rem;
    transition: color .15s;
}
.hsg-footer a:hover {
    color: #fff;
    text-decoration: none;
}
.hsg-footer hr { border-color: #374151; }
.hsg-footer-brand {
    font-size: 1rem;
    font-weight: 700;
    color: #f9fafb;
    letter-spacing: -.015em;
}
.hsg-footer .hsg-brand-world { color: #ffb89a; }
.hsg-footer-copy {
    font-size: .8rem;
    color: #6b7280;
}

/* ─── Value props ────────────────────────────────────────────────────── */
.hsg-value-props { background: var(--hsg-card); margin-bottom: 0; }
.hsg-value-props h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--hsg-text);
    letter-spacing: -.01em;
}
.hsg-value-props p {
    font-size: .875rem;
    color: var(--hsg-muted);
    line-height: 1.55;
}

/* ─── Layout ─────────────────────────────────────────────────────────── */
.hsg-main { /* cada vista gestiona su propio container */ }

/* ─── Article wrapper ────────────────────────────────────────────────── */
.hsg-article {
    background: var(--hsg-card);
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
}

/* Hero image */
.hsg-article-hero {
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: var(--hsg-bg-subtle);
}
.hsg-article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 767px) {
    .hsg-article-hero { height: 240px; }
}

/* Inner padding for all content after the hero */
.hsg-article-inner {
    padding: 2.5rem;
}
@media (max-width: 767px) {
    .hsg-article-inner { padding: 1.25rem; }
}

/* Inline figures inside article body */
.hsg-inline-figure {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--hsg-border);
}
.hsg-inline-figure img {
    width: 100%;
    display: block;
    max-height: 340px;
    object-fit: cover;
}
.hsg-inline-figure figcaption {
    font-size: .8rem;
    color: var(--hsg-muted);
    padding: .55rem .85rem;
    background: var(--hsg-bg-subtle);
    line-height: 1.5;
    border-top: 1px solid var(--hsg-border);
}

.hsg-backtotop-link {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .75rem 1rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.hsg-backtotop-link:hover {
    border-color: #f0460e;
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
    transform: translateY(-2px);
    color: #1a1a1a;
    text-decoration: none;
}
.hsg-backtotop-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fef0ec;
    color: #f0460e;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    transition: background .18s, color .18s;
}
.hsg-backtotop-link:hover .hsg-backtotop-arrow {
    background: #f0460e;
    color: #fff;
}
.hsg-backtotop-label {
    color: #888;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
    transition: color .18s;
}
.hsg-backtotop-link:hover .hsg-backtotop-label {
    color: #c7260a;
}

/* ─── Utilities ──────────────────────────────────────────────────────── */
.py-lg-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

/* ─── Breadcrumb ─────────────────────────────────────────────────────── */
.hsg-breadcrumb {
    background: var(--hsg-bg-subtle, #f7f7f7);
    border-bottom: 1px solid var(--hsg-border);
    padding: .4rem 0;
    font-size: .775rem;
    line-height: 1.4;
}
.hsg-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hsg-breadcrumb-item {
    display: flex;
    align-items: center;
    color: #999;
}
.hsg-breadcrumb-item + .hsg-breadcrumb-item::before {
    content: '/';
    margin: 0 .4rem;
    color: #d0d0d0;
    font-size: .7rem;
}
.hsg-breadcrumb-item a,
.hsg-breadcrumb-home {
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color .15s;
}
.hsg-breadcrumb-item a:hover,
.hsg-breadcrumb-home:hover {
    color: var(--hsg-green);
    text-decoration: none;
}
.hsg-breadcrumb-current {
    color: #444;
    font-weight: 500;
}
.hsg-breadcrumb-home svg {
    vertical-align: -.1em;
}


/* ── Product image carousel ───────────────────────────────────────────── */
.hsg-product-carousel { position: relative; }

.hsg-car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--hsg-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    padding: 0;
    z-index: 10;
    opacity: 0;
    transition: opacity .15s;
}
.hsg-product-carousel:hover .hsg-car-btn { opacity: 1; }
.carousel-control-prev.hsg-car-btn { left: .4rem; }
.carousel-control-next.hsg-car-btn { right: .4rem; }
.hsg-car-btn:hover { background: #fff; color: var(--hsg-green); }

.hsg-car-dots {
    position: absolute;
    bottom: .4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .3rem;
}
.hsg-car-dots button {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.25);
    padding: 0;
}
.hsg-car-dots button.active { background: var(--hsg-green); }

/* ─── Navbar toggler (dark icon on light background) ─────────────────── */
.hsg-header .navbar-toggler {
    border: 1px solid var(--hsg-border);
    padding: .3rem .55rem;
    border-radius: 6px;
    background: transparent;
}
.hsg-header .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}
.hsg-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826%2C26%2C26%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.4em;
    height: 1.4em;
}

/* ─── Mobile nav (below lg = 992px) ──────────────────────────────────── */
@media (max-width: 991.98px) {
    /* Panel que se despliega */
    .hsg-header .navbar-collapse {
        border-top: 1px solid var(--hsg-border);
        margin-top: .6rem;
        padding: .5rem 0 .75rem;
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
    }
    /* Eliminar gap entre items en móvil */
    .hsg-header .navbar-nav {
        gap: 0 !important;
    }
    /* Links principales más grandes y fáciles de tocar */
    .hsg-header .nav-link {
        padding: .65rem .75rem;
        font-size: .95rem;
        border-radius: 6px;
    }
    /* Dropdown abierto: menú inline, sin float ni sombra */
    .hsg-header .dropdown-menu {
        position: static !important;
        float: none !important;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: var(--hsg-bg);
        padding: .2rem .25rem .4rem 1.25rem;
        margin: 0;
        min-width: unset;
    }
    /* Items del dropdown más compactos en móvil */
    .hsg-header .dropdown-item {
        font-size: .875rem;
        padding: .5rem .65rem;
        border-radius: 5px;
    }
    /* Línea divisoria del dropdown en móvil */
    .hsg-header .dropdown-divider {
        margin: .25rem 0;
    }
    /* Flecha del dropdown toggle → cambia a ↑ cuando está abierto */
    .hsg-header .dropdown-toggle::after {
        transition: transform .2s ease;
    }
    .hsg-header .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
}

/* ── Cluster navigation (More in this topic) ─────────────────────────── */
.hsg-cluster-link {
    color: var(--hsg-text, #212529);
    line-height: 1.35;
    transition: color .15s;
}
.hsg-cluster-link:hover {
    color: var(--hsg-primary, #1a56db);
}
.hsg-cluster-nav .badge-content-type {
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
}
