/* ═══════ VARIABLES RAÍZ (fallback si la página no las define) ═══════ */
:root {
  --dorado:       #F5C842;
  --dorado-hover: #FFE066;
  --dorado-tenue: #a8832a;
  --texto-suave:  #C8B88A;
}

/* ═══════ HEADER ═══════ */
header {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 2rem;
  background: rgba(13,9,0,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245,200,66,0.15);
}
.header-izq { display: flex; align-items: center; gap: 0.75rem; }
.nav-hamburger {
  background: none; border: none; color: var(--dorado);
  font-size: 1.5rem; cursor: pointer; padding: 0.3rem;
  line-height: 1; transition: color 0.2s;
}
.nav-hamburger:hover { color: var(--dorado-hover); }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo img { width: 34px; height: 34px; border-radius: 6px; }
.nav-logo span { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--dorado); letter-spacing: 0.04em; }
.nav-btn-panel {
  padding: 0.4rem 1rem;
  background: rgba(245,200,66,0.12);
  border: 1px solid rgba(245,200,66,0.4);
  border-radius: 6px; color: var(--dorado);
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.88rem;
  text-decoration: none; white-space: nowrap; transition: background 0.2s;
}
.nav-btn-panel:hover { background: rgba(245,200,66,0.22); }

/* ═══════ PANEL LATERAL ═══════ */
.nav-panel {
  position: fixed; top: 0; left: -300px; width: 280px; height: 100vh;
  background: rgba(10,7,0,0.99); border-right: 1px solid rgba(245,200,66,0.15);
  display: flex; flex-direction: column; padding: 1.5rem 1.75rem;
  z-index: 400; transition: left 0.3s ease;
}
.nav-panel.abierto { left: 0; }
.nav-panel-cerrar {
  background: none; border: none; color: var(--texto-suave);
  font-size: 1.2rem; cursor: pointer; align-self: flex-end;
  margin-bottom: 1.5rem; transition: color 0.2s; padding: 0.2rem;
}
.nav-panel-cerrar:hover { color: var(--dorado); }
.nav-panel-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 2rem; }
.nav-panel-logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav-panel-logo span { font-family: 'Playfair Display', serif; color: var(--dorado); font-size: 1rem; }
.nav-panel a {
  color: var(--texto-suave); text-decoration: none; font-size: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid rgba(245,200,66,0.07);
  transition: color 0.2s; display: block;
}
.nav-panel a:last-child { border-bottom: none; }
.nav-panel a:hover { color: var(--dorado); }
.nav-panel a.activo { color: var(--dorado); }
.nav-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.55); z-index: 399; display: none;
}
.nav-overlay.activo { display: block; }

/* ═══════ FOOTER ═══════ */
footer {
  padding: 3rem 2rem 2rem;
  border-top: 1px solid rgba(245,200,66,0.1);
  text-align: center;
  background: #080500;
}
.footer-logo { width: 44px; height: 44px; border-radius: 8px; margin: 0 auto 1rem; display: block; }
.footer-nombre { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--dorado); letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.footer-copy { font-size: 0.82rem; color: var(--texto-suave); margin-bottom: 1.5rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--texto-suave); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--dorado); }

/* ═══════ PLACEHOLDERS MIENTRAS CARGA EL JS ═══════ */
#nav-root:empty {
  display: block;
  height: 57px;
  background: rgba(13,9,0,0.96);
  border-bottom: 1px solid rgba(245,200,66,0.15);
  position: sticky;
  top: 0;
  z-index: 200;
}
#footer-root:empty {
  display: block;
  min-height: 130px;
  background: #080500;
  border-top: 1px solid rgba(245,200,66,0.1);
}
