/* =========================================================
 * Header AQUAVEST — OZ-Thema-4.0
 * Fila 1 (blanca): logo + buscador + contacto (asesor/email) + CTA naranja.
 * Fila 2 (teal oscuro): categorías de producto (izq.) + menú principal (der.).
 * Mobile-first, responsive ≥768 / ≥1024 / ≥1280
 * Conserva el mismo buscador (oz_tema_2_render_live_search) y los hooks de
 * header.js (.oz-header, spacer, hamburguesa, megamenú, drawer, search móvil).
 * ========================================================= */

:root {
	--oz-h-bg-top:         #ffffff;
	--oz-h-bg-bottom:      #0b3a48;             /* teal oscuro barra inferior */
	--oz-h-bg-bottom-2:    #0a3140;             /* teal aún más oscuro (hover/sombra) */
	--oz-h-text-top:       #143b46;
	--oz-h-text-bottom:    #ffffff;
	--oz-h-teal:           #0e7c8b;             /* teal marca (logo, iconos) */
	--oz-h-teal-dark:      #0b3a48;
	--oz-h-accent:         #ff5a3c;             /* naranja CTA "Atención en Línea" */
	--oz-h-accent-hover:   #f2492c;
	--oz-h-accent-press:   #db3f23;
	--oz-h-accent-ink:     #ffffff;             /* texto sobre naranja */
	--oz-h-cat-color:      #ffffff;             /* texto categorías top-level */
	--oz-h-cat-hover:      #6fd3df;             /* hover categorías = teal claro */
	--oz-h-link-bottom:    #ffffff;             /* color base links del nav teal */
	--oz-h-search-bg:      #ffffff;
	--oz-h-search-border:  #d4dadd;
	--oz-h-search-text:    #143b46;
	--oz-h-search-placeholder: #8a979d;
	--oz-h-search-btn:     #2e6f7e;             /* botón lupa teal */
	--oz-h-divider:        rgba(255,255,255,.16);
	--oz-h-shadow:         0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
	--oz-h-shadow-mega:    0 18px 45px rgba(0,0,0,.14);
	--oz-h-shadow-cta:     0 6px 16px rgba(255, 90, 60, .30);
	--oz-h-radius:         8px;
	--oz-h-radius-card:    14px;
	--oz-h-trans:          .2s ease;             /* 200ms */
	--oz-h-trans-fast:     .18s ease;
}

/* ---------- Reset puntual ---------- */
.oz-header,
.oz-header *,
.oz-drawer,
.oz-drawer * {
	box-sizing: border-box;
}
.oz-header ul,
.oz-drawer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.oz-header a,
.oz-drawer a {
	text-decoration: none;
	color: inherit;
}
.oz-header button,
.oz-drawer button {
	font: inherit;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	padding: 0;
}

/* ---------- Layout base ---------- */
.oz-header {
	/* El header va en el flujo normal: la fila blanca se desplaza con el
	   scroll y SÓLO la fila turquesa (.oz-header__bottom) queda fija arriba
	   gracias a position: sticky (ver más abajo). */
	position: relative;
	z-index: 100;
	background: var(--oz-h-bg-top);
}
.oz-header.is-scrolled {
	box-shadow: 0 6px 24px -8px rgba(0, 0, 0, .18);
}

/* Ya no hay header fijo: el spacer no reserva alto. Se mantiene la clase por
   compatibilidad con el JS pero sin ocupar espacio. */
.oz-header-spacer {
	display: none;
}

.oz-header__container {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 16px;
}

/* =========================================================
 *  FILA 1: top bar (blanca)
 * ========================================================= */
.oz-header__top {
	background: var(--oz-h-bg-top);
	color: var(--oz-h-text-top);
	border-bottom: 1px solid #eef1f2;
}
.oz-header__top .oz-header__container {
	min-height: 84px;
	padding-top: 12px;
	padding-bottom: 12px;
	flex-wrap: wrap;
	gap: 16px;
}

/* Hamburguesa (móvil/tablet) */
.oz-header__hamburger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	color: var(--oz-h-teal-dark);
	flex: 0 0 auto;
}
.oz-header__hamburger:hover { background: #eef4f5; }

.oz-header__hamburger-bars,
.oz-header__hamburger-bars::before,
.oz-header__hamburger-bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--oz-h-trans), top var(--oz-h-trans), bottom var(--oz-h-trans), opacity var(--oz-h-trans);
	position: relative;
}
.oz-header__hamburger-bars::before,
.oz-header__hamburger-bars::after {
	content: "";
	position: absolute;
	left: 0;
}
.oz-header__hamburger-bars::before { top: -7px; }
.oz-header__hamburger-bars::after  { bottom: -7px; }

.oz-header__hamburger[aria-expanded="true"] .oz-header__hamburger-bars { background: transparent; }
.oz-header__hamburger[aria-expanded="true"] .oz-header__hamburger-bars::before { transform: rotate(45deg); top: 0; }
.oz-header__hamburger[aria-expanded="true"] .oz-header__hamburger-bars::after  { transform: rotate(-45deg); bottom: 0; }

/* Logo */
.oz-header__logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	max-width: 60%;
}
.oz-header__logo .custom-logo-link,
.oz-header__logo a {
	display: inline-flex;
	align-items: center;
}
.oz-header__logo img {
	height: 52px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
	min-width: 80px;
}
.oz-header__logo-text {
	font-weight: 800;
	font-size: 1.4rem;
	color: var(--oz-h-teal);
	letter-spacing: -.01em;
}

/* =========================================================
 *  Buscador (mismo live search existente, re-estilado teal)
 * ========================================================= */
.oz-header__search {
	order: 3;
	flex: 1 1 100%;
	min-width: 0;
}
.oz-header__search .oz-ls,
.oz-header__search .ozpls-figma,
.oz-header__search .ozpls-figma__form {
	width: 100% !important;
}

.oz-header__search .ozpls-figma__form {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	margin: 0;
	background: var(--oz-h-search-bg) !important;
	border: 1px solid var(--oz-h-search-border) !important;
	border-radius: var(--oz-h-radius) !important;
	overflow: visible !important;
	transition: border-color var(--oz-h-trans), box-shadow var(--oz-h-trans), background-color var(--oz-h-trans);
}
.oz-header__search .ozpls-figma__form:hover {
	border-color: #b9c3c7 !important;
}
.oz-header__search .ozpls-figma__form:focus-within {
	background: #ffffff !important;
	border-color: var(--oz-h-teal) !important;
	box-shadow: 0 0 0 3px rgba(14, 124, 139, .16);
}

.oz-header__search .ozpls-figma__inputWrap,
.oz-header__search .ozpls-figma__bar {
	flex: 1 1 auto;
	min-width: 0;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none;
	position: relative;
}

.oz-header__search .ozpls-figma__input,
.oz-header__search .ozpls-figma__input:focus,
.oz-header__search .ozpls-figma__input:hover,
.oz-header__search .ozpls-figma__input:active {
	width: 100% !important;
	background: transparent !important;
	border: none !important;
	color: var(--oz-h-search-text) !important;
	-webkit-text-fill-color: var(--oz-h-search-text) !important;
	border-radius: var(--oz-h-radius) !important;
	padding: 0 56px 0 18px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	box-sizing: border-box !important;
	outline: none !important;
	box-shadow: none !important;
	margin: 0 !important;
	height: 48px !important;
	appearance: none !important;
}

.oz-header__search .ozpls-figma__input::placeholder {
	color: var(--oz-h-search-placeholder) !important;
	-webkit-text-fill-color: var(--oz-h-search-placeholder) !important;
	font-weight: 400 !important;
}

.oz-header__search .ozpls-figma__btn {
	position: absolute !important;
	right: 5px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	height: 38px !important;
	width: 42px !important;
	background: var(--oz-h-search-btn) !important;
	border: none !important;
	cursor: pointer !important;
	z-index: 2 !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 6px !important;
	transition: background-color var(--oz-h-trans), transform var(--oz-h-trans) !important;
}
.oz-header__search .ozpls-figma__btn:hover { background: var(--oz-h-teal-dark) !important; }
.oz-header__search .ozpls-figma__btn:active { transform: translateY(-50%) scale(.94) !important; }
.oz-header__search .ozpls-figma__btn:focus-visible {
	outline: 2px solid var(--oz-h-teal) !important;
	outline-offset: 2px !important;
}
.oz-header__search .ozpls-figma__btnText { display: none !important; }
.oz-header__search .ozpls-figma__btn svg,
.oz-header__search .ozpls-figma__btn img { display: none !important; }
.oz-header__search .ozpls-figma__btn::after {
	content: "";
	width: 17px;
	height: 17px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	display: block;
}

/* Live search panel — encajar con el input (radio 8px) */
.oz-header__search .oz-ls__panel {
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	border-radius: var(--oz-h-radius);
}

/* =========================================================
 *  Contacto (asesor + email)
 * ========================================================= */
.oz-header__contact {
	display: flex;
	align-items: center;
	gap: 26px;
	margin-left: auto;
	flex: 0 0 auto;
}
.oz-header__contact-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--oz-h-text-top);
	transition: color var(--oz-h-trans);
}
.oz-header__contact-item:hover { color: var(--oz-h-teal); }
.oz-header__contact-icon {
	flex: 0 0 auto;
	color: var(--oz-h-teal);
	display: inline-flex;
}
.oz-header__contact-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}
.oz-header__contact-label {
	font-size: 12px;
	font-weight: 500;
	color: #5b6b71;
}
.oz-header__contact-value {
	font-size: 15px;
	font-weight: 800;
	color: var(--oz-h-teal-dark);
	letter-spacing: -.005em;
}
.oz-header__contact-item:hover .oz-header__contact-value { color: var(--oz-h-teal); }

/* =========================================================
 *  CTA naranja: "Atención en Línea"
 * ========================================================= */
.oz-header .oz-header__cta,
.oz-header .oz-header__cta:link,
.oz-header .oz-header__cta:visited,
.oz-header .oz-header__cta:hover,
.oz-header .oz-header__cta:focus,
.oz-header .oz-header__cta:active {
	color: var(--oz-h-accent-ink) !important;            /* texto siempre blanco */
	-webkit-text-fill-color: var(--oz-h-accent-ink) !important;
	text-decoration: none !important;
}
.oz-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--oz-h-accent);
	min-height: 48px;
	padding: 0 26px;
	border-radius: var(--oz-h-radius);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: -.005em;
	line-height: 1;
	white-space: nowrap;
	flex: 0 0 auto;
	transition: background-color var(--oz-h-trans), box-shadow var(--oz-h-trans), transform var(--oz-h-trans);
}
.oz-header__cta:hover {
	background: var(--oz-h-accent-hover);
	box-shadow: var(--oz-h-shadow-cta);
	transform: translateY(-1px);
}
.oz-header__cta:focus-visible {
	outline: 2px solid var(--oz-h-accent-press);
	outline-offset: 3px;
}
.oz-header__cta:active {
	background: var(--oz-h-accent-press);
	transform: translateY(0);
	box-shadow: none;
}

/* =========================================================
 *  FILA 2: barra inferior teal (categorías + menú)
 * ========================================================= */
.oz-header__bottom {
	display: none;                  /* en móvil se oculta; va al drawer */
	background: var(--oz-h-bg-bottom);
	color: var(--oz-h-text-bottom);
}
.oz-header__bottom .oz-header__container {
	min-height: 54px;
	gap: 28px;
	align-items: stretch;
}

/* ---- Categorías top-level (izquierda) ---- */
.oz-header__cats { flex: 0 0 auto; display: flex; align-items: stretch; }
.oz-header__cats-list {
	display: flex;
	align-items: stretch;
	gap: 30px;                    /* aire entre categorías para que no se peguen */
}
.oz-header__cat {
	position: relative;
	display: flex;
	align-items: stretch;
}
.oz-header__cat-trigger {
	display: inline-flex;
	align-items: center;
	gap: 9px;                     /* separación palabra ↔ flecha */
	padding: 0 14px;
	color: var(--oz-h-cat-color);
	font-weight: 600;
	font-size: 14.5px;
	letter-spacing: .005em;
	white-space: nowrap;
	line-height: 1;
	position: relative;
	transition: color var(--oz-h-trans), background-color var(--oz-h-trans);
}
.oz-header__cat-trigger::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 0;
	height: 3px;
	background: var(--oz-h-accent);
	border-radius: 3px 3px 0 0;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform var(--oz-h-trans);
}
.oz-header__cat-trigger:hover,
.oz-header__cat-trigger[aria-expanded="true"] {
	color: var(--oz-h-cat-hover);
}
/* Subrayado del trigger SÓLO en hover. Cuando el dropdown está abierto
   (aria-expanded="true") NO se muestra, para no duplicar la línea naranja:
   en ese estado la única línea es el border-top del panel del dropdown. */
.oz-header__cat-trigger:hover::after {
	transform: scaleX(1);
}
.oz-header__cat-trigger[aria-expanded="true"]::after {
	transform: scaleX(0);
}
.oz-header__cat-trigger:focus-visible {
	outline: 2px solid var(--oz-h-accent);
	outline-offset: -2px;
	border-radius: 4px;
}
.oz-header__cat-caret {
	transition: transform var(--oz-h-trans);
	flex: 0 0 auto;
}
.oz-header__cat-trigger[aria-expanded="true"] .oz-header__cat-caret {
	transform: rotate(180deg);
}

/* ---- Menú principal (derecha) ---- */
.oz-header__nav {
	margin-left: auto;
	display: flex;
	align-items: stretch;
}
.oz-header__nav-list {
	display: flex;
	align-items: stretch;
	gap: 0;
}
.oz-header__nav-list li {
	display: flex;
	align-items: stretch;
	position: relative;
}
/* Separador vertical de 1px entre cada palabra del menú principal */
.oz-header__nav-list li + li {
	border-left: 1px solid var(--oz-h-divider);
}
.oz-header__nav-list a {
	display: inline-flex;
	align-items: center;
	padding: 0 18px;
	color: var(--oz-h-link-bottom);
	font-weight: 400;
	font-size: 14px;
	letter-spacing: .03em;
	text-transform: uppercase;
	white-space: nowrap;
	line-height: 1;
	position: relative;
	transition: color var(--oz-h-trans), background-color var(--oz-h-trans);
}
.oz-header__nav-list a::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 0;
	height: 3px;
	background: var(--oz-h-accent);
	border-radius: 3px 3px 0 0;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform var(--oz-h-trans);
}
.oz-header__nav-list a:hover,
.oz-header__nav-list .current-menu-item > a,
.oz-header__nav-list .current_page_item > a {
	color: var(--oz-h-cat-hover);
}
/* Subrayado naranja: en hover y en la página activa. El enlace ocupa todo
   el alto de la barra, así la línea queda pegada al borde inferior (separada
   del texto centrado), no junto a las letras. */
.oz-header__nav-list a:hover::after,
.oz-header__nav-list .current-menu-item > a::after,
.oz-header__nav-list .current_page_item > a::after {
	transform: scaleX(1);
}

/* Submenús del nav principal (dropdown estándar de WordPress) */
.oz-header__nav-list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #ffffff;
	color: var(--oz-h-text-top);
	border-radius: 0 0 var(--oz-h-radius) var(--oz-h-radius);
	box-shadow: var(--oz-h-shadow-mega);
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--oz-h-trans), transform var(--oz-h-trans), visibility var(--oz-h-trans);
	z-index: 30;
}
.oz-header__nav-list li:hover > .sub-menu,
.oz-header__nav-list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.oz-header__nav-list .sub-menu li { display: block; }
.oz-header__nav-list .sub-menu a {
	display: block;
	padding: 9px 18px;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
	font-size: 14px;
	color: var(--oz-h-text-top);
}
.oz-header__nav-list .sub-menu a::after { display: none; }
.oz-header__nav-list .sub-menu a:hover {
	background: #f1f6f7;
	color: var(--oz-h-teal);
}

/* =========================================================
 *  DROPDOWN de categorías (panel compacto, ya no megamenú full-width)
 *  Anclado bajo la zona de categorías (izquierda de la barra teal).
 * ========================================================= */
.jym-megamenu {
	position: absolute;
	left: 20px;                          /* alineado con el padding del container */
	top: 100%;
	width: max-content;
	min-width: 240px;
	max-width: 340px;
	background: #ffffff;
	color: var(--oz-h-text-top);
	box-shadow: var(--oz-h-shadow-mega);
	border-top: 3px solid var(--oz-h-accent);
	border-radius: 0 0 var(--oz-h-radius) var(--oz-h-radius);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--oz-h-trans), transform var(--oz-h-trans), visibility var(--oz-h-trans);
	z-index: 25;
}
@media (min-width: 1280px) {
	.jym-megamenu { left: 28px; }
}
.jym-megamenu.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.jym-megamenu[hidden] { display: none; }
.jym-megamenu__inner {
	padding: 14px 0 10px;
}
.jym-megamenu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	padding: 0 18px 10px;
	border-bottom: 1px solid #eef1f2;
}
.jym-megamenu__title {
	margin: 0;
	font-size: .95rem;
	font-weight: 800;
	color: var(--oz-h-teal-dark);
}
/* Botón "Ver todo en..." oculto en el dropdown de categorías (por pedido) */
.jym-megamenu__view-all { display: none; }
/* En el dropdown compacto las L2 se apilan como una lista simple */
.jym-megamenu__columns {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.jym-megamenu__column-title {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--oz-h-text-top);
	padding: 9px 18px;
	transition: background-color var(--oz-h-trans), color var(--oz-h-trans);
}
.jym-megamenu__column-title:hover { background: #f1f6f7; color: var(--oz-h-teal); }
.jym-megamenu__sublist { padding: 0 0 6px; }
.jym-megamenu__sublist li { margin: 0; }
.jym-megamenu__sublist a {
	display: block;
	color: #4a585e;
	font-size: 13.5px;
	padding: 6px 18px 6px 30px;
	transition: color var(--oz-h-trans), background-color var(--oz-h-trans);
}
.jym-megamenu__sublist a:hover { color: var(--oz-h-teal); background: #f8fafb; }

/* =========================================================
 *  DRAWER MÓVIL + LIBRETA (paneles laterales)
 * ========================================================= */
body.oz-drawer-open { overflow: hidden; }

.oz-drawer { position: fixed; inset: 0; z-index: 1000; }
.oz-drawer[hidden] { display: none; }
.oz-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 30, 38, .5);
	opacity: 0;
	transition: opacity var(--oz-h-trans);
}
.oz-drawer.is-open .oz-drawer__backdrop { opacity: 1; }

.oz-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	width: min(86vw, 360px);
	background: #ffffff;
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 60px rgba(0, 0, 0, .25);
	transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.oz-drawer__panel--left { left: 0; transform: translateX(-100%); }
.oz-drawer__panel--right { right: 0; transform: translateX(100%); }
.oz-drawer.is-open .oz-drawer__panel { transform: translateX(0); }

.oz-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	background: var(--oz-h-bg-bottom);
	color: #ffffff;
	flex: 0 0 auto;
}
.oz-drawer__title { font-weight: 800; font-size: 1.05rem; }
.oz-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	color: #ffffff;
}
.oz-drawer__close:hover { background: rgba(255, 255, 255, .12); }

.oz-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 8px 0 24px;
	-webkit-overflow-scrolling: touch;
}
.oz-drawer__section { padding: 8px 0; border-bottom: 1px solid #eef1f2; }
.oz-drawer__section-title {
	margin: 0;
	padding: 12px 18px 8px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #7a8a90;
}

/* Acordeones de categorías y nav del drawer */
.oz-drawer__cat-trigger,
.jym-mobile-menu__l2-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 13px 18px;
	font-weight: 600;
	font-size: 15px;
	color: var(--oz-h-text-top);
	text-align: left;
}
.oz-drawer__cat-trigger:hover,
.jym-mobile-menu__l2-trigger:hover { background: #f3f7f8; }
.oz-drawer__cat-caret { transition: transform var(--oz-h-trans); }
.oz-drawer__cat-trigger[aria-expanded="true"] .oz-drawer__cat-caret,
.jym-mobile-menu__l2-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.oz-drawer__cat-sublist { padding: 4px 0 10px; background: #f8fafb; }
.oz-drawer__cat-sublist[hidden],
.jym-mobile-menu__l3-list[hidden] { display: none; }
.oz-drawer__cat-all,
.jym-mobile-menu__l2-all {
	display: block;
	padding: 9px 30px;
	font-weight: 700;
	font-size: 13.5px;
	color: var(--oz-h-teal);
}
.jym-mobile-menu__l2-list a,
.jym-mobile-menu__l3-list a {
	display: block;
	padding: 9px 30px;
	font-size: 14px;
	color: #4a585e;
}
.jym-mobile-menu__l2 { border-top: 1px solid #eef1f2; }
.jym-mobile-menu__l3-list { background: #eef4f5; }
.jym-mobile-menu__l2-list a:hover,
.jym-mobile-menu__l3-list a:hover { color: var(--oz-h-accent); }

/* Nav principal en el drawer */
.oz-drawer__nav-list a,
.oz-drawer__cat-trigger--link,
.jym-mobile-menu__l2-trigger--link {
	display: block;
	padding: 13px 18px;
	font-weight: 600;
	font-size: 15px;
	color: var(--oz-h-text-top);
}
.oz-drawer__nav-list a:hover { background: #f3f7f8; color: var(--oz-h-teal); }
.oz-drawer__nav-list .sub-menu a { padding-left: 34px; font-weight: 500; font-size: 14px; }

/* Contacto en el drawer */
.oz-drawer__contact { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; }
.oz-drawer__contact-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	color: var(--oz-h-teal-dark);
	font-weight: 700;
	font-size: 14.5px;
}
.oz-drawer__contact-item svg { color: var(--oz-h-teal); flex: 0 0 auto; }
.oz-drawer__contact-item:hover { color: var(--oz-h-teal); background: #f3f7f8; }

/* CTA dentro del drawer */
.oz-drawer__quote {
	display: block;
	margin: 16px 18px 0;
	padding: 14px 18px;
	background: var(--oz-h-accent);
	color: #ffffff;
	border-radius: var(--oz-h-radius);
	font-weight: 700;
	font-size: 15px;
	text-align: center;
}
.oz-drawer__quote:hover { background: var(--oz-h-accent-hover); }

/* =========================================================
 *  RESPONSIVE
 *  - <1024 (móvil + tablet): fila 2 oculta (va al drawer); contacto/CTA
 *    se ocultan en pantallas chicas; buscador full ancho debajo del logo.
 *  - >=1024 (laptop): aparece la barra teal inferior.
 *  - >=1280 (desktop): paddings/tipografías más generosas.
 * ========================================================= */

/* --- < 768px (móvil): sólo logo + buscador + hamburguesa --- */
@media (max-width: 767px) {
	.oz-header__top .oz-header__container { min-height: 64px; gap: 12px; }
	.oz-header__logo img { height: 42px; }
	.oz-header__contact,
	.oz-header__cta { display: none; }
	.oz-header__search { order: 3; flex: 1 1 100%; }
}

/* --- 768px – 1023px (tablet): contacto compacto a la derecha, sin CTA --- */
@media (min-width: 768px) and (max-width: 1023px) {
	.oz-header__cta { display: none; }
	.oz-header__contact { gap: 16px; }
	.oz-header__contact-label { display: none; }
	.oz-header__search { order: 3; flex: 1 1 100%; }
}

/* --- >= 1024px (laptop+): layout AQUAVEST completo en una fila --- */
@media (min-width: 1024px) {
	.oz-header__hamburger { display: none; }

	.oz-header__top .oz-header__container {
		flex-wrap: nowrap;
		gap: 22px;
	}
	.oz-header__search {
		order: 0;
		flex: 1 1 auto;
		max-width: 520px;
	}
	.oz-header__contact { margin-left: 0; }
	.oz-header__cta { margin-left: 4px; }

	/* Aparece la barra teal inferior. La fila blanca se desplaza normalmente;
	   esta barra se FIJA arriba (clase .is-stuck vía JS) al hacer scroll. */
	.oz-header__bottom {
		display: block;
		position: relative;
	}
	/* Estado fijo: pegada al borde superior de la ventana. */
	.oz-header__bottom.is-stuck {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 99;
		box-shadow: 0 4px 16px -6px rgba(0, 0, 0, .25);
	}
	/* Con la barra de administración de WordPress (usuario logueado) la barra
	   fija se pega justo debajo de esos 32px. */
	body.admin-bar .oz-header__bottom.is-stuck { top: 32px; }

	/* Spacer que reserva el alto de la barra cuando está fija (evita salto). */
	.oz-bottom-spacer { width: 100%; pointer-events: none; }
}

/* --- >= 1280px (desktop): aire extra --- */
@media (min-width: 1280px) {
	.oz-header__container { padding: 0 28px; }
	.oz-header__search { max-width: 560px; }
	.oz-header__contact { gap: 30px; }
	.oz-header__cat-trigger { font-size: 15px; }
}

/* =========================================================
 *  OVERLAY DE BÚSQUEDA MÓVIL (header.js: body.oz-search-mobile-open)
 *  El JS puede activar un overlay full-width del buscador en móvil.
 *  Aquí garantizamos que el form ocupe todo el ancho disponible.
 * ========================================================= */
body.oz-search-mobile-open .oz-header__search {
	flex: 1 1 100% !important;
	width: 100% !important;
	max-width: none !important;
}
body.oz-search-mobile-open .oz-header__search .ozpls-figma__form {
	background: #ffffff !important;
	border-color: var(--oz-h-teal) !important;
}
.oz-search-mobile-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(10, 30, 38, .4);
	z-index: 90;
}
.oz-search-mobile-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	color: var(--oz-h-teal-dark);
	background: transparent;
	border: none;
	cursor: pointer;
}
