/* ============================================ */
/* ESTILOS COMPARTIDOS - PÁGINAS SECUNDARIAS    */
/* Menú hamburguesa + Footer unificados         */
/* ============================================ */

/* ============================= */
/* MENÚ LATERAL - UNIFICADO      */
/* ============================= */

/* Overlay oscuro */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Panel blanco */
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: #ffffff;
  padding: 60px 40px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.45s ease;
  z-index: 1100;
}

.menu-panel.active {
  transform: translateX(0);
}

/* Botón cerrar */
.menu-close {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 32px;
  font-weight: 300;
  background: none;
  border: none;
  cursor: pointer;
  color: #d4af37;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.menu-close:hover {
  background-color: #000000;
  color: #d4af37;
}

/* Enlaces */
.menu-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 20px;
}

.menu-links a {
  font-family: "Castoro", serif;
  font-size: 18px;
  font-weight: 400;
  color: black;
  text-decoration: none;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
}

.menu-links a::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background-color: #d4af37;
  transition: width 0.3s ease;
}

.menu-links a:hover::before {
  width: 12px;
}

.menu-links a:hover {
  color: #d4af37;
  padding-left: 8px;
}

/* Logo inferior - fluye con el flex, no absolute */
.menu-logo {
  margin-top: 30px;
  padding-bottom: 20px;
  text-align: center;
  flex-shrink: 0;
}

.menu-logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
  opacity: 1;
  display: block;
  margin: 0 auto;
  filter: none;
  visibility: visible;
  pointer-events: none;
  transition: none;
}

/* Hamburguesa */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 30px;
  font-weight: 300;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
  color: white;
  transition:
    opacity 1s ease,
    color 0.3s ease;
}

.hamburger.visible {
  opacity: 1;
}

.hamburger.active {
  opacity: 0;
  pointer-events: none;
}

/* Color negro para páginas legales */
body.legal-page .hamburger {
  color: #000000 !important;
}
