/* Home Builder Pro — frontend */

.hbp-sr-only {
	position:absolute !important;
	width:1px; height:1px;
	padding:0; margin:-1px;
	overflow:hidden; clip:rect(0,0,0,0);
	white-space:nowrap; border:0;
}

/* Landmark <main> que el plugin añade cuando es dueño de la página
   (takeover de la home / preview). Reset neutro para que ningún tema que
   estilice el elemento <main> altere el layout ni rompa el breakout 100vw
   de .hbp-home. */
.hbp-main {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	width: auto;
	max-width: none;
	background: none;
}

.hbp-home {
	--hbp-max: 1200px;
	--hbp-gap: 64px;
	--hbp-font: inherit;
	--hbp-font-size: inherit;
	--hbp-heading-size: 28px;
	--hbp-primary: #111827;
	--hbp-accent:  #2563eb;
	--hbp-text:    #1f2937;
	--hbp-bg:      #ffffff;
	font-family: var(--hbp-font);
	font-size:   var(--hbp-font-size);
	color:       var(--hbp-text);
	background:  var(--hbp-bg);

	/* Romper el contenedor del tema para forzar el ancho completo (edge-to-edge) */
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(-50vw + 50%) !important;
}

/* Evitar scroll horizontal provocado por el 100vw y resetear el espaciado superior que añaden los temas (ej: Asap Theme) */
html { overflow-x: hidden !important; }
.site-content, #content, .site-inner, .site-main, .content-page { 
	padding-top: 0 !important; 
	margin-top: 0 !important; 
	max-width: 100% !important;
}
.site-header { margin-bottom: 0 !important; padding-bottom: 0 !important; }
/* El bloque de contenido relacionado no puede llevar .hbp-home (esa clase
   desborda a 100vw), pero necesita sus mismas variables: sin ellas cada
   var(--hbp-primary) de las tarjetas caia al valor de reserva y el bloque se
   veia distinto a una seccion con el mismo estilo. El fondo se queda
   transparente: aqui el bloque va dentro del articulo. */
.hbp-related-wrap {
	--hbp-max: 1200px;
	--hbp-gap: 64px;
	--hbp-font: inherit;
	--hbp-font-size: inherit;
	--hbp-heading-size: 28px;
	--hbp-primary: #111827;
	--hbp-accent:  #2563eb;
	--hbp-text:    #1f2937;
	--hbp-bg:      transparent;
	font-family: var(--hbp-font);
	font-size:   var(--hbp-font-size);
	color:       var(--hbp-text);
}

.hbp-home--inherit-fonts  { --hbp-font: inherit; }
.hbp-home--inherit-sizes  { --hbp-font-size: inherit; --hbp-heading-size: inherit; }
.hbp-home--inherit-colors { --hbp-primary: inherit; --hbp-text: inherit; --hbp-bg: transparent; }

.hbp-container { max-width: var(--hbp-max); margin: 0 auto; padding: 0 20px; }

/* Hero */
.hbp-hero {
	position: relative;
	background-size: cover; background-position: center;
	display:flex; align-items:center; color:#fff;
	overflow:hidden;
}
.hbp-hero__bg {
	position:absolute; inset:0; width:100%; height:100%;
	object-fit:cover; object-position:center;
	z-index:0; pointer-events:none;
}
.hbp-hero__overlay { position:absolute; inset:0; z-index:1; }
.hbp-hero__inner { position:relative; z-index:2; text-align:center; width:100%; }
/* El tamano llega como variable (--hero-title-size / --hero-sub-size) en vez de
   como font-size inline: asi cada estilo puede escalarlo sin que un valor inline
   lo bloquee, y el valor que elige el usuario sigue siendo la base. */
.hbp-hero__title { font-size: var(--hero-title-size, clamp(32px, 5vw, 64px)); margin:0 0 12px; color:#fff; overflow-wrap:break-word; }
.hbp-hero__subtitle { font-size: var(--hero-sub-size, clamp(16px, 2vw, 22px)); opacity:.9; margin:0 0 24px; }
.hbp-hero__cta {
	font-size: 18px; /* Bigger than default card buttons */
	padding: 14px 32px;
}
.hbp-hero--split .hbp-hero__inner { text-align:left; max-width:640px; }

/* ==========================================================================
   Hero — disenos adicionales.
   Todos reutilizan el markup existente (img de fondo + capa oscura + inner con
   titulo, subtitulo y CTA); no hacen falta campos nuevos. El tamano de letra
   parte del que elige el usuario (--hero-title-size) y cada estilo lo escala
   con un tope en vw para que nunca desborde en pantallas pequenas.
   En los colores solo se usa --hbp-accent, que el renderer siempre emite como
   hex: --hbp-primary puede valer la palabra clave "inherit" (modo "heredar
   colores del tema") y dentro de un gradiente invalidaria la declaracion.
   ========================================================================== */

/* Editorial — rejilla asimetrica con filete superior, como una portada de
   revista: titular grande a la izquierda, subtitulo y boton a la derecha. */
.hbp-hero--editorial .hbp-hero__inner { text-align:left; }
.hbp-hero--editorial .hbp-hero__title {
	font-size:min(calc(var(--hero-title-size, 48px) * 1.12), 7.2vw);
	line-height:1.04; letter-spacing:-.02em;
}
.hbp-hero--editorial .hbp-hero__subtitle { max-width:44ch; }
@media (min-width:783px) {
	.hbp-hero--editorial .hbp-hero__inner {
		display:grid; grid-template-columns:1.15fr .85fr; gap:0 48px; align-items:end;
		border-top:2px solid currentColor; padding-top:28px;
	}
	.hbp-hero--editorial .hbp-hero__title { grid-column:1; grid-row:1 / span 2; align-self:center; margin:0; }
	.hbp-hero--editorial .hbp-hero__subtitle { grid-column:2; grid-row:1; align-self:end; margin:0 0 16px; }
	.hbp-hero--editorial .hbp-hero__cta-wrap { grid-column:2; grid-row:2; }
	/* Sin subtitulo ni boton la rejilla dejaria media caja vacia. */
	.hbp-hero--editorial .hbp-hero__inner:has(> .hbp-hero__title:only-child) { display:block; }
}

/* Tipografico — el titular manda, con un filete de acento encima. */
.hbp-hero--typographic .hbp-hero__title {
	font-size:min(calc(var(--hero-title-size, 48px) * 1.55), 12vw);
	line-height:.98; letter-spacing:-.03em; font-weight:800; text-transform:uppercase;
	margin:0 0 18px; text-wrap:balance;
}
.hbp-hero--typographic .hbp-hero__inner::before {
	content:''; display:block; width:64px; height:3px; margin:0 auto 26px;
	background:var(--hbp-accent, #2563eb);
}
.hbp-hero--typographic .hbp-hero__subtitle {
	font-size:min(calc(var(--hero-sub-size, 18px) * .95), 4vw);
	letter-spacing:.08em; text-transform:uppercase; opacity:.82;
	max-width:58ch; margin-left:auto; margin-right:auto;
}

/* Tarjeta flotante — el contenido dentro de un bloque de cristal centrado.
   El ancho descuenta el margen lateral para que en movil no toque los bordes. */
.hbp-hero--card .hbp-hero__inner {
	max-width:min(720px, calc(100% - 40px));
	background:rgba(15,23,42,.42);
	backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
	border:1px solid rgba(255,255,255,.22); border-radius:16px;
	padding:clamp(26px, 4vw, 46px) clamp(22px, 3.2vw, 40px);
	box-shadow:0 24px 60px rgba(0,0,0,.35);
}
.hbp-hero--card .hbp-hero__subtitle { max-width:52ch; margin-left:auto; margin-right:auto; }

/* Pie de portada — contenido anclado abajo sobre un degradado que da contraste
   sin oscurecer la foto entera. */
.hbp-hero--bottom { align-items:flex-end; }
.hbp-hero--bottom::after {
	content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
	background:linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 38%, rgba(0,0,0,0) 72%);
}
.hbp-hero--bottom .hbp-hero__inner { text-align:left; padding-bottom:clamp(28px, 4vw, 56px); }
.hbp-hero--bottom .hbp-hero__title { line-height:1.06; max-width:20ch; }
.hbp-hero--bottom .hbp-hero__subtitle { max-width:58ch; }

/* Malla de color — manchas radiales con el color de acento. Pensado para ir sin
   imagen; si la hay, queda tenida por debajo en vez de taparse del todo. */
.hbp-hero--mesh { background-color:#0f172a; }
.hbp-hero--mesh::before {
	content:''; position:absolute; inset:0; z-index:1; pointer-events:none; opacity:.88;
	background-image:
		radial-gradient(at 18% 20%, var(--hbp-accent, #2563eb) 0, transparent 55%),
		radial-gradient(at 84% 26%, rgba(79,70,229,.95) 0, transparent 52%),
		radial-gradient(at 50% 96%, var(--hbp-accent, #2563eb) 0, transparent 58%);
}
/* Velo central: mantiene legible el texto sobre las manchas mas claras. */
.hbp-hero--mesh::after {
	content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
	background:radial-gradient(ellipse at center, rgba(15,23,42,.45) 0%, rgba(15,23,42,0) 70%);
}

/* Duotono — la foto en blanco y negro tenida con el color de acento.
   isolation:isolate acota el mix-blend-mode a este hero. */
.hbp-hero--duotone { isolation:isolate; background-color:#0f172a; }
.hbp-hero--duotone .hbp-hero__bg { filter:grayscale(1) contrast(1.12); }
.hbp-hero--duotone::before {
	content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
	background:linear-gradient(135deg, var(--hbp-accent, #2563eb), #0f172a);
	mix-blend-mode:screen; opacity:.72;
}
.hbp-hero--duotone::after {
	content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
	background:linear-gradient(to top, rgba(15,23,42,.6) 0%, rgba(15,23,42,0) 55%);
}

/* Panel lateral — banda solida con el texto a un lado y la imagen al otro.
   Clave: la imagen se limita a SU mitad. Si se dejara a todo el ancho del hero,
   object-fit:cover la recortaria contra el ancho completo y lo que asoma por la
   derecha seria un trozo ampliado del centro, irreconocible. */
.hbp-hero--panel .hbp-hero__inner { text-align:left; }
.hbp-hero--panel::before {
	content:''; position:absolute; left:0; top:0; bottom:0; width:100%; z-index:1; pointer-events:none;
	background:linear-gradient(90deg, #0f172a 0%, #0f172a 62%, rgba(15,23,42,.35) 100%);
}
@media (min-width:783px) {
	.hbp-hero--panel .hbp-hero__bg { left:auto; right:0; width:50%; }
	.hbp-hero--panel::before {
		width:52%;
		/* Los ultimos puntos funden el borde con la foto para que la union no
		   sea un corte duro. */
		background:linear-gradient(90deg, #0f172a 0%, #0f172a 92%, rgba(15,23,42,0) 100%);
	}
	.hbp-hero--panel .hbp-hero__title { max-width:min(44%, 500px); line-height:1.06; }
	.hbp-hero--panel .hbp-hero__subtitle { max-width:min(40%, 440px); }
	.hbp-hero--panel .hbp-hero__cta-wrap { max-width:min(44%, 500px); }
}

/* Estilo 7 "Destacado" con cristal: el texto de la tarjeta ancha se apoya en una
   banda esmerilada en vez de sobre el degradado. Solo en escritorio, que es
   donde esa tarjeta ocupa dos columnas. */
@media (min-width: 768px) {
	.hbp-section--feat-glass .hbp-card:first-child .hbp-card__body {
		flex:0 0 auto; margin-top:auto;
		background:rgba(15, 23, 42, var(--feat-glass-op, .34));
		backdrop-filter:blur(var(--feat-glass-blur, 10px));
		-webkit-backdrop-filter:blur(var(--feat-glass-blur, 10px));
		border-top:1px solid rgba(255, 255, 255, .18);
		border-radius:0 0 14px 14px;
	}
	/* Con cristal el degradado sobra: se suaviza para no ensuciar la foto. */
	.hbp-section--feat-glass .hbp-card:first-child .hbp-card__img::after {
		background:linear-gradient(to top, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 55%);
	}
}

/* Section */
.hbp-section { padding: calc(var(--hbp-gap) / 2) 0; }
/* Bloque pegado al elemento de arriba (Recientes justo bajo el hero): el hero
   ya cierra visualmente, el padding superior solo dejaba un hueco vacio. */
.hbp-section--flush-top { padding-top: 0; }
.hbp-section[style*="background-image"] { background-size:cover; background-position:center; }

/* ==== Fondo de toda la sección: capas bajo el contenido ====
   Vidrio corrugado (sobre la imagen) y efecto decorativo. El contenido sube a z-index 1. */
.hbp-section--layers { position:relative; isolation:isolate; }
.hbp-section--layers > :not(.hbp-seclayer) { position:relative; z-index:1; }
.hbp-seclayer { position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }

/* Vidrio corrugado: desenfoque + estrías verticales con brillo y sombra. */
.hbp-secbg-ribbed {
	-webkit-backdrop-filter: blur(var(--rib-blur, 6px));
	backdrop-filter: blur(var(--rib-blur, 6px));
	background-image: repeating-linear-gradient(90deg,
		var(--rib-hi, rgba(255,255,255,.18)) 0,
		transparent calc(var(--rib-w, 18px) * .3),
		transparent calc(var(--rib-w, 18px) * .55),
		var(--rib-lo, rgba(0,0,0,.12)) calc(var(--rib-w, 18px) * .92),
		var(--rib-hi, rgba(255,255,255,.18)) var(--rib-w, 18px));
}

/* Efectos (--fx = color con opacidad, --fx-op = opacidad 0–1). */
/* Todos los efectos son estáticos y sin filter: no cuestan repintados al hacer scroll. */
.hbp-secfx--aurora {
	background-image:
		radial-gradient(ellipse 60% 70% at 10% 0%, var(--fx) 0, transparent 70%),
		radial-gradient(ellipse 55% 65% at 95% 100%, var(--fx) 0, transparent 70%);
}
.hbp-secfx--mesh {
	background-image:
		radial-gradient(at 12% 18%, var(--fx) 0, transparent 45%),
		radial-gradient(at 88% 12%, var(--fx) 0, transparent 40%),
		radial-gradient(at 70% 92%, var(--fx) 0, transparent 50%),
		radial-gradient(at 20% 85%, var(--fx) 0, transparent 35%);
}
.hbp-secfx--spotlight { background:radial-gradient(ellipse 70% 60% at 50% 0%, var(--fx) 0, transparent 70%); }
.hbp-secfx--vignette  { background:radial-gradient(ellipse at center, transparent 40%, var(--fx) 100%); }
.hbp-secfx--dots      { background-image:radial-gradient(var(--fx) 1.6px, transparent 1.8px); background-size:22px 22px; }
.hbp-secfx--grid {
	background-image:linear-gradient(var(--fx) 1px, transparent 1px), linear-gradient(90deg, var(--fx) 1px, transparent 1px);
	background-size:36px 36px;
	-webkit-mask-image:radial-gradient(ellipse at center, #000 30%, transparent 80%);
	mask-image:radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.hbp-secfx--diagonal { background-image:repeating-linear-gradient(45deg, var(--fx) 0 1px, transparent 1px 14px); }
.hbp-secfx--circles  { background-image:repeating-radial-gradient(circle at 100% 0%, var(--fx) 0 1.5px, transparent 1.5px 30px); }
.hbp-secfx--grain {
	opacity:var(--fx-op, .3); background-size:200px 200px;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hbp-secfx--bokeh {
	background-image:
		radial-gradient(circle at 12% 30%, var(--fx) 0 38px, transparent 40px),
		radial-gradient(circle at 28% 78%, var(--fx) 0 22px, transparent 24px),
		radial-gradient(circle at 52% 18%, var(--fx) 0 14px, transparent 16px),
		radial-gradient(circle at 70% 64%, var(--fx) 0 52px, transparent 55px),
		radial-gradient(circle at 90% 22%, var(--fx) 0 26px, transparent 28px),
		radial-gradient(circle at 84% 90%, var(--fx) 0 16px, transparent 18px);
}
.hbp-secfx--shimmer { background:linear-gradient(110deg, transparent 30%, var(--fx) 50%, transparent 70%); }

/* Strong H2 — beat the theme. Sizes never collapse to body text. */
.hbp-home .hbp-section__title,
.hbp-home h2.hbp-section__title {
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 10px !important;
	padding: 0 !important;
	color: var(--hbp-primary);
}
.hbp-home--inherit-sizes .hbp-section__title { font-size: clamp(26px, 3.2vw, 40px); }
.hbp-section__desc  { color:inherit; opacity:.85; margin:0 0 20px; font-size: clamp(15px, 1.2vw, 17px); line-height:1.55; }
.hbp-section__desc p, .hbp-section__desc a, .hbp-section__desc span, .hbp-section__desc strong { color: inherit !important; font-size: inherit !important; }

/* Para la descripción de Recientes que no usa la franja de cabecera */
.hbp-section__desc-wrap { padding-top: 8px; padding-bottom: 24px; text-align: center; }
.hbp-section__desc-wrap .hbp-section__desc { max-width: 920px; margin: 0 auto; text-align: center; opacity: .9; }

.hbp-section__more  { margin-top:24px; }
.hbp-more-btn_solid {
	display:inline-block; padding:10px 24px; background:var(--btn-bg, var(--hbp-accent));
	color:var(--btn-text, #fff) !important; border-radius:999px; text-decoration:none; font-weight:600;
	transition: opacity .2s; border: 1px solid var(--btn-border, var(--hbp-accent)); font-size: 15px;
}
.hbp-more-btn_solid:hover { opacity: .85; }

.hbp-more-btn_outline {
	display:inline-block; padding:10px 24px; border:2px solid var(--btn-border, var(--hbp-accent));
	color:var(--btn-text, var(--hbp-accent)) !important; border-radius:999px; text-decoration:none; font-weight:600;
	transition: background .2s, color .2s; background: transparent; font-size: 15px;
}
.hbp-more-btn_outline:hover { background: var(--btn-bg, var(--hbp-accent)); color:#fff !important; }

.hbp-more-link {
	display:inline-block; color:var(--btn-text, var(--hbp-accent)) !important; text-decoration:underline; font-weight:600;
	padding: 10px 0; font-size: 16px;
}
.hbp-more-link:hover { text-decoration:none; opacity:.8; }

/* 4. Sólido recto (esquinas rectas, mayúsculas) */
.hbp-more-btn_square {
	display:inline-block; padding:12px 28px; background:var(--btn-bg, var(--hbp-accent));
	color:var(--btn-text, #fff) !important; border:1px solid var(--btn-border, var(--hbp-accent)); border-radius:4px;
	text-decoration:none; font-weight:700; font-size:13px; letter-spacing:.08em; text-transform:uppercase; transition:opacity .2s;
}
.hbp-more-btn_square:hover { opacity:.85; }

/* 5. Con flecha (se desplaza al pasar el ratón) */
.hbp-more-btn_arrow {
	display:inline-flex; align-items:center; gap:10px; padding:10px 22px 10px 26px; background:var(--btn-bg, var(--hbp-accent));
	color:var(--btn-text, #fff) !important; border:1px solid var(--btn-border, var(--hbp-accent)); border-radius:999px;
	text-decoration:none; font-weight:600; font-size:15px; transition:opacity .2s;
}
.hbp-more-btn_arrow::after { content:'\2192'; transition:transform .25s; }
.hbp-more-btn_arrow:hover { opacity:.92; }
.hbp-more-btn_arrow:hover::after { transform:translateX(4px); }

/* 6. Elevado (efecto 3D) */
.hbp-more-btn_raised {
	display:inline-block; padding:10px 26px; background:var(--btn-bg, var(--hbp-accent));
	color:var(--btn-text, #fff) !important; border:1px solid var(--btn-border, var(--hbp-accent)); border-radius:10px;
	text-decoration:none; font-weight:700; font-size:15px; box-shadow:0 4px 0 rgba(0,0,0,.25); transition:transform .15s, box-shadow .15s;
}
.hbp-more-btn_raised:hover  { transform:translateY(-2px); box-shadow:0 6px 0 rgba(0,0,0,.25); }
.hbp-more-btn_raised:active { transform:translateY(2px);  box-shadow:0 2px 0 rgba(0,0,0,.25); }

/* 7. Suave (fondo tenue del color del botón; se rellena al pasar el ratón) */
.hbp-more-btn_soft {
	display:inline-block; padding:10px 24px; border:1px solid transparent; border-radius:999px;
	text-decoration:none; font-weight:600; font-size:15px; color:var(--btn-bg, var(--hbp-accent)) !important;
	background:rgba(37,99,235,.12);
	background:color-mix(in srgb, var(--btn-bg, var(--hbp-accent)) 14%, transparent);
	transition:background .2s, color .2s;
}
.hbp-more-btn_soft:hover { background:var(--btn-bg, var(--hbp-accent)); color:var(--btn-text, #fff) !important; }

/* ==== Section header strip ("franja") ====
   Parallax/gradient bg + frosted-glass overlay + H2/desc on top. */
.hbp-sec-head {
	position: relative;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 28px;
	isolation: isolate; /* keep backdrop-filter scoped here */
}
.hbp-sec-head--plain { min-height: 0; margin-bottom: 6px; }

/* ==========================================================================
   Cabeceras SIN fondo. En vez de una franja de color, el titulo se resuelve
   con tipografia y filetes, que es como lo hacen las revistas y los medios.
   Todas heredan el color del texto de la pagina, asi que funcionan igual en
   claro y en oscuro; el unico color propio es el de acento del diseno.
   ========================================================================== */
.hbp-sec-head { --head-rule: rgba(15, 23, 42, .14); }
.hbp-home--dark .hbp-sec-head { --head-rule: rgba(255, 255, 255, .20); }

/* Sin fondo: el bloque manda su propia separacion y no necesita el relleno
   vertical de las franjas. */
.hbp-sec-head--plain:not(.hbp-sec-head--none) { margin-bottom: 24px; }
.hbp-sec-head--plain:not(.hbp-sec-head--none) .hbp-sec-head__inner { padding: 0 20px; }
.hbp-sec-head--plain .hbp-section__title { color: var(--hbp-primary); }
.hbp-sec-head--plain .hbp-section__desc  { color: inherit; opacity: .72; }

/* 1. Filete bajo el titulo. */
.hbp-sec-head--rule-under .hbp-section__title {
	padding-bottom: 14px; border-bottom: 1px solid var(--head-rule); margin-bottom: 14px !important;
}

/* 2. Titulo con la linea prolongandose a la derecha (portada de revista). */
.hbp-sec-head--rule-flag .hbp-section__title { display: flex; align-items: center; gap: 20px; }
.hbp-sec-head--rule-flag .hbp-section__title::after {
	content: ''; flex: 1; height: 1px; background: var(--head-rule);
}
.hbp-sec-head--rule-flag.hbp-sec-head--align-right .hbp-section__title { flex-direction: row-reverse; }

/* 3. Barra de acento a la izquierda. */
.hbp-sec-head--accent-bar .hbp-sec-head__inner {
	border-left: 4px solid var(--hbp-accent, #2563eb); padding-left: 20px;
}

/* 4. Filete corto encima del titulo. */
.hbp-sec-head--eyebrow .hbp-section__title::before {
	content: ''; display: block; width: 48px; height: 3px; border-radius: 2px;
	margin: 0 0 16px; background: var(--hbp-accent, #2563eb);
}
.hbp-sec-head--eyebrow.hbp-sec-head--align-center .hbp-section__title::before { margin-left: auto; margin-right: auto; }
.hbp-sec-head--eyebrow.hbp-sec-head--align-right  .hbp-section__title::before { margin-left: auto; }

/* 5. Centrado con filete corto debajo. */
.hbp-sec-head--center-rule .hbp-sec-head__inner { text-align: center; }
.hbp-sec-head--center-rule .hbp-section__title::after {
	content: ''; display: block; width: 56px; height: 3px; border-radius: 2px;
	margin: 16px auto 0; background: var(--hbp-accent, #2563eb);
}
.hbp-sec-head--center-rule .hbp-section__desc { margin-left: auto; margin-right: auto; max-width: 70ch; }

/* 6. Doble filete encerrando titulo y descripcion. */
.hbp-sec-head--double-rule .hbp-sec-head__inner {
	border-top: 2px solid currentColor; border-bottom: 1px solid var(--head-rule);
	padding-top: 18px; padding-bottom: 18px;
}

/* 7. Filete bajo el titulo Y bajo la descripcion. */
.hbp-sec-head--underline-desc .hbp-section__title {
	padding-bottom: 12px; border-bottom: 2px solid var(--hbp-accent, #2563eb);
	margin-bottom: 14px !important;
}
.hbp-sec-head--underline-desc .hbp-section__desc {
	padding-bottom: 16px; border-bottom: 1px solid var(--head-rule);
}
.hbp-sec-head--none  { background: transparent; color: inherit; min-height: 0; }
.hbp-sec-head--none .hbp-section__title { color: var(--hbp-primary); }
.hbp-sec-head--none .hbp-section__desc  { color: #6b7280; }

.hbp-sec-head--fixed { background-attachment: fixed; }
@media (max-width: 768px) {
	.hbp-sec-head--fixed { background-attachment: scroll; }
}

/* ---- Nuevos modos de fondo ---- */
.hbp-sec-head--animated {
	animation: hbp-bg-pan 14s ease-in-out infinite;
}
@keyframes hbp-bg-pan {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.hbp-sec-head--waves { padding-bottom: 60px; }
.hbp-sec-head__wave {
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	width: 100%;
	height: 80px;
	color: #ffffff;
	z-index: 1;
	pointer-events: none;
}

.hbp-sec-head__noise {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: .35;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hbp-sec-head--blob,
.hbp-sec-head--mesh { filter: saturate(1.05); }

@media (prefers-reduced-motion: reduce) {
	.hbp-sec-head--animated { animation: none; }
}

/* Imagen de fondo del header (modo image, sin parallax) renderizada como <img>
   para aprovechar srcset, lazy loading y dimensiones intrínsecas (mejor LCP/CLS). */
.hbp-sec-head__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	pointer-events: none;
}

/* Pattern overlay: encima del fondo, debajo del cristal y del texto.
   Funciona con cualquier modo (incluido 'image'). Usa gradientes CSS puros. */
.hbp-sec-head__pattern {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}
.hbp-sec-head__pattern--noise {
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Glass overlay: sits above the bg, below the text. Inline styles carry
   backdrop-filter, blur amount and the rgba tint/opacity. */
.hbp-sec-head__glass {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}
.hbp-sec-head--glass .hbp-sec-head__glass {
	border-top: 1px solid rgba(255,255,255,.08);
	border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Text container — sits above the glass. */
.hbp-sec-head__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--hbp-max);
	padding: 24px;
	margin: 0 auto;
}
/* Asegurar centrado vertical perfecto quitando el margen inferior del último elemento */
.hbp-sec-head__inner > *:last-child { margin-bottom: 0 !important; }

.hbp-sec-head--align-left   .hbp-sec-head__inner { text-align: left; }
.hbp-sec-head--align-center .hbp-sec-head__inner { text-align: center; }
.hbp-sec-head--align-right  .hbp-sec-head__inner { text-align: right; }

/* H2 on a strip: BIG and legible regardless of theme. */
.hbp-home .hbp-sec-head:not(.hbp-sec-head--none) .hbp-section__title,
.hbp-home .hbp-sec-head:not(.hbp-sec-head--none) h2.hbp-section__title {
	color: inherit;
	font-size: clamp(34px, 5vw, 60px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0 0 14px;
}

.hbp-btn {
	display:inline-block; padding:10px 22px; border:1px solid var(--hbp-accent);
	color:var(--hbp-accent); border-radius:999px; text-decoration:none; font-weight:600;
	transition: background .2s, color .2s;
}
.hbp-btn:hover { background: var(--hbp-accent); color:#fff; }

/* Dual Layout */
.hbp-dual-layout { display:grid; grid-template-columns:1fr; gap:32px; }
@media (min-width: 768px) {
	.hbp-dual-layout { grid-template-columns:repeat(2, 1fr); gap:48px; }
}
.hbp-dual-title {
	font-size: 26px; font-weight: 800; letter-spacing:-0.02em;
	margin: 0 0 24px 0; padding-bottom: 12px;
	border-bottom: 3px solid var(--hbp-accent); display:inline-block;
}
.hbp-dual-title a { color: inherit !important; text-decoration: none; }
.hbp-home--dark .hbp-dual-title { border-color: var(--hbp-accent); }
/* Igualar altura de cards entre ambas columnas: la columna se estira a la altura
   de la más alta y el grid reparte ese espacio entre sus filas. */
.hbp-dual-col { display:flex; flex-direction:column; min-width:0; }
.hbp-dual-col > .hbp-dual-title { align-self:flex-start; }
.hbp-dual-col > .hbp-grid { flex-grow:1; grid-auto-rows:1fr; }

/* Grid */
.hbp-grid {
	display:grid;
	grid-template-columns: repeat(var(--cols-m, 1), 1fr);
	gap:20px;
}
@media (min-width: 768px) {
	.hbp-grid { grid-template-columns: repeat(var(--cols-d, 3), 1fr); }
}

/* 1. Base / Classic Card */
.hbp-card { background:#fff; border:1px solid #e5e7eb; border-radius:10px; overflow:hidden; display:flex; flex-direction:column; position:relative; transition: transform .3s, box-shadow .3s; }
.hbp-card__img { display:block; aspect-ratio: 16/10; overflow:hidden; background:#f3f4f6; flex-shrink:0; position:relative; }
.hbp-card__img img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .4s ease; }
.hbp-card:hover .hbp-card__img img { transform: scale(1.05); }
.hbp-card__noimg { display:block; width:100%; height:100%; background:linear-gradient(135deg,#e5e7eb,#f3f4f6); }
.hbp-card__body { padding:14px 16px; display:flex; flex-direction:column; flex-grow:1; }
.hbp-card__title { font-size:18px; margin:0 0 6px; line-height:1.3; }
.hbp-card__title a { color: var(--card-title-color, var(--hbp-primary)); text-decoration:none; }
.hbp-card__title a:hover { color: var(--hbp-accent); }
.hbp-card__excerpt { margin:0; color:#4b5563; font-size:14px; line-height:1.5; }

/* 2. Shadow (Flotante) */
.hbp-section--style-shadow .hbp-card { border:none; box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
.hbp-section--style-shadow .hbp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0,0,0,0.12); }

/* 3. Overlay */
.hbp-section--style-overlay .hbp-card { border:none; border-radius: 12px; min-height:280px; background:#111827; }
.hbp-section--style-overlay .hbp-card__img { position:absolute; inset:0; width:100%; height:100%; opacity:0.75; }
.hbp-section--style-overlay .hbp-card:hover .hbp-card__img { opacity:0.85; }
.hbp-section--style-overlay .hbp-card__body { position:relative; z-index:2; margin-top:auto; padding:20px; background:linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%); pointer-events:none; }
.hbp-section--style-overlay .hbp-card__title a { color:#fff !important; pointer-events:auto; }
.hbp-section--style-overlay .hbp-card__excerpt { color:rgba(255,255,255,0.85) !important; pointer-events:auto; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* 4. Minimalista */
.hbp-section--style-minimal .hbp-card { background:transparent; border:none; border-radius:0; }
.hbp-section--style-minimal .hbp-card__img { border-radius:8px; }
.hbp-section--style-minimal .hbp-card__body { padding:14px 0 0 0; }

/* 5. Horizontal */
@media (min-width: 600px) {
	.hbp-section--style-horizontal .hbp-card { flex-direction:row; align-items:stretch; }
	.hbp-section--style-horizontal .hbp-card__img { width:40%; aspect-ratio:4/3; }
	.hbp-section--style-horizontal .hbp-card__body { width:60%; padding:20px; justify-content:center; }
}

/* 6. Newspaper (Periódico compacta) */
.hbp-section--style-newspaper .hbp-card { flex-direction:row; align-items:center; background:transparent; border:none; border-bottom:1px solid #e5e7eb; border-radius:0; padding:16px 0; }
.hbp-section--style-newspaper .hbp-card:last-child { border-bottom:none; }
.hbp-section--style-newspaper .hbp-card__img { width:90px; height:90px; min-width:90px; border-radius:6px; aspect-ratio:auto; flex-shrink:0; }
.hbp-section--style-newspaper .hbp-card__body { width:auto; flex:1; min-width:0; padding:0 0 0 16px; justify-content:center; }
.hbp-section--style-newspaper .hbp-card__title { margin:0; font-size:16px; }

/* 7. Featured (Grid: Primero grande) */
.hbp-section--style-featured .hbp-card { border:1px solid #e5e7eb; border-radius:12px; }
.hbp-section--style-featured .hbp-card__img img { transition:transform .5s ease; }
.hbp-section--style-featured .hbp-card:hover .hbp-card__img img { transform:scale(1.04); }
.hbp-section--style-featured .hbp-card__body { padding:16px 18px 20px; }
@media (min-width: 768px) {
	.hbp-section--style-featured .hbp-grid { grid-auto-flow: dense; }
	.hbp-section--style-featured .hbp-card:first-child {
		grid-column: span 2; border:none; border-radius:14px; background:#111827; min-height:360px;
	}
	.hbp-section--style-featured .hbp-card:first-child .hbp-card__img { position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; border-radius:0; }
	/* Degradado desde abajo: el texto se lee sin apagar toda la foto. */
	.hbp-section--style-featured .hbp-card:first-child .hbp-card__img::after {
		content:''; position:absolute; inset:0; z-index:1;
		background:linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 38%, rgba(0,0,0,0.10) 70%, rgba(0,0,0,0) 100%);
	}
	/* El cuerpo lleva flex-grow:1 y ocupa toda la tarjeta, así que el texto se baja
	   con justify-content (margin-top:auto no haría nada). */
	.hbp-section--style-featured .hbp-card:first-child .hbp-card__body {
		position:relative; z-index:2; display:flex; flex-direction:column;
		justify-content:flex-end; align-items:flex-start;
		padding:30px 36px 32px; background:none; pointer-events:none;
	}
	/* Rayita de acento sobre el título (usa el color del detalle). */
	.hbp-section--style-featured .hbp-card:first-child .hbp-card__title::before {
		content:''; display:block; width:54px; height:4px; border-radius:2px; margin:0 0 14px;
		background:var(--card-detail, var(--hbp-accent, #2563eb));
	}
	.hbp-section--style-featured .hbp-card:first-child .hbp-card__title { margin:0 0 10px; }
	.hbp-section--style-featured .hbp-card:first-child .hbp-card__title a {
		color:var(--card-detail-text, #ffffff) !important; font-size:30px; line-height:1.2; pointer-events:auto;
		text-shadow:0 2px 12px rgba(0,0,0,0.45);
	}
	.hbp-section--style-featured .hbp-card:first-child .hbp-card__excerpt {
		color:var(--card-detail-text, #ffffff) !important; opacity:.92; font-size:17px; line-height:1.6; margin:0; pointer-events:auto;
		display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
		text-shadow:0 1px 8px rgba(0,0,0,0.45);
	}
}

/* 8. Barra superior de color */
/* Los "detalles" de color (8–21) usan --card-detail / --card-detail-text / --card-detail-bg2
   (los pone PHP desde "Colores del detalle"); si no hay, el color de acento y los valores de siempre. */
.hbp-section--style-accent-top .hbp-card { border:none; border-top:4px solid var(--card-detail, var(--hbp-accent, #2563eb)); border-radius:6px; box-shadow:0 2px 10px rgba(0,0,0,0.06); }
.hbp-section--style-accent-top .hbp-card__body { padding:18px 20px 22px; }
.hbp-section--style-accent-top .hbp-card:hover { box-shadow:0 10px 24px rgba(0,0,0,0.10); }

/* 9. Color sólido */
.hbp-section--style-solid .hbp-card { background:var(--card-detail, var(--hbp-accent, #2563eb)); border:none; border-radius:10px; }
.hbp-section--style-solid .hbp-card__img { margin:10px 10px 0; border-radius:6px; }
.hbp-section--style-solid .hbp-card__body { padding:16px 18px 20px; }
.hbp-section--style-solid .hbp-card:hover { transform:translateY(-3px); box-shadow:0 12px 24px rgba(0,0,0,0.15); }

/* 10. Numerada (número grande sobre la imagen) */
.hbp-section--style-numbered .hbp-grid { counter-reset:hbp-num; }
.hbp-section--style-numbered .hbp-card { counter-increment:hbp-num; border:none; box-shadow:0 2px 10px rgba(0,0,0,0.06); }
.hbp-section--style-numbered .hbp-card__img::after {
	content:counter(hbp-num, decimal-leading-zero);
	position:absolute; top:12px; left:12px; z-index:1;
	min-width:44px; height:44px; padding:0 8px; box-sizing:border-box;
	display:flex; align-items:center; justify-content:center;
	background:var(--card-detail, var(--hbp-accent, #2563eb)); color:var(--card-detail-text, #fff); font-weight:800; font-size:18px; border-radius:8px;
}
.hbp-section--style-numbered .hbp-card__body { padding:16px 18px 20px; }

/* 11. Imagen circular */
.hbp-section--style-circle .hbp-card { align-items:center; text-align:center; border:none; background:transparent; padding-top:8px; }
.hbp-section--style-circle .hbp-card__img { width:150px; height:150px; aspect-ratio:auto !important; border-radius:50%; border:4px solid var(--card-detail, #fff); box-shadow:0 6px 18px rgba(0,0,0,0.12); }
.hbp-section--style-circle .hbp-card__body { align-items:center; padding:16px 8px 0; }

/* 12. Caja superpuesta (el texto se monta sobre la imagen) */
.hbp-section--style-boxed .hbp-card { background:transparent; border:none; overflow:visible; }
.hbp-section--style-boxed .hbp-card__img { border-radius:10px; }
.hbp-section--style-boxed .hbp-card__body { position:relative; z-index:1; flex-grow:0; background:var(--card-detail-bg2, #fff); margin:-40px 16px 0; padding:16px 18px; border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,0.10); }

/* 13. Enmarcada */
.hbp-section--style-framed .hbp-card { padding:10px; border:1px solid #dbe3ee; border-radius:4px; }
.hbp-section--style-framed .hbp-card__img { border-radius:2px; }
.hbp-section--style-framed .hbp-card__body { padding:14px 6px 6px; }
.hbp-section--style-framed .hbp-card:hover { border-color:var(--hbp-accent, #2563eb); }

/* 14. Dividida (imagen + bloque de color) */
.hbp-section--style-split .hbp-card { border:none; border-radius:10px; }
.hbp-section--style-split .hbp-card__body { background:var(--card-detail, var(--hbp-accent, #2563eb)); padding:20px; }
@media (min-width: 600px) {
	.hbp-section--style-split .hbp-card { flex-direction:row; }
	.hbp-section--style-split .hbp-card__img { width:50%; min-height:180px; aspect-ratio:auto !important; }
	.hbp-section--style-split .hbp-card__body { width:50%; justify-content:center; }
}

/* 15. Alternada (clara / color) */
.hbp-section--style-alternating .hbp-card { border:none; border-radius:10px; background:var(--card-detail-bg2, #eff6ff); }
.hbp-section--style-alternating .hbp-card:nth-child(even) { background:var(--card-detail, var(--hbp-accent, #2563eb)); }
.hbp-section--style-alternating .hbp-card__img { margin:10px 10px 0; border-radius:6px; }
.hbp-section--style-alternating .hbp-card__body { padding:16px 18px 20px; }

/* 16. Centrada */
.hbp-section--style-centered .hbp-card { text-align:center; border:none; background:#f8fafc; border-radius:14px; padding:12px; }
.hbp-section--style-centered .hbp-card__img { border-radius:10px; }
.hbp-section--style-centered .hbp-card__body { align-items:center; padding:16px 10px 8px; }
.hbp-section--style-centered .hbp-card__title::after { content:''; display:block; width:36px; height:3px; margin:10px auto 0; border-radius:2px; background:var(--card-detail, var(--hbp-accent, #2563eb)); }

/* 17. Banda de color sobre la imagen */
.hbp-section--style-caption .hbp-card { border:none; border-radius:10px; }
/* Imagen algo más alta para que la banda nunca la tape entera en tarjetas estrechas. */
.hbp-section--style-caption .hbp-card__img { aspect-ratio:4/3 !important; }
.hbp-section--style-caption .hbp-card__body {
	position:absolute; left:0; right:0; bottom:0; z-index:1; padding:12px 14px; pointer-events:none;
	/* --card-band-bg lo pone PHP ("Color de la banda" + opacidad); si no, el acento al 88%. */
	background:var(--hbp-accent, #2563eb);
	background:var(--card-band-bg, color-mix(in srgb, var(--hbp-accent, #2563eb) 88%, transparent));
}
.hbp-section--style-caption .hbp-card__body a { pointer-events:auto; }
.hbp-section--style-caption .hbp-card__title { margin:0 0 2px; font-size:16px; }
/* Misma altura de banda en todas las tarjetas: siempre el espacio de 3 líneas de título
   (los más cortos dejan aire debajo; los que pasen de 3 líneas se cortan con "…"). */
.hbp-section--style-caption .hbp-card__title {
	margin:0; line-height:1.3; min-height:calc(1.3em * 3);
	color:var(--card-title-color, #ffffff); /* también los "…" del recorte */
	display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.hbp-section--style-caption .hbp-card__excerpt { display:none; }

/* 18. Lista numerada */
.hbp-section--style-list-numbered .hbp-grid { counter-reset:hbp-list; gap:0 28px; }
.hbp-section--style-list-numbered .hbp-card { counter-increment:hbp-list; flex-direction:row; align-items:center; gap:14px; background:transparent; border:none; border-bottom:1px solid #e5e7eb; border-radius:0; padding:14px 0; }
/* Número: sin fondo por defecto; con "Color del detalle" aparece un círculo detrás (vars de hbp_detail_style()). */
.hbp-section--style-list-numbered .hbp-card::before {
	content:counter(hbp-list); flex:0 0 40px; width:40px; height:40px; border-radius:50%;
	display:flex; align-items:center; justify-content:center;
	font-size:var(--card-num-size, 30px); font-weight:800; line-height:1;
	background:var(--card-num-bg, transparent); color:var(--card-num-color, var(--hbp-accent, #2563eb));
}
.hbp-section--style-list-numbered .hbp-card__img { width:72px; height:72px; min-width:72px; aspect-ratio:auto !important; border-radius:50%; }
.hbp-section--style-list-numbered .hbp-card__body { padding:0; flex:1; min-width:0; }
.hbp-section--style-list-numbered .hbp-card__title { font-size:16px; margin:0; }
.hbp-section--style-list-numbered .hbp-card__excerpt { display:none; }

/* 19. Fondo suave (tinte del color de acento) */
.hbp-section--style-tint .hbp-card { border:none; border-radius:14px; background:#eff6ff; background:color-mix(in srgb, var(--card-detail, var(--hbp-accent, #2563eb)) 9%, #ffffff); }
.hbp-section--style-tint .hbp-card__img { margin:12px 12px 0; border-radius:10px; }
.hbp-section--style-tint .hbp-card__body { padding:16px 18px 20px; }

/* 20. Contorno de color */
.hbp-section--style-outline .hbp-card { border:2px solid var(--card-detail, var(--hbp-accent, #2563eb)); border-radius:12px; }
.hbp-section--style-outline .hbp-card__title a { color:var(--card-title-color, var(--card-detail, var(--hbp-accent, #2563eb))); }
.hbp-section--style-outline .hbp-card:hover { box-shadow:0 0 0 4px rgba(37,99,235,0.15); box-shadow:0 0 0 4px color-mix(in srgb, var(--card-detail, var(--hbp-accent, #2563eb)) 18%, transparent); }

/* 21. Línea lateral */
.hbp-section--style-side-line .hbp-card { border:none; border-left:4px solid var(--card-detail, var(--hbp-accent, #2563eb)); border-radius:0 8px 8px 0; box-shadow:0 2px 10px rgba(0,0,0,0.05); }
.hbp-section--style-side-line .hbp-card__body { padding:16px 18px; }

/* 22. Póster (imagen vertical) */
.hbp-section--style-poster .hbp-card { background:transparent; border:none; border-radius:0; }
.hbp-section--style-poster .hbp-card__img { aspect-ratio:3/4 !important; border-radius:12px; box-shadow:0 10px 24px rgba(0,0,0,0.14); }
.hbp-section--style-poster .hbp-card__body { padding:14px 2px 0; }
.hbp-section--style-poster .hbp-card__title { font-size:17px; }

/* 23. Cinta diagonal (banda de color cruzando la esquina de la imagen) */
.hbp-section--style-ribbon .hbp-card { border:none; border-radius:10px; box-shadow:0 2px 12px rgba(0,0,0,0.08); }
.hbp-section--style-ribbon .hbp-card__img::after {
	content:''; position:absolute; top:18px; left:-42px; width:150px; height:26px; z-index:1;
	background:var(--card-detail, var(--hbp-accent, #2563eb)); transform:rotate(-45deg); box-shadow:0 2px 6px rgba(0,0,0,0.25);
}
.hbp-section--style-ribbon .hbp-card__body { padding:16px 18px 20px; }

/* 24. Polaroid (marco blanco grueso y ligera inclinación) */
.hbp-section--style-polaroid .hbp-card {
	background:var(--card-detail-bg2, #fff); border:none; border-radius:2px; padding:12px 12px 0;
	box-shadow:0 6px 16px rgba(0,0,0,0.15); transition:transform .25s, box-shadow .25s;
}
.hbp-section--style-polaroid .hbp-card:nth-child(odd)  { transform:rotate(-1.2deg); }
.hbp-section--style-polaroid .hbp-card:nth-child(even) { transform:rotate(1.2deg); }
.hbp-section--style-polaroid .hbp-card:hover { transform:rotate(0) scale(1.02); box-shadow:0 12px 26px rgba(0,0,0,0.2); }
.hbp-section--style-polaroid .hbp-card__img { border-radius:0; }
.hbp-section--style-polaroid .hbp-card__body { padding:14px 4px 18px; text-align:center; }
.hbp-section--style-polaroid .hbp-card__title { font-size:16px; }

/* 25. Zigzag (la imagen cambia de lado en cada tarjeta) */
.hbp-section--style-zigzag .hbp-card { background:transparent; border:none; border-radius:0; padding:26px 0; }
/* Una sola columna pase lo que pase: con 2 o 3 columnas el zigzag no existe. */
.hbp-section--style-zigzag .hbp-grid { grid-template-columns:1fr !important; gap:0; }
.hbp-section--style-zigzag .hbp-card + .hbp-card { border-top:1px solid rgba(15,23,42,.10); }
.hbp-section--style-zigzag .hbp-card__img {
	border-radius:14px; overflow:hidden; box-shadow:0 16px 38px rgba(15,23,42,.16);
}
.hbp-section--style-zigzag .hbp-card__img img { transition:transform .6s cubic-bezier(.2,.7,.3,1); }
.hbp-section--style-zigzag .hbp-card:hover .hbp-card__img img { transform:scale(1.05); }
/* Filete de acento como ancla visual de cada fila. */
.hbp-section--style-zigzag .hbp-card__title::before {
	content:''; display:block; width:44px; height:3px; border-radius:2px; margin:0 0 14px;
	background:var(--card-detail, var(--hbp-accent, #2563eb));
}
.hbp-section--style-zigzag .hbp-card__title { margin:0 0 10px; line-height:1.25; }
.hbp-section--style-zigzag .hbp-card__excerpt { font-size:16px; line-height:1.7; max-width:60ch; }
@media (min-width: 600px) {
	.hbp-section--style-zigzag .hbp-card {
		flex-direction:row; align-items:center; gap:clamp(24px, 7%, 60px); padding:38px 0;
	}
	.hbp-section--style-zigzag .hbp-card:nth-child(even) { flex-direction:row-reverse; }
	/* Proporcion fija: todas las filas miden igual y la columna de texto no baila. */
	.hbp-section--style-zigzag .hbp-card__img {
		flex:0 0 52%; width:52%; min-height:0; aspect-ratio:16 / 10 !important;
	}
	.hbp-section--style-zigzag .hbp-card__body { flex:1; min-width:0; width:auto; padding:0; justify-content:center; }
	.hbp-section--style-zigzag .hbp-card__title { font-size:clamp(22px, 6%, 34px); }
}

/* 26. Texto al pasar el ratón (el extracto se despliega sobre la imagen) */
.hbp-section--style-hover-reveal .hbp-card { border:none; border-radius:12px; min-height:300px; background:#0f172a; }
.hbp-section--style-hover-reveal .hbp-card__img { position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto !important; opacity:.8; }
.hbp-section--style-hover-reveal .hbp-card:hover .hbp-card__img { opacity:.6; }
.hbp-section--style-hover-reveal .hbp-card__body {
	position:relative; z-index:2; margin-top:auto; padding:18px 20px;
	background:linear-gradient(to top, var(--card-detail, rgba(15,23,42,.95)) 0%, transparent 100%);
}
.hbp-section--style-hover-reveal .hbp-card__excerpt {
	max-height:0; opacity:0; overflow:hidden; margin:0;
	transition:max-height .35s ease, opacity .3s ease, margin .3s ease;
}
.hbp-section--style-hover-reveal .hbp-card:hover .hbp-card__excerpt { max-height:120px; opacity:1; margin-top:8px; }

/* 27. Apilada (parece un montón de hojas) */
/* Las "hojas" son sombras apiladas (no pseudo-elementos con z-index negativo,
   que quedarían detrás del fondo de la sección). */
.hbp-section--style-stacked .hbp-card {
	border:none; border-radius:10px; background:#fff; margin-bottom:14px;
	box-shadow:
		0 7px 0 -3px var(--card-detail, #e2e8f0),
		0 8px 2px -3px rgba(0,0,0,0.12),
		0 14px 0 -6px var(--card-detail, #e2e8f0),
		0 15px 2px -6px rgba(0,0,0,0.10);
}
.hbp-section--style-stacked .hbp-card__img { border-radius:10px 10px 0 0; }
.hbp-section--style-stacked .hbp-card__body { padding:16px 18px 20px; }

/* 28. Línea de tiempo (línea vertical con un punto por tarjeta) */
.hbp-section--style-timeline .hbp-grid { gap:0; }
.hbp-section--style-timeline .hbp-card {
	flex-direction:row; align-items:flex-start; gap:16px; background:transparent; border:none; border-radius:0;
	overflow:visible; padding:0 0 26px 26px;
}
.hbp-section--style-timeline .hbp-card::before {
	content:''; position:absolute; left:0; top:6px; bottom:0; width:2px; opacity:.35;
	background:var(--card-detail, var(--hbp-accent, #2563eb));
}
.hbp-section--style-timeline .hbp-card:last-child::before { display:none; }
.hbp-section--style-timeline .hbp-card::after {
	content:''; position:absolute; left:-5px; top:4px; width:12px; height:12px; border-radius:50%;
	background:var(--card-detail, var(--hbp-accent, #2563eb));
}
.hbp-section--style-timeline .hbp-card__img { width:110px; min-width:110px; height:80px; aspect-ratio:auto !important; border-radius:8px; }
.hbp-section--style-timeline .hbp-card__body { padding:0; }
.hbp-section--style-timeline .hbp-card__title { font-size:16px; margin:0 0 4px; }

/* 29. Ticket (línea perforada y muescas laterales) */
.hbp-section--style-ticket .hbp-card { border:none; border-radius:12px; background:#fff; overflow:visible; box-shadow:0 2px 12px rgba(0,0,0,0.08); }
.hbp-section--style-ticket .hbp-card__img { border-radius:12px 12px 0 0; }
.hbp-section--style-ticket .hbp-card__body { position:relative; padding:20px 18px 18px; border-top:2px dashed var(--card-detail, #cbd5e1); }
.hbp-section--style-ticket .hbp-card__body::before,
.hbp-section--style-ticket .hbp-card__body::after {
	content:''; position:absolute; top:-11px; width:20px; height:20px; border-radius:50%;
	background:var(--card-detail-bg2, #f1f5f9);
}
.hbp-section--style-ticket .hbp-card__body::before { left:-10px; }
.hbp-section--style-ticket .hbp-card__body::after  { right:-10px; }

/* 30. Sello postal (borde perforado en los cuatro lados) */
.hbp-section--style-stamp .hbp-card {
	--stamp-r: 5px;   /* radio de las perforaciones */
	--stamp-s: 18px;  /* separación entre perforaciones */
	background:var(--card-detail-bg2, #ffffff); border:none; border-radius:0; padding:10px;
	filter:drop-shadow(0 5px 12px rgba(0,0,0,0.16));
	-webkit-mask:
		radial-gradient(var(--stamp-r) at 50% 0,    #0000 98%, #000) 50% 0 / var(--stamp-s) 100%,
		radial-gradient(var(--stamp-r) at 50% 100%, #0000 98%, #000) 50% 0 / var(--stamp-s) 100%,
		radial-gradient(var(--stamp-r) at 0 50%,    #0000 98%, #000) 0 50% / 100% var(--stamp-s),
		radial-gradient(var(--stamp-r) at 100% 50%, #0000 98%, #000) 0 50% / 100% var(--stamp-s);
	-webkit-mask-composite: source-in;
	mask:
		radial-gradient(var(--stamp-r) at 50% 0,    #0000 98%, #000) 50% 0 / var(--stamp-s) 100%,
		radial-gradient(var(--stamp-r) at 50% 100%, #0000 98%, #000) 50% 0 / var(--stamp-s) 100%,
		radial-gradient(var(--stamp-r) at 0 50%,    #0000 98%, #000) 0 50% / 100% var(--stamp-s),
		radial-gradient(var(--stamp-r) at 100% 50%, #0000 98%, #000) 0 50% / 100% var(--stamp-s);
	mask-composite: intersect;
}
.hbp-section--style-stamp .hbp-card__img { border-radius:0; }
.hbp-section--style-stamp .hbp-card__body { padding:14px 10px 18px; text-align:center; }
.hbp-section--style-stamp .hbp-card__title { font-size:16px; }

/* 31. Nota adhesiva (esquina doblada y ligera inclinación) */
.hbp-section--style-sticky .hbp-card {
	background:var(--card-detail-bg2, #fef9c3); border:none; border-radius:0; padding:14px;
	background-image:linear-gradient(315deg, rgba(0,0,0,0.13) 26px, transparent 26px);
	clip-path:polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
	box-shadow:2px 4px 14px rgba(0,0,0,0.16); transition:transform .25s;
}
.hbp-section--style-sticky .hbp-card:nth-child(odd)  { transform:rotate(-1.4deg); }
.hbp-section--style-sticky .hbp-card:nth-child(even) { transform:rotate(1.4deg); }
.hbp-section--style-sticky .hbp-card:hover { transform:rotate(0) scale(1.02); }
.hbp-section--style-sticky .hbp-card__img { border-radius:2px; }
.hbp-section--style-sticky .hbp-card__body { padding:14px 6px 30px; }

/* 32. Cómic (borde grueso y sombra dura de color) */
.hbp-section--style-comic .hbp-card {
	background:#ffffff; border:3px solid #111827; border-radius:4px;
	box-shadow:6px 6px 0 var(--card-detail, var(--hbp-accent, #2563eb));
	transition:transform .2s, box-shadow .2s;
}
.hbp-section--style-comic .hbp-card:hover { transform:translate(-3px,-3px); box-shadow:9px 9px 0 var(--card-detail, var(--hbp-accent, #2563eb)); }
.hbp-section--style-comic .hbp-card__img { border-radius:0; border-bottom:3px solid #111827; }
.hbp-section--style-comic .hbp-card__body { padding:14px 16px 18px; }
.hbp-section--style-comic .hbp-card__title { font-size:17px; font-weight:800; text-transform:uppercase; letter-spacing:.3px; line-height:1.25; }

/* 33. Tira de película (perforaciones arriba y abajo) */
.hbp-section--style-filmstrip .hbp-card { background:#111827; border:none; border-radius:6px; overflow:hidden; }
.hbp-section--style-filmstrip .hbp-card::before,
.hbp-section--style-filmstrip .hbp-card::after {
	content:''; position:absolute; left:0; right:0; height:20px; z-index:2;
	box-sizing:border-box; padding:5px 6px; background-clip:content-box;
	background-image:repeating-linear-gradient(90deg, transparent 0 7px, var(--card-detail-bg2, #e5e7eb) 7px 17px);
}
.hbp-section--style-filmstrip .hbp-card::before { top:0; }
.hbp-section--style-filmstrip .hbp-card::after  { bottom:0; }
.hbp-section--style-filmstrip .hbp-card__img { margin:24px 10px 0; border-radius:2px; }
.hbp-section--style-filmstrip .hbp-card__body { padding:12px 14px 30px; }

/* 34. Neón (borde y título que brillan) */
.hbp-section--style-neon .hbp-card {
	background:#0b1020; border:2px solid var(--card-detail, #22d3ee); border-radius:14px;
	box-shadow:0 0 18px -3px var(--card-detail, #22d3ee), inset 0 0 24px -14px var(--card-detail, #22d3ee);
	transition:box-shadow .25s;
}
.hbp-section--style-neon .hbp-card:hover { box-shadow:0 0 28px 0 var(--card-detail, #22d3ee), inset 0 0 26px -8px var(--card-detail, #22d3ee); }
.hbp-section--style-neon .hbp-card__img { border-radius:11px 11px 0 0; opacity:.9; }
.hbp-section--style-neon .hbp-card__body { padding:16px 18px 20px; }
.hbp-section--style-neon .hbp-card__title a { color:var(--card-detail-text, #e0f2fe); text-shadow:0 0 10px var(--card-detail, #22d3ee); }
.hbp-section--style-neon .hbp-card__title a:hover { color:var(--card-detail-text, #ffffff); }
.hbp-section--style-neon .hbp-card__excerpt { color:#94a3b8; }

/* 35. Papel rasgado (borde inferior irregular) */
.hbp-section--style-torn .hbp-card {
	background:var(--card-detail-bg2, #ffffff); border:none; border-radius:0; padding-bottom:16px;
	filter:drop-shadow(0 6px 14px rgba(0,0,0,0.14));
	clip-path:polygon(0 0, 100% 0,
		100% calc(100% - 14px), 90% 100%, 80% calc(100% - 9px), 70% calc(100% - 2px),
		60% calc(100% - 13px), 50% calc(100% - 4px), 40% calc(100% - 12px), 30% calc(100% - 3px),
		20% calc(100% - 11px), 10% calc(100% - 5px), 0 calc(100% - 14px));
}
.hbp-section--style-torn .hbp-card__img { border-radius:0; }
.hbp-section--style-torn .hbp-card__body { padding:14px 16px 10px; }

/* 36. Ventana retro (barra de ventana con tres puntos) */
.hbp-section--style-window-frame .hbp-card {
	background:#ffffff; border:1px solid #cbd5e1; border-radius:10px; padding-top:30px;
	box-shadow:0 8px 20px rgba(0,0,0,0.12);
}
.hbp-section--style-window-frame .hbp-card::before {
	content:''; position:absolute; top:0; left:0; right:0; height:30px; z-index:1;
	background:var(--card-detail-bg2, #f1f5f9); border-bottom:1px solid #cbd5e1;
}
.hbp-section--style-window-frame .hbp-card::after {
	content:''; position:absolute; top:11px; left:12px; width:8px; height:8px; border-radius:50%; z-index:2;
	background:var(--card-detail, #ef4444); box-shadow:14px 0 0 #f59e0b, 28px 0 0 #22c55e;
}
.hbp-section--style-window-frame .hbp-card__img { border-radius:0; }
.hbp-section--style-window-frame .hbp-card__body { padding:14px 16px 18px; }

/* Sombra suave opcional (casilla "Sombra suave" de cada bloque).
   Va después de todos los estilos para poder imponerse. Se saltan los estilos
   que usan box-shadow como parte del dibujo (27 hojas, 32 sombra dura, 34 neón). */
.hbp-section--soft-shadow:not(.hbp-section--style-stacked):not(.hbp-section--style-comic):not(.hbp-section--style-neon) .hbp-card {
	box-shadow:0 6px 18px rgba(0,0,0,0.09); transition:box-shadow .25s ease;
}
.hbp-section--soft-shadow:not(.hbp-section--style-stacked):not(.hbp-section--style-comic):not(.hbp-section--style-neon) .hbp-card:hover {
	box-shadow:0 14px 30px rgba(0,0,0,0.16);
}
/* Estilos recortados o con filtro: la sombra va en el filtro, no en box-shadow. */
.hbp-section--soft-shadow.hbp-section--style-stamp .hbp-card,
.hbp-section--soft-shadow.hbp-section--style-torn .hbp-card { filter:drop-shadow(0 8px 18px rgba(0,0,0,0.22)); }

/* Texto claro sobre fondos de color (9, 14, 15, 17, 26, 33) */
.hbp-section--style-filmstrip .hbp-card__title a,
.hbp-section--style-hover-reveal .hbp-card__title a,
.hbp-section--style-solid .hbp-card__title a,
.hbp-section--style-split .hbp-card__title a,
.hbp-section--style-alternating .hbp-card:nth-child(even) .hbp-card__title a,
.hbp-section--style-caption .hbp-card__title a { color:var(--card-title-color, var(--card-detail-text, #ffffff)); }
.hbp-section--style-filmstrip .hbp-card__title a:hover,
.hbp-section--style-hover-reveal .hbp-card__title a:hover,
.hbp-section--style-solid .hbp-card__title a:hover,
.hbp-section--style-split .hbp-card__title a:hover,
.hbp-section--style-alternating .hbp-card:nth-child(even) .hbp-card__title a:hover,
.hbp-section--style-caption .hbp-card__title a:hover { color:var(--card-detail-text, #ffffff); opacity:.85; }
.hbp-section--style-filmstrip .hbp-card__excerpt,
.hbp-section--style-hover-reveal .hbp-card__excerpt,
.hbp-section--style-solid .hbp-card__excerpt,
.hbp-section--style-split .hbp-card__excerpt,
.hbp-section--style-alternating .hbp-card:nth-child(even) .hbp-card__excerpt,
.hbp-section--style-caption .hbp-card__excerpt { color:var(--card-detail-text, #ffffff); opacity:.88; }
.hbp-section--style-solid .hbp-card__cta,
.hbp-section--style-split .hbp-card__cta,
.hbp-section--style-alternating .hbp-card:nth-child(even) .hbp-card__cta,
.hbp-section--style-caption .hbp-card__cta { --btn-bg:#ffffff; --btn-text:var(--card-detail, var(--hbp-accent, #2563eb)); --btn-border:#ffffff; }

/* Responsive hiding by count */
@media (max-width: 767px) {
	.hbp-card--hide-mobile { display:none; }
}
@media (min-width: 768px) {
	.hbp-card--hide-desktop { display:none; }
}

/* Other categories */
.hbp-other-list { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px 18px; font-size: var(--oc-link-size, 16px); }
.hbp-other-list a { color: var(--oc-link, var(--hbp-primary)); text-decoration:none; }
.hbp-other-list a:hover { color: var(--hbp-accent); }
.hbp-other-list span { color: var(--oc-count, #4b5563); }

.hbp-other-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:10px; }
.hbp-other-chip {
	display:flex; flex-direction:column; padding:12px 14px;
	background: var(--oc-chip-bg, #f9fafb); border:1px solid var(--oc-chip-border, #e5e7eb); border-radius:8px;
	text-decoration:none; color: var(--oc-link, var(--hbp-primary)); font-size: var(--oc-link-size, 16px);
}
.hbp-other-chip small { color: var(--oc-count, #4b5563); font-size:12px; margin-top:2px; }
.hbp-other-chip:hover { border-color: var(--hbp-accent); }

/* ==========================================================================
   Bloque de titulo de pagina (pestana "Titulos") — 11 estilos
   El contenedor exterior lleva el ancho y el margen lateral; el interior
   lleva la decoracion de cada estilo, para que en movil nunca toque el borde.
   ========================================================================== */
/* Sin margen inferior: el bloque de titulo no aporta separacion externa. La
   seccion que va detras ya trae su propio padding-top calc(--hbp-gap/2)
   DENTRO de su fondo, asi que el margen solo creaba una banda vacia con el
   color de fondo de la pagina entre el titulo y la seccion siguiente. */
.hbp-ptitle { max-width:var(--hbp-max, 1200px); margin:0 auto; padding:0 20px; box-sizing:border-box; }
.hbp-ptitle__title { margin:0; font-size:var(--pt-size, 42px); line-height:1.15; color:var(--pt-color, var(--hbp-primary, #111827)); }
.hbp-ptitle__desc { margin:12px 0 0; font-size:var(--pt-desc-size, 18px); line-height:1.6; color:var(--pt-desc-color, #4b5563); max-width:70ch; }
.hbp-ptitle__desc p { margin:0 0 8px; }
.hbp-ptitle__desc p:last-child { margin-bottom:0; }
.hbp-ptitle__kicker { display:inline-block; margin:0 0 12px; font-size:13px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--pt-accent, var(--hbp-accent, #2563eb)); }
.hbp-ptitle--align-center .hbp-ptitle__inner { text-align:center; }
.hbp-ptitle--align-center .hbp-ptitle__desc { margin-left:auto; margin-right:auto; }
.hbp-ptitle--align-right .hbp-ptitle__inner { text-align:right; }
.hbp-ptitle--align-right .hbp-ptitle__desc { margin-left:auto; }

/* 2. Rayita debajo */
.hbp-ptitle--style-centered-line .hbp-ptitle__title::after {
	content:''; display:block; width:64px; height:4px; border-radius:2px; margin:16px 0 0;
	background:var(--pt-accent, var(--hbp-accent, #2563eb));
}
.hbp-ptitle--style-centered-line.hbp-ptitle--align-center .hbp-ptitle__title::after { margin-left:auto; margin-right:auto; }
.hbp-ptitle--style-centered-line.hbp-ptitle--align-right  .hbp-ptitle__title::after { margin-left:auto; }

/* 3. Franja de color */
.hbp-ptitle--style-band .hbp-ptitle__inner {
	background:var(--pt-bg, var(--hbp-accent, #2563eb)); border-radius:var(--pt-radius, 10px); padding:34px 32px;
}

/* 4. Linea lateral */
.hbp-ptitle--style-side-line .hbp-ptitle__inner {
	border-left:6px solid var(--pt-accent, var(--hbp-accent, #2563eb)); padding:4px 0 4px 22px;
}
.hbp-ptitle--style-side-line.hbp-ptitle--align-right .hbp-ptitle__inner {
	border-left:none; border-right:6px solid var(--pt-accent, var(--hbp-accent, #2563eb)); padding:4px 22px 4px 0;
}

/* 5. Subrayado grueso (marcador sobre el propio texto) */
.hbp-ptitle--style-underline .hbp-ptitle__title {
	display:inline; padding:0 6px; box-decoration-break:clone; -webkit-box-decoration-break:clone;
	background-image:linear-gradient(transparent 62%, var(--pt-accent, var(--hbp-accent, #2563eb)) 62%);
	background-repeat:no-repeat;
}
.hbp-ptitle--style-underline .hbp-ptitle__desc { margin-top:18px; }

/* 6. Revista (mayusculas entre filetes) */
.hbp-ptitle--style-magazine .hbp-ptitle__inner {
	border-top:3px solid var(--pt-color, var(--hbp-primary, #111827));
	border-bottom:1px solid var(--pt-color, var(--hbp-primary, #111827));
	padding:18px 0 16px;
}
.hbp-ptitle--style-magazine .hbp-ptitle__title { text-transform:uppercase; font-weight:800; letter-spacing:.05em; line-height:1.05; }

/* 7. Degradado */
.hbp-ptitle--style-gradient .hbp-ptitle__inner {
	background:linear-gradient(135deg, var(--pt-bg, var(--hbp-accent, #2563eb)), var(--pt-bg2, #4f46e5));
	border-radius:var(--pt-radius, 10px); padding:38px 32px;
}

/* 8. Imagen de fondo (la capa oscura va como segunda capa del background,
   no como pseudo-elemento, para que nunca tape el texto) */
.hbp-ptitle--style-image .hbp-ptitle__inner {
	background-image:linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), var(--pt-image, none);
	background-size:cover; background-position:center; background-color:var(--pt-bg, #1f2937);
	border-radius:var(--pt-radius, 10px); padding:58px 32px;
}

/* 9. Recuadro contorneado */
.hbp-ptitle--style-outline .hbp-ptitle__inner {
	border:3px solid var(--pt-accent, var(--hbp-accent, #2563eb)); border-radius:var(--pt-radius, 10px); padding:30px 32px;
}

/* 10. Con etiqueta encima */
.hbp-ptitle--style-kicker .hbp-ptitle__kicker {
	background:var(--pt-accent, var(--hbp-accent, #2563eb)); color:#fff; padding:5px 14px; border-radius:999px; letter-spacing:.08em;
}

/* 11. Dividido (titulo a un lado, descripcion al otro) */
.hbp-ptitle--style-split .hbp-ptitle__desc { margin-top:14px; }
@media (min-width: 820px) {
	.hbp-ptitle--style-split .hbp-ptitle__inner { display:grid; grid-template-columns:1fr 1fr; gap:32px; align-items:end; }
	.hbp-ptitle--style-split .hbp-ptitle__kicker { grid-column:1 / -1; }
	.hbp-ptitle--style-split .hbp-ptitle__desc { margin:0 0 6px; max-width:none; }
}

/* ==========================================================================
   Dark Mode Overrides
   ========================================================================== */
.hbp-home--dark {
	--hbp-bg: #111827 !important;
	--hbp-text: #f3f4f6 !important;
}
body.hbp-no-theme-header.hbp-home--dark, 
.hbp-home--dark {
	background-color: var(--hbp-bg);
	color: var(--hbp-text);
}

.hbp-home--dark .hbp-card {
	background-color: #1f2937;
	border-color: #374151;
}
.hbp-home--dark .hbp-card__img {
	background-color: #374151;
}
.hbp-home--dark .hbp-card__noimg {
	background: linear-gradient(135deg, #374151, #1f2937);
}
.hbp-home--dark .hbp-card__excerpt {
	color: #9ca3af;
}

/* Minimal / Newspaper borders */
.hbp-home--dark .hbp-section--style-minimal .hbp-card,
.hbp-home--dark .hbp-section--style-newspaper .hbp-card {
	background-color: transparent;
}
.hbp-home--dark .hbp-section--style-newspaper .hbp-card {
	border-bottom-color: #374151;
}

/* Other chips */
.hbp-home--dark .hbp-other-chip {
	--oc-chip-bg: #1f2937;
	--oc-chip-border: #374151;
	--oc-count: #cbd5e1;
}
.hbp-home--dark .hbp-other-list a { color: var(--oc-link, #93c5fd); }
.hbp-home--dark .hbp-other-list span { color: var(--oc-count, #cbd5e1); }

/* Dark mode — card styles 8–22 (must come after the generic dark card rules) */
.hbp-home--dark .hbp-section--style-alternating .hbp-card { background-color:var(--card-detail-bg2, #1f2937); }
.hbp-home--dark .hbp-section--style-solid .hbp-card,
.hbp-home--dark .hbp-section--style-alternating .hbp-card:nth-child(even) { background-color:var(--card-detail, var(--hbp-accent, #2563eb)); }
.hbp-home--dark .hbp-section--style-solid .hbp-card__excerpt,
.hbp-home--dark .hbp-section--style-split .hbp-card__excerpt,
.hbp-home--dark .hbp-section--style-alternating .hbp-card:nth-child(even) .hbp-card__excerpt,
.hbp-home--dark .hbp-section--style-caption .hbp-card__excerpt { color:var(--card-detail-text, #ffffff); opacity:.88; }
.hbp-home--dark .hbp-section--style-circle .hbp-card,
.hbp-home--dark .hbp-section--style-boxed .hbp-card,
.hbp-home--dark .hbp-section--style-list-numbered .hbp-card,
.hbp-home--dark .hbp-section--style-poster .hbp-card { background-color:transparent; }
.hbp-home--dark .hbp-section--style-circle .hbp-card__img { border-color:var(--card-detail, #1f2937); }
.hbp-home--dark .hbp-section--style-boxed .hbp-card__body { background:var(--card-detail-bg2, #1f2937); }
.hbp-home--dark .hbp-section--style-list-numbered .hbp-card { border-bottom-color:#374151; }
.hbp-home--dark .hbp-section--style-tint .hbp-card { background-color:color-mix(in srgb, var(--card-detail, var(--hbp-accent, #2563eb)) 18%, #111827); }
.hbp-home--dark .hbp-section--style-accent-top .hbp-card { border-top-color:var(--card-detail, var(--hbp-accent, #2563eb)); }
.hbp-home--dark .hbp-section--style-outline .hbp-card { border-color:var(--card-detail, var(--hbp-accent, #2563eb)); }
.hbp-home--dark .hbp-section--style-side-line .hbp-card { border-left-color:var(--card-detail, var(--hbp-accent, #2563eb)); }
.hbp-home--dark .hbp-section--style-zigzag .hbp-card + .hbp-card { border-top-color:rgba(255,255,255,.12); }
.hbp-home--dark .hbp-section--style-zigzag .hbp-card,
.hbp-home--dark .hbp-section--style-timeline .hbp-card { background-color:transparent; }
.hbp-home--dark .hbp-section--style-polaroid .hbp-card { background-color:var(--card-detail-bg2, #1f2937); }
.hbp-home--dark .hbp-section--style-stacked .hbp-card::before,
.hbp-home--dark .hbp-section--style-stacked .hbp-card::after { background:var(--card-detail, #374151); }
.hbp-home--dark .hbp-section--style-ticket .hbp-card__body::before,
.hbp-home--dark .hbp-section--style-ticket .hbp-card__body::after { background:var(--card-detail-bg2, #111827); }
.hbp-home--dark .hbp-section--style-hover-reveal .hbp-card__excerpt { color:var(--card-detail-text, #ffffff); opacity:.88; }

/* Dark mode — estilos 30–36 */
.hbp-home--dark .hbp-section--style-stamp .hbp-card,
.hbp-home--dark .hbp-section--style-torn .hbp-card { background-color:var(--card-detail-bg2, #1f2937); }
.hbp-home--dark .hbp-section--style-sticky .hbp-card { background-color:var(--card-detail-bg2, #713f12); }
.hbp-home--dark .hbp-section--style-comic .hbp-card { background-color:#1f2937; border-color:#f3f4f6; }
.hbp-home--dark .hbp-section--style-comic .hbp-card__img { border-bottom-color:#f3f4f6; }
.hbp-home--dark .hbp-section--style-filmstrip .hbp-card,
.hbp-home--dark .hbp-section--style-neon .hbp-card { border-color:transparent; }
.hbp-home--dark .hbp-section--style-neon .hbp-card { border-color:var(--card-detail, #22d3ee); }
.hbp-home--dark .hbp-section--style-window-frame .hbp-card { background-color:#1f2937; border-color:#374151; }
.hbp-home--dark .hbp-section--style-window-frame .hbp-card::before { background:var(--card-detail-bg2, #374151); border-bottom-color:#4b5563; }


/* Bloque de titulo de pagina */
.hbp-home--dark .hbp-ptitle__title { color:var(--pt-color, #f3f4f6); }
.hbp-home--dark .hbp-ptitle__desc  { color:var(--pt-desc-color, #cbd5e1); }
.hbp-home--dark .hbp-ptitle--style-magazine .hbp-ptitle__inner { border-color:var(--pt-color, #6b7280); }
