/* ========================================= */
/* RESET Y PREVENCIÓN DE OVERFLOW            */
/* ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* ========================================= */
/* BODY NEGRO PURO                           */
/* ========================================= */

body {
  margin: 0;
  width: 100%;
  padding-top: 60px;
  min-height: 100vh;
  background: #000000;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

/* ========================================= */
/* HEADER - ANCHO COMPLETO                   */
/* ========================================= */

.site-header {
  background: #000000;
  border-bottom: 1px solid #333 !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  display: block !important;
  overflow: visible !important;
}

.header-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 76px;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
  overflow: visible !important;
}

/* Contenedor interno solo para el efecto shine */
.header-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 0;
  z-index: 0;
}

.header-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.12), 
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transform: skewX(-15deg);
  animation: shineHeader 6s infinite;
}

@keyframes shineHeader {
  0% { left: -100%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

/* Asegurar que el contenido del header esté por encima del shine */
.header-normal-state,
.header-search-state {
  position: relative;
  z-index: 1;
}

/* ========================================= */
/* ESTADO NORMAL DEL HEADER                  */
/* ========================================= */

.header-normal-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: opacity 0.3s ease;
}

.header-normal-state > div:first-child {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-link {
  text-decoration: none !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
}

.logo-text {
  display: inline-block;
  font-size: 38px;
  font-weight: 900;
  color: #ffffff !important;
  letter-spacing: -0.5px;
  line-height: 1;
  white-space: nowrap;
}

.menu-hamburguesa {
  background: transparent;
  border: none;
  color: #8B4513;
  font-size: 38px;
  cursor: pointer;
  padding: 8px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-hamburguesa i {
  font-size: 38px;
}

/* Ícono de búsqueda en estado normal */
.search-icon-header {
  background: #252525;
  border: 2px solid #8B4513;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 20px;
  margin-left: auto;
  margin-right: 12px;
  flex-shrink: 0;
}

.search-icon-header:hover {
  background: #8B4513;
  border-color: #DAA520;
  transform: scale(1.05);
}

/* ========================================= */
/* ESTADO DE BÚSQUEDA DEL HEADER             */
/* ========================================= */

.header-search-state {
  width: 100%;
  animation: slideInSearch 0.3s ease;
}

@keyframes slideInSearch {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-search-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-back-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.search-back-btn:hover {
  background: rgba(139, 69, 19, 0.2);
  color: #DAA520;
}

.search-bar-expanded {
  flex: 1;
  display: flex;
  align-items: center;
  background: #252525;
  border: 1px solid #444;
  border-radius: 999px;
  overflow: hidden;
  height: 46px;
}

.filter-btn-header {
  background: #8B4513;
  border: none;
  color: white;
  width: 48px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 18px;
  flex-shrink: 0;
}

.filter-btn-header:hover {
  background: #A67C45;
}

.input-wrapper-expanded {
  flex: 1;
  position: relative;
  background: transparent;
}

.search-input-expanded {
  width: 100%;
  height: 46px;
  border: none;
  outline: none;
  background: transparent;
  color: white;
  padding: 0 16px;
  font-size: 16px;
}

.search-input-expanded::placeholder {
  color: #aaa;
  font-size: 14px;
}

.search-btn-header {
  background: transparent;
  border: none;
  color: white;
  width: 48px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 18px;
  flex-shrink: 0;
}

.search-btn-header:hover {
  color: #DAA520;
}

.filter-panel-header {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 16px;
  padding: 16px;
  z-index: 10000;
  display: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  width: auto;
  min-width: auto;
  max-width: 90vw;
  box-sizing: border-box;
  max-height: 80vh;
  overflow-y: auto;
  will-change: transform;
}

.filter-panel-header.show {
  display: block;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.filter-panel-header-content h3 {
  color: white;
  font-size: 16px;
  margin: 0 0 12px 0;
  font-weight: 900;
}

.filter-buttons-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-option-header {
  background: #292929;
  border: 1px solid #8B4513;
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.filter-option-header:hover {
  background: #A67C45;
  border-color: #DAA520;
}

.filter-option-header.active {
  background: #8B4513;
  border-color: #DAA520;
}

.header-actions {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 6px;
}

/* ========================================= */
/* NOTIFICACIONES EN HEADER                  */
/* ========================================= */

.header-notification-area {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-trigger {
  width: 42px;
  height: 42px;
  border: 2px solid #8B4513;
  border-radius: 50%;
  background: #292929;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: all 0.25s ease;
}

.notification-trigger:hover {
  border-color: #DAA520;
  box-shadow: 0 0 8px rgba(218, 165, 32, 0.5);
  transform: scale(1.05);
}

.notification-trigger:active {
  transform: scale(0.95);
}

.notification-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.8;
  color: currentColor;
  transition: all 0.25s ease;
}

.notification-trigger:hover .notification-icon {
  filter: drop-shadow(0 0 4px rgba(218, 165, 32, 0.6));
}

.notification-badge {
  position: absolute;
  top: -9px;
  right: -11px;
  background-color: #ff3b30;
  color: white;
  border-radius: 999px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  z-index: 5;
  pointer-events: none;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(240px, calc(100vw - 24px));
  max-height: min(500px, 70vh);
  background-color: rgba(30, 30, 30, 0.98);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 10060;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.notification-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.notification-header {
  padding: 14px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 900;
  text-align: center;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.22);
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding: 10px;
}

.notification-list::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  margin-bottom: 8px;
  text-decoration: none;
  color: white;
  position: relative;
  transition: all 0.25s ease;
}

.notification-item:last-child {
  margin-bottom: 0;
}

.notification-item:hover {
  border-color: #DAA520;
  background: rgba(218, 165, 32, 0.1);
  transform: translateX(2px);
}

.notification-item.new-notification {
  background-color: rgba(255, 215, 0, 0.15);
  border: 1px solid #ffd700;
}

.notification-img-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.notification-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #ff3b30;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  background: #333;
}

.notification-text {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.pinned-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: white;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 0 12px 0 12px;
  box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 10;
  letter-spacing: 0.5px;
  border-left: 1px solid rgba(218, 165, 32, 0.5);
  border-bottom: 1px solid rgba(218, 165, 32, 0.5);
}

.content-badge {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4682b4;
  color: white;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  z-index: 2;
  white-space: nowrap;
}

/* ========================================= */
/* BARRA LATERAL IZQUIERDA (MENÚ)            */
/* ========================================= */

.sidebar-left {
  position: fixed;
  top: 76px;
  left: 0;
  bottom: 0;
  width: 100px;
  background: #000000;
  border-right: 1px solid #2a2a2a;
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

body.sidebar-open .sidebar-left {
  transform: translateX(0);
}

.sidebar-left-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-left-content::-webkit-scrollbar {
  width: 4px;
}

.sidebar-left-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.sidebar-left-content::-webkit-scrollbar-thumb {
  background: #8B4513;
  border-radius: 10px;
}

.sidebar-left-content::-webkit-scrollbar-thumb:hover {
  background: #DAA520;
}

.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 4px 0;
  border-radius: 12px;
  background: #292929;
  border: 1px solid #2a2a2a;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.sidebar-item:hover {
  border-color: #DAA520;
  transform: translateY(-2px);
  background: #1a1a1a;
}

.sidebar-item.active {
  border-color: #8B4513;
  background: #8B4513;
  color: white;
}

.sidebar-item.active .sidebar-item-title {
  color: white;
}

.sidebar-item-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 0;
  margin-bottom: 4px;
  background: transparent;
}

.sidebar-item-title {
  color: white;
  font-size: 10px;
  font-weight: 300;
  text-align: center;
  word-break: break-word;
  max-width: 100px;
  line-height: 1.3;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.2px;
}

/* ========================================= */
/* LAYOUT GLOBAL - ESCRITORIO                */
/* ========================================= */

.page-shell {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
  min-height: calc(100vh - 268px);  /* Linea agregada para bajar el futter */
  box-sizing: border-box;
  transition: padding-left 0.3s ease;
  position: relative;
}

/* En style.css - solo reserva espacio si existe la barra */
.page-shell:has(.recientes-sidebar) {
  padding-right: 360px;
}

.main-content-area {
  flex: 1;
  min-width: 0;
  width: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ========================================= */
/* BARRA LATERAL DERECHA - RECIENTES (GLOBAL) */
/* ========================================= */

.recientes-sidebar {
  position: fixed;
  top: 90px;
  right: 20px;
  width: 320px;
  height: calc(100vh - 100px);
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 18px;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 998;
  box-sizing: border-box;
}

.recientes-sidebar::-webkit-scrollbar {
  width: 6px;
}

.recientes-sidebar::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 10px;
}

.recientes-sidebar::-webkit-scrollbar-thumb {
  background: #8B4513;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.recientes-sidebar::-webkit-scrollbar-thumb:hover {
  background: #DAA520;
}

.recientes-titulo {
  color: white;
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 16px 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recientes-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reciente-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: white;
  background: #292929;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 8px;
  transition: all 0.25s ease;
}

.reciente-item:hover {
  border-color: #DAA520;
  box-shadow: 0 0 6px rgba(218, 165, 32, 0.3);
  transform: translateY(-1px);
}

.reciente-item img {
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: #333;
  display: block;
}

.reciente-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reciente-info strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reciente-info span {
  color: #cfcfcf;
  font-size: 12px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================ */
/* SKELETON PARA SIDEBAR ITEMS (GLOBAL) */
/* ============================================ */

.skeleton-reciente-item {
  display: flex;
  gap: 10px;
  background: #292929;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 12px;
  align-items: center;
  min-height: 90px;
}

.skeleton-reciente-img {
  width: 70px;
  height: 90px;
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: pulse-skeleton 1.5s ease-in-out infinite;
}

.skeleton-reciente-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-reciente-line {
  height: 16px;
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: pulse-skeleton 1.5s ease-in-out infinite;
}

.skeleton-reciente-line.short {
  width: 60%;
}

@keyframes pulse-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.favoritos-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #A67C52;
  color: white;
  font-size: 10px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
  animation: badgePop 0.3s ease-out;
}

/* Animación de entrada */
@keyframes badgePop {
  0% {
      transform: scale(0);
      opacity: 0;
  }
  70% {
      transform: scale(1.2);
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

/* ========================================= */
/* FOOTER                                    */
/* ========================================= */

.site-footer {
  background: #000000;
  padding: 20px;
  text-align: center;
  width: 100%;
  position: relative;
  margin-top: 50px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #2a2a2a;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-copyright {
  color: #ffffff;
  font-size: 12px;
  text-align: center;
}

.footer-copyright i,
.footer-copyright .arrobas,
.footer-copyright a[href^="mailto"] {
  color: #8B4513;
  margin-right: 4px;
}

.footer-copyright .at-symbol {
  color: #8B4513;
  font-weight: bold;
}

/* ========================================= */
/* UTILIDADES GENERALES                      */
/* ========================================= */

img, iframe, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

body.sidebar-open .page-shell {
  padding-left: 110px;
}

/* ========================================== */
/* MEDIA QUERY 600px (MÓVIL)                  */
/* ========================================== */

@media (max-width: 600px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }
  
  body {
    padding-top: 74px;
  }
  
  .site-header {
    width: 100%;
    overflow-x: hidden;
  }

  .header-inner {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 4px 4px !important;
    gap: 4px !important;
    box-sizing: border-box;
  }
  
  .header-normal-state {
    width: 100%;
  }

  .header-normal-state > div:first-child {
    width: auto !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 1 !important;
    margin-left: -6px !important;
  }
  
  .header-actions {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    margin-right: 4px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }
  
  .menu-hamburguesa {
    margin: 0 !important;
    padding: 4px !important;
    font-size: 30px !important;
    width: 44px !important;
    height: 44px !important;
  }
  
  .menu-hamburguesa i {
    font-size: 28px !important;
  }
  
  .logo-link {
    margin: 0 !important;
    padding: 0 !important;
    position: static;
    transform: none;
  }
  
  .logo-text {
    font-size: 30px !important;
    white-space: nowrap;
  }
  
  .search-icon-header {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
    margin-right: 6px !important;
  }
  
  .header-notification-area {
    display: flex !important;
  }
  
  .notification-trigger {
    width: 38px !important;
    height: 38px !important;
  }
  
  .notification-icon {
    width: 20px;
    height: 20px;
  }
  
  /* Estado de búsqueda en móvil */
  .header-search-container {
    gap: 6px;
  }
  
  .search-back-btn {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  
  .search-bar-expanded {
    height: 42px;
  }
  
  .filter-btn-header {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  
  .search-btn-header {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  
  .search-input-expanded {
    height: 42px;
    font-size: 14px;
  }
  
  .filter-panel-header {
    position: fixed;
    top: auto;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: auto;
    width: calc(100% - 40px); /* Más margen en los laterales */
    max-width: 500px; /* Más grande pero controlado */
    margin-top: 10px;
    z-index: 10001;
  }

  .notification-panel {
    position: fixed;
    top: 100px;
    right: 12px;
    width: calc(100vw - 24px);
    max-width: 240px;
    max-height: min(450px, 60vh);
    z-index: 10061;
  }
  
  .page-shell {
    flex-direction: column !important;
    padding: 12px !important;
    gap: 20px !important;
    width: 100% !important;
  }
  
  body.sidebar-open .page-shell {
    padding-left: 12px !important;
  }
  
  .main-content-area {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    order: 1;
  }

  .page-shell:has(.recientes-sidebar) {
    padding-right: 12px !important;
  }

  .recientes-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 16px;
    order: 2;
    display: block;
    overflow-y: visible;
}
    
  /* Solo la lista de tarjetas tiene scroll */
  .recientes-lista {
    max-height: 600px;              /* ← Alto fijo para la lista */
    overflow-y: auto;              /* ← Scroll solo en las tarjetas */
    padding-right: 4px;            /* ← Espacio para scrollbar */
  }
  
  .sidebar-left {
    top: 76px;
    bottom: 0;
    height: auto;
    width: 86px;
  }
  
  .sidebar-item-img {
    width: 26px;
    height: 26px;
  }
  
  .sidebar-item-title {
    font-size: 9px;
  }

  .favoritos-badge {
    font-size: 9px;
    min-width: 16px;
    height: 16px;
    top: -3px;
    right: -3px;
  }

  /* Efecto hover en el item con badge */
  .sidebar-item:hover .favoritos-badge {
    transform: scale(1.1);
    transition: transform 0.2s ease;
  }
  
  .site-footer {
    margin-top: 30px;
    padding: 15px;
  }
  
  .footer-copyright {
    font-size: 10px;
  }
}
