/* ═══════════════════════════════════════════════════════════
   GRUPO LUBRISOL — Home v2 (Propuesta 2)

   La home se arma con contenedores y widgets de Elementor GRATUITO.
   Este archivo da la forma medida del PDF (lienzo 2134 px ÷ 1,55 = 1377 px)
   a las clases lbrh-* que llevan esos elementos (Avanzado → Clases CSS).

   Lo que se edita en Elementor GANA sobre este CSS: textos, imágenes,
   fondos, colores y enlaces se cambian en el panel.
   ═══════════════════════════════════════════════════════════ */

.lbrh {
	--h-navy:   #0A3472;
	--h-btn:    #003A85;
	--h-ink:    #1C2B4A;
	--h-nombre: #13295A;
	--h-gris:   #6B7586;
	--h-celeste:#2AA9D6;
	--h-linea:  #E4E9F0;
	--h-font:   'Figtree', 'Barlow', system-ui, sans-serif;
	--h-ease:   cubic-bezier(.2, .7, .2, 1);
	background: #fff;
}
.lbrh .elementor { font-family: var(--h-font); }

/* Neutraliza los títulos del tema (Barlow Condensed en mayúsculas). */
.lbrh .elementor-widget-heading .elementor-heading-title,
.lbrh .elementor-image-box-title,
.lbrh .elementor-image-box-description,
.lbrh .elementor-widget-text-editor,
.lbrh .elementor-button {
	font-family: var(--h-font);
	text-transform: none;
	letter-spacing: 0;
}
.lbrh .elementor-widget-text-editor p { margin: 0; }
.lbrh .elementor-button { transition: transform .25s var(--h-ease), box-shadow .25s var(--h-ease), background-color .25s, color .25s; }
.lbrh .elementor-button .elementor-button-icon svg { width: 1em; height: 1em; fill: currentColor; }
.lbrh .elementor-button-content-wrapper { align-items: center; }
/* Botones de alto fijo: centrar el texto en vertical */
.lbrh .elementor-button { display: inline-flex; align-items: center; justify-content: center; }

/* ── Títulos de sección ──────────────────────────────────── */
.lbrh .lbrh-titulo .elementor-heading-title {
	font-size: 32.5px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--h-navy);
}
.lbrh .lbrh-titulo--centro .elementor-heading-title { text-align: center; font-size: 36px; }

/* ── 1. Hero ─────────────────────────────────────────────── */
.lbrh .lbrh-hero { border-radius: 18px; overflow: hidden; }
.lbrh .lbrh-hero__eyebrow .elementor-heading-title {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .115em;
	text-transform: uppercase;
	color: var(--h-celeste);
}
.lbrh .lbrh-hero__titulo { margin-top: 10px; }
.lbrh .lbrh-hero__titulo .elementor-heading-title {
	max-width: 470px;
	font-size: 61px;
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -.012em;
	color: #fff;
}
.lbrh .lbrh-hero__texto {
	max-width: 360px !important;
	margin-top: 9px;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.3;
	color: rgba(255, 255, 255, .93);
}
.lbrh .lbrh-hero__boton { margin-top: 30px; }
.lbrh .lbrh-hero__boton .elementor-button {
	width: 249px;
	height: 54px;
	padding: 0;
	justify-content: center;
	border-radius: 12px;
	background: #fff;
	font-size: 19px;
	font-weight: 700;
	color: var(--h-navy);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.lbrh .lbrh-hero__boton .elementor-button-content-wrapper { justify-content: center; }
.lbrh .lbrh-hero__boton .elementor-button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }

/* ── 1b. Carrusel del hero ───────────────────────────────────
   Cada banner es un contenedor .lbrh-hero.lbrh-slide dentro de
   .lbrh-carrusel; se editan en Elementor como cualquier contenedor.
   lubrisol.js agrega los puntos, el cambio automático y el swipe. */
.lbrh .lbrh-carrusel { display: grid !important; position: relative; }
.lbrh .lbrh-carrusel > .lbrh-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s var(--h-ease), visibility 0s linear .9s;
}
.lbrh .lbrh-carrusel > .lbrh-slide.is-activa,
.lbrh .lbrh-carrusel:not(.is-listo) > .lbrh-slide:first-child {
	opacity: 1;
	visibility: visible;
	transition: opacity .9s var(--h-ease), visibility 0s;
}
/* En el editor de Elementor se ven todos, uno debajo del otro */
.elementor-editor-active.lbrh .lbrh-carrusel { display: flex !important; flex-direction: column; gap: 14px; }
.elementor-editor-active.lbrh .lbrh-carrusel > .lbrh-slide { opacity: 1; visibility: visible; }

.lbrh .lbrh-puntos {
	position: absolute;
	left: 50%;
	bottom: 18px;
	z-index: 3;
	display: flex;
	gap: 8px;
	transform: translateX(-50%);
}
.lbrh .lbrh-puntos button,
.lbrh .lbrh-puntos button:hover,
.lbrh .lbrh-puntos button:focus {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .55);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
	cursor: pointer;
	transition: width .3s var(--h-ease), background-color .3s;
}
.lbrh .lbrh-puntos button[aria-current="true"] { width: 28px; background: #fff; }
.lbrh .lbrh-puntos button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Los banners 16:9 traen el auto desde el 25 % del ancho:
   columna de texto más angosta para no taparlo. */
.lbrh .lbrh-slide .lbrh-hero__titulo .elementor-heading-title { font-size: 48px; max-width: 360px; }
.lbrh .lbrh-slide .lbrh-hero__texto { max-width: 280px !important; }
.lbrh .lbrh-slide .lbrh-hero__titulo .elementor-heading-title,
.lbrh .lbrh-slide .lbrh-hero__texto { text-shadow: 0 2px 16px rgba(0, 0, 0, .28); }

/* ── 2. Tarjetas de marca ────────────────────────────────── */
.lbrh .lbrh-marca {
	border-radius: 13px;
	overflow: hidden;
	transition: transform .3s var(--h-ease), box-shadow .3s var(--h-ease);
}
.lbrh .lbrh-marca:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 30, 80, .18); }
/* La tarjeta conserva siempre la proporción del banner (322 × 232): la imagen
   nunca se recorta, en ningún tamaño de pantalla. */
.lbrh .lbrh-marca { aspect-ratio: 322 / 232; min-height: 200px; }
@media (min-width: 1025px) and (max-width: 1300px) {
	/* tarjetas más bajas: el texto sube un poco para que quepa el lema de 3 líneas */
	.lbrh .lbrh-marca:not(.lbrh-marca--banner) { padding-top: 78px !important; }
	.lbrh .lbrh-marca:not(.lbrh-marca--banner) .lbrh-marca__boton { margin-top: 16px; }
}
.lbrh .lbrh-marca__lema .elementor-heading-title {
	font-size: 13.4px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: #fff;
}
.lbrh .lbrh-marca--oscuro .lbrh-marca__lema .elementor-heading-title { color: #0E2A5E; }
.lbrh .lbrh-marca__boton { margin-top: 23px; }
.lbrh .lbrh-marca__boton .elementor-button {
	width: 140px;
	height: 39px;
	padding: 0;
	border-radius: 10px;
	background: #fff;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--h-nombre);
	box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}
.lbrh .lbrh-marca__boton .elementor-button-content-wrapper { justify-content: center; }

/* Banners de marca 644 × 464 (v1.2): el logo y el producto vienen en la imagen;
   el lema y el botón van abajo a la izquierda, en la zona libre del banner. */
.lbrh .lbrh-marca--banner { aspect-ratio: 644 / 464; min-height: 0; }
.lbrh .lbrh-marca--banner .lbrh-marca__lema { max-width: 58%; }
.lbrh .lbrh-marca--banner .lbrh-marca__lema .elementor-heading-title {
	font-size: 11.5px; line-height: 15px; text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}
.lbrh .lbrh-marca--banner .lbrh-marca__boton { margin-top: 8px; }
/* 5 en fila (≥ 1200 px) la tarjeta mide ~255 × 184: el lema chocaría con el logo
   del banner, así que solo queda el botón. En tableta y móvil sí cabe. */
@media (min-width: 1200px) {
	.lbrh .lbrh-marca--banner .lbrh-marca__lema { display: none; }
}
.lbrh .lbrh-marca--banner .lbrh-marca__boton .elementor-button { width: auto; height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
.lbrh .lbrh-marca--banner .lbrh-marca__boton .elementor-button-icon { font-size: 11px; }
/* Entre 768 y 1199 px: 3 + 2 tarjetas, la segunda fila centrada */
@media (min-width: 768px) and (max-width: 1199px) {
	.lbrh .lbrh-marcas.e-grid, .lbrh .lbrh-marcas > .e-con-inner { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; grid-template-rows: auto !important; }
	.lbrh .lbrh-marcas .lbrh-marca--banner { grid-column: span 2; }
	.lbrh .lbrh-marcas .lbrh-marca--banner:nth-child(4) { grid-column: 2 / span 2; }
	.lbrh .lbrh-marca--banner .lbrh-marca__lema .elementor-heading-title { font-size: 13px; line-height: 17px; }
	.lbrh .lbrh-marca--banner .lbrh-marca__boton .elementor-button { height: 38px; font-size: 14.5px; }
}
/* Móvil: carrusel deslizable, se asoma la siguiente tarjeta */
@media (max-width: 767px) {
	.lbrh .lbrh-marcas.e-grid, .lbrh .lbrh-marcas > .e-con-inner {
		grid-template-columns: none !important; grid-template-rows: none !important;
		grid-auto-flow: column !important; grid-auto-columns: 84% !important;
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin: 0 -12px; padding: 0 12px 6px;
	}
	.lbrh .lbrh-marcas::-webkit-scrollbar { display: none; }
	.lbrh .lbrh-marcas .lbrh-marca--banner { scroll-snap-align: center; }
	.lbrh .lbrh-marcas .lbrh-marca--banner:hover { transform: none; }
	.lbrh .lbrh-marca--banner .lbrh-marca__lema .elementor-heading-title { font-size: 12.5px; line-height: 16px; }
	.lbrh .lbrh-marca--banner .lbrh-marca__boton .elementor-button { height: 38px; font-size: 14.5px; }
}

/* ── 3. Categorías ───────────────────────────────────────── */
.lbrh .lbrh-cat .elementor-image-box-img { width: 113px !important; margin: 0 auto 6px !important; }
.lbrh .lbrh-cat .elementor-image-box-img img { width: 113px; height: 113px; transition: transform .3s var(--h-ease); }
.lbrh .lbrh-cat:hover .elementor-image-box-img img { transform: translateY(-4px); }
.lbrh .lbrh-cat .elementor-image-box-title {
	margin: 0;
	font-size: 20.5px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--h-navy);
}
.lbrh .lbrh-cat .elementor-image-box-title a { color: inherit; }

/* ── 4. Productos destacados ─────────────────────────────── */
.lbrh .lbrh-link .elementor-button {
	padding: 0;
	background: transparent;
	font-size: 17px;
	font-weight: 600;
	color: var(--h-navy);
}
.lbrh .lbrh-link .elementor-button-text { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.lbrh .lbrh-link .elementor-button:hover { transform: translateX(3px); }

.lbrh .lbrh-prod {
	min-height: 309px;
	background: #fff;
	border: 1px solid var(--h-linea);
	border-radius: 10px;
	transition: transform .3s var(--h-ease), box-shadow .3s var(--h-ease), border-color .3s;
}
.lbrh .lbrh-prod:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 30, 80, .09); border-color: #CFDBEC; }
.lbrh .lbrh-prod__img img { height: 175px; width: 100%; object-fit: contain; transition: transform .4s var(--h-ease); }
.lbrh .lbrh-prod:hover .lbrh-prod__img img { transform: scale(1.03); }
/* Destacado con banner (Baldwin): la imagen llena el recuadro, con esquinas redondeadas */
.lbrh .lbrh-prod--banner .lbrh-prod__img img { object-fit: cover; border-radius: 8px; }
.lbrh .lbrh-prod__nombre { margin-top: 6px; }
.lbrh .lbrh-prod__nombre .elementor-heading-title { font-size: 18.5px; font-weight: 700; line-height: 1.25; color: var(--h-nombre); }
.lbrh .lbrh-prod__marca { margin-top: 5px; font-size: 14.5px; line-height: 1.3; color: var(--h-gris); }
.lbrh .lbrh-prod__boton { margin-top: 9px; }
.lbrh .lbrh-prod__boton .elementor-button {
	width: 100%;
	height: 40px;
	padding: 0;
	border: 1.5px solid #1F4A99;
	border-radius: 7px;
	background: #fff;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--h-navy);
}
.lbrh .lbrh-prod__boton .elementor-button-content-wrapper { justify-content: center; }
.lbrh .lbrh-prod__boton .elementor-button:hover { background: var(--h-btn); border-color: var(--h-btn); color: #fff; }

/* ── 5. Franja de confianza ──────────────────────────────── */
.lbrh .lbrh-confianza { border-radius: 12px; }
.lbrh .lbrh-dato { padding-left: 52px; }
.lbrh .lbrh-dato .elementor-image-box-wrapper { display: flex; align-items: center; text-align: left; }
.lbrh .lbrh-dato .elementor-image-box-img { width: 46px !important; margin: 0 18px 0 0 !important; flex: 0 0 46px; }
.lbrh .lbrh-dato .elementor-image-box-img img { width: 46px; height: auto; }
.lbrh .lbrh-dato .elementor-image-box-title { margin: 0 0 4px; font-size: 17px; font-weight: 700; line-height: 1.2; color: #0B3A82; }
.lbrh .lbrh-dato .elementor-image-box-description { margin: 0; font-size: 13.7px; line-height: 1.3; color: #3D5A8A; }
@media (min-width: 1025px) {
	.lbrh .lbrh-dato + .lbrh-dato { border-left: 1.5px solid #9FB2CF; }
	.lbrh .lbrh-confianza > .lbrh-dato { height: 46px; display: flex; align-items: center; }
	/* columnas desiguales, como en el diseño */
	.lbrh .lbrh-confianza { grid-template-columns: 448px 444px 1fr !important; }
	.lbrh .lbrh-dato:nth-child(1) { padding-left: 51px; }
	.lbrh .lbrh-dato:nth-child(2) { padding-left: 80px; }
	.lbrh .lbrh-dato:nth-child(3) { padding-left: 72px; }
}

/* ── 6. Soluciones ───────────────────────────────────────── */
.lbrh .lbrh-sol {
	border-radius: 12px;
	overflow: hidden;
	transition: transform .3s var(--h-ease), box-shadow .3s var(--h-ease);
}
.lbrh .lbrh-sol:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 30, 80, .22); }
/* Igual que las marcas: proporción fija del banner (428 × 198). */
.lbrh .lbrh-sol { aspect-ratio: 428 / 198; min-height: 150px; }
@media (max-width: 900px) {
	.lbrh .lbrh-sol-grid { --e-con-grid-template-columns: repeat(1, 1fr); grid-template-columns: repeat(1, 1fr); }
}
.lbrh .lbrh-sol__titulo .elementor-heading-title { font-size: 20.5px; font-weight: 700; line-height: 1.2; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.lbrh .lbrh-sol__texto { margin-top: 6px; font-size: 15.5px; line-height: 1.36; color: rgba(255, 255, 255, .92); }
.lbrh .lbrh-sol__link { flex-shrink: 0; }
.lbrh .lbrh-sol__link .elementor-button { padding: 0 0 2px; background: transparent; font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap; }
.lbrh .lbrh-sol__link .elementor-button:hover { transform: translateX(3px); }

/* ── 7. Banda CTA ────────────────────────────────────────── */
.lbrh .lbrh-cta { border-radius: 12px; overflow: hidden; }
.lbrh .lbrh-cta__titulo .elementor-heading-title { font-size: 24px; font-weight: 700; line-height: 1.25; color: #fff; }
.lbrh .lbrh-cta__texto { font-size: 16.5px; line-height: 1.4; color: rgba(255, 255, 255, .88); }
.lbrh .lbrh-cta__boton { flex-shrink: 0; }
.lbrh .lbrh-cta__boton .elementor-button {
	width: 197px;
	height: 39px;
	padding: 0;
	border-radius: 8px;
	background: #fff;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--h-navy);
}
.lbrh .lbrh-cta__boton .elementor-button-content-wrapper { justify-content: center; }
.lbrh .lbrh-cta__boton .elementor-button:hover { transform: translateY(-2px); }

/* ── Tableta ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.lbrh .lbrh-hero__titulo .elementor-heading-title { font-size: 48px; max-width: 420px; }
	.lbrh .lbrh-slide .lbrh-hero__titulo .elementor-heading-title { font-size: 40px; max-width: 270px; }
	.lbrh .lbrh-slide .lbrh-hero__texto { max-width: 260px !important; font-size: 18px; }
	.lbrh .lbrh-dato { padding-left: 16px; }
	.lbrh .lbrh-dato .elementor-image-box-img { width: 36px !important; flex-basis: 36px; margin-right: 14px !important; }
	.lbrh .lbrh-dato .elementor-image-box-img img { width: 36px; }
}

/* ── Móvil ───────────────────────────────────────────────── */
@media (max-width: 767px) {
	.lbrh .lbrh-hero { border-radius: 14px; position: relative; }
	.lbrh .lbrh-hero:not(.lbrh-slide) { background-position: 72% center !important; }
	.lbrh .lbrh-slide .lbrh-hero__titulo .elementor-heading-title { font-size: 38px; max-width: none; }
	.lbrh .lbrh-slide .lbrh-hero__texto { max-width: none !important; }
	/* en móvil el texto cae sobre el cielo claro: degradado oscuro arriba */
	.lbrh .lbrh-hero::after {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(5, 20, 52, .92) 0%, rgba(5, 20, 52, .78) 42%, rgba(5, 20, 52, 0) 68%);
		pointer-events: none;
	}
	.lbrh .lbrh-hero > .elementor-element { position: relative; z-index: 1; }
	/* Banners del carrusel (corrección del cliente, 30-oct): el texto va arriba sobre el
	   color del banner y la imagen se ve ENTERA abajo (anclada a la derecha, donde están
	   el auto y los productos). Nada de sombra oscura encima de la foto.
	   --slide-c = color de la parte de arriba de cada banner, para que no se note la unión. */
	.lbrh .lbrh-carrusel > .lbrh-slide { --slide-c: #0A3472; --img-h: calc(.8433 * (100vw - 24px)); }
	.lbrh .lbrh-carrusel > .lbrh-slide:nth-child(1) { --slide-c: #D95E1B; }
	.lbrh .lbrh-carrusel > .lbrh-slide:nth-child(2) { --slide-c: #01307A; }
	.lbrh .lbrh-carrusel > .lbrh-slide {
		min-height: 0 !important;
		padding: 30px 22px calc(var(--img-h) + 6px) !important;
		background-color: var(--slide-c) !important;
		background-size: 150% auto !important;
		background-position: right bottom !important;
	}
	.lbrh .lbrh-carrusel > .lbrh-slide::after {
		inset: auto 0 calc(var(--img-h) - 70px) 0;
		height: 70px;
		background: linear-gradient(180deg, var(--slide-c) 0%, transparent 100%);
	}
	.lbrh .lbrh-slide .lbrh-hero__titulo .elementor-heading-title,
	.lbrh .lbrh-slide .lbrh-hero__texto { text-shadow: none; }
	.lbrh .lbrh-slide .lbrh-hero__titulo .elementor-heading-title { font-size: 34px; }
	.lbrh .lbrh-slide .lbrh-hero__texto { font-size: 16.5px; }
	.lbrh .lbrh-slide .lbrh-hero__boton { margin-top: 20px; }
	.lbrh .lbrh-slide .lbrh-hero__boton .elementor-button { height: 46px; font-size: 16px; }
	.lbrh .lbrh-sol__texto br { display: none; }
	.lbrh .lbrh-hero__titulo .elementor-heading-title { font-size: 40px; }
	.lbrh .lbrh-hero__texto { font-size: 18px; }
	.lbrh .lbrh-hero__boton .elementor-button { width: 220px; height: 50px; font-size: 17px; }
	.lbrh .lbrh-titulo .elementor-heading-title { font-size: 26px; }
	.lbrh .lbrh-cat .elementor-image-box-img,
	.lbrh .lbrh-cat .elementor-image-box-img img { width: 84px !important; height: 84px; }
	.lbrh .lbrh-cat .elementor-image-box-title { font-size: 15px; }
	.lbrh .lbrh-link .elementor-button { font-size: 15px; }
	/* «Ver catálogo completo» no cabe junto al título: baja a su propia línea, sin partirse */
	.lbrh .e-con:has(> .lbrh-link) { flex-wrap: wrap !important; row-gap: 8px; }
	.lbrh .lbrh-link .elementor-button-text { white-space: nowrap; text-underline-offset: 4px; }
	.lbrh .lbrh-dato { padding-left: 0; }
	.lbrh .lbrh-sol__texto { font-size: 14.5px; }
	.lbrh .lbrh-cta__titulo .elementor-heading-title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
	.lbrh *, .lbrh *::before, .lbrh *::after { transition: none !important; }
}
