/* =====================
   MENÚ MÓVIL — FULLSCREEN GLASS
===================== */

/* Ocultar elementos exclusivos del móvil en desktop */
@media (min-width: 1101px) {
  .nav-center .mobile-sidebar-title-section,
  .nav-center .categories-divider,
  .nav-center .mobile-sidebar-divider-thin,
  .nav-center .mobile-sidebar-swiper { display: none; }

  .menu-toggle,
  .menu-close { display: none; }
}

@media (max-width: 1100px) {
  /* Panel fullscreen glass */
  .nav-center {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 58px);
    width: 100%;
    background: rgba(var(--bg-rgb), 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 24px 48px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    overflow: hidden;
  }

  body.mobile-menu-open .nav-center { transform: translateX(0); }
  body.mobile-menu-open { overflow: hidden; }

  /* Links en el panel */
  .nav-center a {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 8px 0;
    line-height: 1.2;
    text-align: right;
  }

  .nav-center a:first-child  { padding-top: 0; }
  .nav-center a:last-of-type { padding-bottom: 0; }

  /* Divisor entre categorías y "Lo último" */
  .nav-center .categories-divider {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--border-mid);
    margin: 20px 0;
    flex-shrink: 0;
  }

  /* Título "Lo último" */
  .mobile-sidebar-title-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
  }

  .mobile-sidebar-title-section::after {
    content: '';
    display: block;
    width: 1px;
    height: 10px;
    background: var(--accent);
    flex-shrink: 0;
  }

  .mobile-sidebar-title-text {
    font-size: 8px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
  }

  .mobile-sidebar-divider-thin {
    display: block;
    width: 100%;
    height: 0.5px;
    background: var(--border);
    margin-bottom: 16px;
    flex-shrink: 0;
  }

  /* Swiper vertical de "Lo último" en el panel */
  .mobile-sidebar-swiper {
    width: 100%;
    height: calc(100vh - 58px - 200px);
    overflow: hidden;
  }

  .mobile-sidebar-swiper .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-bottom: 0.5px solid var(--border);
    padding: 16px 0;
  }

  .mobile-sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    text-align: right;
  }

  .mobile-sidebar-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex: 1;
  }

  .mobile-sidebar-cat {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
  }

  .mobile-sidebar-title {
    font-family: 'DM Serif Display', serif;
    font-size: 14px;
    line-height: 1.3;
    color: var(--text);
    font-weight: 700;
  }

  .mobile-sidebar-meta {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    font-family: 'DM Sans', sans-serif;
  }

  .mobile-sidebar-num {
    font-size: 24px;
    font-family: 'DM Serif Display', serif;
    color: var(--num-color);
    font-weight: 700;
    line-height: 1;
    margin-left: 16px;
    min-width: 30px;
    text-align: right;
  }
}
