/**
 * Normas Archive & Home Styles
 */

/* ============================================
   BOOTSTRAP OVERRIDES - Colors del logo FACPCE
   ============================================ */
:root {
    --bs-primary: #0e2b58;
    --bs-primary-rgb: 14, 43, 88;
    --bs-body-font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    --bs-font-sans-serif: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Títulos usan Raleway */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
[class*="__title"],
.site-name {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Bootstrap Primary Button Overrides */
.btn-primary {
    background-color: #0e2b58;
    border-color: #0e2b58;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0a1f3f;
    border-color: #0a1f3f;
}

.btn-primary:active,
.btn-primary.active {
    background-color: #0a1f3f;
    border-color: #0a1f3f;
}

.btn-outline-primary {
    color: #0e2b58;
    border-color: #0e2b58;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #0e2b58;
    border-color: #0e2b58;
    color: white;
}

.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: #0e2b58;
    border-color: #0e2b58;
    color: white;
}

/* ============================================
   NORMAS HOME - Landing Page (Optimized with Bootstrap)
   ============================================ */

/* Title - FACPCE color */
.normas-home__title {
    font-size: 2.5rem;
    color: #0e2b58;
}

/* Section cards - title color */
.normas-section-card__title {
    color: #0e2b58;
}

/* CTA color */
.normas-section-card__cta {
    color: #0e2b58;
}

/* Card hover effects - custom transition */
.normas-section-card {
    color: inherit;
    transition: all 0.3s ease;
    border-color: #e0e0e0 !important;
}

.normas-section-card:hover {
    border-color: #0e2b58 !important;
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.15);
    transform: translateY(-4px);
}

.normas-section-card--internacional:hover {
    border-color: #009933 !important;
}

/* ============================================
   NORMAS ARCHIVE - Listado
   ============================================ */
.normas-archive {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .normas-archive {
        padding: 0.75rem;
    }

    .site-main {
        padding: 1.25rem 0.5rem;
    }
}

/* Header */
.normas-archive__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 1rem;
}

.normas-archive__header-left h1 {
    font-size: 2rem;
    color: #0e2b58;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.normas-archive__icon {
    font-size: 2.5rem;
}

.normas-archive__breadcrumb {
    font-size: 0.75rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.normas-archive__breadcrumb .breadcrumb-icon {
    color: #999;
    font-size: 0.85rem;
    margin-right: 0.1rem;
}

.normas-archive__breadcrumb-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.normas-archive__breadcrumb-link:hover {
    color: #0e2b58;
}

.normas-archive__breadcrumb .separator-icon {
    color: #ccc;
    font-size: 0.65rem;
}

/* Results header - contiene contador de resultados y controles */
.normas-archive__results-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Results Count */
.normas-archive__results-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-left: 3px solid #0e2b58;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
}

.normas-archive__results-count i {
    color: #0e2b58;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.normas-archive__results-text {
    line-height: 1.4;
}

/* Controls - contiene botón de filtros mobile + botones de ordenamiento */
.normas-archive__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Botón de filtros mobile - inline en controls */
.normas-mobile-filters-toggle {
    display: none; /* Oculto en desktop */
    background: #0e2b58;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.normas-mobile-filters-toggle i {
    font-size: 1rem;
}

.normas-mobile-filters-toggle:hover {
    background: #0a1f3f;
}

.normas-mobile-filters-toggle:active {
    transform: scale(0.97);
}

/* Sort Controls */
.normas-archive__sort-controls {
    margin-bottom: 1.5rem;
}

/* Sort buttons - Bootstrap button group overrides */
.btn-group-sm .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.btn-group-sm .btn i {
    font-size: 0.9rem;
}

/* Mobile adjustments for button group */
@media (max-width: 768px) {
    .btn-group-sm .btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.45rem;
        min-width: auto;
    }

    .btn-group-sm .btn i {
        font-size: 0.85rem;
    }
}

/* Empty State */
.normas-archive__empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.normas-archive__empty i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.normas-archive__empty h3 {
    margin: 0 0 1rem;
    color: #333;
    font-size: 1.25rem;
}

.normas-archive__empty p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.normas-archive__empty-suggestion {
    font-style: italic;
    color: #999;
    font-size: 0.9rem;
}

/* Buscador */
.normas-archive__search {
    min-width: 300px;
}

.normas-search-form {
    width: 100%;
}

.normas-search-form__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.normas-search-form__input {
    flex: 1;
    padding: 0.6rem 2.8rem 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
    width: 100%;
}

.normas-search-form__input:focus {
    outline: none;
    border-color: #0e2b58;
    box-shadow: 0 0 0 3px rgba(14, 43, 88, 0.1);
}

.normas-search-form__icon {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.normas-search-form__icon.hidden {
    display: none;
}

.normas-search-form__icon--search:hover {
    color: #0e2b58;
}

.normas-search-form__icon--clear:hover {
    color: #e74c3c;
}

.normas-search-form__icon i {
    font-size: 1.1rem;
}

/* Body - 2 columnas */
.normas-archive__body {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .normas-archive__body {
        grid-template-columns: 1fr;
    }

    .normas-archive__sidebar {
        order: 2;
    }
}

/* ============================================
   SIDEBAR
   ============================================ */
.normas-archive__sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

/* Secciones del sidebar (Filtros / Categorías) */
.normas-sidebar-section {
    margin-bottom: 1.5rem;
}

.normas-sidebar-section:last-child {
    margin-bottom: 0;
}

.normas-sidebar-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0e2b58;
    margin: 0 0 1rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #0e2b58;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.normas-sidebar-section__title i {
    font-size: 1.1rem;
}

/* Quick Nav - Navegación compacta entre secciones */
.normas-quick-nav {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.normas-quick-nav__tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border: 1px solid #d0d8e0;
    border-radius: 4px;
    background: #f8f9fa;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.normas-quick-nav__tab:hover {
    border-color: #0e2b58;
    background: #e0e8f0;
}

.normas-quick-nav__tab--active {
    border-color: #0e2b58;
    background: #0e2b58;
}

/* Taxonomy Header - Título + Ver todos */
.normas-taxonomy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.normas-taxonomy-header__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0e2b58;
    margin: 0;
}

.normas-taxonomy-header__all {
    font-size: 0.7rem;
    color: #999;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.normas-taxonomy-header__all:hover {
    color: #0e2b58;
    background: #e0e8f0;
}

.normas-taxonomy-header__all--active {
    color: #0e2b58;
    background: #e0e8f0;
    font-weight: 600;
}

/* Year Filter */
.normas-year-filter {
    margin-bottom: 0;
}

.normas-year-filter__label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #0e2b58;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.normas-year-filter__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.normas-year-filter__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #666;
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.2s;
    cursor: pointer;
}

.normas-year-filter__btn:hover {
    background: #e9ecef;
    border-color: #0e2b58;
    color: #0e2b58;
}

.normas-year-filter__btn--active {
    background: #0e2b58;
    border-color: #0e2b58;
    color: white;
    font-weight: 600;
}

.normas-year-filter__btn--active:hover {
    background: #0052a3;
    color: white;
}

/* EIFRS Link */
.normas-sidebar__eifrs {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #e8f4f8;
    border-radius: 4px;
}

.normas-sidebar__eifrs h3 {
    margin: 0;
    font-size: 0.95rem;
}

.normas-sidebar__eifrs a {
    color: #0e2b58;
    text-decoration: none;
}

.normas-sidebar__eifrs a:hover {
    text-decoration: underline;
}

/* Taxonomías */
/* Lista de definición */
.normas-sidebar__list {
    margin: 0;
    padding: 0;
}

/* Término padre (dt) */
.normas-sidebar__term {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin: 0 0 0.2rem 0;
    font-weight: normal;
}

.normas-sidebar__toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.7rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.normas-sidebar__toggle:hover {
    color: #0e2b58;
}

.normas-sidebar__toggle[data-expanded="false"] .normas-sidebar__toggle-icon {
    transform: rotate(-90deg);
}

.normas-sidebar__toggle-spacer {
    width: 16px;
    flex-shrink: 0;
}

.normas-sidebar__bullet {
    width: 16px;
    flex-shrink: 0;
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    position: relative;
    top: -4px;
}

.normas-sidebar__term-link {
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

.normas-sidebar__term-link:hover {
    color: #0e2b58;
}

/* Links en árbol anidado */
.normas-sidebar__link {
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: normal;
}

/* Active and Ancestor Terms */
.normas-sidebar__term--ancestor .normas-sidebar__term-link,
.normas-sidebar__item--ancestor .normas-sidebar__link {
    color: #000;
    font-weight: 600;
}

.normas-sidebar__item--active .normas-sidebar__link {
    color: #000;
    font-weight: 700;
}

/* Definición/Hijos (dd) */
.normas-sidebar__definition {
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    max-height: 2000px;
}

.normas-sidebar__definition.collapsed {
    max-height: 0;
}

/* Hijos anidados dentro del árbol */
.normas-sidebar__nested {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    max-height: 2000px;
}

.normas-sidebar__nested.collapsed {
    max-height: 0;
}

.normas-sidebar__item {
    margin-bottom: 0;
}

.normas-sidebar__item--active .normas-sidebar__link {
    color: #0e2b58;
    font-weight: 600;
}

.normas-sidebar__indent {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 20px;
}

.normas-sidebar__icon {
    font-size: 0.6rem;
    color: #999;
    width: 10px;
    text-align: center;
}

.normas-sidebar__link {
    color: #333;
    text-decoration: none;
    font-size: 0.78rem;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

.normas-sidebar__link:hover {
    color: #0e2b58;
}

.normas-sidebar__count {
    color: #999;
    font-size: 0.75rem;
}

/* ============================================
   LISTADO DE NORMAS
   ============================================ */
.normas-archive__main {
    background: white;
}

.normas-archive__search-info {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.normas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.normas-list__item {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.normas-list__item:hover {
    background: #f8f9fa;
}

.normas-list__item:last-child {
    border-bottom: none;
}

/* Mobile: meta-line arriba (100%), luego thumb + content */
.normas-list__meta-line {
    grid-column: 1 / -1; /* Ocupa ambas columnas */
    grid-row: 1;
}

.normas-list__thumbnail {
    grid-column: 1;
    grid-row: 2;
}

.normas-list__content {
    grid-column: 2;
    grid-row: 2;
}

/* Desktop: thumb a la izquierda (todas las filas), meta-line y content apilados a la derecha */
@media (min-width: 769px) {
    .normas-list__item {
        grid-template-columns: 120px 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .normas-list__thumbnail {
        grid-column: 1;
        grid-row: 1 / -1; /* Ocupa todas las filas */
    }

    .normas-list__meta-line {
        grid-column: 2;
        grid-row: 1;
    }

    .normas-list__content {
        grid-column: 2;
        grid-row: 2;
    }
}

.normas-list__thumbnail {
    width: 100%;
    height: 120px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.normas-list__thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.normas-list__thumbnail a:hover {
    opacity: 0.85;
}

.normas-list__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

.normas-list__icon-fallback {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
}

.normas-list__title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.normas-list__title a {
    color: #0e2b58;
    text-decoration: none;
}

.normas-list__title a:hover {
    color: #0e2b58;
    text-decoration: underline;
}

.normas-list__description {
    color: #666;
    font-size: 0.85rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.normas-list__metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

.normas-list__metadata-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.normas-list__format-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    vertical-align: middle;
}

.normas-list__separator {
    color: #ccc;
    font-weight: 300;
}

.normas-list__metadata-link {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1;
}

.normas-list__metadata-link:hover {
    color: #0e2b58;
}

.normas-list__metadata-link i {
    font-size: 0.9rem;
}

.normas-list__date {
    color: #999;
    margin-top: 0.5rem;
}

.normas-list__date--eyebrow {
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1;
}

.normas-list__meta-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    line-height: 1;
    font-size: 0.7rem;
    color: gray;
}

.normas-list__meta-line .normas-list__date {
    margin-bottom: 0;
}

.normas-list__meta-line .normas-list__separator {
    color: #999;
    line-height: 1;
}

.normas-list__breadcrumb {
  margin-top: 0;
  margin-bottom: 0;
}


.normas-list__breadcrumb .bi-chevron-right {
    font-size: 0.75em;
    opacity: 0.6;
    margin: 0 0.1em;
}

/* Vista de grilla */
.normas-list--grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 columna */
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .normas-list--grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.normas-list--grid .normas-list__item {
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.normas-list--grid .normas-list__item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.normas-list--grid .normas-list__thumbnail {
    width: 100%;
    height: 300px;
    border-radius: 0;
}

.normas-list--grid .normas-list__content {
    padding: 1rem;
}

.normas-list--grid .normas-list__title {
    font-size: 0.95rem;
}

.normas-list--grid .normas-list__description {
    font-size: 0.8rem;
}

/* Control de thumbnails según vista */
/* Por defecto (lista): mostrar thumbnail pequeño, ocultar grande */
.normas-list__thumbnail--grid {
    display: none;
}

.normas-list__thumbnail--list {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* En vista de grilla: mostrar thumbnail grande, ocultar pequeño */
.normas-list--grid .normas-list__thumbnail--list {
    display: none;
}

.normas-list--grid .normas-list__thumbnail--grid {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Paginación */
.normas-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.normas-pagination--top {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-top: 0;
    padding-bottom: 1rem;
    border-top: none;
    border-bottom: 1px solid #e0e0e0;
}

.normas-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    background: white;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.normas-pagination__link:hover {
    background: #0e2b58;
    color: white;
    border-color: #0e2b58;
}

.normas-pagination__link--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.normas-pagination__link--disabled:hover {
    background: white;
    color: #666;
    border-color: #ddd;
}

.normas-pagination__number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    background: white;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.normas-pagination__number:hover {
    background: #f0f4f8;
    border-color: #0e2b58;
    color: #0e2b58;
}

.normas-pagination__number--current {
    background: #0e2b58;
    color: white;
    border-color: #0e2b58;
    font-weight: 600;
}

.normas-pagination__ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    color: #999;
    font-size: 0.85rem;
}

/* Contenedores de páginas desktop/mobile */
.normas-pagination__pages-desktop {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.normas-pagination__pages-mobile {
    display: none;
    gap: 0.25rem;
    align-items: center;
}

/* Mobile: mostrar versión mobile, ocultar desktop */
@media (max-width: 768px) {
    .normas-pagination__pages-desktop {
        display: none;
    }

    .normas-pagination__pages-mobile {
        display: flex;
    }
}

/* Vacío */
.normas-archive__empty {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* ============================================
   SINGLE NORMA
   ============================================ */

.single-norma {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.single-norma__header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.single-norma__breadcrumb {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.single-norma__breadcrumb a {
    color: #0e2b58;
    text-decoration: none;
}

.single-norma__breadcrumb a:hover {
    text-decoration: underline;
}

.single-norma__breadcrumb-separator {
    margin: 0 0.5rem;
    color: #999;
}

.single-norma__title {
    font-size: 2rem;
    color: #0e2b58;
    margin: 0 0 1rem 0;
}

.single-norma__description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.single-norma__meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 1.5rem;
}

.single-norma__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.single-norma__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.single-norma__button--primary {
    background: #0e2b58;
    color: white;
}

.single-norma__button--primary:hover {
    background: #0052a3;
}

.single-norma__button--secondary {
    background: #28a745;
    color: white;
}

.single-norma__button--secondary:hover {
    background: #218838;
}

.single-norma__button--outline {
    background: transparent;
    color: #0e2b58;
    border-color: #0e2b58;
}

.single-norma__button--outline:hover {
    background: #e6f2ff;
}

.single-norma__button--edit {
    background: #f8f9fa;
    color: #666;
    border-color: #ddd;
}

.single-norma__button--edit:hover {
    background: #e9ecef;
}

.single-norma__preview {
    margin: 2rem 0;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1rem;
    background: #f9f9f9;
}

.single-norma__preview img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 3px;
}

.single-norma__icon-preview {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.single-norma__file-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.single-norma__icon-label {
    margin: 0;
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.single-norma__viewer {
    margin: 2rem 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.single-norma__iframe {
    width: 100%;
    height: 800px;
    display: block;
}

.single-norma__taxonomies {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.single-norma__taxonomies h3 {
    font-size: 1.2rem;
    color: #0e2b58;
    margin-bottom: 1rem;
}

.single-norma__taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.single-norma__taxonomy-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e6f2ff;
    color: #0e2b58;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.single-norma__taxonomy-tag:hover {
    background: #0e2b58;
    color: white;
}

/* ============================================
   HEADER NAVIGATION (WordPress Menu)
   ============================================ */

/* Botón hamburger */
.header-menu-toggle {
    display: none; /* Oculto en desktop, visible en mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    z-index: 1002;
    flex-direction: column;
    gap: 4px;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: #0e2b58;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header-menu-toggle:hover .hamburger-line {
    background: #0a1f3f;
}

/* Cuando está activo (transformado en X), mantener color azul */
.header-menu-toggle.active .hamburger-line {
    background: #0e2b58;
}

/* Animación del hamburger a X cuando está abierto */
.header-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.header-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay del drawer */
.header-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-menu-overlay.active {
    display: block;
    opacity: 1;
}



.header-main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.header-nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav-menu > .menu-item {
    position: relative;
}

.header-nav-menu > .menu-item > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #0e2b58;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.header-nav-menu > .menu-item > a:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.header-nav-menu > .menu-item.current-menu-item > a,
.header-nav-menu > .menu-item.current_page_item > a {
    background: #0e2b58;
    color: white;
    border-color: #0e2b58;
}

/* Items personalizados del usuario - estilo de link simple */
.header-nav-menu > .menu-item-custom {
    display: flex;
    align-items: center;
}

.header-nav-menu > .menu-item-custom > a {
    background: transparent;
    color: #344054;
    padding: 0.5rem 0.75rem;
    border: none;
    font-weight: 400;
}

.header-nav-menu > .menu-item-custom > a:hover {
    background: transparent;
    color: #0e2b58;
    text-decoration: underline;
    transform: none;
}

.header-nav-menu > .menu-item-custom.current-menu-item > a {
    background: transparent;
    color: #0e2b58;
    border: none;
    font-weight: 600;
}

/* Separadores automáticos */
/* Separador antes de cada item personalizado */
.header-nav-menu > .menu-item-custom::before {
    content: "|";
    display: flex;
    align-items: center;
    color: #d0d5dd;
    font-size: 1.1rem;
    padding: 0 0.5rem;
    user-select: none;
    pointer-events: none;
}

/* Separador antes del grupo admin/login */
.header-nav-menu > .menu-item-admin::before,
.header-nav-menu > .menu-item-login::before {
    content: "|";
    display: flex;
    align-items: center;
    color: #d0d5dd;
    font-size: 1.1rem;
    padding: 0 0.5rem;
    user-select: none;
    pointer-events: none;
}

/* Separador visual entre secciones del menú */
.header-nav-menu > .menu-separator {
    display: flex;
    align-items: center;
    color: #d0d5dd;
    font-size: 1.1rem;
    padding: 0 0.5rem;
    user-select: none;
    pointer-events: none;
}

/* Estilos especiales para items de admin/login */
.header-nav-menu > .menu-item-admin,
.header-nav-menu > .menu-item-logout,
.header-nav-menu > .menu-item-login {
    display: flex;
    align-items: center;
}

.header-nav-menu > .menu-item-admin > a,
.header-nav-menu > .menu-item-logout > a,
.header-nav-menu > .menu-item-login > a {
    padding: 0.5rem 0.75rem;
    background: transparent;
    color: #6c757d;
    min-width: 36px;
    justify-content: center;
}

.header-nav-menu > .menu-item-admin > a:hover,
.header-nav-menu > .menu-item-logout > a:hover,
.header-nav-menu > .menu-item-login > a:hover {
    background: #f8f9fa;
    color: #0e2b58;
}

/* Ocultar labels de admin/login en desktop */
.header-nav-menu > .menu-item-admin .menu-label,
.header-nav-menu > .menu-item-logout .menu-label,
.header-nav-menu > .menu-item-login .menu-label {
    display: none;
}

/* Submenús */
.header-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0.25rem 0 0 0;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1000;
    border-radius: 6px;
}

.header-nav-menu .menu-item:hover > .sub-menu {
    display: block;
}

.header-nav-menu .sub-menu .menu-item {
    display: block;
}

.header-nav-menu .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #344054;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-nav-menu .sub-menu a:hover {
    background: #f8f9fa;
    color: #0e2b58;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .header-wrapper {
        justify-content: space-between;
        gap: 1rem;
    }

    /* Mostrar botón hamburger */
    .header-menu-toggle {
        display: flex;
    }

    /* Convertir navegación en drawer lateral */
    .header-main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        z-index: 1000;
        overflow-y: auto;
        transition: right 0.3s ease;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    }

    .header-main-nav.active {
        right: 0;
    }

    /* Menú vertical */
    .header-nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0.75rem 0;
    }

    .header-nav-menu > .menu-item {
        width: 100%;
    }

    .header-nav-menu > .menu-item > a {
        width: 100%;
        padding: 0.875rem 1.5rem;
        border-radius: 0;
        justify-content: flex-start;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        background: white;
    }

    .header-nav-menu > .menu-item > a:hover {
        background: #f8f9fa;
        transform: none;
    }

    .header-nav-menu > .menu-item.current-menu-item > a,
    .header-nav-menu > .menu-item.current_page_item > a {
        background: #e9ecef;
        color: #0e2b58;
        border-left: 4px solid #0e2b58;
        padding-left: calc(1.5rem - 4px);
    }

    /* Items personalizados - mantener estilo */
    .header-nav-menu > .menu-item-custom > a {
        background: white;
        color: #344054;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .header-nav-menu > .menu-item-custom > a:hover {
        background: #f8f9fa;
        text-decoration: none;
    }

    .header-nav-menu > .menu-item-custom.current-menu-item > a {
        background: #e9ecef;
        font-weight: 600;
        border-left: 4px solid #0e2b58;
        padding-left: calc(1.5rem - 4px);
    }

    /* Separadores: ocultar ::before pero agregar línea divisoria */
    .header-nav-menu > .menu-item-custom::before,
    .header-nav-menu > .menu-item-admin::before,
    .header-nav-menu > .menu-item-login::before {
        display: none;
    }

    /* Línea divisoria antes de items personalizados */
    .header-nav-menu > .menu-item-custom:first-of-type {
        border-top: 2px solid #e0e0e0;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    /* Línea divisoria antes del grupo admin/login */
    .header-nav-menu > .menu-item-admin:first-of-type,
    .header-nav-menu > .menu-item-login:first-of-type {
        border-top: 2px solid #e0e0e0;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    /* Items admin/login */
    .header-nav-menu > .menu-item-admin > a,
    .header-nav-menu > .menu-item-logout > a,
    .header-nav-menu > .menu-item-login > a {
        padding: 0.875rem 1.5rem;
        background: white;
        color: #6c757d;
        min-width: auto;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .header-nav-menu > .menu-item-admin > a:hover,
    .header-nav-menu > .menu-item-logout > a:hover,
    .header-nav-menu > .menu-item-login > a:hover {
        background: #f8f9fa;
    }

    /* Mostrar labels de texto en drawer mobile */
    .header-nav-menu > .menu-item-admin .menu-label,
    .header-nav-menu > .menu-item-logout .menu-label,
    .header-nav-menu > .menu-item-login .menu-label {
        display: inline;
    }

    /* Submenús en drawer */
    .header-nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        margin: 0;
        padding: 0;
        background: #f8f9fa;
        border-radius: 0;
        display: none;
    }

    .header-nav-menu .menu-item.active > .sub-menu {
        display: block;
    }

    .header-nav-menu .sub-menu a {
        padding: 0.75rem 2.5rem;
        border-bottom: 1px solid #e9ecef;
    }

    /* Estilos antiguos de taxonomías - mantener por compatibilidad */
    .header-taxonomy-nav {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .header-taxonomy-nav__label {
        display: none;
    }

    .header-taxonomy-nav__tab {
        padding: 0.5rem 0.75rem;
        font-size: 1.2rem;
    }

    .header-user-actions {
        margin-left: 0;
        justify-content: center;
    }
}

/* Evitar scroll del body cuando el drawer está abierto */
body.menu-drawer-open {
    overflow: hidden;
}

/* ============================================
   HEADER TAXONOMY NAVIGATION
   ============================================ */

/* Quick nav de taxonomías en el header */
.header-taxonomy-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

.header-taxonomy-nav__tab {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #0e2b58;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.header-taxonomy-nav__tab:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.header-taxonomy-nav__tab--active {
    background: #0e2b58;
    color: white;
    border-color: #0e2b58;
}

.header-taxonomy-nav__tab i {
    font-size: 1.1rem;
}

/* Botones de usuario (login/logout/admin) */
.header-user-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
}

/* Cuando aparecen junto a main-navigation */
.main-navigation + .header-user-actions {
    margin-left: auto;
}

.header-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.header-user-btn:hover {
    background: #f8f9fa;
    color: #0e2b58;
    transform: translateY(-1px);
}

.header-user-btn:active {
    transform: translateY(0);
}

/* Botón de filtros en header (páginas de biblioteca) */
.biblioteca-filters-toggle {
    display: block !important;
    background: #0e2b58;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.biblioteca-filters-toggle .hamburger-icon span {
    background-color: white;
}

.biblioteca-filters-toggle:hover {
    background: #0a1f3f;
}

.biblioteca-filters-toggle.active {
    background: #ff6b35;
}

/* ============================================
   MOBILE SIDEBAR OVERLAY
   ============================================ */

/* Estilos del botón hamburguesa */
.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: none;
    z-index: 1000;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #0e2b58;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay oscuro detrás del sidebar en mobile */
.normas-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.sidebar-open .normas-sidebar-overlay {
    display: block;
    opacity: 1;
}

/* Comportamiento mobile del sidebar */
@media (max-width: 1024px) {
    .normas-archive__sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        overflow-y: auto;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .normas-archive__sidebar.active {
        left: 0;
    }

    /* Asegurar que el botón mobile sea visible en páginas con sidebar */
    .normas-archive .mobile-menu-toggle {
        display: block;
    }
}

/* ============================================
   ERROR 404 PAGE (Optimized with Bootstrap)
   ============================================ */

/* 404 code - custom size for desktop */
.error-404__code {
    font-size: 8rem;
}

/* Title - FACPCE color */
.error-404__title {
    font-size: 2.5rem;
    color: #0e2b58;
}

/* Section title - FACPCE color */
.error-404__section-title {
    color: #0e2b58;
}

/* Link - FACPCE color */
.error-404__link {
    color: #0e2b58;
    text-decoration: none;
}

.error-404__link:hover {
    color: #0e2b58;
    text-decoration: underline;
}

/* Card hover - home variant */
.normas-section-card--home:hover {
    border-color: #666 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .error-404__code {
        font-size: 5rem;
    }

    .error-404__title {
        font-size: 2rem;
    }
}


/* ============================================
   SINGLE NORMA PAGE (Optimized with Bootstrap)
   ============================================ */

/* Breadcrumb links - color FACPCE */
.single-norma__breadcrumb-link {
    color: #0e2b58;
}

.single-norma__breadcrumb-link:hover {
    color: #0e2b58;
    text-decoration: underline !important;
}

/* Title - color FACPCE */
.single-norma__title {
    font-size: 2.5rem;
    color: #0e2b58;
}

/* Section titles - color FACPCE */
.single-norma__section-title {
    color: #0e2b58;
}

.single-norma__icon-label {
    color: #0e2b58;
}

/* Primary button - FACPCE colors with hover effect */
.single-norma__btn-primary:hover {
    background-color: #0a1f3f;
    border-color: #0a1f3f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 43, 88, 0.3);
}

/* Secondary button - custom gray style */
.single-norma__btn-secondary {
    background-color: #f0f0f0;
    color: #0e2b58;
    border: 1px solid #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.single-norma__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #0e2b58;
}

/* PDF Viewer - fixed height */
.single-norma__viewer {
    height: 800px;
}

/* Tags - custom badge style */
.single-norma__tag {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #0e2b58;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.single-norma__tag:hover {
    background: #0e2b58;
    color: white;
    transform: translateY(-2px);
}

/* Tag huerfana - warning colors */
.single-norma__tag--huerfana {
    background: #fff3cd;
    color: #856404;
}

.single-norma__tag--huerfana:hover {
    background: #ffc107;
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-norma__title {
        font-size: 2rem;
    }

    .single-norma__viewer {
        height: 600px;
    }
}

/* ============================================
   MOBILE DRAWER - Filtros laterales para mobile
   ============================================ */

/* Overlay oscuro para cerrar drawer */
.normas-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.normas-drawer-overlay.active {
    display: block;
    opacity: 1;
}

/* Header mobile del sidebar (solo visible en mobile) */
.normas-sidebar__mobile-header {
    display: none;
}

/* Estilos mobile del sidebar */
@media (max-width: 1024px) {
    /* Ajustar título de sección en mobile */
    .normas-archive__header-left h1 {
        font-size: 1.5rem;
    }

    .normas-archive__icon {
        font-size: 1.5em;
    }

    /* Ajustar breadcrumb en mobile */
    .normas-archive__breadcrumb {
        font-size: 0.7rem;
    }

    /* Ajustar header */
    .normas-archive__header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }

    /* Ajustar contador de resultados en mobile */
    .normas-archive__results-count {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        align-items: flex-start;
    }

    .normas-archive__results-count i {
        font-size: 1rem;
        margin-top: 2px;
    }

    .normas-archive__results-text {
        flex: 1;
        line-height: 1.5;
    }

    /* Ajustar buscador en mobile */
    .normas-archive__search {
        min-width: 100%;
        width: 100%;
    }

    .normas-search-form__wrapper {
        max-width: 100%;
    }

    .normas-search-form__input {
        font-size: 0.9rem;
        padding: 0.55rem 2.5rem 0.55rem 0.9rem;
    }

    /* Ajustar paginación en mobile - reducir tamaño de botones */
    .normas-pagination__number,
    .normas-pagination__link {
        min-width: 32px;
        height: 32px;
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }

    .normas-pagination__ellipsis {
        padding: 0.35rem 0.25rem;
    }

    /* Mostrar botón de filtros en mobile */
    .normas-mobile-filters-toggle {
        display: flex;
    }

    /* Sidebar se convierte en drawer */
    .normas-archive__sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        z-index: 1001;
        background: white;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 0;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    }

    .normas-archive__sidebar.active {
        left: 0;
    }

    /* Mostrar header mobile con botón de cerrar */
    .normas-sidebar__mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.5rem;
        background: #0e2b58;
        color: white;
        position: sticky;
        top: 0;
        z-index: 10;
        border-bottom: 3px solid #0a1f3f;
    }

    .normas-sidebar__mobile-header h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: white;
    }

    .normas-sidebar__mobile-header i {
        font-size: 1.2rem;
    }

    /* Botón cerrar */
    .normas-sidebar__close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
        width: 32px;
        height: 32px;
        border-radius: 4px;
    }

    .normas-sidebar__close-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: rotate(90deg);
    }

    .normas-sidebar__close-btn:active {
        background: rgba(255, 255, 255, 0.25);
    }

    /* Agregar padding al contenido del sidebar */
    .normas-sidebar-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .normas-sidebar-section:first-of-type {
        padding-top: 0.75rem;
    }

    .normas-sidebar-section:last-child {
        margin-bottom: 0.5rem;
    }

    /* Reducir espaciado de títulos de sección en mobile */
    .normas-sidebar-section__title {
        margin-bottom: 0.75rem;
        padding-bottom: 0.35rem;
        font-size: 0.95rem;
    }

    /* Reducir espaciado del filtro de año en mobile */
    .normas-year-filter__label {
        font-size: 0.8rem;
    }

    .normas-year-filter__buttons {
        gap: 0.35rem;
    }

    /* Reducir espaciado de categorías en mobile */
    .normas-taxonomy-header {
        margin-bottom: 0.75rem;
    }

    /* Ajustar background del sidebar-section para que no tape */
    .normas-sidebar-section {
        background: transparent;
    }
}

/* Evitar scroll del body cuando el drawer está abierto */
body.drawer-open {
    overflow: hidden;
}
