/* Menú del celular (partials/site-header-bar.php): panel lateral que entra desde la derecha,
   con las secciones principales en tarjetas y el resto en listas. Colores del tema activo. */

.lux-sheet{position:fixed;inset:0;z-index:10000}
.lux-sheet[hidden]{display:none}
@media(min-width:981px){.lux-sheet{display:none!important}}
html.lux-sheet-open,html.lux-sheet-open body{overflow:hidden}

.lux-sheet-backdrop{position:absolute;inset:0;background:rgba(17,20,14,.45);opacity:0;transition:opacity .26s ease}
.lux-sheet.is-open .lux-sheet-backdrop{opacity:1}

.lux-sheet-panel{
  position:absolute;top:0;right:0;bottom:0;width:min(88vw,400px);
  display:flex;flex-direction:column;
  background:var(--theme-surface,#fff);color:var(--theme-text,#1f231a);
  border-radius:24px 0 0 24px;box-shadow:-18px 0 48px rgba(0,0,0,.18);
  transform:translateX(102%);transition:transform .3s cubic-bezier(.32,.72,0,1);
  font-family:var(--font-body,inherit);
}
.lux-sheet.is-open .lux-sheet-panel{transform:translateX(0)}

.lux-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(14px + env(safe-area-inset-top)) 18px 10px 20px}
.lux-sheet-brand{display:flex;align-items:center;min-width:0;color:inherit;text-decoration:none;font-weight:700;font-size:17px}
.lux-sheet-brand img{display:block;max-height:42px;max-width:180px;object-fit:contain}
.lux-sheet-close{flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:var(--theme-surface-alt,#f1ede4);color:inherit;cursor:pointer}
.lux-sheet-close svg{width:20px;height:20px}

.lux-sheet-body{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 20px 20px}
.lux-sheet-label{margin:20px 0 10px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--theme-muted,#6f6a5f)}

.lux-sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lux-sheet-card{
  display:flex;flex-direction:column;justify-content:space-between;gap:14px;min-height:96px;padding:14px;
  border-radius:16px;background:var(--theme-bg,#f4efe6);color:inherit;text-decoration:none;
  font-size:15px;font-weight:600;line-height:1.2;transition:transform .15s ease,background .2s ease;
  -webkit-tap-highlight-color:transparent;
}
.lux-sheet-card:active{transform:scale(.97)}
.lux-sheet-card-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--theme-surface,#fff);color:var(--theme-primary,#1f231a)}
.lux-sheet-card-icon svg{width:22px;height:22px}
.lux-sheet-card.is-active{background:var(--theme-primary,#1f231a);color:#fff}
.lux-sheet-card.is-active .lux-sheet-card-icon{background:rgba(255,255,255,.14);color:#fff}

.lux-sheet-list{display:flex;flex-direction:column}
.lux-sheet-row{
  display:flex;align-items:center;gap:14px;min-height:52px;padding:0 2px;
  border-bottom:1px solid var(--theme-border,var(--line,#e8e2d6));color:inherit;text-decoration:none;
  font-size:15px;font-weight:500;-webkit-tap-highlight-color:transparent;
}
.lux-sheet-row:last-child{border-bottom:0}
.lux-sheet-row svg{flex:0 0 auto;width:20px;height:20px;color:var(--theme-muted,#6f6a5f)}
.lux-sheet-row>svg:last-child{width:16px;height:16px;opacity:.6}
.lux-sheet-row-icon{display:inline-flex}
.lux-sheet-row-label{flex:1;min-width:0}
.lux-sheet-row.is-active,.lux-sheet-row.is-active svg{color:var(--theme-primary,#1f231a);font-weight:700}

.lux-sheet-foot{padding:14px 20px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--theme-border,var(--line,#e8e2d6))}
.lux-sheet-cta{
  display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;border-radius:14px;
  background:var(--theme-primary,#1f231a);color:#fff;text-decoration:none;font-size:15px;font-weight:600;
}
.lux-sheet-cta svg{width:20px;height:20px}

@media(prefers-reduced-motion:reduce){.lux-sheet-panel,.lux-sheet-backdrop,.lux-sheet-card{transition:none}}

/* Selector de idioma: banderitas en el encabezado (la del idioma actual resaltada) y
   bandera + nombre arriba del menú del celular. */
.lux-langs{flex:0 0 auto;display:inline-flex;align-items:center;gap:2px;margin:0 4px;padding:3px;border:1px solid var(--theme-border,var(--line,#e2ddd2));border-radius:999px}
.lux-lang{display:inline-flex;align-items:center;justify-content:center;width:32px;height:28px;border-radius:999px;opacity:.45;filter:saturate(.6);transition:opacity .15s,filter .15s,background .15s}
.lux-lang:hover{opacity:1;filter:none}
.lux-lang.is-active{opacity:1;filter:none;background:var(--theme-surface-alt,#f1ede4)}
.lang-flag{display:block;flex:0 0 auto;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
@media(max-width:980px){.lux-langs{margin:0 2px;padding:2px}.lux-lang{width:28px;height:26px}.lux-lang .lang-flag{width:20px;height:13px}}
.lux-sheet-langs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:4px 0 6px;padding:4px;border-radius:12px;background:var(--theme-surface-alt,#f1ede4)}
.lux-sheet-langs a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:38px;border-radius:9px;color:var(--theme-muted,#6f6a5f);font-size:14px;font-weight:600;text-decoration:none}
.lux-sheet-langs a.is-active{background:var(--theme-surface,#fff);color:var(--theme-text,#1f231a);box-shadow:0 1px 3px rgba(0,0,0,.12)}
