/* ═══════════════════════════════════════════════════════════
   GRUPO LUBRISOL — Cabecera y pie v2 (Propuesta 2), todo el sitio.
   Medidas tomadas del PDF (lienzo 2134 px ÷ 1,55 = 1377 px CSS).
   ═══════════════════════════════════════════════════════════ */

:root {
	--lbr2-navy:     #02347B;
	--lbr2-navy-btn: #003A85;
	--lbr2-ink:      #1C2B4A;
	--lbr2-gris:     #5B677D;
	--lbr2-linea:    #E3E7EC;
	--lbr2-font:     'Figtree', 'Barlow', system-ui, sans-serif;
}

.lbr2-wrap {
	width: 100%;
	max-width: 1290px; /* 1250 de contenido + 20 por lado */
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

/* ── Fila superior ───────────────────────────────────────── */
.lbr2-cab {
	background: #fff;
	font-family: var(--lbr2-font);
	position: relative;
	z-index: 1001;
}
.lbr2-cab__fila {
	display: flex;
	align-items: center;
	height: 112px;
}
.lbr2-logo { display: block; flex: 0 0 auto; line-height: 0; }
.lbr2-logo img { width: 290px; height: auto; display: block; } /* el cliente pidió el logo muy grande */

.lbr2-buscar {
	position: relative;
	flex: 0 1 588px;
	margin: 0 0 0 89px;
}
.lbr2-buscar svg {
	position: absolute;
	left: 18px;
	top: 50%;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	color: var(--lbr2-ink);
	pointer-events: none;
}
.lbr2-buscar input[type="search"] {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 20px 0 50px;
	border: 1.5px solid var(--lbr2-linea);
	border-radius: 23px;
	background: #fff;
	font-family: var(--lbr2-font);
	font-size: 15.5px;
	color: var(--lbr2-ink);
	box-shadow: none;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.lbr2-buscar input::placeholder { color: #5D6A80; opacity: 1; }
.lbr2-buscar input:focus { border-color: #9DB6DE; box-shadow: 0 0 0 4px rgba(2, 52, 123, .08); }

.lbr2-pais { position: relative; margin-left: auto; }
.lbr2-pais__boton {
	display: inline-flex;
	align-items: center;
	gap: 0;
	padding: 8px 0;
	background: none !important;
	border: 0 !important;
	font-family: var(--lbr2-font);
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -.01em;
	color: var(--lbr2-ink) !important;
	cursor: pointer;
	white-space: nowrap;
}
.lbr2-pais__sep { color: inherit; margin: 0 4px; }
.lbr2-pin { width: 22px; height: 22px; color: var(--lbr2-navy); margin-right: 12px; }
.lbr2-chev { width: 15px; height: 15px; margin-left: 7px; }
.lbr2-pais__lista {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--lbr2-linea);
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(2, 30, 80, .14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: all .18s;
}
.lbr2-pais__boton[aria-expanded="true"] + .lbr2-pais__lista,
.lbr2-pais:hover .lbr2-pais__lista { opacity: 1; visibility: visible; transform: none; }
.lbr2-pais__lista a {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	color: var(--lbr2-ink);
	text-decoration: none;
}
.lbr2-pais__lista a:hover,
.lbr2-pais__lista a:focus { background: #EEF4FB; color: var(--lbr2-navy); }

.lbr2-cotizar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 109px;
	height: 44px;
	margin-left: 32px;
	border-radius: 6px;
	background: var(--lbr2-navy-btn);
	font-family: var(--lbr2-font);
	font-size: 15.5px;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none !important;
	transition: background .2s, transform .2s;
}
.lbr2-cotizar:hover { background: #0B4BA6; transform: translateY(-1px); }
.lbr2-hamburguesa { display: none; margin-left: 16px; }

/* ── Barra azul con el menú ──────────────────────────────── */
.lbr2-nav {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--lbr2-navy);
	font-family: var(--lbr2-font);
}
.admin-bar .lbr2-nav { top: 32px; }
.lbr2-menu {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 0;
	height: 52px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lbr2-menu > li { position: relative; display: flex; }
.lbr2-menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 22px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}
.lbr2-menu > li > a:hover,
.lbr2-menu > li > a:focus { color: #fff; }
.lbr2-menu > li.menu-item-has-children > a::after {
	content: '';
	width: 7px;
	height: 7px;
	margin: -4px 0 0 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}
.lbr2-menu > li > a::before {
	content: '';
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 5px;
	height: 3px;
	border-radius: 2px 2px 0 0;
	background: #fff;
	transform: scaleX(0);
	transition: transform .25s;
}
.lbr2-menu > li.current-menu-item > a::before,
.lbr2-menu > li > a:hover::before { transform: scaleX(1); }

.lbr2-menu .sub-menu {
	position: absolute;
	left: 8px;
	top: 100%;
	min-width: 230px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border-radius: 0 0 10px 10px;
	box-shadow: 0 18px 40px rgba(2, 30, 80, .18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .18s;
}
.lbr2-menu > li:hover > .sub-menu,
.lbr2-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.lbr2-menu .sub-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	color: var(--lbr2-ink);
	text-decoration: none;
}
.lbr2-menu .sub-menu a:hover,
.lbr2-menu .sub-menu a:focus { background: #EEF4FB; color: var(--lbr2-navy); }

/* ── Pie ─────────────────────────────────────────────────── */
.lbr2-pie {
	background: #fff;
	font-family: var(--lbr2-font);
}
.lbr2-pie__fila {
	display: flex;
	align-items: center;
	max-width: 1356px;
	padding-top: 10px;
	padding-bottom: 96px; /* deja libre el botón flotante de WhatsApp */
	position: relative;
}
.lbr2-pie__fila::before {
	content: '';
	position: absolute;
	left: 20px;
	right: 20px;
	top: 0;
	height: 1px;
	background: var(--lbr2-linea);
}
.lbr2-pie__logo { line-height: 0; flex: 0 0 auto; }
.lbr2-pie__logo img { width: 240px; height: auto; display: block; }
.lbr2-pie__enlaces {
	display: flex;
	gap: 34px;
	margin: 0 0 0 63px;
	padding: 0;
	list-style: none;
}
.lbr2-pie__enlaces a {
	font-size: 14px;
	font-weight: 600;
	color: #2A3858;
	text-decoration: none;
}
.lbr2-pie__enlaces a:focus,
.lbr2-pie__enlaces a:hover { color: var(--lbr2-navy); text-decoration: underline; text-underline-offset: 4px; }
.lbr2-pie__sep { width: 1px; height: 38px; margin: 0 32px 0 auto; background: #C9D0DA; flex: 0 0 1px; }
.lbr2-pie__copy { margin: 0; font-size: 13px; line-height: 1.5; color: var(--lbr2-gris); }
.lbr2-pie__credito { display: block; margin-top: 2px; }
.lbr2-pie__credito a { color: inherit; font-weight: 600; text-decoration: none; }
.lbr2-pie__credito a:hover { text-decoration: underline; }

/* ── WhatsApp flotante ───────────────────────────────────── */
.lbr2-wa {
	position: fixed;
	right: 23px;
	bottom: 50px;
	z-index: 990;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 55px;
	padding: 0 20px 0 15px;
	border-radius: 28px;
	background: #10C866;
	box-shadow: 0 10px 28px rgba(10, 150, 70, .35);
	font-family: var(--lbr2-font);
	font-size: 15.5px;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none !important;
	transition: transform .2s, box-shadow .2s;
}
.lbr2-wa svg { width: 31px; height: 31px; }
.lbr2-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10, 150, 70, .45); }

/* ── Tableta y móvil ─────────────────────────────────────── */
@media (max-width: 1180px) {
	.lbr2-logo img { width: 240px; }
	.lbr2-buscar { margin-left: 40px; }
	.lbr2-cotizar { margin-left: 20px; }
	.lbr2-menu > li > a { padding: 0 14px; }
}
@media (max-width: 960px) {
	.lbr2-logo img { width: 210px; }
	.lbr2-pais { display: none; }
	.lbr2-buscar { margin-right: 16px; }
	.lbr2-cotizar { margin-left: auto; }
}
@media (max-width: 768px) {
	.lbr2-cab__fila { height: 80px; }
	.lbr2-logo img { width: 190px; }
	.lbr2-buscar, .lbr2-cotizar:not(.lbr2-cotizar--movil) { display: none; }
	.lbr2-hamburguesa { display: flex !important; margin-left: auto; }
	.lbr2-nav { display: none; }
	.lbr2-pie__fila { flex-wrap: wrap; gap: 18px; padding-top: 24px; padding-bottom: 96px; }
	.lbr2-pie__enlaces { margin: 0; gap: 22px; flex-wrap: wrap; width: 100%; }
	.lbr2-pie__sep { display: none; }
	.lbr2-wa { padding: 0; width: 56px; height: 56px; justify-content: center; font-size: 0; gap: 0; border-radius: 50%; }
	.lbr2-wa svg { width: 30px; height: 30px; }
}
.lbr2-cotizar--movil { display: flex; width: 100%; margin: 20px 0 0; }
@media (min-width: 769px) { .lbr2-cotizar--movil { display: none; } }

/* Pie en pantallas medianas: logo, enlaces y redes arriba; copyright debajo */
@media (min-width: 769px) and (max-width: 1240px) {
	.lbr2-pie__fila { flex-wrap: wrap; row-gap: 22px; }
	.lbr2-pie__enlaces { margin-left: 40px; gap: 26px; }
	.lbr2-pie__sep { display: none; }
	.lbr2-pie__copy { width: 100%; }
}
