/* =========================================================
   Hache Beauty — estilos del tema
   Paleta y tipografía según el Manual de identidad (nov. 2026)
   ========================================================= */

/* ---------- Fuentes (locales) ---------- */
@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-700-italic.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--lila-niebla: #F6EFFC;
	--lila-suave: #ECE0F9;
	--lila-bruma: #E3D3F5;
	--lila-hoja: #B79CE0;
	--violeta-medio: #6E5797;
	--violeta: #5A3D86;
	--violeta-profundo: #4B2F75;

	--bg: var(--lila-niebla);
	--fg: var(--violeta);
	--primary: var(--violeta-profundo);
	--primary-10: rgb(75 47 117 / .10);
	--primary-5: rgb(75 47 117 / .05);
	--muted-fg: var(--violeta-medio);
	--tint: rgb(236 224 249 / .30);
	--border: #E0D2F2;
	--card: #fff;

	--font-sans: "Jost", Helvetica, Arial, sans-serif;
	--font-display: "Cormorant Garamond", Georgia, serif;

	--r-sm: 10px;
	--r-md: 12px;
	--r-lg: 16px;
	--r-xl: 18px;

	--shadow-sm: 0 1px 2px 0 rgb(75 47 117 / .04), 0 1px 3px 0 rgb(75 47 117 / .06);
	--shadow-md: 0 4px 12px -2px rgb(75 47 117 / .08), 0 2px 6px -2px rgb(75 47 117 / .06);
	--shadow-lg: 0 18px 40px -12px rgb(75 47 117 / .18), 0 6px 14px -6px rgb(75 47 117 / .08);

	--ease: cubic-bezier(.2, .7, .2, 1);
	--fast: 150ms;
	--normal: 250ms;

	--header-h: 64px;
}
@media (min-width: 640px) { :root { --header-h: 80px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--fg);
	background-color: var(--lila-niebla);
	background-image: linear-gradient(160deg, var(--lila-niebla) 0%, var(--lila-suave) 55%, var(--lila-bruma) 100%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--violeta-profundo); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgb(183 156 224 / .4); color: var(--violeta-profundo); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--lila-hoja); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--violeta-medio); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.hb-skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 9999px; }
.hb-skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.hb-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.hb-container--narrow { max-width: 800px; }
@media (min-width: 640px) { .hb-container { padding-inline: 24px; } }

.hb-main { min-height: 100vh; }
.hb-page { padding-top: calc(var(--header-h) + 32px); padding-bottom: 80px; }
.hb-page__head { text-align: center; margin-bottom: 56px; }
.hb-page__head .hb-lead { max-width: 42rem; margin: 16px auto 0; }

.hb-section { padding-block: 80px; }
.hb-section-sm { padding-block: 40px; }
.hb-section--tint { background: var(--tint); }
@media (min-width: 640px) { .hb-section { padding-block: 112px; } }
.hb-section__head { text-align: center; margin-bottom: 56px; }
.hb-section__head p { margin: 16px auto 0; max-width: 42rem; color: var(--muted-fg); }

.hb-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hb-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
	.hb-grid--2, .hb-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.hb-grid--wide { gap: 32px; }
}
@media (min-width: 1024px) {
	.hb-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.hb-grid--4 { grid-template-columns: repeat(4, 1fr); }
	.hb-grid--wide { gap: 48px; }
}
/* En portada el blog muestra 3 en columnas desde tablet */
.hb-section .hb-grid--3 { }
@media (min-width: 768px) { .hb-section--tint .hb-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.hb-stack > * + * { margin-top: 24px; }
.hb-center { text-align: center; }
.hb-mt { margin-top: 40px; }
.hb-mb { margin-bottom: 56px; }
.hb-mb-sm { margin-bottom: 32px; }

/* ---------- Tipografía ---------- */
.hb-display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; color: var(--violeta-profundo); }
.hb-display--xl { font-size: 2.25rem; }
.hb-display--lg { font-size: 1.875rem; line-height: 1.15; }
.hb-display--md { font-size: 1.5rem; }
.hb-display--sm { font-size: 1.25rem; font-weight: 600; }
.hb-display--xs { font-size: 1.125rem; font-weight: 600; }
@media (min-width: 640px) {
	.hb-display--xl { font-size: 3rem; }
	.hb-display--lg { font-size: 2.25rem; }
	.hb-display--md { font-size: 1.875rem; }
}
.hb-hero .hb-display--xl { line-height: 1.1; }
@media (min-width: 1024px) { .hb-hero .hb-display--xl { font-size: 3.75rem; } }
.hb-accent { color: var(--primary); }
.hb-lead { font-size: 1.125rem; line-height: 1.65; color: var(--muted-fg); }
.hb-muted { color: var(--muted-fg); }
.hb-small { font-size: .875rem; }
.hb-xsmall { font-size: .75rem; }
.hb-muted strong { color: var(--fg); font-weight: 500; }
.hb-eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.hb-subhead { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--violeta-profundo); margin-bottom: 8px; }
.hb-subhead .hb-icon { width: 16px; height: 16px; color: var(--primary); }

/* ---------- Iconos ---------- */
.hb-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Componentes ---------- */
.hb-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9999px; background: var(--primary-10); color: var(--primary); font-size: .875rem; font-weight: 500; margin-bottom: 16px; }
.hb-pill .hb-icon { width: 14px; height: 14px; }
.hb-stack > .hb-pill { margin-bottom: 0; }

.hb-tag { display: inline-block; padding: 2px 8px; border-radius: 9999px; background: var(--primary-10); color: var(--primary); font-weight: 500; }

.hb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 40px; padding: 0 16px; border-radius: 9999px; border: 1px solid transparent;
	font-size: .875rem; font-weight: 500; white-space: nowrap; cursor: pointer;
	transition: background-color var(--fast), box-shadow var(--fast), border-color var(--fast), transform var(--fast);
	-webkit-tap-highlight-color: transparent;
}
.hb-btn:active { transform: scale(.98); }
.hb-btn[disabled] { opacity: .5; pointer-events: none; }
.hb-btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.hb-btn--primary:hover { background: rgb(75 47 117 / .9); box-shadow: var(--shadow-md); }
.hb-btn--outline { background: var(--lila-niebla); border-color: var(--border); color: var(--fg); box-shadow: var(--shadow-sm); }
.hb-btn--outline:hover { background: var(--lila-bruma); border-color: var(--lila-bruma); color: var(--violeta-profundo); }
.hb-btn--ghost { color: var(--muted-fg); }
.hb-btn--ghost:hover { background: var(--lila-bruma); color: var(--violeta-profundo); }
.hb-btn--sm { height: 36px; }
.hb-btn--lg { height: 44px; padding: 0 28px; font-size: 1rem; }
.hb-btn--block { display: flex; width: 100%; margin-top: 8px; }

.hb-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.hb-actions--center { justify-content: center; }
@media (min-width: 640px) { .hb-actions { flex-direction: row; } }

.hb-card { display: block; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: box-shadow var(--normal), transform var(--normal); }
a.hb-card:hover, .hb-feature:hover { box-shadow: var(--shadow-md); }

.hb-feature { padding: 24px; height: 100%; }
.hb-feature p { font-size: .875rem; line-height: 1.65; color: var(--muted-fg); }
.hb-feature__icon { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--primary-10); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; transition: background-color var(--normal); }
.hb-feature:hover .hb-feature__icon { background: rgb(75 47 117 / .2); }
.hb-feature__icon .hb-icon { width: 20px; height: 20px; }
.hb-feature__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 8px; }
.hb-feature--center { text-align: center; padding: 32px; }
.hb-feature__icon--round { width: 56px; height: 56px; border-radius: 9999px; margin-inline: auto; margin-bottom: 20px; }
.hb-feature__icon--round .hb-icon { width: 24px; height: 24px; }
.hb-step { width: 32px; height: 32px; border-radius: 9999px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .875rem; font-weight: 500; margin-bottom: 16px; }

/* Producto */
.hb-product { overflow: hidden; border-radius: var(--r-lg); }
.hb-product:hover { box-shadow: var(--shadow-lg); }
.hb-product__media { aspect-ratio: 4 / 5; background: rgb(236 224 249 / .4); border-radius: inherit; overflow: hidden; }
.hb-product .hb-product__media { border-radius: 0; }
.hb-product__media img { width: 100%; height: 100%; object-fit: contain; }
.hb-product__media--lg { max-width: 28rem; margin-inline: auto; border-radius: var(--r-lg); }
.hb-product__body { padding: 24px; }
.hb-product__body > * + * { margin-top: 12px; }
.hb-product__body .hb-eyebrow { margin-bottom: 0; }
.hb-product__name { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; }
.hb-product__body .hb-muted { font-size: .875rem; }
.hb-soon { display: inline-block; margin-top: 16px !important; font-size: .75rem; color: var(--violeta-medio); background: var(--lila-suave); padding: 4px 12px; border-radius: 9999px; }

/* Tarjeta de blog */
.hb-post-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.hb-post-card__media { aspect-ratio: 16 / 9; background: var(--lila-suave); overflow: hidden; position: relative; }
.hb-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.hb-post-card:hover .hb-post-card__media img { transform: scale(1.05); }
.hb-post-card__ph { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; overflow: hidden; }
.hb-post-card__ph .brand-h-watermark { font-size: 10rem; margin: 0 -10px -50px 0; opacity: .25; }
.hb-post-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.hb-post-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; transition: color var(--fast); }
h2.hb-post-card__title { font-size: 1.3rem; }
.hb-post-card:hover .hb-post-card__title { color: var(--primary); }
.hb-post-card__excerpt { font-size: .875rem; color: var(--muted-fg); flex: 1; }
.hb-post-card__more { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; font-weight: 500; color: var(--primary); padding-top: 4px; }
.hb-post-card__more .hb-icon { width: 14px; height: 14px; transition: transform var(--fast); }
.hb-post-card:hover .hb-post-card__more .hb-icon { transform: translateX(3px); }
.hb-clamp-2, .hb-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.hb-clamp-2 { -webkit-line-clamp: 2; }
.hb-clamp-3 { -webkit-line-clamp: 3; }

.hb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .75rem; color: var(--muted-fg); }
.hb-meta__item { display: inline-flex; align-items: center; gap: 4px; }
.hb-meta__item .hb-icon { width: 12px; height: 12px; }

.hb-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-badges li { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; background: var(--primary-5); color: var(--primary); padding: 4px 10px; border-radius: 9999px; }
.hb-badges .hb-icon { width: 12px; height: 12px; }

.hb-panel { background: rgb(236 224 249 / .5); border-radius: var(--r-md); padding: 20px; }
.hb-panel > * + * { margin-top: 8px; }
.hb-panel__title { font-weight: 500; font-size: .875rem; }
.hb-panel .hb-form { margin-top: 12px; }

.hb-cta-box { max-width: 42rem; margin-inline: auto; text-align: center; border-radius: var(--r-lg); padding: 32px; background: linear-gradient(135deg, var(--primary-5), var(--primary-10), var(--primary-5)); }
@media (min-width: 640px) { .hb-cta-box { padding: 48px; } }
.hb-cta-box .hb-display { margin-bottom: 12px; }
.hb-cta-box > .hb-muted { max-width: 28rem; margin: 0 auto 32px; }
.hb-cta-box__form { max-width: 28rem; margin-inline: auto; }
.hb-cta-box__icon { width: 56px; height: 56px; border-radius: 9999px; background: var(--primary-10); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.hb-cta-box__icon .hb-icon { width: 24px; height: 24px; }
.hb-cta-box__icon--lg { width: 64px; height: 64px; margin-bottom: 0; }
.hb-cta-box__icon--lg .hb-icon { width: 32px; height: 32px; }

/* Marca */
.brand-gradient { background-image: linear-gradient(160deg, var(--lila-niebla) 0%, var(--lila-suave) 55%, var(--lila-bruma) 100%); }
.brand-h-watermark { font-family: var(--font-display); font-weight: 500; line-height: 1; color: var(--lila-hoja); opacity: .12; pointer-events: none; user-select: none; }

/* ---------- Cabecera ---------- */
.hb-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color 300ms, box-shadow 300ms, backdrop-filter 300ms; }
.admin-bar .hb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hb-header { top: 46px; } }
.hb-header.is-scrolled, .hb-header.is-open { background: rgb(246 239 252 / .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.hb-header__bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.hb-brand { display: flex; align-items: center; gap: 12px; }
.hb-brand__logo { width: 36px; height: 36px; object-fit: contain; transition: transform var(--normal); }
.hb-brand:hover .hb-brand__logo { transform: scale(1.05); }
.hb-brand__rule { width: 1px; height: 24px; background: rgb(183 156 224 / .7); display: none; }
.hb-brand__word { font-size: .875rem; font-weight: 300; letter-spacing: .3em; color: var(--violeta-profundo); display: none; }
@media (min-width: 640px) { .hb-brand__rule, .hb-brand__word { display: block; } }

.hb-nav { display: none; }
@media (min-width: 768px) { .hb-nav { display: block; } }
.hb-menu { display: flex; align-items: center; gap: 4px; }
.hb-menu a { display: block; padding: 8px 12px; border-radius: var(--r-sm); font-size: .875rem; font-weight: 500; color: var(--muted-fg); transition: color var(--fast), background-color var(--fast); }
.hb-menu a:hover { color: var(--fg); background: var(--lila-suave); }
.hb-menu .current-menu-item > a, .hb-menu .current_page_item > a, .hb-menu .current_page_parent > a { color: var(--primary); background: var(--primary-10); }

.hb-header__actions { display: flex; align-items: center; gap: 12px; }
.hb-hide-xs { display: none; }
@media (min-width: 640px) { .hb-hide-xs { display: inline-flex; } }
.hb-burger { display: inline-flex; padding: 8px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; color: var(--fg); }
.hb-burger:hover { background: var(--lila-suave); }
.hb-burger .hb-icon { width: 20px; height: 20px; }
.hb-burger__close, .is-open .hb-burger__open { display: none; }
.is-open .hb-burger__close { display: block; }
@media (min-width: 768px) { .hb-burger, .hb-mobile-nav { display: none !important; } }

.hb-mobile-nav { border-top: 1px solid var(--border); }
.hb-mobile-nav nav { padding-block: 16px; }
.hb-mobile-nav .hb-menu { flex-direction: column; align-items: stretch; }
.hb-mobile-nav .hb-menu a { padding: 12px 16px; }

/* ---------- Hero ---------- */
.hb-hero { position: relative; min-height: 90vh; min-height: 90svh; display: flex; align-items: center; overflow: hidden; }
.hb-hero__bg { position: absolute; inset: 0; z-index: 0; }
.hb-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hb-hero__veil { position: absolute; inset: 0; background: linear-gradient(to right, rgb(246 239 252 / .95), rgb(246 239 252 / .7) 50%, rgb(246 239 252 / .3)); }
.hb-hero__h { position: absolute; left: 8px; bottom: 0; font-size: 22rem; z-index: 0; display: none; }
@media (min-width: 640px) { .hb-hero__h { display: block; font-size: 30rem; } }
.hb-hero__inner { position: relative; z-index: 1; padding-block: 128px; }
.hb-hero__copy { max-width: 36rem; }
.hb-hero__copy > * + * { margin-top: 24px; }
.hb-hero__copy > .hb-pill { margin-bottom: 0; }

/* ---------- Split (catálogo / sobre nosotros) ---------- */
.hb-split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
	.hb-split { grid-template-columns: 1fr 1fr; gap: 64px; }
	.hb-catalog-item--alt .hb-split__media { order: 2; }
}
.hb-split--hero { margin-bottom: 80px; }
.hb-catalog-item { padding-block: 16px; margin-bottom: 96px; }
.hb-catalog-item--alt { padding-block: 64px; }
.hb-catalog-item:last-child { margin-bottom: 0; }
.hb-split__body .hb-display--lg { margin-top: 0; }

.hb-photo { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--lila-suave); position: relative; }
.hb-photo img { width: 100%; height: 100%; object-fit: cover; }
.hb-photo__ph { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; overflow: hidden; }
.hb-photo__ph .brand-h-watermark { font-size: 18rem; margin: 0 -20px -80px 0; opacity: .3; }

/* ---------- Contacto ---------- */
.hb-contact { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .hb-contact { grid-template-columns: 2fr 3fr; gap: 64px; } }
.hb-contact__mail { padding: 20px; margin-top: 40px !important; }
.hb-contact__mail .hb-subhead { font-family: var(--font-sans); font-size: .875rem; font-weight: 500; color: var(--fg); }
.hb-contact__mail a { color: var(--primary); font-size: .875rem; }
.hb-contact__mail a:hover { text-decoration: underline; }
.hb-contact__form { padding: 24px; border-radius: var(--r-lg); align-self: start; }
@media (min-width: 640px) { .hb-contact__form { padding: 32px; } }
.hb-contact__done { text-align: center; padding: 48px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hb-contact__done[hidden] { display: none; }

/* ---------- Formularios ---------- */
.hb-form > * + * { margin-top: 20px; }
.hb-form__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hb-form__grid { grid-template-columns: 1fr 1fr; } }
.hb-field { margin: 0; }
.hb-field label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 8px; color: var(--violeta-profundo); }
.hb-input { display: block; width: 100%; min-height: 40px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--lila-niebla); font-size: .875rem; transition: border-color var(--fast), box-shadow var(--fast); }
.hb-input::placeholder { color: var(--muted-fg); opacity: .8; }
.hb-input:hover { border-color: rgb(75 47 117 / .4); }
.hb-input:focus { outline: none; border-color: var(--border); box-shadow: 0 0 0 2px var(--lila-niebla), 0 0 0 4px var(--primary); }
.hb-input[aria-invalid="true"] { border-color: #dc2626; }
textarea.hb-input { resize: vertical; min-height: 120px; }
.hb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hb-form__msg { font-size: .875rem; color: #b91c1c; }
.hb-form__msg:empty { display: none; }
.hb-form__msg.is-ok { color: var(--primary); }
.hb-form__legal { font-size: .75rem; color: var(--muted-fg); margin-top: 8px !important; }
.hb-form__legal a { text-decoration: underline; }
.hb-waitlist { text-align: left; }
.hb-waitlist__row { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 640px) { .hb-waitlist__row { flex-direction: row; } .hb-waitlist__row .hb-input { flex: 1; } }
.hb-cta-box .hb-form__legal { text-align: center; }
.hb-form__done { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--primary); font-weight: 500; }
.hb-waitlist--compact .hb-form__done { justify-content: flex-start; font-size: .875rem; }
.hb-form__done[hidden] { display: none; }
.hb-form__done .hb-icon { width: 20px; height: 20px; }
.hb-form.is-done > :not(.hb-form__done) { display: none; }
.hb-icon--spin { display: none; animation: hb-spin 1s linear infinite; }
.is-busy .hb-icon--spin { display: block; }
.is-busy .hb-icon--idle { display: none; }
@keyframes hb-spin { to { transform: rotate(360deg); } }

/* ---------- Artículo ---------- */
.hb-article__head > * + * { margin-top: 16px; }
.hb-article__head { margin-bottom: 32px; }
.hb-article__head .hb-meta { font-size: .875rem; }
.hb-article__head .hb-tag { font-size: .75rem; padding: 2px 10px; }
.hb-article__head .hb-meta__item .hb-icon { width: 14px; height: 14px; }
.hb-article__media { margin: 0 0 40px; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--lila-suave); }
.hb-article__media img { width: 100%; height: 100%; object-fit: cover; }
.hb-article__cta { margin-top: 48px; background: var(--primary-5); border-radius: var(--r-md); padding: 24px; text-align: center; }
.hb-article__cta > * + * { margin-top: 12px; }
.hb-article__cta .hb-btn { margin-top: 20px; }

.hb-prose { color: var(--muted-fg); line-height: 1.75; }
.hb-prose--narrow { max-width: 800px; }
.hb-prose > * + * { margin-top: 16px; }
.hb-prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.25; margin-top: 40px; margin-bottom: 16px; }
.hb-prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.3; margin-top: 32px; margin-bottom: 12px; }
.hb-prose h2 + *, .hb-prose h3 + * { margin-top: 0; }
.hb-prose strong { color: var(--fg); font-weight: 500; }
.hb-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.hb-prose ul, .hb-prose ol { padding-left: 1.5em; }
.hb-prose ul { list-style: disc; }
.hb-prose ol { list-style: decimal; }
.hb-prose li + li { margin-top: 4px; }
.hb-prose li::marker { color: var(--lila-hoja); }
.hb-prose img { border-radius: var(--r-md); }
.hb-prose blockquote { margin: 24px 0; padding-left: 20px; border-left: 2px solid var(--lila-hoja); font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--violeta); }
.hb-prose table { width: 100%; border-collapse: collapse; font-size: .875rem; display: block; overflow-x: auto; }
.hb-prose th, .hb-prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.hb-prose th { color: var(--violeta-profundo); background: var(--lila-suave); font-weight: 500; }

.hb-pagination { margin-top: 48px; display: flex; justify-content: center; }
.hb-pagination .nav-links { display: flex; gap: 6px; }
.hb-pagination .page-numbers { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; font-size: .875rem; color: var(--muted-fg); }
.hb-pagination .page-numbers:hover { background: var(--lila-suave); }
.hb-pagination .page-numbers.current { background: var(--primary); color: #fff; }

.hb-404 { min-height: 70vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hb-404 .hb-lead { max-width: 32rem; margin-inline: auto; }
.hb-404__h { position: absolute; inset: auto 0 -6rem auto; font-size: 30rem; z-index: -1; }

/* ---------- Pie ---------- */
.hb-footer { background: var(--violeta-profundo); color: var(--lila-niebla); }
.hb-footer .hb-container { padding-block: 56px; }
.hb-footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hb-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hb-footer__grid { grid-template-columns: repeat(3, 1fr); } }
.hb-footer__brand > * + * { margin-top: 16px; }
.hb-footer__brand p { font-size: .875rem; color: var(--lila-bruma); line-height: 1.65; max-width: 20rem; }
.hb-brand--light .hb-brand__logo { width: 40px; height: 40px; }
.hb-brand--light .hb-brand__rule { display: block; background: rgb(255 255 255 / .3); }
.hb-brand--light .hb-brand__word { display: block; color: var(--lila-niebla); }
.hb-footer__title { font-family: var(--font-sans); font-size: .75rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--lila-hoja); margin-bottom: 16px; }
.hb-footer .hb-menu { flex-direction: column; align-items: flex-start; gap: 10px; }
.hb-footer .hb-menu a, .hb-footer__links a { padding: 0; background: none !important; font-size: .875rem; font-weight: 400; color: var(--lila-bruma); transition: color var(--fast); }
.hb-footer .hb-menu a:hover, .hb-footer__links a:hover { color: #fff; }
.hb-footer .hb-menu .current-menu-item > a { color: #fff; }
.hb-footer__links { display: flex; flex-direction: column; gap: 10px; }
.hb-footer__links a { display: inline-flex; align-items: center; gap: 8px; }
.hb-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .15); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; font-size: .75rem; color: var(--lila-bruma); }
.hb-footer__bottom p:first-child { letter-spacing: .1em; }
.hb-footer__bottom a:hover { color: #fff; }
@media (min-width: 640px) { .hb-footer__bottom { flex-direction: row; } }
.hb-footer__love { display: inline-flex; align-items: center; gap: 6px; }
.hb-icon--heart { width: 12px; height: 12px; color: var(--lila-hoja); fill: var(--lila-hoja); }

/* ---------- Animaciones ---------- */
.hb-fade-up { animation: hb-fade-up 700ms var(--ease) both; }
.hb-delay-1 { animation-delay: 150ms; }
.hb-delay-2 { animation-delay: 250ms; }
@keyframes hb-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.js .hb-reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 600ms var(--ease), box-shadow var(--normal); }
.js .hb-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hb-fade-up { animation: none; }
	.js .hb-reveal { opacity: 1; transform: none; transition: none; }
	.hb-post-card__media img, .hb-btn { transition: none; }
}

/* ---------- Bloques del editor ---------- */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image figcaption { font-size: .8rem; color: var(--muted-fg); text-align: center; }
