/*
 * Header (Parte 1 4.1, Parte 2 02, mockup v2): sticky, logo · menu · SOS Racismo · Colaborar.
 * Under 1100 px the menu moves to a full-screen panel; SOS Racismo stays in the bar at every width.
 */

.ma-header-part { position: sticky; top: var(--admin-bar); z-index: 50; }
.ma-header { background: #fff; border-bottom: 1px solid var(--line); }
.ma-header__bar { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ma-header__logo { display: flex; color: var(--negro); flex: none; }
.ma-logo { display: block; height: 56px; width: auto; aspect-ratio: 1158 / 671; fill: currentColor; }

/* Desktop menu. */
.ma-nav__list { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.ma-nav__item { position: relative; }
.ma-nav__item.has-sub { display: flex; align-items: center; height: var(--header-h); }
.ma-nav__link { position: relative; display: inline-flex; align-items: center; gap: 4px; color: var(--negro); font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none; padding: 6px 0; }
/* Menú con subrayado dorado animado (manual 04). */
.ma-nav__link::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--oro); transition: width .25s var(--ease); }
.ma-nav__link:hover::after, .ma-nav__item:focus-within > .ma-nav__link::after, .ma-nav__link[aria-current]::after { width: 100%; }
.ma-nav__caret::before { content: "▾"; font-size: 10px; }
.ma-nav__sub { position: absolute; top: 100%; left: -16px; z-index: 60; min-width: 260px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border: 1px solid var(--arena); border-top: 3px solid var(--oro); box-shadow: 0 14px 26px rgba(0, 0, 0, .14); visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.ma-nav__item:hover > .ma-nav__sub, .ma-nav__item:focus-within > .ma-nav__sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.ma-nav__item.is-closed > .ma-nav__sub { visibility: hidden; opacity: 0; }
.ma-nav__sub a { display: block; padding: 11px 20px; color: var(--negro); font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.ma-nav__sub a:hover, .ma-nav__sub a:focus-visible, .ma-nav__sub a[aria-current] { background: var(--marfil); color: var(--vino); }

/* Fixed actions: SOS (urgency) → Colaborar (main action) → WhatsApp (direct channel). */
.ma-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.ma-sos { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 16px; background: var(--vino); color: #fff; border: 2px solid var(--oro); border-radius: 2px; font: 700 13.5px/1.2 var(--sans); letter-spacing: .04em; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.ma-sos:hover { background: #fff; color: var(--vino); transform: translateY(-2px); }
.ma-sos__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--oro); animation: ma-pulse 1.8s infinite; }
@keyframes ma-pulse {
	0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, .7); }
	70% { box-shadow: 0 0 0 9px rgba(201, 162, 39, 0); }
	100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}
.ma-burger { display: none; width: 46px; height: 46px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: none; border: 2px solid var(--negro); border-radius: 2px; cursor: pointer; }
.ma-burger span { display: block; width: 22px; height: 2px; background: var(--negro); }

@media (max-width: 1099px) {
	.ma-nav, .ma-header__colaborar { display: none; }
	.ma-burger { display: flex; }
}
@media (max-width: 600px) {
	.ma-header__bar { padding: 0 16px; gap: 10px; }
	.ma-header .ma-logo { height: 44px; }
	.ma-sos { padding: 9px 12px; font-size: 12.5px; }
}

/* Full-screen menu (tablet and phone). */
.ma-drawer { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding: 24px 28px 40px; background: var(--negro); color: #fff; }
.ma-drawer[hidden] { display: none; }
.admin-bar .ma-drawer { top: var(--admin-bar); }
.ma-drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.ma-drawer__logo { color: #fff; display: flex; }
.ma-drawer__logo .ma-logo { height: 52px; }
.ma-drawer__close { width: 46px; height: 46px; background: none; border: 2px solid #fff; border-radius: 2px; color: #fff; font-size: 22px; cursor: pointer; }
.ma-drawer__colaborar { margin: 0 0 10px; width: 100%; }
.ma-drawer__link, .ma-drawer__acc summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 12px 0; border-bottom: 1px solid #3a332e; color: #fff; font: 400 24px/1.2 var(--serif); text-decoration: none; cursor: pointer; list-style: none; }
.ma-drawer__acc summary::-webkit-details-marker { display: none; }
.ma-drawer__acc summary::after { content: "+"; color: var(--oro); font-size: 26px; font-family: var(--sans); }
.ma-drawer__acc[open] summary::after { content: "–"; }
.ma-drawer__acc { border-bottom: 1px solid #3a332e; }
.ma-drawer__acc summary { border-bottom: 0; }
.ma-drawer__acc a { display: flex; align-items: center; min-height: 44px; padding: 11px 0 11px 14px; border-left: 2px solid var(--oro); color: #e8e1d6; font-size: 17px; text-decoration: none; }
.ma-drawer__acc a:first-of-type { font-weight: 700; color: #fff; }
.ma-drawer a[aria-current] { color: var(--oro); }
body.ma-drawer-open { overflow: hidden; }
