/* ── TOPBAR ── */
.mp-topbar {
  background: var(--ink);
  color: #c8b0a8;
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 400;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mp-topbar a { color: var(--white); font-weight: 600; text-decoration: none; }
.mp-topbar a:hover { color: var(--rojo); }
.mp-topbar__sep { opacity: 0.4; }

/* ── HEADER ── */
.mp-header {
  background: var(--white);
  border-bottom: 2px solid var(--rojo);
  padding: 0 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .3s;
}
.mp-header.is-scrolled { box-shadow: 0 2px 20px rgba(26,16,8,0.1); }

/* Logo texto (cuando no hay imagen personalizada) */
.mp-logo-text { display: flex; flex-direction: column; text-decoration: none; }
.mp-logo-text__name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.mp-logo-text__sub {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}
/* Logo imagen personalizada */
.mp-header__logo .custom-logo { max-height: 60px; width: auto; }

/* Nav desktop */
.mp-nav { display: flex; }
.mp-nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.mp-nav__list li { position: relative; }
.mp-nav__list > li > a {
  font-size: 13px;
  color: var(--body);
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  position: relative;
}
.mp-nav__list > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 2px;
  background: var(--rojo);
  transition: right .25s;
}
.mp-nav__list > li > a:hover::after,
.mp-nav__list > li.current-menu-item > a::after { right: 0; }
.mp-nav__list > li > a:hover,
.mp-nav__list > li.current-menu-item > a { color: var(--rojo); }

/* Sub-menús dropdown */
.mp-nav__list .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--white);
  border-top: 2px solid var(--rojo);
  box-shadow: 0 8px 24px rgba(26,16,8,0.12);
  min-width: 220px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}
.mp-nav__list li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mp-nav__list .sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--body);
  font-weight: 500;
  text-decoration: none;
}
.mp-nav__list .sub-menu li a:hover { color: var(--rojo); background: var(--cream); }

/* Header right */
.mp-header__right { display: flex; align-items: center; gap: 16px; }
.mp-header__tel { font-size: 14px; color: var(--body); font-weight: 600; text-decoration: none; }
.mp-header__tel:hover { color: var(--rojo); }
.mp-header__cta { font-size: 13px; }

/* Hamburger */
.mp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.mp-hamburger span {
  width: 24px; height: 2px;
  background: var(--ink);
  display: block;
  transition: all .25s;
}
.mp-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mp-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mp-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.mp-mobile-nav { display: none; position: fixed; inset: 0; z-index: 300; }
.mp-mobile-nav.is-open { display: block; }
.mp-mobile-nav__overlay {
  position: absolute; inset: 0;
  background: rgba(26,16,8,0.6);
  animation: mpFadeIn .25s ease;
}
.mp-mobile-nav__drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 85vw;
  background: var(--white);
  display: flex; flex-direction: column;
  animation: mpSlideIn .25s ease;
  overflow-y: auto;
}
@keyframes mpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mpSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.mp-mobile-nav__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid var(--rojo);
  flex-shrink: 0;
}
.mp-mobile-nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-style: italic; font-weight: 700; color: var(--ink);
}
.mp-mobile-nav__close {
  background: none; border: none; font-size: 22px; color: var(--ink);
  cursor: pointer; line-height: 1; padding: 4px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}

.mp-mobile-nav__links { flex: 1; }
.mp-mobile-nav__list { list-style: none; margin: 0; padding: 8px 0; }
.mp-mobile-nav__list li a {
  display: block; padding: 15px 24px;
  font-size: 15px; font-weight: 600; color: var(--body);
  text-decoration: none; border-bottom: 1px solid var(--rule);
}
.mp-mobile-nav__list li a:hover { color: var(--rojo); background: var(--cream); }

.mp-mobile-nav__footer {
  padding: 24px; border-top: 1px solid var(--rule); flex-shrink: 0;
}
.mp-mobile-nav__tel {
  display: block; text-align: center;
  font-size: 15px; font-weight: 700; color: var(--body);
  text-decoration: none; margin-top: 10px;
}

/* ── RESPONSIVE HEADER ── */
@media (max-width: 1024px) {
  .mp-header { padding: 0 32px; }
}

@media (max-width: 900px) {
  .mp-nav { display: none; }
  .mp-header__tel { display: none; }
  .mp-hamburger { display: flex; }
  .mp-header { padding: 0 20px; }
}

@media (max-width: 480px) {
  .mp-topbar { font-size: 11px; padding: 8px 12px; }
  .mp-topbar__sep { display: none; }
  .mp-topbar span:not(:first-child):not(.mp-topbar__sep) { display: none; }
}
