/* =========================
   MOBILE MENU (components)
   ========================= */

   .mobile-menu{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(6px);
    z-index: 60;
  }
  
  .mobile-menu__panel{
    max-width: var(--max);
    margin: 72px auto 0;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  .mobile-menu__top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    padding: 8px 8px 12px;
    border-bottom: 1px solid var(--border);
  }
  
  .mobile-menu__title{
    font-weight: 800;
    color: var(--text);
  }
  
  .mobile-menu__links{
    display:grid;
    gap: 6px;
    padding: 12px 8px;
  }
  
  /* ✅ DEJAMOS SOLO UNA DEFINICIÓN de mobile-link */
  .mobile-link{
    display:block;
    padding: 12px 12px;
    border-radius: 14px;
    font-weight: 800;
    color: var(--text);
    border: 1px solid transparent;
  }
  
  .mobile-link:hover{
    background: rgba(72,201,176,.12);
    border-color: rgba(72,201,176,.18);
  }
  
  .mobile-menu__actions{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 8px 10px;
  }
  
  /* =========================
     MOBILE MENU - FULL OPEN sections
     ========================= */
  
  .mobile-section{
    display: grid;
    gap: 6px;
    padding: 6px 0;
  }
  
  .mobile-section__title{
    margin-top: 8px;
    padding: 8px 12px;
    font-weight: 900;
    font-size: 14px;
    color: var(--primary);
  }
  
  html[data-theme="dark"] .mobile-section__title{
    color: var(--accent);
  }
  
  .mobile-divider{
    border: 0;
    border-top: 1px solid var(--border);
    margin: 10px 0;
  }
  
/* =========================
   MOBILE MENU - SCROLL
   ========================= */

/* Asegura que el panel nunca salga de la pantalla */
.mobile-menu__panel{
    max-height: calc(100vh - 92px); /* 72px margen + aire */
    overflow: hidden;              /* el scroll irá adentro */
    display: flex;
    flex-direction: column;
  }
  
  /* Scroll SOLO en la lista de links */
  .mobile-menu__links{
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 92px - 56px - 64px);
    /* 56px aprox topbar del panel
       64px aprox acciones (botones)
       si cambias esos altos, ajusta aquí */
    padding-right: 6px; /* espacio para scrollbar */
  }
  
  /* Opcional: scrollbar más discreto */
  .mobile-menu__links::-webkit-scrollbar{
    width: 10px;
  }
  .mobile-menu__links::-webkit-scrollbar-thumb{
    background: rgba(10,61,98,.18);
    border-radius: 12px;
  }
  html[data-theme="dark"] .mobile-menu__links::-webkit-scrollbar-thumb{
    background: rgba(72,201,176,.20);
  }
    