/* Componentes compartidos de Escarramán Teatro */
.site-header {
  box-sizing: border-box;
  width: 100%;
  min-height: 82px;
  padding: 12px clamp(16px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #260b38;
  border-bottom: 3px solid #b58a45;
  position: relative;
  z-index: 1000;
}

.site-brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.site-brand img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}

.site-nav a {
  display: inline-block;
  padding: 10px 13px;
  color: #fff;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color .2s ease, color .2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: #56316a;
  outline-offset: 3px;
}
.site-nav a[aria-current="page"] {
  color: #260b38;
  background: #e4c58e;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.site-footer {
  box-sizing: border-box;
  width: 100%;
  padding: 28px 18px 24px;
  text-align: center;
  color: #f8f4fa;
  background: #260b38;
  border-top: 3px solid #b58a45;
  font-size: .94rem;
}
.site-footer p { margin: 7px 0; }
.footer-copy { font-weight: 600; }
.footer-tagline { color: #dfcda9; }
.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}
.footer-legal a { color: #fff; text-underline-offset: 3px; }
.footer-legal a:hover { color: #e4c58e; }
.component-error { padding: 10px; color: #8b0000; background: #fff0f0; }

@media (max-width: 900px) {
  .site-header { min-height: 72px; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    background: #260b38;
    border-top: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 8px 14px rgba(0,0,0,.2);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav a { transition: none; }
}
