/* mobile-menu.css — drawer real para navegación en <900px.
   El botón hamburger (.mm-toggle) se muestra solo en mobile.
   El drawer se inyecta en <body> por assets/js/mobile-menu.js. */

.mm-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  width: 42px; height: 42px;
  color: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  margin: 0 8px;
  transition: background .2s, border-color .2s;
}
.mm-toggle:hover, .mm-toggle:focus-visible {
  background: rgba(205, 174, 115, .15);
  border-color: var(--gold-soft, #cdae73);
}

@media (max-width: 900px) {
  .mm-toggle { display: inline-flex; }
}

/* Overlay */
.mm-overlay {
  position: fixed; inset: 0;
  background: rgba(14, 11, 9, 0.72);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity .3s ease;
}
.mm-overlay.open { opacity: 1; }
.mm-overlay[hidden] { display: none; }

/* Drawer */
.mm-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh; height: 100dvh;
  width: min(330px, 88vw);
  background: rgba(14, 11, 9, 0.98);
  color: #e9e2d6;
  z-index: 999;
  transform: translateX(105%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 26px 44px;
  box-shadow: -14px 0 44px rgba(0, 0, 0, 0.5);
  font-family: 'Inter', -apple-system, sans-serif;
}
.mm-drawer.open { transform: translateX(0); }
.mm-drawer[hidden] { display: none; }

.mm-close {
  background: transparent;
  border: 0;
  color: var(--gold-soft, #cdae73);
  font-size: 30px;
  cursor: pointer;
  padding: 6px 12px;
  margin: 0 -12px 4px auto;
  display: block;
  line-height: 1;
  transition: color .2s, transform .2s;
}
.mm-close:hover { color: #fff; transform: rotate(90deg); }
.mm-close:focus-visible { outline: 2px solid var(--gold-soft, #cdae73); outline-offset: 2px; }

.mm-content { display: flex; flex-direction: column; gap: 4px; }

.mm-section {
  padding: 14px 0;
  border-bottom: 1px solid rgba(205, 174, 115, 0.15);
}
.mm-section:last-of-type { border-bottom: 0; }

.mm-cat {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold, #B08A3E);
  margin-bottom: 10px;
  margin-top: 4px;
}
.mm-section a {
  display: block;
  padding: 9px 4px;
  color: #d8cdbd;
  font-size: 14.5px;
  font-family: 'Playfair Display', serif;
  text-decoration: none;
  transition: color .18s, padding-left .18s;
  border-radius: 4px;
}
.mm-section a:hover, .mm-section a:focus-visible {
  color: #fff;
  padding-left: 8px;
}
.mm-section a:focus-visible { outline: 2px solid var(--gold-soft, #cdae73); outline-offset: 2px; }

.mm-cta {
  background: var(--gold, #B08A3E);
  color: #fff !important;
  padding: 15px 22px;
  border-radius: 6px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 15px;
  margin-top: 14px;
  text-decoration: none;
  transition: transform .2s, background .2s;
  display: block;
}
.mm-cta:hover, .mm-cta:focus-visible {
  transform: translateY(-1px);
  background: #8c6f33;
  padding-left: 22px !important;
}

.mm-lang {
  margin-top: 12px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #e9e2d6;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
}
.mm-lang:hover { background: rgba(255, 255, 255, .06); }

body.mm-open { overflow: hidden; }
