/* ============================================
   DIVECO INTRANET v4 - Inspired by reference
   ============================================ */

:root {
    --blue: #1B56B2;
    --blue-dark: #12407D;
    --blue-light: #EBF1FA;
    --red: #C8102E;
    --green: #1FA149;
    --yellow: #F2B705;
    --yellow-hover: #D9A304;
    --gray-bg: #E8EAEF;
    --white: #FFFFFF;
    --card: #FFFFFF;
    --text: #1E2330;
    --text2: #555C6E;
    --text3: #8B93A5;
    --border: #D8DCE4;
    --border-light: #ECEEF3;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
    --tr: all 0.2s ease;
    --font: 'Inter', -apple-system, sans-serif;
    --font-d: 'Space Grotesk', 'Inter', sans-serif;
    --sidebar-w: 120px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--gray-bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--tr); }
img { max-width: 100%; height: auto; display: block; }

/* ========================
   LAYOUT
   ======================== */
.layout { display: flex; min-height: 100vh; }

/* ========================
   SIDEBAR
   ======================== */
.sidebar {
    width: var(--sidebar-w);
    background: var(--white);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar::before {
    content: '';
    display: block;
    height: 4px;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--red), var(--blue), var(--green));
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    gap: 4px;
    overflow-y: auto;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    width: 100px;
    border-radius: 14px;
    color: var(--text2);
    text-align: center;
    transition: var(--tr);
}

.sidebar-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    background: var(--gray-bg);
    color: var(--text2);
    transition: var(--tr);
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.15;
}

.sidebar-item:hover .sidebar-icon {
    background: var(--blue-light);
    color: var(--blue);
}

.sidebar-item:hover {
    color: var(--blue);
}

.sidebar-item.active {
    color: var(--blue);
}

.sidebar-item.active .sidebar-icon {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(27, 86, 178, 0.35);
}

/* ========================
   MAIN WRAP
   ======================== */
.main-wrap {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    min-width: 0;
    overflow-x: hidden;
    flex-direction: column;
}

/* ========================
   TOPBAR
   ======================== */
.topbar {
    height: 72px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text2);
    cursor: pointer;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-logo img,
.topbar-logo a img {
    height: 62px;
    width: auto;
    border-radius: 8px;
}

.topbar-company {
    font-family: var(--font-d);
    font-size: 1.5rem;
    color: var(--text);
    letter-spacing: -0.3px;
}

.topbar-company strong {
    font-weight: 800;
    color: var(--blue);
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-date {
    font-size: 0.8rem;
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.topbar-user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
}

.topbar-user-role {
    font-size: 0.68rem;
    color: var(--text3);
    font-weight: 400;
}

.topbar-user-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--tr);
    flex-shrink: 0;
}

.topbar-user-btn:hover { background: var(--blue-dark); color: #fff; }

/* ========================
   PAGE BODY
   ======================== */
.page-body {
    flex: 1;
    display: flex;
    gap: 20px;
    padding: 20px 24px 28px;
}

.page-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ========================
   BANNER CAROUSEL
   ======================== */
.banner-carousel {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
}

.banner-carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--yellow), var(--green), var(--blue));
    z-index: 11;
}

.carousel-wrap {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide { min-width: 100%; }

.slide-bg {
    position: relative;
    width: 100%;
    height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.slide-bg-default {
    background-color: #0d1a35;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(45deg, transparent 40%, rgba(27,86,178,0.15) 40%, rgba(27,86,178,0.15) 60%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(27,86,178,0.1) 40%, rgba(27,86,178,0.1) 60%, transparent 60%);
    background-size: 28px 28px, 28px 28px, 56px 56px, 56px 56px;
}

.slide-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,27,53,0.88) 0%, rgba(15,27,53,0.35) 50%, rgba(0,0,0,0.05) 100%);
}

.slide-inner {
    position: relative;
    z-index: 2;
    padding: 44px 48px;
    max-width: 600px;
}

.slide-inner h2 {
    font-family: var(--font-d);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
}

.slide-inner p {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 22px;
}

.btn-yellow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--yellow);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.84rem;
    transition: var(--tr);
    border: none;
    cursor: pointer;
}

.btn-yellow:hover {
    background: var(--yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 183, 5, 0.35);
}

.car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    z-index: 10;
    box-shadow: var(--shadow);
    transition: var(--tr);
}

.car-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.car-prev { left: 14px; }
.car-next { right: 14px; }

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: var(--tr);
}

.carousel-dot.active {
    background: var(--yellow);
    width: 24px;
    border-radius: 4px;
}

/* ========================
   ENTERATE (quick links)
   ======================== */
.section-enterate {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sec-heading {
    font-family: var(--font-d);
    font-size: 1.15rem;
    font-weight: 700;
}

.enterate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.enterate-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    text-align: center;
    transition: var(--tr);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.enterate-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}

.enterate-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.enterate-card h4 {
    font-family: var(--font-d);
    font-size: 0.92rem;
    font-weight: 700;
}

.enterate-card p {
    font-size: 0.74rem;
    color: var(--text3);
    line-height: 1.4;
}

/* ========================
   NOVEDADES
   ======================== */
.section-novedades {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sec-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sec-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sec-link:hover { color: var(--blue-dark); }

.novedades-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.novedad-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--tr);
    display: flex;
    flex-direction: column;
}

.novedad-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.novedad-img {
    height: 140px;
    overflow: hidden;
    background: var(--gray-bg);
}

.novedad-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.novedad-card:hover .novedad-img img {
    transform: scale(1.05);
}

.novedad-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text3);
    opacity: 0.18;
}

.novedad-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.novedad-body h3 {
    font-family: var(--font-d);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novedad-body p {
    font-size: 0.78rem;
    color: var(--text2);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-msg {
    text-align: center;
    padding: 36px;
    color: var(--text3);
    font-size: 0.84rem;
    width: 100%;
}

/* ========================
   RIGHT SIDEBAR WIDGETS
   ======================== */
.widget-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.widget-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.widget-card-header h3 {
    font-family: var(--font-d);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-card-header h3 i {
    color: var(--blue);
}

.widget-card-body { padding: 4px 0; }

.widget-card-btn {
    display: block;
    text-align: center;
    margin: 8px 14px 14px;
    padding: 10px;
    background: var(--yellow);
    color: var(--text);
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    transition: var(--tr);
}

.widget-card-btn:hover { background: var(--yellow-hover); }

.widget-birthday-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--tr);
}

.widget-birthday-item:last-child { border-bottom: none; }
.widget-birthday-item:hover { background: #F7F8FA; }

.widget-birthday-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.82rem;
}

.widget-birthday-info {
    flex: 1;
    min-width: 0;
}

.widget-birthday-info strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-birthday-info small {
    font-size: 0.68rem;
    color: var(--text3);
}

.widget-birthday-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 5px 8px;
    border-radius: 8px;
    color: #fff;
    flex-shrink: 0;
    gap: 1px;
}

.bday-month {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    opacity: 0.9;
}

.bday-day {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-d);
}

.badge-col-orange { background: #E87C2B; }
.badge-col-blue   { background: var(--blue); }
.badge-col-green  { background: var(--green); }
.badge-col-red    { background: var(--red); }

.widget-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--text3);
    font-size: 0.82rem;
}

/* ========================
   CALENDAR WIDGET
   ======================== */
.widget-cal-body { padding: 12px 14px 6px; }

.cal-wrap { margin-bottom: 14px; }

.cal-month-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.cal-month-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark);
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.cal-day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.cal-day-names span {
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    padding: 3px 0;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 0;
    border-radius: 8px;
    position: relative;
    gap: 2px;
    min-height: 32px;
}

.cal-day-empty { background: transparent; }

.cal-day-num {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--dark);
    line-height: 1;
}

.cal-today .cal-day-num {
    background: var(--blue);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
}

.cal-has-event {
    background: rgba(27, 86, 178, 0.07);
    border-radius: 8px;
}

.cal-today.cal-has-event { background: rgba(27, 86, 178, 0.12); }

.cal-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}
.cal-dot-blue   { background: var(--blue); }
.cal-dot-green  { background: var(--green); }
.cal-dot-red    { background: var(--red); }
.cal-dot-yellow { background: var(--yellow); }

/* Upcoming events list */
.cal-upcoming {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.cal-event-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f5f7fb;
    text-decoration: none;
    color: var(--dark);
    border-left: 3px solid var(--blue);
    transition: var(--tr);
}

.cal-event-item { cursor: default; }

.cal-event-blue   { border-left-color: var(--blue); }
.cal-event-green  { border-left-color: var(--green); }
.cal-event-red    { border-left-color: var(--red); }
.cal-event-yellow { border-left-color: #d49b00; }

.cal-event-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 40px;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    padding: 4px 6px;
    flex-shrink: 0;
}

.cal-event-blue   .cal-event-badge { background: var(--blue); }
.cal-event-green  .cal-event-badge { background: var(--green); }
.cal-event-red    .cal-event-badge { background: var(--red); }
.cal-event-yellow .cal-event-badge { background: #d49b00; }

.cal-event-day {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.cal-event-month {
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0.03em;
}

.cal-event-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.cal-event-info strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cal-event-info small {
    font-size: 0.68rem;
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cal-event-info small i {
    font-size: 0.6rem;
    color: var(--blue);
}

.widget-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
}

.widget-gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
}

.widget-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.widget-gallery-item:hover img { transform: scale(1.08); }

/* Widget links */
.widget-links {
    padding: 6px 0;
}

.widget-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--tr);
}

.widget-link-item:last-child { border-bottom: none; }
.widget-link-item:hover { background: #F7F8FA; }

.widget-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.widget-link-text {
    flex: 1;
    min-width: 0;
}

.widget-link-text strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
}

.widget-link-text small {
    font-size: 0.68rem;
    color: var(--text3);
}

.widget-link-arrow {
    color: var(--text3);
    font-size: 0.72rem;
    flex-shrink: 0;
    transition: var(--tr);
}

.widget-link-item:hover .widget-link-arrow {
    color: var(--blue);
}

/* ========================
   SINGLE POST
   ======================== */
.single-article {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.single-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.single-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--red);
    color: var(--white);
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-title {
    font-family: var(--font-d);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.25;
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.single-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--blue);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}

.single-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text2);
    font-weight: 500;
}

.single-meta-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.single-featured-img {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
}

.single-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.single-body {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.single-body h1,
.single-body h2,
.single-body h3 {
    font-family: var(--font-d);
    margin: 20px 0 10px;
}

.single-body p {
    color: var(--text2);
    line-height: 1.75;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.single-body img {
    border-radius: var(--radius-sm);
    margin: 14px 0;
}

.single-body a {
    color: var(--blue);
}

.single-nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.single-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--tr);
    max-width: 50%;
}

.single-nav-link:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow);
}

.single-nav-next {
    text-align: right;
    margin-left: auto;
}

.single-nav-dir {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 4px;
}

.single-nav-next .single-nav-dir {
    justify-content: flex-end;
}

.single-nav-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

/* Legacy badge kept for other templates */
.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--red);
    color: var(--white);
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.single-post-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3 {
    font-family: var(--font-d);
    margin: 20px 0 10px;
}

.single-post-content p {
    color: var(--text2);
    line-height: 1.75;
    margin-bottom: 12px;
}

.single-post-content img { border-radius: var(--radius-sm); margin: 14px 0; }
.single-post-content a { color: var(--blue); }

/* ARCHIVE */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.news-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--tr);
}

.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.news-image { height: 150px; overflow: hidden; background: var(--gray-bg); position: relative; }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--text3); opacity: 0.2; }
.news-date { position: absolute; top: 8px; left: 8px; background: var(--white); padding: 3px 8px; border-radius: 8px; font-size: 0.65rem; font-weight: 500; display: flex; align-items: center; gap: 4px; color: var(--text2); }
.news-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.news-title { font-family: var(--font-d); font-size: 0.9rem; font-weight: 700; line-height: 1.3; }
.news-title a:hover { color: var(--blue); }
.news-excerpt { font-size: 0.78rem; color: var(--text2); }
.news-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border-light); margin-top: auto; }
.news-author { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--text3); }
.news-author img { width: 20px; height: 20px; border-radius: 50%; }
.news-read-more { font-size: 0.76rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 4px; }
.news-read-more:hover { color: var(--blue-dark); }

.pagination-wrap { text-align: center; padding: 20px 0; }
.pagination-wrap .nav-links { display: flex; align-items: center; justify-content: center; gap: 4px; }
.pagination-wrap .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500; color: var(--text2); background: var(--white); border: 1px solid var(--border); transition: var(--tr); }
.pagination-wrap .page-numbers.current, .pagination-wrap .page-numbers:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ========================
   BLOG ARCHIVE
   ======================== */
.blog-archive {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-archive-header h1 {
    font-family: var(--font-d);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-archive-header h1 i {
    color: var(--blue);
}

.blog-archive-header p {
    font-size: 0.82rem;
    color: var(--text3);
    margin-top: 2px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-entry {
    display: flex;
    gap: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--tr);
}

.blog-entry:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.blog-entry-img {
    width: 300px;
    min-height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
    background: var(--gray-bg);
}

.blog-entry-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-entry:hover .blog-entry-img img {
    transform: scale(1.04);
}

.blog-entry-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text3);
    opacity: 0.15;
}

.blog-entry-body {
    flex: 1;
    padding: 22px 24px 22px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.blog-entry-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-entry-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--blue);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.blog-entry-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--text2);
    font-weight: 500;
}

.blog-entry-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.blog-entry-title {
    font-family: var(--font-d);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.blog-entry-title a:hover {
    color: var(--blue);
}

.blog-entry-excerpt {
    font-size: 0.86rem;
    color: var(--text2);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-entry-btn {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 4px;
    transition: var(--tr);
}

.blog-entry-btn:hover {
    background: var(--blue-dark);
}

@media (max-width: 768px) {
    .blog-entry {
        flex-direction: column;
    }

    .blog-entry-img {
        width: 100%;
        min-height: 180px;
        max-height: 220px;
    }

    .blog-entry-body {
        padding: 16px;
    }
}

/* ========================
   DIVISIONES
   ======================== */
.section-divisiones,
.section-marcas {
    margin-top: 8px;
}

.sec-subtitle {
    font-size: 0.85rem;
    color: var(--text3);
    margin-top: 2px;
    margin-bottom: 16px;
}

.divisiones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.division-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: var(--tr);
}

.division-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.division-camas::before { background: linear-gradient(90deg, var(--blue), var(--blue-dark)); }
.division-madera::before { background: linear-gradient(90deg, var(--green), #2ecc71); }
.division-retail::before { background: linear-gradient(90deg, var(--yellow), var(--red)); }

.division-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.division-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.division-camas .division-icon {
    background: rgba(27, 86, 178, 0.08);
    color: var(--blue);
}

.division-madera .division-icon {
    background: rgba(31, 161, 73, 0.08);
    color: var(--green);
}

.division-retail .division-icon {
    background: rgba(242, 183, 5, 0.1);
    color: var(--yellow-hover);
}

.division-card h3 {
    font-family: var(--font-d);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.division-tagline {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 10px;
    font-style: italic;
}

.division-madera .division-tagline { color: var(--green); }
.division-retail .division-tagline { color: var(--yellow-hover); }

.division-card p {
    font-size: 0.82rem;
    color: var(--text2);
    line-height: 1.55;
}

/* ========================
   MARCAS
   ======================== */
.marcas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.marca-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    transition: var(--tr);
}

.marca-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}

.marca-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 8px;
}

.marca-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.marca-card p {
    font-size: 0.72rem;
    color: var(--text3);
}

/* Divisiones/Marcas responsive */
@media (max-width: 900px) {
    .divisiones-grid { grid-template-columns: 1fr; }
    .marcas-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .marcas-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================
   PAGE: NOSOTROS
   ======================== */
.nosotros-hero {
    background: linear-gradient(135deg, #0F1B35 0%, var(--blue) 60%, var(--blue-dark) 100%);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    padding: 60px 40px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.nosotros-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 27, 53, 0.7);
}

.nosotros-hero-inner {
    position: relative;
    z-index: 2;
}

.nosotros-hero-inner h1 {
    font-family: var(--font-d);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.nosotros-hero-inner h1 strong {
    color: var(--yellow);
}

.nosotros-hero-inner p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
}

.tag-icon {
    height: 20px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.nosotros-section {
    margin-bottom: 28px;
}

.nosotros-section-header {
    margin-bottom: 20px;
}

.nosotros-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blue);
    margin-bottom: 8px;
}

.nosotros-section-header h2 {
    font-family: var(--font-d);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.nosotros-section-header p {
    color: var(--text2);
    font-size: 0.9rem;
}

/* About */
.nosotros-about {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.nosotros-about-text {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nosotros-about-text h2 {
    font-family: var(--font-d);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.nosotros-desc p {
    color: var(--text2);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.nosotros-about-img {
    min-height: 280px;
    overflow: hidden;
}

.nosotros-about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nosotros-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-light), var(--gray-bg));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text3);
}

.nosotros-img-placeholder i {
    font-size: 3rem;
    opacity: 0.25;
}

.nosotros-img-placeholder span {
    font-size: 0.8rem;
}

/* Mision y Vision */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mv-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.mv-mision::before {
    background: linear-gradient(90deg, var(--blue), var(--green));
}

.mv-vision::before {
    background: linear-gradient(90deg, var(--yellow), var(--red));
}

.mv-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.mv-mision .mv-icon {
    background: rgba(27, 86, 178, 0.08);
    color: var(--blue);
}

.mv-vision .mv-icon {
    background: rgba(242, 183, 5, 0.1);
    color: var(--yellow-hover);
}

.mv-card h3 {
    font-family: var(--font-d);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mv-card p {
    color: var(--text2);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* Valores Grid */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.valor-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--tr);
}

.valor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.valor-img {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

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

.valor-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 14px;
}

.mv-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.valor-card h4 {
    font-family: var(--font-d);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.valor-card p {
    font-size: 0.8rem;
    color: var(--text2);
    line-height: 1.55;
}

/* Cifras */
.cifras-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.cifra-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
}

.cifra-num {
    display: block;
    font-family: var(--font-d);
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.1;
    margin-bottom: 4px;
}

.cifra-label {
    font-size: 0.78rem;
    color: var(--text3);
    font-weight: 500;
}

/* Nosotros responsive */
@media (max-width: 900px) {
    .nosotros-about { grid-template-columns: 1fr; }
    .nosotros-about-img { min-height: 200px; }
    .mv-grid { grid-template-columns: 1fr; }
    .valores-grid { grid-template-columns: repeat(2, 1fr); }
    .cifras-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .valores-grid { grid-template-columns: 1fr; }
    .nosotros-hero { padding: 32px 24px; }
    .nosotros-hero-inner h1 { font-size: 1.5rem; }
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
    background: #0d1a35;
    padding: 14px 28px;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-left p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-nav a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    padding: 0 8px;
    border-left: 1px solid rgba(255,255,255,0.15);
    transition: color 0.2s;
}

.footer-nav a:first-child { border-left: none; }
.footer-nav a:hover { color: rgba(255,255,255,0.9); }

.footer-uts-logo {
    height: 44px;
    width: auto;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1100px) {
    .page-sidebar { width: 250px; }
}

@media (max-width: 900px) {
    .page-body { flex-direction: column; }
    .page-sidebar {
        width: 100%;
        flex-direction: column;
    }
}

/* ========================
   HOME ROW (novedades + featured)
   ======================== */
.home-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.home-novedades {
    flex: 0 0 55%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-featured {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Novedades V2 grid */
.novedades-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    flex: 1;
}

.novedad-card-v2 {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--dark);
    transition: var(--tr);
}

.novedad-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.novedad-img-v2 {
    position: relative;
    height: 145px;
    overflow: hidden;
    background: var(--gray-bg);
}

.novedad-img-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.novedad-card-v2:hover .novedad-img-v2 img {
    transform: scale(1.05);
}

.novedad-placeholder-v2 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text3);
    opacity: 0.15;
}

.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--green);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.novedad-body-v2 {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.novedad-body-v2 h3 {
    font-family: var(--font-d);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark);
}

.novedad-body-v2 p {
    font-size: 0.75rem;
    color: var(--text2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured Media card */
.featured-media-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-media-img {
    width: 100%;
    overflow: hidden;
    flex: 1;
    min-height: 180px;
}

.featured-media-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-media-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.featured-media-body p {
    font-size: 0.82rem;
    color: var(--text2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-featured-media {
    display: block;
    text-align: center;
    background: var(--blue);
    color: #fff;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--tr);
}

.btn-featured-media:hover { background: var(--blue-dark); color: #fff; }

.featured-media-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--text3);
    font-size: 0.82rem;
    min-height: 180px;
}

.featured-media-empty i { font-size: 2.5rem; opacity: 0.2; }

/* ======================== */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    .home-novedades { flex: 0 0 52%; }
    .page-sidebar { width: 240px; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    /* Sidebar izquierdo oculto */
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 200;
        height: 100%;
        top: 0; left: 0;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.2);
    }
    .sidebar-nav { justify-content: flex-start; padding: 24px 0; }

    /* Layout general */
    .main-wrap { margin-left: 0; width: 100%; }
    .topbar-toggle { display: block; }
    .topbar { padding: 0 14px; height: 58px; }
    .topbar-date { display: none; }
    .topbar-user-info { display: none; }
    .topbar-user-btn { display: none; }

    /* Page body apilado */
    .page-body {
        flex-direction: column;
        padding: 12px;
        gap: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    .page-content {
        width: 100%;
        min-width: 0;
        gap: 14px;
    }

    /* Carousel */
    .slide-bg { height: 220px; }
    .slide-inner { padding: 18px 18px 26px; max-width: 85%; }
    .slide-inner h2 { font-size: 1.1rem; }
    .slide-inner p { font-size: 0.8rem; margin-bottom: 14px; }
    .car-btn { width: 32px; height: 32px; font-size: 0.75rem; }

    /* Home row en columna */
    .home-row {
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }
    .home-novedades,
    .home-featured {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    /* Tarjetas en 1 columna en mobile */
    .novedades-grid-v2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .novedad-card-v2 { width: 100%; }
    .novedad-img-v2 { height: 160px; }

    /* Sidebar derecho al final */
    .page-sidebar {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 14px;
    }

    /* Footer */
    .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
    .footer-nav { justify-content: center; flex-wrap: wrap; }
    .site-footer { padding: 12px 16px; }
}

/* Pantallas muy pequeñas (≤400px) */
@media (max-width: 400px) {
    .slide-bg { height: 190px; }
    .slide-inner h2 { font-size: 0.95rem; }
    .slide-inner p { display: none; }
    .topbar-company { font-size: 0.85rem; }
    .topbar-logo img { height: 30px; }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 99;
}

.sidebar-overlay.active { display: block; }
