/* ==========================================================================
   haBoutique — base compartida (tokens, cabecera, botón, pie, animaciones)
   ========================================================================== */

html:has(.hb-body) { scroll-behavior: smooth; }
body.hb-body { margin: 0; background: #050505; color: #f3eee5; }
body.hb-body .site-main, body.hb-body .page-content { color: inherit; }
.hb-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

:root {
	--ink: #050505;
	--gold: #c9a45c;
	--gold-2: #e3c27c;
	--text: #f3eee5;
	--muted: #b9b1a4;
	--line: rgba(201, 164, 92, .85);
	--serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--hebrew: "Frank Ruhl Libre", "Times New Roman", serif;
	--header-h: 88px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 860px) { :root { --header-h: 68px; } }

/* Hello Elementor usa rosa (#c36) en enlaces y botones: se sustituye por dorado mate.
   Mismos selectores que su reset.css (se carga antes), así las reglas .hb de abajo siguen mandando. */
:root { --gold-matte: #b09a6c; --gold-matte-2: #c7b58c; }
a { color: var(--gold-matte); }
a:active, a:hover { color: var(--gold-matte-2); }
[type=button], [type=submit], button { border-color: var(--gold-matte); color: var(--gold-matte); }
[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
	background-color: var(--gold-matte); border-color: var(--gold-matte); color: var(--ink);
}

.hb {
	background: var(--ink);
	color: var(--text);
	font-family: var(--serif);
	font-size: 19px;
	line-height: 1.45;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.hb *, .hb *::before, .hb *::after { box-sizing: border-box; }
.hb img { display: block; max-width: 100%; height: auto; }
.hb a { color: inherit; text-decoration: none; }
.hb h1, .hb h2, .hb h3, .hb p, .hb ul, .hb ol { margin: 0; padding: 0; font-weight: 400; }
.hb ul, .hb ol { list-style: none; }
.hb em { font-style: italic; color: var(--gold-2); }
.hb :lang(he) { font-family: var(--hebrew); }
.hb :focus-visible { outline: 1px solid var(--gold-2); outline-offset: 4px; }
.hb button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.hb .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.hb .hb-skip:focus {
	position: fixed !important; top: 12px; left: 12px; z-index: 100; width: auto; height: auto;
	clip: auto; clip-path: none; padding: 10px 16px; background: var(--gold); color: var(--ink);
}

.hb-wrap { width: min(1240px, 100% - 96px); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */
.hb-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	transition: background-color .5s var(--ease), backdrop-filter .5s var(--ease), box-shadow .5s var(--ease);
}
.admin-bar .hb-header { top: 32px; }
.hb-header.is-scrolled {
	background: rgba(5, 5, 5, .82);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 rgba(201, 164, 92, .18);
}
.hb-header__inner { display: flex; align-items: center; height: var(--header-h); }

.hb-logo { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.hb-logo img { height: 40px; width: auto; }

.hb-nav { margin-left: clamp(40px, 8vw, 120px); }
.hb-nav ul { display: flex; gap: clamp(28px, 4vw, 60px); margin: 0; padding: 0; list-style: none; }
.hb-header.is-solid { background: rgba(5, 5, 5, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(201, 164, 92, .18); }
body.hb-body:not(.home) .site-main { padding-top: var(--header-h); }
.hb-nav a,
.hb-lang {
	font-family: var(--sans); font-size: 11px; font-weight: 500;
	letter-spacing: .22em; text-transform: uppercase;
}
.hb-nav ul a { position: relative; display: inline-block; padding: 6px 0; }
.hb-nav ul a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
	transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.hb-nav ul a:hover::after { transform: scaleX(1); }

.hb-lang { display: flex; align-items: center; gap: 8px; }
.hb-lang--header { margin-left: auto; }
.hb-lang--menu { display: none; }
.hb-lang a { transition: color .3s; }
.hb-lang a:hover, .hb-lang a.is-active { color: var(--gold-2); }
.hb-sep { color: var(--muted); }

.hb-burger { display: none; }

/* --------------------------------------------------------------------------
   Botón
   -------------------------------------------------------------------------- */
.hb .hb-btn {
	display: inline-flex; align-items: center; gap: 16px;
	padding: 15px 24px;
	border: 1px solid var(--gold);
	color: var(--gold-2);
	font-family: var(--sans); font-size: 11px; font-weight: 500;
	letter-spacing: .24em; text-transform: uppercase; line-height: 1;
	transition: background-color .4s var(--ease), color .4s var(--ease);
}
.hb .hb-btn svg { width: 16px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .4s var(--ease); }
.hb .hb-btn:hover { background: var(--gold); color: var(--ink); }
.hb .hb-btn:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.hb-footer { padding: 24px 0 64px; font-size: 15px; }
.hb-footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 32px; }
.hb-footer__brand { display: flex; flex-direction: column; gap: 4px; }
.hb-footer__logo { font-size: 24px; font-weight: 500; line-height: 1.1; }
.hb-footer__tag { color: var(--text); }
.hb-footer__langs { display: flex; align-items: center; gap: 10px; }
.hb-footer__langs a, .hb-footer__links a { transition: color .3s; }
.hb-footer__langs a:hover, .hb-footer__links a:hover, .hb-footer__langs a.is-active { color: var(--gold-2); }
.hb-footer__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.hb-footer__links { display: flex; gap: 14px; }
.hb-footer__links .hb-sep { color: var(--gold); }
.hb-footer__note { font-size: 14px; }

/* --------------------------------------------------------------------------
   Animaciones de entrada
   -------------------------------------------------------------------------- */
.hb-js .hb [data-reveal] {
	opacity: 0; transform: translateY(26px);
	transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.hb-js .hb [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html:has(.hb-body) { scroll-behavior: auto; }
	.hb *, .hb *::before, .hb *::after { animation: none !important; transition: none !important; }
	.hb-js .hb [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
	.hb-wrap { width: min(1240px, 100% - 64px); }
}

@media (max-width: 860px) {
	.hb { font-size: 18px; }
	.hb-wrap { width: calc(100% - 48px); }
	.admin-bar .hb-header { top: 46px; }
	.hb-logo { font-size: 26px; }

	.hb-nav, .hb-lang--header { display: none; }
	.hb-burger {
		display: grid; gap: 7px; margin-left: auto; width: 44px; height: 44px;
		place-content: center; position: relative; z-index: 2;
	}
	.hb-burger span:not(.screen-reader-text) {
		display: block; width: 26px; height: 1px; background: var(--text);
		transition: transform .4s var(--ease);
	}
	.hb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
	.hb-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

	body.hb-menu-open { overflow: hidden; }
	.hb-menu-open .hb-header { background: var(--ink); }
	.hb-menu-open .hb-nav {
		display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
		position: fixed; inset: 0; margin: 0; background: var(--ink);
	}
	.hb-menu-open .hb-nav ul { flex-direction: column; align-items: center; gap: 22px; }
	.hb-menu-open .hb-nav ul a {
		font-family: var(--serif); font-size: 36px; font-weight: 400;
		letter-spacing: 0; text-transform: none;
	}
	.hb-menu-open .hb-lang--menu { display: flex; gap: 12px; font-size: 12px; }

	.hb-footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
	.hb-footer__brand, .hb-footer__contact { align-items: center; text-align: center; }
	.hb-footer__langs { flex-wrap: wrap; justify-content: center; }
}

/* Elementor: los widgets de haBoutique van a sangre, sin separación propia */
.elementor-widget[class*="elementor-widget-hb-"] { margin-block-end: 0 !important; --kit-widget-spacing: 0px; }
.elementor-widget[class*="elementor-widget-hb-"] > .elementor-widget-container { padding: 0; margin: 0; }
.e-con:has(> .elementor-widget[class*="elementor-widget-hb-"]), .elementor-section:has(.elementor-widget[class*="elementor-widget-hb-"]) { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; }
.hb-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Botón (también fuera de .hb, p. ej. shortcode) */
.hb-btn[data-hb-configure] { cursor: pointer; }
