/* ── SIDEBAR OFF-CANVAS — La Gaceta Viajera
   Cargado diferido (preload+onload). Variables --gh-* en header.php. */

#gv-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,.6);
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}
#gv-overlay.is-open { opacity: 1; visibility: visible; }

#gv-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    max-width: 360px;
    background: #fff;
    z-index: 101;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 24px rgba(10,61,115,.18);
    display: flex;
    flex-direction: column;
    border-right: 3px solid #F0A52D;
}
#gv-sidebar.is-open { transform: translateX(0); }

/* ── Cabecera del sidebar ── */
.gv-sidebar-header {
    padding: 20px 24px;
    border-bottom: 3px solid #F0A52D;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0A3D73;
}
.gv-sidebar-brand {
    font-family: 'Playfair Display','Merriweather','Times New Roman',Times,serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.gv-btn-close {
    padding: 8px;
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,.7) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px !important;
    transition: color .2s, background .2s;
}
.gv-btn-close:hover,
.gv-btn-close:active,
.gv-btn-close:focus { background: rgba(255,255,255,.1) !important; color: #fff !important; }
.gv-btn-close svg { width: 22px; height: 22px; }

/* ── Cuerpo ── */
.gv-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px 24px;
    scrollbar-width: none;
    background: #fff;
}
.gv-sidebar-body::-webkit-scrollbar { display: none; }

.gv-sidebar-section { margin-bottom: 32px; }
.gv-sidebar-section-title {
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #5a7892;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8f0f7;
    position: relative;
}
.gv-sidebar-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 20px;
    height: 2px;
    background: #F0A52D;
}

/* ── Links de categorías ── */
.gv-sidebar-cats { display: flex; flex-direction: column; gap: 0; }
.gv-sidebar-cats a {
    font-family: 'Playfair Display','Merriweather','Times New Roman',Times,serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0A3D73;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #e8f0f7;
    transition: color .2s, padding-left .2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gv-sidebar-cats a::after {
    content: '›';
    color: #c2d9e8;
    font-size: 18px;
    transition: color .2s;
}
.gv-sidebar-cats a:hover { color: #F0A52D; padding-left: 4px; }
.gv-sidebar-cats a:hover::after { color: #F0A52D; }

/* ── Tags ── */
.gv-sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gv-sidebar-tags a {
    background: #f5f8fb;
    color: #5a7892;
    border: 1px solid #c2d9e8;
    border-radius: 20px;
    padding: 5px 12px;
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.gv-sidebar-tags a:hover {
    background: #F0A52D;
    color: #fff;
    border-color: #F0A52D;
}
