/* =========================================================
   HEADER – BASE (DESKTOP / TABLET)
   (ESTO YA FUNCIONA — NO SE TOCA)
========================================================= */

.mr-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background: transparent;
}

/* INNER WRAPPER */
.mr-header__inner {
	max-width: var(--container-max);
	margin: 0 auto;

	/* MISMO EJE HORIZONTAL QUE EL HERO */
	padding-inline: clamp(1.5rem, 6vw, 6rem);
	padding-top: 2.5rem;
	padding-bottom: 1.5rem;

	display: grid;
	grid-template-columns: auto 1fr auto;

	align-items: center;
}

/* =========================================================
   LOGO
========================================================= */

.mr-header__brand {
	display: flex;
	align-items: center;
	line-height: 0;
	border-radius: 3px;
}

.mr-header__brand a {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.75rem;
	background: rgba(40, 40, 40, 0.65);
}

.mr-header__logo {
	height: 44px;
	width: auto;
	max-width: unset;
	display: block;
}

/* =========================================================
   NAV DESKTOP / TABLET
========================================================= */

.mr-nav {
	display: flex;
	gap: 0.75rem;
	justify-self: end;
}

/* Lista del menú horizontal */
.mr-nav__list {
	display: flex;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mr-nav__list > li {
	margin: 0;
	padding: 0;
}

.mr-nav a {
	padding: 0.9rem 1.25rem;
	display: inline-flex;
	align-items: center;

	background: rgba(40, 40, 40, 0.65);
	color: var(--color-ivory);

	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: none;

	border-radius: 3px;
}

.mr-nav a:hover,
.mr-nav .current-menu-item > a {
	color: var(--color-amarillo);
}

/* =========================================================
   DESKTOP + TABLET
   (MOBILE APAGADO COMPLETAMENTE)
========================================================= */

@media (min-width: 1024px) {

	/* Burger NO existe en desktop */
	.mr-burger {
		display: none;
	}

	/* Drawer totalmente muerto */
	.mr-drawer {
		display: none !important;
		visibility: hidden;
		pointer-events: none;
	}
}

/* =========================================================
   MOBILE – BURGER + DRAWER
   (NUEVO, NO ROMPE DESKTOP)
========================================================= */

@media (max-width: 1023px) {

	/* Ocultamos nav desktop */
	.mr-nav {
		display: none;
	}

	/* =====================================================
	   BURGER (2 BARRAS GRANDES)
	===================================================== */

	.mr-burger {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;

		background: none;
		border: none;
		cursor: pointer;
	}

	.mr-burger span {
		width: 28px;
		height: 3px;
		background: var(--color-ivory);
		display: block;
	}

	/* =====================================================
	   DRAWER BASE
	===================================================== */

	.mr-drawer {
		position: fixed;
		inset: 0;
		z-index: 2000;

		/* Color GRAFITO del manual */
		background: var(--color-grafito);

		display: flex;
		flex-direction: column;
        justify-content: center;

		padding: 3rem 2rem;

		/* Arranca oculto */
		transform: translateX(100%);
		transition: transform 0.4s ease;
	}

	/* Drawer abierto */
	.mr-drawer.is-open {
		transform: translateX(0);
	}

	/* =====================================================
	   NAV MOBILE (GRANDE + CURSIVA)
	===================================================== */

	.mr-drawer__list {
		list-style: none;
		margin: 0;
		padding: 0;

		display: flex;
		flex-direction: column;
		gap: 1.4rem;
	}

	.mr-drawer__list a {
		font-family: var(--font-primary);
		font-size: clamp(2rem, 6vw, 3rem);
		font-style: italic;
		font-weight: 400;

		color: var(--color-ivory);
		letter-spacing: 0.02em;

		transition: color 0.3s ease, transform 0.3s ease;
	}

	.mr-drawer__list a:hover {
		color: var(--color-amarillo);
		transform: translateX(4px);
	}

	/* =====================================================
	   SOCIAL MEDIA (ABAJO, HORIZONTAL, NO CURSIVA)
	===================================================== */

	.mr-drawer__social {
		margin-top: auto;

		display: flex;
		gap: 1.25rem;
		flex-wrap: wrap;
	}

	.mr-drawer__social a {
		font-size: 0.75rem;
		letter-spacing: 0.12em;
		text-transform: uppercase;

		color: var(--color-ivory);
		opacity: 0.75;

		transition: color 0.3s ease;
	}

	.mr-drawer__social a:hover {
		color: var(--color-amarillo);
		opacity: 1;
	}
}

/* =========================================================
   MOBILE – HEADER LAYOUT
   Separar logo y burger
========================================================= */

@media (max-width: 1023px) {
	.mr-header__inner {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
}

/* =========================================================
   MOBILE – AJUSTE PADDING SUPERIOR HEADER
========================================================= */

@media (max-width: 1023px) {
	.mr-header__inner {
		padding-top: 1rem; /* ajusta aquí si lo quieres más arriba */
	}
}


/* =========================================================
   MOBILE – DRAWER REFINADO (SIN ROMPER BASE)
========================================================= */

@media (max-width: 1023px) {

	/* Fondo grafito con transparencia */
	.mr-drawer {
		background: rgba(51, 51, 51, 0.94);
	}

	/* Bajamos un poco más el bloque de links */
	.mr-drawer__nav {
		margin-top: 2rem;
	}

	/* Links principales: más gruesos, naranja, con sombra */
	.mr-drawer__list a {
		font-weight: 700;
		color: var(--color-naranja);

		text-shadow:
			0 2px 6px rgba(0, 0, 0, 0.4),
			0 10px 28px rgba(0, 0, 0, 0.5);
	}

	.mr-drawer__list a:hover {
		color: var(--color-amarillo);
	}

	/* =====================================================
	   BOTÓN CERRAR (X)
	===================================================== */

	.mr-drawer__close {
		position: absolute;
		top: 1.25rem;
		right: 1.5rem;

		width: 32px;
		height: 32px;

		background: none;
		border: none;
		cursor: pointer;
	}

	.mr-drawer__close span {
		position: absolute;
		top: 50%;
		left: 0;

		width: 100%;
		height: 3px;

		background: var(--color-amarillo);
		border-radius: 2px;
	}

	.mr-drawer__close span:first-child {
		transform: rotate(45deg);
	}

	.mr-drawer__close span:last-child {
		transform: rotate(-45deg);
	}
}
