@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/*
 * Breakpoints responsive (alineados con style.css / --OZ-Container-*):
 * — móvil:   max-width 767px
 * — tablet:  768px – 991px
 * — laptop:  992px – 1199px
 * — desktop: min-width 1200px (estilos base)
 */

/* Cabecera tipo comercio B2B: barra superior clara + barra inferior azul. */
.site-header {
	--oz-h-navy: #2e3192;
	--oz-h-cat-yellow: #fbc225;
	--oz-h-cat-ink: #302f93;
	--oz-h-quote-bg: #302e8f;
	--oz-h-white: #ffffff;
	--oz-h-gray-border: #e0e0e0;
	--oz-h-red-badge: #e53935;

	/* Header fijo con animación de mostrar/ocultar al hacer scroll */
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9000;
	margin: 0;
	padding: 0;
	border: none;
	background: var(--oz-h-white);
	color: var(--OZ-Color-2, #1a1a1a);
	font-family: 'Montserrat', var(--OZ-Font-Base, system-ui, sans-serif);
	text-align: left;
	display: block;
	transform: translateY(0);
	transition: transform 0.35s ease;
	will-change: transform;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Estado "oculto": se desplaza fuera de la pantalla hacia arriba */
.site-header.is-hidden {
	transform: translateY(-100%);
}

/* Compensar el espacio que ocupaba el header (ahora fixed) para que el contenido no quede debajo */
body {
	padding-top: var(--oz-header-height, 140px);
}

@media (max-width: 991px) {
	body {
		padding-top: var(--oz-header-height, 130px);
	}
}

@media (max-width: 767px) {
	body {
		padding-top: var(--oz-header-height, 120px);
	}
}

.site-header a {
	color: inherit;
	text-decoration: none;
}

/* El tema aplica `a:hover { text-decoration: underline }` en style.css; aquí lo anulamos en la cabecera. */
.site-header__popover-summary.site-header__icon-btn:hover,
.site-header__popover-summary.site-header__icon-btn:focus,
.site-header__popover-summary.site-header__icon-btn:focus-visible,
.site-header__icon-btn:hover,
.site-header__icon-btn:focus-visible,
.site-header__quote:hover,
.site-header__quote:focus-visible,
.site-header__catalog:hover,
.site-header__catalog:focus-visible,
.site-header__nav.main-navigation a:hover,
.site-header__nav.main-navigation a:focus-visible,
.oz-cat-pop__link:hover,
.oz-cat-pop__link:focus-visible,
.site-header__popover-panel a:hover,
.site-header__popover-panel a:focus-visible {
	text-decoration: none;
}

.site-header__brand-link:hover,
.site-header__logo-wrap .custom-logo-link:hover {
	opacity: 0.9;
}

body.single-post .site-header {
	border-bottom: none;
}

/* ——— Barra superior ——— */
.site-header__top {
	background: var(--oz-h-white);
	border-bottom: 1px solid var(--oz-h-gray-border);
}

.site-header__top-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	width: 100%;
	max-width: var(--OZ-Container-PC, 1400px);
	margin: 0 auto;
	padding: 0.85rem var(--container-padding, 1.25rem);
	box-sizing: border-box;
}

.site-header__brand {
	flex: 0 0 auto;
	min-width: 0;
}

.site-header__logo-wrap {
	margin: 0;
	font-size: 0;
	line-height: 0;
}

.site-header__logo-wrap .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.site-header__logo-wrap .custom-logo {
	display: block;
	height: auto;
	width: auto;
	max-height: 3.25rem;
	max-width: min(220px, 42vw);
}

@media (min-width: 768px) {
	.site-header__logo-wrap .custom-logo {
		max-height: 3.75rem;
		max-width: 260px;
	}
}

.site-header__brand-link {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--oz-h-navy);
}

.site-header__brand-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--oz-h-navy);
	color: var(--oz-h-white);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	flex-shrink: 0;
}

.site-header__brand-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	min-width: 0;
}

.site-header__brand-name {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--oz-h-navy);
}

.site-header__brand-pill {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--oz-h-white);
	background: #7b83d9;
	border-radius: 2px;
	line-height: 1.2;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Buscador centrado (crece entre logo y acciones) */
.site-header__search {
	flex: 1 1 280px;
	min-width: 0;
	max-width: 560px;
	margin: 0 auto;
}

.site-header__search-field {
	position: relative;
	width: 100%;
}

.site-header__search-field .oz-ls {
	width: 100%;
}

.site-header__search-field .oz-ls__input {
	width: 100%;
	padding: 0.7rem 2.75rem 0.7rem 1rem;
	border-radius: 10px;
	border: 1px solid var(--oz-h-gray-border);
	background: var(--oz-h-white);
	font-family: inherit;
	font-size: 0.9rem;
	color: var(--OZ-Color-2, #333);
	box-sizing: border-box;
}

.site-header__search-field .oz-ls__input::placeholder {
	color: #9e9e9e;
}

.site-header__search-icon {
	position: absolute;
	right: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #9e9e9e;
	display: flex;
	align-items: center;
	justify-content: center;
}

.site-header__search .oz-ls__panel {
	text-align: left;
}

/* Acciones derecha */
.site-header__actions {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.5rem;
	flex: 0 0 auto;
	position: relative;
}

/* Popovers (usuario, menú hamburguesa) */
.site-header__popover {
	position: relative;
	flex-shrink: 0;
}

.site-header__popover-summary.site-header__icon-btn {
	list-style: none;
	cursor: pointer;
	text-decoration: none;
}

.site-header__popover-summary.site-header__icon-btn::-webkit-details-marker {
	display: none;
}

.site-header__popover-summary.site-header__icon-btn::marker {
	content: '';
}

.site-header__popover-summary.site-header__icon-btn:hover,
.site-header__popover-summary.site-header__icon-btn:focus {
	background: var(--oz-h-white);
	color: #555;
	border-color: var(--oz-h-gray-border);
	text-decoration: none;
	outline: none;
}

.site-header__popover-summary.site-header__icon-btn:focus-visible {
	outline: 2px solid rgba(48, 46, 143, 0.35);
	outline-offset: 2px;
}

.site-header__popover-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: auto;
	z-index: 10060;
	min-width: 220px;
	max-width: min(300px, calc(100vw - 1.5rem));
	padding: 1rem;
	background: var(--oz-h-white);
	border: 1px solid var(--oz-h-gray-border);
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--OZ-Color-2, #333);
	box-sizing: border-box;
}

.site-header__popover-title {
	margin: 0 0 0.65rem;
	font-weight: 700;
	font-size: 0.9rem;
}

.site-header__popover-line {
	margin: 0 0 0.5rem;
}

.site-header__popover-label {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.65;
	margin-bottom: 0.15rem;
}

.site-header__popover-panel a {
	color: var(--oz-h-navy);
}

.site-header__popover-foot {
	margin: 0.75rem 0 0;
	padding-top: 0.65rem;
	border-top: 1px solid var(--oz-h-gray-border);
	font-size: 0.8rem;
}

.site-header__popover-phones {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.site-header__popover-phones li {
	margin: 0;
	padding: 0;
}

.site-header__popover-placeholder {
	margin: 0 0 0.65rem;
}

.site-header__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--oz-h-gray-border);
	border-radius: 6px;
	background: var(--oz-h-white);
	color: #555;
	box-sizing: border-box;
}

.site-header__icon-btn:hover,
.site-header__icon-btn:focus-visible {
	background: var(--oz-h-white);
	color: #555;
	border-color: var(--oz-h-gray-border);
}

.site-header__quote {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem 0.5rem 0.65rem;
	border-radius: 10px;
	background-color: var(--oz-h-quote-bg);
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
	max-width: 100%;
}

.site-header__quote:hover,
.site-header__quote:focus-visible,
.site-header__quote:visited {
	background-color: var(--oz-h-quote-bg);
	color: #ffffff;
	opacity: 1;
}

.site-header__quote-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--oz-h-white);
	flex-shrink: 0;
}

.site-header__quote-badge {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--oz-h-red-badge);
	color: var(--oz-h-white);
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.15rem;
	text-align: center;
	box-sizing: border-box;
}

.site-header__quote-label {
	overflow: hidden;
	text-overflow: ellipsis;
	color: #ffffff;
}

/* ——— Barra inferior ——— */
.site-header__bottom {
	background: var(--oz-h-navy);
	color: var(--oz-h-white);
	overflow: visible;
}

.site-header__bottom-inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	width: 100%;
	max-width: var(--OZ-Container-PC, 1400px);
	margin: 0 auto;
	padding: 0.65rem var(--container-padding, 1.25rem);
	box-sizing: border-box;
	overflow: visible;
}

/* Botón categorías + menú principal en la misma fila (junto a la flecha del diseño) */
.site-header__bottom-cluster {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	column-gap: 0.65rem;
	flex: 1 1 auto;
	min-width: 0;
	/* visible: evita recortar desplegables absolutos del top */
	overflow: visible;
}

/* =============================================================
   Popover «Todas las Categorías» (implementación nueva, desde cero)
   Botón + panel; listas con get_terms; ramas con flecha y sublistas colapsables (JS ligero).
   ============================================================= */
.oz-cat-pop {
	position: relative;
	flex-shrink: 0;
	z-index: 10055;
}

.oz-cat-pop__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1rem;
	border: 0;
	border-radius: 8px;
	background: var(--oz-h-cat-yellow);
	color: var(--oz-h-cat-ink);
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	box-sizing: border-box;
	text-decoration: none;
}

.oz-cat-pop__trigger:hover,
.oz-cat-pop__trigger:focus-visible {
	background: #e8c010;
	outline: 2px solid rgba(17, 24, 39, 0.2);
	outline-offset: 2px;
}

.oz-cat-pop.is-open .oz-cat-pop__trigger {
	background: #e8c010;
}

.oz-cat-pop__trigger-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--oz-h-cat-ink);
}

.oz-cat-pop__panel {
	--oz-cat-bg: #302e8f;
	--oz-cat-accent: #fbc225;

	position: absolute;
	left: 0;
	top: calc(100% + 10px);
	min-width: min(22rem, calc(100vw - 2.5rem));
	max-width: min(28rem, calc(100vw - 2.5rem));
	max-height: min(72vh, 560px);
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--oz-cat-bg);
	border-radius: 14px;
	box-shadow: 0 24px 54px -16px rgba(0, 0, 0, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

/*
 * El atributo [hidden] por defecto usa display:none, pero cualquier `display` en esta misma
 * hoja (p. ej. flex) lo pisa y el panel queda siempre visible. Forzar cierre real.
 */
.oz-cat-pop__panel[hidden] {
	display: none !important;
}

.oz-cat-pop__list[hidden] {
	display: none !important;
}

.oz-cat-pop__head {
	flex-shrink: 0;
	padding: 0.65rem 1rem 0.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.oz-cat-pop__title {
	margin: 0;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.52);
}

.oz-cat-pop__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0.65rem 0.75rem 0.85rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.08);
}

.oz-cat-pop__scroll::-webkit-scrollbar {
	width: 10px;
}
.oz-cat-pop__scroll::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	margin: 6px 0;
}
.oz-cat-pop__scroll::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.35);
	border-radius: 10px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

.oz-cat-pop__nav {
	display: block;
}

.oz-cat-pop__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.oz-cat-pop__list--root {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.oz-cat-pop__list:not(.oz-cat-pop__list--root) {
	margin: 0.35rem 0 0.15rem 0.65rem;
	padding-left: 0.65rem;
	border-left: 2px solid rgba(251, 194, 37, 0.45);
}

.oz-cat-pop__item {
	margin: 0;
	padding: 0;
}

.oz-cat-pop__row {
	display: flex;
	align-items: stretch;
	gap: 0.2rem;
	min-width: 0;
}

/* Alinea el texto con las filas que tienen flecha a la derecha (mismo hueco que el botón). */
.oz-cat-pop__row--leaf {
	padding-inline-end: 2rem;
}

.oz-cat-pop__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 2rem;
	width: 2rem;
	min-height: 2.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--oz-cat-accent);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.oz-cat-pop__toggle:hover,
.oz-cat-pop__toggle:focus-visible {
	background: rgba(251, 194, 37, 0.14);
	color: #fff4c2;
}

.oz-cat-pop__toggle:focus-visible {
	outline: 2px solid rgba(251, 194, 37, 0.55);
	outline-offset: 1px;
}

.oz-cat-pop__chevron {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.22s ease;
}

.oz-cat-pop__toggle[aria-expanded='true'] .oz-cat-pop__chevron {
	transform: rotate(90deg);
}

.oz-cat-pop__row .oz-cat-pop__link {
	flex: 1 1 auto;
	min-width: 0;
}

.oz-cat-pop__link {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.65rem;
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.oz-cat-pop__link::before {
	content: '';
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--oz-cat-accent);
	transition: transform 0.2s ease;
}

.oz-cat-pop__link:hover,
.oz-cat-pop__link:focus-visible {
	background: rgba(251, 194, 37, 0.16);
	box-shadow: inset 0 0 0 1px rgba(251, 194, 37, 0.35);
	color: #ffffff;
	padding-left: 0.85rem;
	outline: none;
}

.oz-cat-pop__link:hover::before,
.oz-cat-pop__link:focus-visible::before {
	transform: scale(1.25);
}

.oz-cat-pop__empty {
	margin: 0;
	padding: 1rem;
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.75);
	text-align: center;
}

/* =============================================================
   Popover del menú principal (botón hamburguesa del header)
   Reutiliza la misma paleta navy/amarillo del popover de categorías.
   ============================================================= */
.site-header__menu-panel {
	min-width: min(18rem, calc(100vw - 2.5rem));
	max-width: min(22rem, calc(100vw - 2.5rem));
	padding: 10px;
	background: #302E8F;
	border-radius: 14px;
	box-shadow: 0 24px 54px -16px rgba(0, 0, 0, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #ffffff;
	overflow: hidden;
}

.site-header__menu-nav,
.site-header__menu-list {
	margin: 0;
	padding: 0;
}
.site-header__menu-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.site-header__menu-list .menu-item { list-style: none; margin: 0; }

.site-header__menu-list .menu-item > a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	border-radius: 8px;
	transition: background-color .2s ease, padding-left .2s ease;
}
.site-header__menu-list .menu-item > a::before {
	content: '';
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #FBC225;
	transition: transform .2s ease;
}
.site-header__menu-list .menu-item > a:hover,
.site-header__menu-list .menu-item > a:focus-visible,
.site-header__menu-list .menu-item.current-menu-item > a,
.site-header__menu-list .menu-item.current_page_item > a {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	text-decoration: none;
	padding-left: 18px;
	outline: none;
}
.site-header__menu-list .menu-item > a:hover::before,
.site-header__menu-list .menu-item > a:focus-visible::before {
	transform: scale(1.35);
}

/* Sub-menús de segundo nivel (si el menú los tiene) */
.site-header__menu-list .sub-menu {
	list-style: none;
	margin: 4px 8px 8px 20px;
	padding: 4px 0 4px 14px;
	border-left: 2px solid rgba(251, 194, 37, 0.4);
}
.site-header__menu-list .sub-menu .menu-item > a {
	padding: 8px 12px;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.8);
}
.site-header__menu-list .sub-menu .menu-item > a::before {
	width: 4px;
	height: 4px;
}

.site-header__nav {
	flex: 0 1 auto;
	min-width: 0;
}

/* =============================================================
   Visibilidad responsive de navs y botón hamburguesa
   - ≥992px (escritorio/laptop): menú principal en barra inferior; sin hamburguesa.
   - ≤991px (tablet/móvil): el menú lo provee el botón hamburguesa.
   ============================================================= */
@media (min-width: 992px) {
	.site-header__menu-popover {
		display: none !important;
	}
}
@media (max-width: 991px) {
	.site-header__nav--primary {
		display: none !important;
	}
}

.site-header__nav.main-navigation ul.menu,
.site-header__nav.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem 1.25rem;
}

.site-header__nav.main-navigation li {
	margin: 0;
	flex-shrink: 0;
}

.site-header__nav.main-navigation a {
	color: var(--oz-h-white);
	font-size: 0.8rem;
	font-weight: 500;
	padding: 0.25rem 0;
}

/* Sin subrayado en hover ni en la página actual */
.site-header__nav.main-navigation a:hover,
.site-header__nav.main-navigation a:focus-visible,
.site-header__nav.main-navigation .current-menu-item > a,
.site-header__nav.main-navigation .current-menu-ancestor > a,
.site-header__nav.main-navigation .current_page_item > a,
.site-header__nav.main-navigation .current_page_ancestor > a {
	opacity: 1;
	text-decoration: none;
}

.site-header__catalog {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 8px;
	color: var(--oz-h-white);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.site-header__catalog:not(.site-header__catalog--mobile-only):hover,
.site-header__catalog:not(.site-header__catalog--mobile-only):focus-visible {
	color: var(--oz-h-white);
	background: transparent;
	opacity: 1;
}

/* Mismo enlace CATÁLOGO que en barra inferior; solo visible en móvil (grid en .site-header__top-inner). */
.site-header__catalog--mobile-only {
	display: none;
}

/*
 * No usar overflow:auto en .site-header__bottom-inner ni en .site-header__bottom-cluster:
 * un scrollport ancestro hace que el desplegable absoluto de categorías extienda el área
 * de desplazamiento y aparezca barra de scroll (el panel debe flotar como los popovers del top).
 * Si hace falta scroll horizontal, solo en la zona del menú (.site-header__nav).
 */
/* Laptop y desktop: barra inferior en una fila; scroll horizontal solo en el menú */
@media (min-width: 992px) {
	.site-header__bottom-inner {
		overflow: visible;
	}

	.site-header__nav.main-navigation {
		overflow-x: auto;
		overflow-y: hidden;
		flex: 1 1 auto;
		min-width: 0;
		max-width: 100%;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.site-header__nav.main-navigation::-webkit-scrollbar {
		height: 4px;
	}

	.site-header__nav.main-navigation::-webkit-scrollbar-thumb {
		background: rgba(255, 255, 255, 0.25);
		border-radius: 4px;
	}
}

/* Laptop (992–1199): cabecera un poco más compacta */
@media (min-width: 992px) and (max-width: 1199px) {
	.site-header__top-inner {
		gap: 0.85rem 1.15rem;
		padding: 0.75rem var(--container-padding, 1.15rem);
	}

	.site-header__logo-wrap .custom-logo {
		max-height: 3.35rem;
		max-width: 220px;
	}

	.site-header__search {
		max-width: min(480px, 42vw);
	}

	.site-header__search-field .oz-ls__input {
		padding: 0.62rem 2.6rem 0.62rem 0.9rem;
		font-size: 0.86rem;
	}

	.site-header__quote {
		font-size: 0.76rem;
		padding: 0.45rem 0.85rem 0.45rem 0.55rem;
	}

	.site-header__bottom-inner {
		padding: 0.55rem var(--container-padding, 1.15rem);
		gap: 0.6rem 0.85rem;
	}

	.oz-cat-pop__trigger {
		padding: 0.48rem 0.85rem;
		font-size: 0.76rem;
	}

	.site-header__nav.main-navigation a {
		font-size: 0.76rem;
	}

	.site-header__catalog {
		font-size: 0.68rem;
		padding: 0.4rem 0.8rem;
	}
}

/* Tablet y móvil: barra inferior apilada / centrada */
@media (max-width: 991px) {
	.site-header__top-inner {
		justify-content: center;
	}

	.site-header__brand {
		order: 1;
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.site-header__search {
		order: 3;
		flex: 1 1 100%;
		max-width: none;
		margin: 0;
	}

	.site-header__actions {
		order: 2;
		width: 100%;
		justify-content: center;
	}

	.site-header__bottom-inner {
		justify-content: center;
		flex-wrap: wrap;
		overflow-x: visible;
	}

	.site-header__bottom-cluster {
		flex: 1 1 100%;
		justify-content: center;
		flex-wrap: wrap;
		row-gap: 0.65rem;
		overflow: visible;
	}

	.site-header__nav {
		flex: 1 1 100%;
		order: 2;
	}

	.oz-cat-pop {
		order: 1;
	}

	.site-header__nav.main-navigation ul.menu,
	.site-header__nav.main-navigation ul {
		justify-content: center;
		flex-wrap: wrap;
	}

	.oz-cat-pop__panel {
		left: 50%;
		transform: translateX(-50%);
	}

	.site-header__catalog {
		order: 3;
		width: 100%;
		justify-content: center;
	}
}

/*
 * Tablet (768–991px): menos altura en la barra azul (una fila + scroll en menú),
 * fila superior más holgada (cotización solo icono como en móvil).
 */
@media (min-width: 768px) and (max-width: 991px) {
	.site-header__top-inner {
		justify-content: space-between;
		align-items: center;
		gap: 0.5rem 0.75rem;
		padding: 0.6rem var(--container-padding, 1.1rem);
	}

	.site-header__brand {
		order: 1;
		width: auto;
		max-width: min(46%, 280px);
		display: flex;
		justify-content: flex-start;
	}

	.site-header__logo-wrap .custom-logo {
		max-height: 2.85rem;
		max-width: min(220px, 42vw);
	}

	.site-header__actions {
		order: 2;
		width: auto;
		max-width: 52%;
		justify-content: flex-end;
		flex-wrap: nowrap;
		gap: 0.35rem;
	}

	/* Libera espacio: en tablet el texto del botón apretaba contra el logo */
	.site-header__quote-label {
		display: none;
	}

	.site-header__quote {
		padding: 0.45rem 0.55rem;
	}

	.site-header__search {
		order: 3;
		flex: 1 1 100%;
		max-width: none;
		margin: 0.35rem 0 0;
	}

	.site-header__search-field .oz-ls__input {
		padding: 0.58rem 2.55rem 0.58rem 0.9rem;
		font-size: 0.88rem;
	}

	/* Barra inferior: misma idea que laptop — una sola fila, menos altura */
	.site-header__bottom-inner {
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: center;
		gap: 0.65rem 0.75rem;
		padding: 0.5rem var(--container-padding, 1.1rem);
	}

	.site-header__bottom-cluster {
		flex: 1 1 auto;
		min-width: 0;
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: center;
		column-gap: 0.75rem;
		row-gap: 0;
	}

	.oz-cat-pop {
		order: 1;
		flex-shrink: 0;
	}

	.oz-cat-pop__trigger {
		padding: 0.46rem 0.82rem;
		font-size: 0.74rem;
		white-space: nowrap;
	}

	.site-header__nav {
		flex: 1 1 auto;
		min-width: 0;
		order: 2;
	}

	.site-header__nav.main-navigation {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
		padding-bottom: 2px;
		margin: 0 -2px;
		padding-left: 2px;
		padding-right: 2px;
	}

	.site-header__nav.main-navigation::-webkit-scrollbar {
		height: 3px;
	}

	.site-header__nav.main-navigation::-webkit-scrollbar-thumb {
		background: rgba(255, 255, 255, 0.28);
		border-radius: 3px;
	}

	.site-header__nav.main-navigation ul.menu,
	.site-header__nav.main-navigation ul {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0.5rem 1.15rem;
		width: max-content;
		min-height: 2.75rem;
		align-items: center;
	}

	.site-header__nav.main-navigation li {
		flex-shrink: 0;
	}

	.site-header__nav.main-navigation a {
		font-size: 0.8rem;
		padding: 0.4rem 0.2rem;
		min-height: 2.75rem;
		display: inline-flex;
		align-items: center;
		box-sizing: border-box;
	}

	.site-header__catalog {
		order: 3;
		width: auto;
		flex-shrink: 0;
		margin: 0;
	}

	.oz-cat-pop__panel {
		left: 0;
		transform: none;
	}
}

/* Solo móvil: fila 1 = logo izquierda + 3 iconos derecha; fila 2 = CATÁLOGO izquierda + buscador derecha */
@media (max-width: 767px) {
	.site-header__top-inner {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-rows: auto auto;
		align-items: center;
		column-gap: 0.65rem;
		row-gap: 0.65rem;
		padding: 0.65rem var(--container-padding, 1rem);
		justify-content: stretch;
	}

	.site-header__brand {
		grid-column: 1;
		grid-row: 1;
		order: 0;
		width: auto;
		max-width: min(58vw, 220px);
		justify-content: flex-start;
		justify-self: start;
	}

	.site-header__actions {
		grid-column: 2;
		grid-row: 1;
		order: 0;
		width: auto;
		justify-content: flex-end;
		justify-self: end;
		flex-wrap: nowrap;
	}

	.site-header__catalog--mobile-only {
		display: inline-flex !important;
		grid-column: 1;
		grid-row: 2;
		justify-self: start;
		align-self: center;
		align-items: center;
		gap: 0.4rem;
		padding: 0.45rem 0.75rem;
		border-radius: 8px;
		background: #302e8f;
		/* Gana a .site-header a { color: inherit } (texto quedaba negro hasta :hover). */
		color: #fff !important;
		border: 1px solid #302e8f;
		font-size: 0.65rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		flex-shrink: 0;
		box-sizing: border-box;
		-webkit-tap-highlight-color: transparent;
	}

	/* Sin cambio visual al pasar el dedo / foco / clic (evita heredar estilos de .site-header__catalog). */
	.site-header__catalog--mobile-only:hover,
	.site-header__catalog--mobile-only:focus,
	.site-header__catalog--mobile-only:focus-visible,
	.site-header__catalog--mobile-only:active {
		color: #fff !important;
		background: #302e8f !important;
		border-color: #302e8f !important;
		opacity: 1 !important;
		text-decoration: none !important;
		outline: none;
	}

	.site-header__catalog--mobile-only svg {
		width: 16px;
		height: 16px;
		color: #fff;
		flex-shrink: 0;
	}

	.site-header__search {
		grid-column: 2;
		grid-row: 2;
		order: 0;
		flex: none;
		width: 100%;
		min-width: 0;
		max-width: none;
		margin: 0;
		align-self: stretch;
	}

	/* Barra azul (categorías + menú): oculta en móvil; el HTML sigue en el documento para tablet/PC. */
	.site-header__bottom {
		display: none !important;
	}

	.site-header__logo-wrap .custom-logo {
		max-height: 2.85rem;
		max-width: min(200px, 70vw);
	}

	.site-header__brand-name {
		font-size: 1.02rem;
	}

	.site-header__brand-avatar {
		width: 2.25rem;
		height: 2.25rem;
		font-size: 0.68rem;
	}

	.site-header__search-field .oz-ls__input {
		padding: 0.6rem 2.5rem 0.6rem 0.85rem;
		font-size: 0.84rem;
		border-radius: 8px;
	}

	.site-header__icon-btn {
		width: 2.35rem;
		height: 2.35rem;
	}

	.site-header__popover-panel {
		right: 50%;
		transform: translateX(50%);
		max-width: min(300px, calc(100vw - 1.25rem));
	}

	.site-header__quote-label {
		display: none;
	}

	.site-header__quote {
		padding: 0.5rem 0.6rem;
	}

	.site-header__bottom-inner {
		padding: 0.55rem var(--container-padding, 1rem);
	}

	.oz-cat-pop__trigger {
		font-size: 0.72rem;
		padding: 0.48rem 0.75rem;
		gap: 0.4rem;
	}

	.oz-cat-pop__trigger-icon {
		width: 16px;
		height: 16px;
	}

	.site-header__nav.main-navigation a {
		font-size: 0.74rem;
	}

	/* Solo el CATÁLOGO de la barra azul (en móvil está oculto; no afectar .site-header__catalog--mobile-only). */
	.site-header__bottom .site-header__catalog:not(.site-header__catalog--mobile-only) {
		font-size: 0.65rem;
		padding: 0.38rem 0.75rem;
	}

	.site-header__bottom .site-header__catalog:not(.site-header__catalog--mobile-only) svg {
		width: 16px;
		height: 16px;
	}

	.oz-cat-pop__panel {
		min-width: min(17rem, calc(100vw - 1.5rem));
		max-width: calc(100vw - 1.25rem);
	}
}
