/*
 * Estilos propios del child theme.
 * Reglas:
 *  - Primero lo nativo de Divi (Global Colors, Presets, Theme Builder).
 *  - Solo clases propias con prefijo .bjs- (añadirlas en el campo "Clase CSS" del módulo).
 *  - Sin !important salvo causa justificada y comentada.
 *  - Mobile first: estilos base para móvil y media queries min-width.
 */

/* ---------- Tokens (02-branding/tokens.json · guía de marca v0.1) ---------- */
:root {
	--bjs-azul: #0025a0;
	--bjs-azul-noche: #001a73;
	--bjs-azul-niebla: #e6ebf8;
	--bjs-rojo-rotulador: #e0341c; /* Solo ilustración y texto grande (4,49:1). */
	--bjs-rojo-cta: #c42b14;
	--bjs-rojo-cta-hover: #a3230f;
	--bjs-blanco: #ffffff;
	--bjs-tinta: #1a1f36;
	--bjs-gris: #555b6e;
	--bjs-fondo-suave: #f3f5fb;
	--bjs-whatsapp: #1e7d3a;

	--bjs-color-primario: var(--bjs-azul);
	--bjs-color-texto: var(--bjs-tinta);
	--bjs-color-fondo: var(--bjs-blanco);
	--bjs-color-foco: var(--bjs-azul);

	--bjs-fuente-display: "Nunito", "Arial Rounded MT Bold", "Segoe UI", Arial, sans-serif;
	--bjs-fuente-texto: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif;

	--bjs-radio: 12px;
	--bjs-radio-grande: 24px;
	--bjs-sombra: 0 4px 12px rgba(0, 26, 115, 0.12);
	--bjs-sombra-marca: 6px 6px 0 var(--bjs-azul);
	--bjs-espacio-s: 8px;
	--bjs-espacio-m: 16px;
	--bjs-espacio-l: 32px;
	--bjs-espacio-xl: 64px;
}

/*
 * Fuente base. Divi trae "Open Sans" por defecto y no se carga (Google Fonts desactivado):
 * se fija Nunito Sans en local. Cambiarla también en Divi → Opciones del tema para que coincida.
 */
body,
.bjs-aviso-pruebas {
	font-family: var(--bjs-fuente-texto);
}

/* ---------- Accesibilidad ---------- */

/* Enlace "Saltar al contenido": oculto hasta recibir foco (WCAG 2.4.1). */
.bjs-skip-link {
	position: absolute;
	top: -100px;
	left: var(--bjs-espacio-m);
	z-index: 100000;
	padding: var(--bjs-espacio-s) var(--bjs-espacio-m);
	background: var(--bjs-color-fondo);
	color: var(--bjs-color-texto);
	border: 2px solid var(--bjs-color-foco);
	border-radius: var(--bjs-radio);
	text-decoration: underline;
}

.bjs-skip-link:focus {
	top: var(--bjs-espacio-m);
}

/* Foco visible y consistente (WCAG 2.4.7). */
:focus-visible {
	outline: 3px solid var(--bjs-color-foco);
	outline-offset: 2px;
}

/* Evita que la cabecera fija tape el elemento enfocado (WCAG 2.4.11). Ajustar a la altura real. */
html {
	scroll-padding-top: 100px;
}

/* Respeta la preferencia de movimiento reducido. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
		transition-duration: 0.01ms;
		scroll-behavior: auto;
	}
}

/* Texto solo para lectores de pantalla. */
.bjs-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Aviso de modo vista previa. */
.bjs-aviso-pruebas {
	padding: var(--bjs-espacio-s) var(--bjs-espacio-m);
	background: #fff4db;
	color: #5c3d00;
	font-size: 14px;
	text-align: center;
}

/* ---------- Componentes propios ---------- */

/*
 * Kit v2: módulos nativos de Divi 5. Las clases se asignan en Avanzado → Atributos (class) de
 * cada sección, columna o módulo. Marcado real comprobado en Divi 5.14.0:
 * .et_pb_section > .et_pb_row > .et_pb_column > .et_pb_text / .et_pb_button_module_wrapper > a.et_pb_button / .et_pb_image
 */
.et_pb_section.bjs-seccion {
	padding: 48px 0;
	color: var(--bjs-tinta);
	font-family: var(--bjs-fuente-texto);
	font-size: 17px;
	line-height: 1.6;
}

.et_pb_section.bjs-seccion .et_pb_row {
	padding: 8px 0;
}

.et_pb_section.bjs-seccion--azul,
.et_pb_section.bjs-seccion--azul .et_pb_text {
	color: var(--bjs-blanco);
}

.et_pb_section.bjs-seccion .et_pb_text {
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.et_pb_section.bjs-seccion h1,
.et_pb_section.bjs-seccion h2,
.et_pb_section.bjs-seccion h3 {
	margin: 0 0 var(--bjs-espacio-m);
	padding: 0;
	font-family: var(--bjs-fuente-display);
	font-weight: 900;
	line-height: 1.12;
}

.et_pb_section.bjs-seccion h1 {
	font-size: 34px;
}

.et_pb_section.bjs-seccion h2 {
	font-size: 28px;
	color: var(--bjs-azul);
}

.et_pb_section.bjs-seccion h3 {
	font-size: 22px;
	font-weight: 800;
	color: var(--bjs-azul);
}

.et_pb_section.bjs-seccion--azul h1,
.et_pb_section.bjs-seccion--azul h2,
.et_pb_section.bjs-seccion--azul h3 {
	color: var(--bjs-blanco);
}

/* Refuerzo para el lienzo del Visual Builder, que colorea párrafos y listas por su cuenta. */
.et_pb_section.bjs-seccion--azul .et_pb_text p,
.et_pb_section.bjs-seccion--azul .et_pb_text li,
.et_pb_section.bjs-seccion--azul .et_pb_text span {
	color: var(--bjs-blanco);
}

.et_pb_section.bjs-seccion p {
	margin: 0 0 var(--bjs-espacio-m);
	padding: 0;
}

/* Lista de confianza sin viñetas (Divi añade disc y sangría a las listas del módulo de texto). */
.et_pb_section.bjs-seccion .et_pb_text ul.bjs-confianza {
	padding: 0;
	list-style: none;
}

.et_pb_section.bjs-seccion--azul .bjs-subrayado {
	background-image: linear-gradient(transparent 82%, var(--bjs-blanco) 82%, var(--bjs-blanco) 90%, transparent 90%);
}

/*
 * Móvil: Divi pone las columnas al 100 % (et_flex_column_24_24_phone) pero deja la fila en
 * nowrap, así que se encogen en vez de apilarse. Se activa el salto de línea en nuestras secciones.
 */
@media (max-width: 767px) {
	.et_pb_section.bjs-seccion .et_pb_row {
		flex-wrap: wrap;
		row-gap: var(--bjs-espacio-l);
	}
}

.et_pb_section.bjs-seccion p:last-child {
	margin-bottom: 0;
}

/* Botonera: columna con los botones en línea. */
.et_pb_column.bjs-botonera {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bjs-espacio-m);
}

.et_pb_column.bjs-botonera > .et_pb_module {
	width: auto;
	margin: 0;
}

/* Botones nativos de Divi con la clase bjs-btn (la clase puede ir en el enlace o en su envoltorio). */
.et_pb_section a.bjs-btn.et_pb_button,
.et_pb_section .bjs-btn a.et_pb_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--bjs-fuente-display);
	font-weight: 800;
	font-size: 17px;
	line-height: 1.2 !important; /* Divi declara line-height: 1.7em !important en .et_pb_button. */
	text-decoration: none;
}

.et_pb_section a.bjs-btn.et_pb_button:hover,
.et_pb_section .bjs-btn a.et_pb_button:hover {
	padding: 12px 28px;
	border-color: transparent;
}

.et_pb_section a.bjs-btn.et_pb_button::after,
.et_pb_section .bjs-btn a.et_pb_button::after {
	display: none;
}

.et_pb_section a.bjs-btn--primario.et_pb_button,
.et_pb_section .bjs-btn--primario a.et_pb_button {
	background: var(--bjs-rojo-cta);
	color: var(--bjs-blanco);
}

.et_pb_section a.bjs-btn--primario.et_pb_button:hover,
.et_pb_section .bjs-btn--primario a.et_pb_button:hover {
	background: var(--bjs-rojo-cta-hover);
}

.et_pb_section a.bjs-btn--secundario.et_pb_button,
.et_pb_section .bjs-btn--secundario a.et_pb_button {
	background: var(--bjs-azul);
	color: var(--bjs-blanco);
}

.et_pb_section a.bjs-btn--secundario.et_pb_button:hover,
.et_pb_section .bjs-btn--secundario a.et_pb_button:hover {
	background: var(--bjs-azul-noche);
}

/* Sobre azul: botón blanco (rojo sobre azul prohibido, 2,09:1). */
.et_pb_section a.bjs-btn--claro.et_pb_button,
.et_pb_section .bjs-btn--claro a.et_pb_button {
	background: var(--bjs-blanco);
	color: var(--bjs-azul);
}

.et_pb_section a.bjs-btn--claro.et_pb_button:hover,
.et_pb_section .bjs-btn--claro a.et_pb_button:hover {
	background: var(--bjs-azul-niebla);
}

.et_pb_section a.bjs-btn--contorno.et_pb_button,
.et_pb_section .bjs-btn--contorno a.et_pb_button,
.et_pb_section a.bjs-btn--contorno.et_pb_button:hover,
.et_pb_section .bjs-btn--contorno a.et_pb_button:hover {
	border-color: currentColor;
	background: transparent;
	color: var(--bjs-azul);
}

.et_pb_section.bjs-seccion--azul a.bjs-btn--contorno.et_pb_button,
.et_pb_section.bjs-seccion--azul .bjs-btn--contorno a.et_pb_button {
	color: var(--bjs-blanco);
}

.et_pb_section.bjs-seccion--azul a.bjs-btn--contorno.et_pb_button:hover,
.et_pb_section.bjs-seccion--azul .bjs-btn--contorno a.et_pb_button:hover {
	background: rgba(255, 255, 255, 0.12);
}

.et_pb_section.bjs-seccion--azul a:focus-visible {
	outline-color: var(--bjs-blanco);
	outline-offset: 3px;
}

/* Tarjetas: la columna hace de tarjeta. */
.et_pb_column.bjs-tarjeta {
	padding: var(--bjs-espacio-l);
	border-radius: var(--bjs-radio);
	background: var(--bjs-blanco);
	box-shadow: var(--bjs-sombra);
	color: var(--bjs-tinta);
}

.et_pb_section.bjs-seccion--blanca .et_pb_column.bjs-tarjeta {
	border: 1px solid #c9cedc;
	box-shadow: none;
}

.bjs-tarjeta__icono img {
	width: 72px;
	height: 72px;
}

.et_pb_image.bjs-tarjeta__icono {
	margin-bottom: var(--bjs-espacio-m);
}

/* Beneficios sobre azul. */
.et_pb_column.bjs-beneficio p {
	color: var(--bjs-azul-niebla);
}

/* Pasos. */
.et_pb_section.bjs-seccion p.bjs-paso__numero {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: var(--bjs-espacio-m);
	border: 3px solid var(--bjs-rojo-rotulador);
	border-radius: 50%;
	color: var(--bjs-azul);
	font-family: var(--bjs-fuente-display);
	font-weight: 900;
	font-size: 26px;
	line-height: 1;
}

/* Aviso de siniestro: la fila hace de caja. */
.et_pb_section.bjs-seccion .et_pb_row.bjs-aviso-siniestro {
	align-items: center;
	padding: var(--bjs-espacio-l);
	border-left: 6px solid var(--bjs-rojo-rotulador);
	border-radius: var(--bjs-radio);
	background: var(--bjs-blanco);
}

/* ---------- Imágenes de marca (generadas con IA, ver 02-branding/prompts-imagenes-ia.md) ---------- */

/*
 * Textura de garabatos en las secciones azules (no en el pie). Velo azul al 60 %: el texto blanco
 * queda a 6,37:1 sobre el trazo más claro (#72A1FF), por encima de AA. Imagen de 33 KB.
 */
.et_pb_section.bjs-seccion--azul:not(.bjs-pie) {
	background-image:
		linear-gradient(rgba(0, 37, 160, 0.6), rgba(0, 37, 160, 0.6)),
		url("../img/textura-garabatos.webp");
	background-repeat: repeat;
	background-size: auto, 800px auto;
}

/* Hero: ilustración de la brújula a la derecha del texto. Decorativa (alt vacío). */
.et_pb_section.bjs-hero .et_pb_row.bjs-hero__fila {
	align-items: center;
}

.bjs-hero__imagen img {
	width: 100%;
	max-width: 460px;
	height: auto;
	margin-inline: auto;
}

/* En móvil se oculta para que los botones queden a la vista sin hacer scroll. */
@media (max-width: 767px) {
	.et_pb_column.bjs-hero__ilustracion {
		display: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.bjs-hero__imagen img {
		animation: bjs-flotar 2s ease-in-out 0.8s 2 alternate;
	}
}

/* Sube y baja una vez (4 s en total) y se para: WCAG 2.2.2 no permite movimiento automático de más de 5 s sin control. */
@keyframes bjs-flotar {
	from {
		transform: translateY(0) rotate(0);
	}

	to {
		transform: translateY(-10px) rotate(-2deg);
	}
}

/* ---------- Páginas de producto ---------- */

/*
 * Hero con la ilustración de fondo a la derecha. El degradado de azul niebla por la izquierda
 * garantiza el contraste del texto aunque la ilustración se acerque en pantallas medianas.
 */
.et_pb_section.bjs-producto-hero {
	background-repeat: no-repeat;
}

@media (min-width: 981px) {
	.et_pb_section.bjs-producto-hero {
		min-height: 560px;
		background-position: 0 0, right center;
		background-size: 100% 100%, auto 100%;
	}

	.et_pb_section.bjs-producto-hero--hogar {
		background-image: linear-gradient(90deg, #e6ebf8 0, #e6ebf8 46%, rgba(230, 235, 248, 0) 62%), url("../img/cabecera-hogar.webp");
	}

	.et_pb_section.bjs-producto-hero--vida {
		background-image: linear-gradient(90deg, #e6ebf8 0, #e6ebf8 46%, rgba(230, 235, 248, 0) 62%), url("../img/cabecera-vida.webp");
	}

	.et_pb_section.bjs-producto-hero--salud {
		background-image: linear-gradient(90deg, #e6ebf8 0, #e6ebf8 46%, rgba(230, 235, 248, 0) 62%), url("../img/cabecera-salud.webp");
	}
}

/* Tableta y móvil: la ilustración (recorte vertical) va debajo del texto y los botones. */
@media (max-width: 980px) {
	.et_pb_section.bjs-producto-hero {
		padding-bottom: 92vw;
		background-position: center bottom;
		background-size: 100% auto;
	}

	.et_pb_section.bjs-producto-hero .et_pb_column {
		width: 100%;
	}

	.et_pb_section.bjs-producto-hero--hogar {
		background-image: url("../img/cabecera-hogar-movil.webp");
	}

	.et_pb_section.bjs-producto-hero--vida {
		background-image: url("../img/cabecera-vida-movil.webp");
	}

	.et_pb_section.bjs-producto-hero--salud {
		background-image: url("../img/cabecera-salud-movil.webp");
	}
}

/* Enlaces de texto dentro de secciones azules: blancos y subrayados (el azul de Divi no se vería). */
.et_pb_section.bjs-seccion--azul .et_pb_text a {
	color: var(--bjs-blanco);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Nota bajo las coberturas. */
.et_pb_section.bjs-seccion p.bjs-nota {
	color: var(--bjs-gris);
	font-size: 15px;
	font-style: italic;
}

/* Datos pendientes del cliente: visibles en la vista previa para que se revisen. */
mark.bjs-pendiente {
	padding: 0 4px;
	border-radius: 4px;
	background: #fff4db;
	color: #8a5a00;
	font-style: normal;
	font-weight: 700;
}

/* Preguntas frecuentes con <details>: accesibles con teclado y sin JavaScript. */
.bjs-faq details {
	border-bottom: 1px solid #c9cedc;
}

.bjs-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bjs-espacio-m);
	min-height: 48px;
	padding: var(--bjs-espacio-m) 0;
	color: var(--bjs-azul);
	font-family: var(--bjs-fuente-display);
	font-weight: 800;
	font-size: 19px;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
}

.bjs-faq summary::-webkit-details-marker {
	display: none;
}

.bjs-faq summary::after {
	content: "+";
	flex-shrink: 0;
	color: var(--bjs-rojo-cta);
	font-size: 28px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.bjs-faq details[open] summary::after {
	transform: rotate(45deg);
}

.bjs-faq summary:focus-visible {
	outline: 3px solid var(--bjs-azul);
	outline-offset: 2px;
}

.bjs-faq details p {
	padding-bottom: var(--bjs-espacio-m);
}

/* Hero con ilustración de escena (páginas de grupos): esquinas redondeadas y sombra de marca. */
.bjs-hero--imagen .bjs-hero__imagen img {
	max-width: 520px;
	border-radius: var(--bjs-radio-grande);
	box-shadow: var(--bjs-sombra-marca);
}

/* Textos largos (páginas legales, quiénes somos): ancho de lectura cómodo. */
.et_pb_text.bjs-prosa {
	max-width: 52rem;
}

.et_pb_section.bjs-seccion .bjs-prosa h3 {
	margin-top: var(--bjs-espacio-l);
}

.et_pb_section.bjs-seccion .bjs-prosa h4 {
	margin: var(--bjs-espacio-m) 0 var(--bjs-espacio-s);
	color: var(--bjs-tinta);
	font-family: var(--bjs-fuente-display);
	font-weight: 800;
	font-size: 18px;
}

.et_pb_section.bjs-seccion .bjs-prosa ul,
.et_pb_section.bjs-seccion .bjs-prosa ol {
	margin: 0 0 var(--bjs-espacio-m);
	padding-left: 1.4em;
}

.et_pb_section.bjs-seccion .bjs-prosa li {
	margin-bottom: 4px;
}

.et_pb_section.bjs-seccion:not(.bjs-seccion--azul) .bjs-prosa a {
	color: var(--bjs-azul);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Tablas: con scroll horizontal propio en móvil para no desbordar la página. */
.bjs-tabla-envoltorio {
	overflow-x: auto;
	margin: 0 0 var(--bjs-espacio-l);
}

.bjs-tabla {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 16px;
}

.bjs-tabla th,
.bjs-tabla td {
	padding: 10px 12px;
	border: 1px solid #c9cedc;
	text-align: left;
	vertical-align: top;
}

.bjs-tabla th {
	background: var(--bjs-azul-niebla);
	color: var(--bjs-azul);
	font-family: var(--bjs-fuente-display);
	font-weight: 800;
}

/* Aviso de "no incluyas datos de salud" en los formularios. */
.et_pb_section.bjs-seccion p.bjs-aviso-datos {
	padding: 8px 12px;
	border-left: 4px solid #8a5a00;
	background: #fff4db;
	color: #5c3d00;
	font-weight: 700;
}

/* Hueco del formulario hasta conectar el plugin. */
.bjs-form-pendiente {
	padding: var(--bjs-espacio-l);
	border: 2px dashed var(--bjs-azul);
	border-radius: var(--bjs-radio);
	background: var(--bjs-azul-niebla);
}

/* Lista de "otros seguros" en la página Seguros. */
.et_pb_section.bjs-seccion .et_pb_text ul.bjs-lista-seguros {
	display: grid;
	gap: var(--bjs-espacio-s) var(--bjs-espacio-l);
	padding: 0;
	list-style: none;
}

.bjs-lista-seguros a {
	color: var(--bjs-azul);
	font-family: var(--bjs-fuente-display);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (min-width: 768px) {
	.et_pb_section.bjs-seccion .et_pb_text ul.bjs-lista-seguros {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.et_pb_section.bjs-seccion .et_pb_text ul.bjs-lista-seguros {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ---------- Movimiento (guía de marca §6.1.7) ----------
 * Todo se desactiva con prefers-reduced-motion (regla global del principio del archivo).
 * Solo opacidad y transform: no mueve el layout (CLS) ni retrasa el LCP (el hero no se anima).
 */

/* El subrayado de rotulador "se dibuja" una vez al cargar. Solo CSS: no depende del JS. */
@media (prefers-reduced-motion: no-preference) {
	.bjs-subrayado {
		background-repeat: no-repeat;
		background-size: 100% 100%;
		animation: bjs-trazo 0.9s 0.4s ease-out both;
	}
}

@keyframes bjs-trazo {
	from {
		background-size: 0% 100%;
	}

	to {
		background-size: 100% 100%;
	}
}

/* Entrada al hacer scroll (main.js añade .bjs-anim al <html> y .bjs-revelar / .bjs-visible). */
.bjs-anim .bjs-revelar {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.2s ease;
}

.bjs-anim .bjs-revelar.bjs-visible {
	opacity: 1;
	transform: none;
}

/* Tarjetas: se elevan un poco y el icono "se mueve" como un garabato. */
.et_pb_column.bjs-tarjeta {
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.55s ease;
}

.et_pb_column.bjs-tarjeta:hover,
.et_pb_column.bjs-tarjeta:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 26, 115, 0.16);
}

.bjs-tarjeta__icono img {
	transition: transform 0.3s ease;
}

.et_pb_column.bjs-tarjeta:hover .bjs-tarjeta__icono img {
	transform: rotate(-6deg) scale(1.06);
}

/* Botones: pequeño levantamiento al pasar el ratón. */
.et_pb_section a.bjs-btn.et_pb_button {
	transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

.et_pb_section a.bjs-btn.et_pb_button:hover {
	transform: translateY(-2px);
}

/* ---------- Cabecera (Theme Builder) ---------- */
.et_pb_section.bjs-cabecera {
	padding: 8px 0;
	border-bottom: 1px solid #c9cedc;
	background: var(--bjs-blanco);
	font-family: var(--bjs-fuente-texto);
}

.et_pb_section.bjs-cabecera .et_pb_row {
	align-items: center;
	padding: 0;
}

.bjs-cabecera .et_pb_menu .et-menu > li > a,
.bjs-cabecera .et_pb_menu .et_pb_menu__menu a {
	color: var(--bjs-tinta);
	font-family: var(--bjs-fuente-display);
	font-weight: 800;
	font-size: 16px;
}

.bjs-cabecera .et_pb_menu .et-menu > li > a:hover,
.bjs-cabecera .et_pb_menu .current-menu-item > a,
.bjs-cabecera .et_pb_menu .current-menu-ancestor > a {
	color: var(--bjs-azul);
}

/* Submenú de escritorio (ul.et-menu). */
.bjs-cabecera .et-menu .sub-menu {
	border-top: 3px solid var(--bjs-azul);
	border-radius: 0 0 var(--bjs-radio) var(--bjs-radio);
	box-shadow: var(--bjs-sombra);
}

.bjs-cabecera .et-menu .sub-menu a {
	color: var(--bjs-tinta);
	font-weight: 700;
}

/* Menú móvil (Divi lo muestra por debajo de 980 px): colores de marca y contraste AA. */
/*
 * Hamburguesa de marca: dos trazos azules y uno rojo corto en medio (el "rotulador"), que se
 * convierten en una X al abrir. Sustituye al icono de fuente de Divi (content: "a").
 * Divi alterna .mobile_nav.closed / .opened; el JS del tema le da rol de botón y aria-expanded.
 */
.et_pb_section.bjs-cabecera .et_pb_menu .mobile_menu_bar {
	position: relative;
	display: block;
	width: 48px;
	height: 48px;
	border-radius: var(--bjs-radio);
	background: linear-gradient(var(--bjs-rojo-rotulador), var(--bjs-rojo-rotulador)) no-repeat 60% 50% / 14px 3px;
	cursor: pointer;
	transition: background-size 0.2s ease, background-color 0.2s ease;
}

.et_pb_section.bjs-cabecera .et_pb_menu .mobile_menu_bar::before,
.et_pb_section.bjs-cabecera .et_pb_menu .mobile_menu_bar::after {
	content: "";
	position: absolute;
	left: 12px;
	width: 24px;
	height: 3px;
	border-radius: 3px;
	background: var(--bjs-azul);
	font-size: 0;
	transition: transform 0.25s ease, top 0.25s ease;
}

.et_pb_section.bjs-cabecera .et_pb_menu .mobile_menu_bar::before {
	top: 16px;
}

.et_pb_section.bjs-cabecera .et_pb_menu .mobile_menu_bar::after {
	top: 29px;
}

.et_pb_section.bjs-cabecera .et_pb_menu .mobile_menu_bar:hover {
	background-color: var(--bjs-azul-niebla);
}

.et_pb_section.bjs-cabecera .et_pb_menu .mobile_nav.opened .mobile_menu_bar {
	background-size: 0 3px;
}

.et_pb_section.bjs-cabecera .et_pb_menu .mobile_nav.opened .mobile_menu_bar::before {
	top: 22.5px;
	transform: rotate(45deg);
}

.et_pb_section.bjs-cabecera .et_pb_menu .mobile_nav.opened .mobile_menu_bar::after {
	top: 22.5px;
	transform: rotate(-45deg);
}

.et_pb_section.bjs-cabecera .et_pb_menu .mobile_menu_bar:focus-visible {
	outline: 3px solid var(--bjs-azul);
	outline-offset: 2px;
}

.bjs-cabecera .et_mobile_menu {
	border-top: 3px solid var(--bjs-azul);
	border-radius: 0 0 var(--bjs-radio) var(--bjs-radio);
	box-shadow: var(--bjs-sombra);
}

.bjs-cabecera .et_mobile_menu li a {
	background-color: transparent;
	color: var(--bjs-tinta);
	font-family: var(--bjs-fuente-display);
	font-weight: 800;
	font-size: 17px;
}

.bjs-cabecera .et_mobile_menu li a:hover {
	color: var(--bjs-azul);
}

.bjs-cabecera .et_mobile_menu .menu-item-has-children > a {
	background-color: var(--bjs-fondo-suave);
}

.bjs-cabecera .et_mobile_menu .sub-menu {
	border: 0;
	box-shadow: none;
}

.bjs-cabecera .et_mobile_menu .sub-menu a {
	font-family: var(--bjs-fuente-texto);
	font-weight: 700;
	font-size: 16px;
}

.et_pb_column.bjs-cabecera__accion {
	align-items: flex-end;
}

.bjs-cabecera__accion a.bjs-btn.et_pb_button {
	white-space: nowrap;
}

/*
 * Por debajo de 980 px (menú móvil de Divi) el botón de presupuesto se oculta en la cabecera:
 * "Contacto" sigue en el menú y hay llamadas a la acción en el contenido.
 */
@media (max-width: 980px) {
	.et_pb_column.bjs-cabecera__accion {
		display: none;
	}

	.et_pb_column.bjs-cabecera__menu {
		width: 100%;
	}
}

/* ---------- Pie (Theme Builder) ---------- */
.et_pb_section.bjs-pie {
	padding: 56px 0 24px;
	font-size: 16px;
}

.et_pb_section.bjs-pie h2.bjs-pie__titulo {
	margin-bottom: var(--bjs-espacio-m);
	font-size: 20px;
	font-weight: 800;
}

.et_pb_section.bjs-pie a {
	color: var(--bjs-blanco);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.et_pb_section.bjs-pie a:hover {
	text-decoration-thickness: 2px;
}

.et_pb_section.bjs-pie .et_pb_text ul.bjs-pie__lista {
	margin: 0 0 var(--bjs-espacio-m);
	padding: 0;
	list-style: none;
}

.et_pb_section.bjs-pie .bjs-pie__lista li {
	padding: 4px 0;
}

.et_pb_section.bjs-pie .et_pb_row.bjs-pie__creditos {
	margin-top: var(--bjs-espacio-l);
	padding-top: var(--bjs-espacio-m);
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.et_pb_section.bjs-pie p.bjs-pie__legal {
	color: var(--bjs-azul-niebla);
	font-size: 14px;
}

@media (min-width: 768px) {
	.et_pb_section.bjs-seccion {
		padding: 72px 0;
	}

	.et_pb_section.bjs-pie {
		padding: 64px 0 24px;
	}

	.et_pb_section.bjs-seccion h1 {
		font-size: 44px;
	}

	.et_pb_section.bjs-seccion h2 {
		font-size: 34px;
	}

	.et_pb_column.bjs-botonera--derecha {
		justify-content: flex-end;
	}
}

@media (min-width: 1024px) {
	.et_pb_section.bjs-seccion {
		font-size: 18px;
	}

	.et_pb_section.bjs-seccion h1 {
		font-size: 56px;
	}

	.et_pb_section.bjs-seccion h2 {
		font-size: 40px;
	}
}

/*
 * Bandas de color de la portada (piloto del kit).
 * Cada banda es un módulo de texto dentro de su sección de Divi. El fondo se extiende a todo
 * el ancho con box-shadow + clip-path (no genera scroll horizontal) y, donde el navegador
 * soporta :has(), se anula el padding de la sección/fila de Divi para que las bandas se toquen.
 */
.bjs-banda {
	--bjs-banda-fondo: var(--bjs-blanco);
	position: relative;
	padding-block: var(--bjs-espacio-xl);
	background: var(--bjs-banda-fondo);
	box-shadow: 0 0 0 100vmax var(--bjs-banda-fondo);
	clip-path: inset(0 -100vmax);
	color: var(--bjs-tinta);
	font-family: var(--bjs-fuente-texto);
	font-size: 17px;
	line-height: 1.6;
}

.bjs-banda--azul {
	--bjs-banda-fondo: var(--bjs-azul);
	color: var(--bjs-blanco);
}

.bjs-banda--suave {
	--bjs-banda-fondo: var(--bjs-fondo-suave);
}

.et_pb_section:has(.bjs-banda),
.et_pb_section:has(.bjs-banda) .et_pb_row {
	padding-top: 0;
	padding-bottom: 0;
}

.et_pb_section:has(.bjs-banda--azul) {
	background-color: var(--bjs-azul);
}

.et_pb_section:has(.bjs-banda--suave) {
	background-color: var(--bjs-fondo-suave);
}

/* Tipografía de las bandas. */
.bjs-banda h1,
.bjs-banda h2,
.bjs-banda h3 {
	margin: 0 0 var(--bjs-espacio-m);
	padding: 0;
	color: inherit;
	font-family: var(--bjs-fuente-display);
	font-weight: 900;
	line-height: 1.12;
}

.bjs-banda h1 {
	font-size: 34px;
}

.bjs-banda h2 {
	font-size: 28px;
}

.bjs-banda h3 {
	font-size: 22px;
	font-weight: 800;
}

.bjs-banda--blanca h2,
.bjs-banda--suave h2 {
	color: var(--bjs-azul);
}

.bjs-banda p {
	margin: 0 0 var(--bjs-espacio-m);
	padding: 0;
}

.bjs-antetitulo {
	display: inline-block;
	margin-bottom: var(--bjs-espacio-m);
	font-family: var(--bjs-fuente-display);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.02em;
}

.bjs-intro {
	max-width: 46rem;
	font-size: 19px;
}

/* Subrayado de rotulador: decorativo, solo sobre fondos claros o con base blanca (guía §2.4). */
.bjs-subrayado {
	background-image: linear-gradient(transparent 72%, rgba(224, 52, 28, 0.35) 72%, rgba(224, 52, 28, 0.35) 92%, transparent 92%);
}

.bjs-banda--azul .bjs-subrayado {
	background-image: linear-gradient(transparent 80%, var(--bjs-blanco) 80%, var(--bjs-blanco) 88%, transparent 88%);
}

/* Botones (guía §6.4). */
.bjs-botones {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bjs-espacio-m);
	margin: var(--bjs-espacio-l) 0 0;
}

.bjs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--bjs-fuente-display);
	font-weight: 800;
	font-size: 17px;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bjs-btn--primario {
	background: var(--bjs-rojo-cta);
	color: var(--bjs-blanco);
}

.bjs-btn--primario:hover {
	background: var(--bjs-rojo-cta-hover);
	color: var(--bjs-blanco);
}

.bjs-btn--secundario {
	background: var(--bjs-azul);
	color: var(--bjs-blanco);
}

.bjs-btn--secundario:hover {
	background: var(--bjs-azul-noche);
	color: var(--bjs-blanco);
}

/* Dentro de bandas azules los botones son blancos (rojo sobre azul prohibido, 2,09:1). */
.bjs-banda--azul .bjs-btn--primario {
	background: var(--bjs-blanco);
	color: var(--bjs-azul);
}

.bjs-banda--azul .bjs-btn--primario:hover {
	background: var(--bjs-azul-niebla);
	color: var(--bjs-azul);
}

.bjs-btn--contorno {
	border-color: currentColor;
	background: transparent;
	color: var(--bjs-azul);
}

.bjs-banda--azul .bjs-btn--contorno {
	color: var(--bjs-blanco);
}

.bjs-btn--contorno:hover {
	background: var(--bjs-azul-niebla);
	color: var(--bjs-azul);
}

.bjs-banda--azul :focus-visible {
	outline-color: var(--bjs-blanco);
	outline-offset: 3px;
}

/* Lista de confianza del hero. */
.bjs-confianza {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bjs-espacio-s) var(--bjs-espacio-l);
	margin: var(--bjs-espacio-l) 0 0;
	padding: 0;
	list-style: none;
	font-weight: 700;
}

.bjs-confianza li {
	padding: 0;
}

.bjs-confianza li::before {
	content: "✓ ";
	font-weight: 900;
}

/* Rejilla de tarjetas. */
.bjs-rejilla {
	display: grid;
	gap: var(--bjs-espacio-l);
	margin: var(--bjs-espacio-l) 0 0;
	padding: 0;
	list-style: none;
}

.bjs-tarjeta {
	display: flex;
	flex-direction: column;
	padding: var(--bjs-espacio-l);
	border-radius: var(--bjs-radio);
	background: var(--bjs-blanco);
	box-shadow: var(--bjs-sombra);
	color: var(--bjs-tinta);
}

.bjs-banda--blanca .bjs-tarjeta {
	border: 1px solid #c9cedc;
	box-shadow: none;
}

.bjs-tarjeta h3 {
	color: var(--bjs-azul);
}

.bjs-tarjeta p {
	flex-grow: 1;
}

.bjs-tarjeta__icono {
	width: 72px;
	height: 72px;
	margin-bottom: var(--bjs-espacio-m);
}

.bjs-tarjeta__enlace {
	color: var(--bjs-azul);
	font-family: var(--bjs-fuente-display);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Beneficios sobre azul. */
.bjs-beneficio h3 {
	color: var(--bjs-blanco);
}

.bjs-beneficio p {
	color: var(--bjs-azul-niebla);
}

/* Pasos numerados. */
.bjs-paso__numero {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: var(--bjs-espacio-m);
	border: 3px solid var(--bjs-rojo-rotulador);
	border-radius: 50%;
	color: var(--bjs-azul);
	font-family: var(--bjs-fuente-display);
	font-weight: 900;
	font-size: 26px;
}

/* Aviso de siniestro. */
.bjs-aviso-siniestro {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--bjs-espacio-m) var(--bjs-espacio-l);
	padding: var(--bjs-espacio-l);
	border-left: 6px solid var(--bjs-rojo-rotulador);
	border-radius: var(--bjs-radio);
	background: var(--bjs-blanco);
}

.bjs-aviso-siniestro h2 {
	margin-bottom: var(--bjs-espacio-s);
}

.bjs-aviso-siniestro p {
	margin: 0;
}

@media (min-width: 768px) {
	.bjs-banda h1 {
		font-size: 44px;
	}

	.bjs-banda h2 {
		font-size: 34px;
	}

	.bjs-rejilla {
		grid-template-columns: repeat(3, 1fr);
	}

	.bjs-banda {
		padding-block: 80px;
	}
}

@media (min-width: 1024px) {
	.bjs-banda h1 {
		font-size: 56px;
	}

	.bjs-banda h2 {
		font-size: 40px;
	}

	.bjs-banda {
		font-size: 18px;
	}
}

/* ---------- Hero con más dinamismo (0.6.1) ----------
 * - Entrada en cascada del texto, los botones y la lista de confianza. El H1 solo se desplaza
 *   (sin opacidad) para no retrasar el LCP.
 * - La brújula "busca el norte": oscila, se asienta y flota una vez. Todo el movimiento automático
 *   acaba en menos de 5 s (WCAG 2.2.2).
 * - Halo de rotulador detrás de la brújula, que se dibuja una vez.
 * - Con ratón, la brújula y la textura siguen el puntero (main.js › heroParallax). Lo provoca el
 *   usuario, así que no es movimiento automático.
 * - Brillo en el botón principal al pasar el ratón o con el foco.
 * Solo transform y opacity: no mueve el layout (CLS). Todo desactivado con prefers-reduced-motion.
 */
.et_pb_section.bjs-hero {
	position: relative;
	overflow: hidden;
	background-position: 0 0, var(--bjs-px, 0px) var(--bjs-py, 0px);
}

.bjs-hero__imagen {
	position: relative;
	isolation: isolate;
}

.bjs-hero__imagen .et_pb_image_wrap {
	display: block;
	transform: translate3d(var(--bjs-ix, 0px), var(--bjs-iy, 0px), 0);
	transition: transform 0.25s ease-out;
	will-change: transform;
}

/* Halo: anillo discontinuo blanco con un trazo rojo de rotulador, decorativo. */
.bjs-hero__imagen::before,
.bjs-hero__imagen::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(96%, 340px);
	aspect-ratio: 1;
	translate: -50% -50%; /* Propiedad independiente: no choca con el transform de las animaciones. */
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}

.bjs-hero__imagen::before {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 68%);
}

.bjs-hero__imagen::after {
	border: 3px dashed rgba(255, 255, 255, 0.35);
	border-top-color: var(--bjs-rojo-rotulador);
	border-right-color: var(--bjs-rojo-rotulador);
}

/* Brillo diagonal del botón principal. */
.bjs-hero .bjs-btn--claro {
	position: relative;
	overflow: hidden;
}

.bjs-hero .bjs-btn--claro::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
	transform: skewX(-20deg) translateX(0);
	pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
	/* Cascada de entrada (máx. ~1,3 s). */
	.bjs-hero .bjs-antetitulo,
	.bjs-hero .bjs-intro,
	.bjs-hero .bjs-botonera .et_pb_button_module_wrapper,
	.bjs-hero .bjs-confianza li {
		animation: bjs-aparecer 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
	}

	.bjs-hero h1 {
		animation: bjs-subir 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
	}

	.bjs-hero .bjs-intro { animation-delay: 0.25s; }
	.bjs-hero .bjs-botonera .et_pb_button_module_wrapper:nth-child(1) { animation-delay: 0.4s; }
	.bjs-hero .bjs-botonera .et_pb_button_module_wrapper:nth-child(2) { animation-delay: 0.5s; }
	.bjs-hero .bjs-confianza li:nth-child(1) { animation-delay: 0.6s; }
	.bjs-hero .bjs-confianza li:nth-child(2) { animation-delay: 0.7s; }
	.bjs-hero .bjs-confianza li:nth-child(3) { animation-delay: 0.8s; }

	/* Sustituye a bjs-flotar: entra, busca el norte y flota (3,6 s en total). */
	.bjs-hero__imagen img {
		animation: bjs-buscar-norte 3.6s cubic-bezier(0.34, 1.3, 0.64, 1) 0.2s both;
		transform-origin: 50% 55%;
	}

	.bjs-hero__imagen::before {
		animation: bjs-halo 2.4s ease-out 0.3s both;
	}

	.bjs-hero__imagen::after {
		animation: bjs-anillo 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
	}

	.bjs-hero .bjs-btn--claro:hover::before,
	.bjs-hero .bjs-btn--claro:focus-visible::before {
		transform: skewX(-20deg) translateX(400%);
		transition: transform 0.7s ease;
	}
}

@keyframes bjs-aparecer {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

@keyframes bjs-subir {
	from { transform: translateY(18px); }
	to { transform: none; }
}

@keyframes bjs-buscar-norte {
	0% { transform: scale(0.9) rotate(-16deg); }
	22% { transform: scale(1.02) rotate(9deg); }
	36% { transform: scale(1) rotate(-5deg); }
	48% { transform: rotate(2deg); }
	58% { transform: rotate(0); }
	79% { transform: translateY(-10px) rotate(-1.5deg); }
	100% { transform: translateY(0) rotate(0); }
}

@keyframes bjs-halo {
	0% { opacity: 0; transform: scale(0.6); }
	45% { opacity: 1; transform: scale(1.08); }
	100% { opacity: 0.8; transform: scale(1); }
}

@keyframes bjs-anillo {
	from { opacity: 0; transform: scale(0.85) rotate(-120deg); }
	to { opacity: 1; transform: scale(1) rotate(0); }
}

/* En móvil la ilustración está oculta: solo queda la cascada del texto. */
@media (max-width: 767px) {
	.bjs-hero__imagen::before,
	.bjs-hero__imagen::after {
		display: none;
	}
}
