/* WikiGlass — Revista digital del vidrio · Magazine Style */
:root {
    --wg-primary: #000065;
    --wg-accent: #2AB9AD;
    --wg-green: #009640;
    --wg-dark: #0a0a1a;
    --wg-light: #f5f6f8;
    --wg-cream: #faf8f5;
    --wg-gray: #6c757d;
    --wg-gray-light: #adb5bd;
    --wg-border: #e9ecef;
    --wg-radius: 16px;
    --wg-radius-sm: 10px;
    --wg-shadow: 0 4px 20px rgba(0,0,0,0.06);
    --wg-shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --wg-shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --wg-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2d2d3a;
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--wg-primary);
    line-height: 1.25;
}

a { color: var(--wg-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--wg-primary); }

img { max-width: 100%; height: auto; display: block; }

.wg-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}
.wg-container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}

/* === NAV — Transparent over hero, solid on scroll === */
.wg-nav {
    background: var(--wg-primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wg-nav .wg-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.wg-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1.5rem;
}
.wg-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--wg-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
}
.wg-logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: -0.5px;
}
.wg-logo-text strong { font-weight: 700; }
.wg-nav-links { display: flex; gap: 28px; align-items: center; }
.wg-nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color var(--wg-transition);
}
.wg-nav-links a:hover { color: #fff; }

/* === HERO — Full-width magazine cover === */
.wg-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--wg-dark);
}
.wg-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.wg-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
.wg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,101,0.3) 0%,
        rgba(0,0,40,0.6) 40%,
        rgba(10,10,26,0.92) 100%
    );
    z-index: 1;
}
.wg-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 60px 0;
}
.wg-hero .wg-edition {
    display: inline-block;
    border: 1px solid rgba(42,185,173,0.5);
    color: var(--wg-accent);
    padding: 6px 16px;
    border-radius: 35px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}
.wg-hero h1 {
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
}
.wg-hero .wg-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 40px;
}
.wg-hero-stats {
    display: flex;
    gap: 0;
}
.wg-hero-stat {
    padding: 0 32px;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.wg-hero-stat:first-child { padding-left: 0; }
.wg-hero-stat:last-child { border-right: none; }
.wg-hero-stat .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    display: block;
    line-height: 1;
}
.wg-hero-stat .label {
    font-size: 0.75rem;
    color: var(--wg-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
    display: block;
}

/* === EDITORIAL — Magazine quote style === */
.wg-editorial {
    background: var(--wg-cream);
    padding: 72px 0;
    position: relative;
}
.wg-editorial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--wg-accent), transparent);
}
.wg-editorial-inner {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 48px;
    align-items: start;
}
.wg-editorial-img {
    border-radius: var(--wg-radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: var(--wg-shadow-lg);
}
.wg-editorial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wg-editorial-text {
    padding-top: 8px;
}
.wg-editorial-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--wg-primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 35px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.wg-editorial-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #3a3a4a;
}
.wg-editorial-content p { margin-bottom: 14px; }
.wg-editorial-content h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

/* === SECTION DIVIDER === */
.wg-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}
.wg-divider h2 { font-size: 2rem; white-space: nowrap; }
.wg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wg-border);
}
.wg-section-sub {
    color: var(--wg-gray);
    font-size: 0.95rem;
    margin-top: -28px;
    margin-bottom: 36px;
}

/* === SECTIONS === */
.wg-section {
    padding: 72px 0;
}
.wg-section-alt { background: var(--wg-light); }
.wg-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 36px;
}
.wg-section-header h2 { font-size: 2rem; }
.wg-section-header a {
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* === CATEGORY GRID — Magazine cards with images === */
.wg-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.wg-cat-card {
    position: relative;
    border-radius: var(--wg-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: #fff;
    transition: transform var(--wg-transition), box-shadow var(--wg-transition);
    box-shadow: var(--wg-shadow);
}
.wg-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--wg-shadow-xl);
    color: #fff;
}
.wg-cat-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.wg-cat-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--wg-transition);
}
.wg-cat-card:hover .wg-cat-card-bg img {
    transform: scale(1.08);
}
.wg-cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,40,0.85) 0%, rgba(0,0,40,0.2) 60%, transparent 100%);
    z-index: 1;
}
.wg-cat-card-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    width: 100%;
}
.wg-cat-card-content h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 4px;
}
.wg-cat-card-content .wg-cat-count {
    font-size: 0.8rem;
    color: var(--wg-accent);
    font-weight: 500;
}
.wg-cat-card-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.15);
}

/* === BRAND GRID — Logo-style cards === */
.wg-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.wg-brand-card {
    background: #fff;
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--wg-transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.wg-brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wg-accent);
    transform: scaleX(0);
    transition: transform var(--wg-transition);
}
.wg-brand-card:hover::before { transform: scaleX(1); }
.wg-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wg-shadow-lg);
    border-color: transparent;
    color: inherit;
}
.wg-brand-initial {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--wg-primary), #000040);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.wg-brand-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wg-primary);
    margin-bottom: 4px;
}
.wg-brand-card .wg-brand-count {
    font-size: 0.8rem;
    color: var(--wg-gray);
}

/* === FEATURED DOCS — Magazine article cards === */
.wg-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.wg-article-card {
    display: flex;
    background: #fff;
    border-radius: var(--wg-radius);
    overflow: hidden;
    box-shadow: var(--wg-shadow);
    transition: all var(--wg-transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--wg-border);
}
.wg-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wg-shadow-xl);
    border-color: transparent;
    color: inherit;
}
.wg-article-thumb {
    width: 200px;
    min-height: 180px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.wg-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--wg-transition);
}
.wg-article-card:hover .wg-article-thumb img { transform: scale(1.06); }
.wg-article-thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.wg-article-thumb-type {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}
.wg-article-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}
.wg-article-body .wg-article-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wg-accent);
    margin-bottom: 8px;
}
.wg-article-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wg-article-body .wg-article-excerpt {
    font-size: 0.85rem;
    color: var(--wg-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.wg-article-body .wg-article-meta {
    font-size: 0.75rem;
    color: var(--wg-gray-light);
    display: flex;
    gap: 12px;
}
.wg-article-body .wg-article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* === DOCUMENT LIST — Updated === */
.wg-doc-list { display: flex; flex-direction: column; gap: 16px; }
.wg-doc-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius);
    padding: 20px 24px;
    transition: all var(--wg-transition);
    text-decoration: none;
    color: inherit;
}
.wg-doc-item:hover {
    border-color: var(--wg-accent);
    box-shadow: var(--wg-shadow);
    transform: translateX(4px);
    color: inherit;
}
.wg-doc-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(42,185,173,0.1), rgba(0,0,101,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--wg-accent);
    flex-shrink: 0;
}
.wg-doc-icon {
    font-size: 1.5rem;
    color: var(--wg-accent);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}
.wg-doc-info { flex: 1; min-width: 0; }
.wg-doc-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--wg-primary);
}
.wg-doc-meta {
    font-size: 0.8rem;
    color: var(--wg-gray);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.wg-doc-meta span { display: flex; align-items: center; gap: 5px; }

/* === PAGE HEADER — with background image === */
.wg-page-header {
    position: relative;
    padding: 72px 0 56px;
    overflow: hidden;
    background: var(--wg-primary);
}
.wg-page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.wg-page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}
.wg-page-header .wg-container { position: relative; z-index: 1; }
.wg-page-header h1 { color: #fff; font-size: 2.5rem; margin-bottom: 10px; }
.wg-page-header p { color: rgba(255,255,255,0.65); font-size: 1rem; }
.wg-breadcrumb { margin-bottom: 16px; font-size: 0.85rem; }
.wg-breadcrumb a { color: var(--wg-accent); }
.wg-breadcrumb span { color: rgba(255,255,255,0.35); margin: 0 8px; }

/* === DOCUMENT VIEW === */
.wg-doc-view { padding: 56px 0; }
.wg-doc-content {
    background: #fff;
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius);
    padding: 48px 56px;
    line-height: 1.9;
    font-size: 1.05rem;
    color: #333;
}
.wg-doc-content h3 {
    font-size: 1.3rem;
    margin: 32px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wg-accent);
}
.wg-chunk {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--wg-border);
}
.wg-chunk:last-child { border-bottom: none; }
.wg-chunk-meta {
    font-size: 0.8rem;
    color: var(--wg-gray-light);
    margin-bottom: 10px;
}

/* === SEARCH === */
.wg-search-box {
    max-width: 640px;
    margin: 0 auto;
}
.wg-search-form {
    display: flex;
    gap: 0;
    border: 2px solid var(--wg-border);
    border-radius: 35px;
    overflow: hidden;
    transition: all var(--wg-transition);
    background: #fff;
    box-shadow: var(--wg-shadow);
}
.wg-search-form:focus-within {
    border-color: var(--wg-accent);
    box-shadow: 0 4px 24px rgba(42,185,173,0.15);
}
.wg-search-form input {
    flex: 1;
    border: none;
    padding: 16px 28px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    background: transparent;
}
.wg-search-form button {
    background: var(--wg-accent);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background var(--wg-transition);
}
.wg-search-form button:hover { background: var(--wg-primary); }
.wg-search-results-count {
    text-align: center;
    color: var(--wg-gray);
    margin: 24px 0;
    font-size: 0.95rem;
}

/* === SIDEBAR === */
.wg-sidebar {
    background: #fff;
    border-radius: var(--wg-radius);
    padding: 28px;
    border: 1px solid var(--wg-border);
    box-shadow: var(--wg-shadow);
    position: sticky;
    top: 88px;
}
.wg-sidebar h3 {
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wg-gray);
    margin-bottom: 18px;
}
.wg-sidebar-list { list-style: none; }
.wg-sidebar-list li { margin-bottom: 4px; }
.wg-sidebar-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--wg-radius-sm);
    font-size: 0.9rem;
    color: #444;
    transition: all 0.2s;
}
.wg-sidebar-list a:hover { background: var(--wg-light); color: var(--wg-accent); }
.wg-sidebar-list .count {
    color: var(--wg-gray-light);
    font-size: 0.8rem;
    font-weight: 500;
}

/* === LAYOUT 2-COL === */
.wg-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* === PHOTO BANNER — Decorative image strip === */
.wg-photo-banner {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}
.wg-photo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wg-photo-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,101,0.4), transparent 50%, rgba(0,0,101,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}
.wg-photo-banner-text {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    text-align: center;
}

/* === CHAT === */
.wg-chat-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--wg-accent), #1fa89d);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(42,185,173,0.4);
    z-index: 200;
    transition: all var(--wg-transition);
}
.wg-chat-btn:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(42,185,173,0.5); }
.wg-chat-panel {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 400px;
    max-height: 520px;
    background: #fff;
    border-radius: var(--wg-radius);
    box-shadow: var(--wg-shadow-xl);
    border: 1px solid var(--wg-border);
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.wg-chat-header {
    background: var(--wg-primary);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
}
.wg-chat-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s;
}
.wg-chat-close:hover { color: #fff; }
.wg-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: 370px;
}
.wg-chat-msg {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 88%;
}
.wg-chat-ai {
    background: var(--wg-light);
    color: #333;
    border-bottom-left-radius: 4px;
}
.wg-chat-user {
    background: var(--wg-accent);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.wg-chat-sources { margin-top: 8px; }
.wg-chat-sources a { font-size: 0.8rem; display: inline-block; margin-right: 8px; }
.wg-chat-input {
    display: flex;
    border-top: 1px solid var(--wg-border);
}
.wg-chat-input input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.wg-chat-input button {
    background: var(--wg-accent);
    color: #fff;
    border: none;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.2s;
}
.wg-chat-input button:hover { background: var(--wg-primary); }

/* === FOOTER — Magazine style === */
.wg-footer {
    background: var(--wg-dark);
    color: rgba(255,255,255,0.5);
    padding: 48px 0 32px;
    margin-top: 0;
}
.wg-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wg-footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
}
.wg-footer-brand strong { color: var(--wg-accent); }
.wg-footer-links { display: flex; gap: 24px; }
.wg-footer-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.wg-footer-links a:hover { color: var(--wg-accent); }
.wg-footer-copy {
    text-align: center;
    font-size: 0.8rem;
}
.wg-footer a { color: var(--wg-accent); }

/* === 404 === */
.wg-404 { text-align: center; padding: 100px 0; }
.wg-404 h1 { font-size: 6rem; color: var(--wg-accent); margin-bottom: 16px; }
.wg-404 p { font-size: 1.15rem; color: var(--wg-gray); margin-bottom: 32px; }
.wg-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--wg-accent);
    color: #fff;
    border-radius: 35px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--wg-transition);
    box-shadow: 0 4px 16px rgba(42,185,173,0.3);
}
.wg-btn:hover {
    background: var(--wg-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,101,0.3);
}

/* === TAGS === */
.wg-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--wg-light);
    border-radius: 35px;
    font-size: 0.8rem;
    color: var(--wg-gray);
    border: 1px solid var(--wg-border);
    font-weight: 500;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .wg-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .wg-featured-grid { grid-template-columns: 1fr; }
    .wg-editorial-inner { grid-template-columns: 1fr; }
    .wg-editorial-img { max-height: 300px; aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
    .wg-hero { min-height: 70vh; }
    .wg-hero h1 { font-size: 2.5rem; }
    .wg-hero-stats { flex-wrap: wrap; gap: 16px; }
    .wg-hero-stat { padding: 0 20px; }
    .wg-layout { grid-template-columns: 1fr; }
    .wg-cat-grid { grid-template-columns: 1fr 1fr; }
    .wg-brand-grid { grid-template-columns: 1fr 1fr; }
    .wg-chat-panel { width: calc(100% - 48px); right: 24px; }
    .wg-page-header h1 { font-size: 1.8rem; }
    .wg-doc-content { padding: 28px; }
    .wg-section { padding: 48px 0; }
    .wg-container { padding: 0 20px; }
    .wg-article-card { flex-direction: column; }
    .wg-article-thumb { width: 100%; min-height: 160px; }
    .wg-photo-banner { height: 200px; }
}
@media (max-width: 480px) {
    .wg-cat-grid { grid-template-columns: 1fr; }
    .wg-brand-grid { grid-template-columns: 1fr; }
    .wg-hero h1 { font-size: 2rem; }
    .wg-footer-inner { flex-direction: column; gap: 16px; }
}
