/* css/layout/header.css · LAYOUT · cabecera · todas las páginas
   Plantilla «Header – Maitane»: barra de PC, y en tablet y móvil la barra con el menú desplegable «Hoja de cristal» (js/global.js pone la cursiva en «Mi enfoque» y «Tu proceso» y lo cierra al pulsar fuera), y el logo.
   mt-cap = ancho máximo de 1920 px centrado (lo usan la cabecera y el hero).
*/

/* Pantallas de más de 1920 px: el contenido conserva su tamaño de diseño (las medidas llevan tope a 1920) y se centra; los fondos siguen rellenando. */
@media (min-width: 1921px) {
	.mt-cap.mt-cap { max-width: 1920px !important; width: 100%; margin-inline: auto !important; }
}

/* ==========================================================================================================
   TABLET (768 a 1024 px de ancho; vertical y horizontal). No hay diseño: se adapta el de PC.
   Todo va DENTRO de esta media query, así que ningún PC (>= 1025 px) cambia. El móvil (< 768 px) tampoco.
   Navbar y menú "Hoja de cristal" (aprobado en el artefacto): logo de 178 px, hamburguesa de cristal de 60 px que se cruza en X,
   panel crema con brillo oliva y anillos finos, enlaces en serif con flecha naranja.
   ========================================================================================================== */
@media (max-width: 1024px) {
	.elementor-location-header { position: relative; z-index: 60; }
	.elementor-location-header .mt-cap { padding: 20px 40px !important; }
	.elementor-location-header .mt-cap > .e-con { padding: 0 !important; position: static !important; display: flex; align-items: center; justify-content: space-between; width: 100% !important; }
	.elementor-location-header .mt-cap > .e-con > .e-con { position: static !important; width: auto !important; flex: 0 0 auto !important; }
	.elementor-location-header .mt-cap .elementor-widget-image { width: 156px !important; max-width: none; }
	.elementor-location-header .mt-cap .elementor-widget-image img { width: 100% !important; height: auto; }
	.elementor-location-header .elementor-widget-nav-menu, .elementor-location-header .elementor-widget-nav-menu .elementor-widget-container { position: static !important; }
	.elementor-location-header .mt-cap .elementor-widget-nav-menu { width: 48px !important; }
	.elementor-location-header .mt-cap .elementor-widget-nav-menu .elementor-widget-container { width: 48px; }

	/* velo detrás del menú abierto */
	.elementor-location-header::after { content: ''; position: fixed; inset: 0; z-index: -1; background: rgba(48, 31, 21, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .45s; }
	.elementor-location-header:has(.elementor-menu-toggle.elementor-active)::after { opacity: 1; }

	/* hamburguesa: círculo de cristal, dos líneas desiguales que se cruzan en X */
	.elementor-location-header .elementor-widget-nav-menu .elementor-menu-toggle {
		position: relative; display: block; width: 48px; height: 48px; padding: 0; margin: 0; border: 0 !important; border-radius: 50%; cursor: pointer; color: #301F15;
		background: rgba(255, 255, 255, .55) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none !important; outline: 0;
	}
	.elementor-location-header .elementor-widget-nav-menu .elementor-menu-toggle > i, .elementor-location-header .elementor-widget-nav-menu .elementor-menu-toggle > svg { display: none !important; }
	.elementor-location-header .elementor-widget-nav-menu .elementor-menu-toggle::before, .elementor-location-header .elementor-widget-nav-menu .elementor-menu-toggle::after {
		content: ''; position: absolute; right: 14px; height: 2px; border-radius: 2px; background: currentColor;
		transition: transform .45s cubic-bezier(.7, 0, .2, 1), width .35s, top .35s;
	}
	.elementor-location-header .elementor-menu-toggle::before { top: 17px; width: 20px; }
	.elementor-location-header .elementor-menu-toggle::after { top: 27px; width: 12px; }
	.elementor-location-header .elementor-menu-toggle:hover::after { width: 20px; }
	.elementor-location-header .elementor-menu-toggle.elementor-active::before { top: 23px; width: 20px; transform: rotate(45deg); }
	.elementor-location-header .elementor-menu-toggle.elementor-active::after { top: 23px; width: 20px; transform: rotate(-45deg); }

	/* panel */
	.elementor-location-header .elementor-widget-nav-menu nav.elementor-nav-menu--dropdown {
		position: absolute !important; top: 96px !important; left: 20px !important; right: 20px !important; width: auto !important; margin: 0 !important;
		max-height: none !important; overflow: hidden !important; border-radius: 30px; padding: 10px 32px; border: 0;
		background: radial-gradient(120% 90% at 100% 0, rgba(229, 224, 194, .95), rgba(229, 224, 194, 0) 62%), linear-gradient(180deg, rgba(251, 250, 246, .96), rgba(255, 255, 255, .94)) !important;
		box-shadow: 0 0 0 1px rgba(48, 31, 21, .07), 0 30px 60px -20px rgba(48, 31, 21, .35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-14px) scale(.985) !important; transform-origin: 50% 0;
		transition: opacity .4s, transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .55s;
	}
	.elementor-location-header .elementor-menu-toggle.elementor-active + nav.elementor-nav-menu--dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: none !important; transition-delay: 0s; }
	.elementor-location-header nav.elementor-nav-menu--dropdown::before, .elementor-location-header nav.elementor-nav-menu--dropdown::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
	.elementor-location-header nav.elementor-nav-menu--dropdown::before { right: -120px; top: -120px; width: 380px; height: 380px; box-shadow: 0 0 0 1px rgba(170, 150, 100, .28); }
	.elementor-location-header nav.elementor-nav-menu--dropdown::after { right: -60px; top: -60px; width: 260px; height: 260px; box-shadow: 0 0 0 1px rgba(190, 160, 130, .3); }
	.elementor-location-header nav.elementor-nav-menu--dropdown ul { position: relative; margin: 0; padding: 0; list-style: none; background: none; }
	.elementor-location-header nav.elementor-nav-menu--dropdown li { margin: 0; border: 0; background: none; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .55s cubic-bezier(.2, .8, .2, 1); }
	.elementor-location-header .elementor-menu-toggle.elementor-active + nav li { opacity: 1; transform: none; }
	.elementor-location-header .elementor-menu-toggle.elementor-active + nav li:nth-child(1) { transition-delay: .08s; }
	.elementor-location-header .elementor-menu-toggle.elementor-active + nav li:nth-child(2) { transition-delay: .14s; }
	.elementor-location-header .elementor-menu-toggle.elementor-active + nav li:nth-child(3) { transition-delay: .2s; }
	.elementor-location-header .elementor-menu-toggle.elementor-active + nav li:nth-child(4) { transition-delay: .26s; }
	.elementor-location-header .elementor-menu-toggle.elementor-active + nav li:nth-child(5) { transition-delay: .32s; }
	.elementor-location-header nav.elementor-nav-menu--dropdown li > a {
		display: flex; align-items: center; justify-content: space-between; padding: 16px 0 !important; border: 0; border-bottom: 1px solid #E9DFD2; background: none !important; color: #301F15 !important;
		font-family: 'CS Calistha', serif !important; font-size: 38px !important; font-weight: 400 !important; line-height: 1 !important; letter-spacing: -.005em !important; text-transform: none !important; text-decoration: none;
	}
	.elementor-location-header nav.elementor-nav-menu--dropdown li:last-child > a { border-bottom: 0; }
	.elementor-location-header nav.elementor-nav-menu--dropdown li > a em { font-style: italic; }
	.elementor-location-header nav.elementor-nav-menu--dropdown li > a:hover, .elementor-location-header nav.elementor-nav-menu--dropdown li > a:focus-visible { color: #D35822 !important; }
	.elementor-location-header nav.elementor-nav-menu--dropdown li > a::after {
		content: ''; position: static !important; flex: none; width: 26px; height: 26px; margin: 0; background: #D35822; opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .35s;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
	}
	.elementor-location-header nav.elementor-nav-menu--dropdown li > a:hover::after, .elementor-location-header nav.elementor-nav-menu--dropdown li > a:focus-visible::after { opacity: 1; transform: none; }
}

/* el panel va pegado al botón, a la derecha, con ancho fijo (vertical y horizontal) */
@media (max-width: 1024px) {
	.elementor-location-header .elementor-widget-nav-menu nav.elementor-nav-menu--dropdown { left: auto !important; right: 28px !important; width: 500px !important; }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
	.elementor-location-header *, .elementor-location-header *::before, .elementor-location-header *::after { transition-duration: .01ms !important; }
}

/* Logo horizontal en tablet (el mismo de PC; ya no hay logo apilado en ninguna resolución): 240 x 53 px mantiene la proporción del SVG (411,5 x 90,9). */
@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-location-header .mt-cap .elementor-widget-image { width: 240px !important; }
	.elementor-location-header .mt-cap .elementor-widget-image img { width: 240px !important; height: auto !important; }
}

/* ==========================================================================================================
   MÓVIL (hasta 767 px de ancho). No hay diseño: se adapta el de PC/tablet. Todo va DENTRO de media queries <= 767 px:
   PC (>= 1025 px) y tablet (768 a 1024 px) no cambian. El menú "Hoja de cristal" es el mismo bloque de tablet (su media query llega a 1024 px, sin cambios en 768-1024);
   aquí solo se ajustan medidas: barra de 70 px (el hero sube -70 px bajo ella, de Elementor), logo horizontal de 208 px, panel a casi todo el ancho.
   ========================================================================================================== */
@media (max-width: 767px) {
	.elementor-location-header .mt-cap { padding: 10px 20px !important; }
	/* logo horizontal (el mismo de PC) en móvil */
	.elementor-location-header .mt-cap :is(.mt-header-logo-pc, .mt-header-logo-pc-brown) { width: 208px !important; }
	.elementor-location-header .mt-cap :is(.mt-header-logo-pc, .mt-header-logo-pc-brown) img { width: 208px !important; height: auto !important; }
	.elementor-location-header .elementor-widget-nav-menu nav.elementor-nav-menu--dropdown { top: 76px !important; left: 16px !important; right: 16px !important; width: auto !important; padding: 6px 26px; border-radius: 26px; }
	.elementor-location-header nav.elementor-nav-menu--dropdown li > a { font-size: 32px !important; padding: 15px 0 !important; }
	.elementor-location-header nav.elementor-nav-menu--dropdown li > a::after { width: 22px; height: 22px; }
}

/* Logo de PC marrón en las páginas interiores (Tu proceso, Mi enfoque, Sobre mí; clase mt-logo-brown en el body, ver functions.php): la plantilla lleva dos widgets de logo, el naranja (mt-header-logo-pc) y el marrón (mt-header-logo-pc-brown); aquí se elige uno. El logo horizontal se usa en todas las resoluciones (el apilado se retiró). */
.elementor-location-header .mt-header-logo-pc-brown { display: none; }
body.mt-logo-brown .elementor-location-header .mt-header-logo-pc { display: none; }
body.mt-logo-brown .elementor-location-header .mt-header-logo-pc-brown { display: block; }

/* Logo de PC: 360 px como máximo (a 1920) y nunca menos de 240 px, el mismo tamaño que en tablet, para que no haya salto al pasar de 1024 a 1025 px. */
@media (min-width: 1025px) {
	.elementor-location-header .mt-header-logo-pc, .elementor-location-header .mt-header-logo-pc-brown { min-width: 240px; max-width: none; }
	.elementor-location-header .mt-header-logo-pc img, .elementor-location-header .mt-header-logo-pc-brown img { max-width: none; }
}
