/* Blosoom Header — estilos
   Cambia aquí colores, fuente y tamaños. */
:root {
	--bh-rosa: #F6C8C7;
	--bh-verde: #366661;
	--bh-texto: #23433F;
	--bh-crema: #FFFFFF;
	--bh-glass: rgba(246, 200, 199, .72);
	--bh-glass-scrolled: rgba(246, 200, 199, .58);
	--bh-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bh-font-ui: var(--bh-font);
	--bh-font-serif: "Noto Serif Display", Georgia, serif;
	--bh-logo: 104px;
	--bh-logo-scrolled: 66px;
	--bh-bar: 118px;
	--bh-bar-scrolled: 80px;
	--bh-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Barra de aviso ---------- */
.bh-announcement {
	background: var(--bh-verde);
	color: var(--bh-crema);
	text-align: center;
	font: 500 12px/1 var(--bh-font);
	letter-spacing: .08em;
	padding: 11px 16px;
}
.bh-announcement p { margin: 0; }

/* El tema pone overflow-x:hidden en body, que impide que el header se quede fijo.
   "clip" recorta igual sin romper position:sticky. */
html body, html body .page-wrapper { overflow-x: clip !important; overflow-y: visible !important; }

/* ---------- Header de cristal ---------- */
.bh-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 999;
	background: var(--bh-glass);
	-webkit-backdrop-filter: blur(22px) saturate(170%);
	backdrop-filter: blur(22px) saturate(170%);
	border-bottom: 1px solid rgba(255, 255, 255, .55);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
	transition: background-color .4s ease, box-shadow .4s ease;
	font-family: var(--bh-font);
	color: var(--bh-texto);
}
.bh-header.is-scrolled {
	background: var(--bh-glass-scrolled);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 18px 40px -14px rgba(35, 67, 63, .32);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.bh-header, .bh-header.is-scrolled { background: rgba(246, 200, 199, .97); }
}

.bh-bar {
	/* Contenido del header centrado (ancho en layout.css → --bh-nav) */
	width: var(--bh-nav, 80vw);
	max-width: none;
	margin: 0 auto;
	padding: 0;
	height: var(--bh-bar);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	transition: height .4s var(--bh-ease);
}
.bh-header.is-scrolled .bh-bar { height: var(--bh-bar-scrolled); }

.bh-left, .bh-right { display: flex; align-items: center; min-width: 0; }
.bh-right { justify-content: flex-end; gap: 4px; }

/* Logo */
.bh-logo { display: block; line-height: 0; }
.bh-logo img {
	height: var(--bh-logo);
	width: auto;
	display: block;
	filter: drop-shadow(0 8px 18px rgba(35, 67, 63, .14));
	transition: height .4s var(--bh-ease), transform .4s var(--bh-ease);
}
.bh-logo:hover img { transform: scale(1.03); }
.bh-header.is-scrolled .bh-logo img { height: var(--bh-logo-scrolled); }
.bh-logo span { font: 400 26px/1 var(--bh-font-serif); color: var(--bh-verde); }

/* ---------- Menú ---------- */
.bh-menu { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.bh-menu > li { position: relative; margin: 0; padding: 0; }
.bh-menu a {
	position: relative;
	display: inline-block;
	font: 500 15.5px/1.2 var(--bh-font);
	letter-spacing: .01em;
	color: var(--bh-texto);
	text-decoration: none;
	padding: 8px 0;
	transition: color .25s ease;
}
.bh-menu > li > a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 2px;
	height: 1.5px;
	border-radius: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .45s var(--bh-ease);
}
.bh-menu > li > a:hover::after,
.bh-menu > li.current-menu-item > a::after,
.bh-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); transform-origin: left; }
.bh-menu a:hover { color: var(--bh-verde); }

/* Submenú de cristal */
.bh-menu .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: -18px;
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: 10px;
	background: rgba(255, 255, 255, .78);
	-webkit-backdrop-filter: blur(20px) saturate(170%);
	backdrop-filter: blur(20px) saturate(170%);
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 14px;
	box-shadow: 0 18px 40px -14px rgba(35, 67, 63, .3);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.bh-menu li:hover > .sub-menu,
.bh-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bh-menu .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.bh-menu .sub-menu a:hover { background: rgba(246, 200, 199, .5); }

/* ---------- Iconos ---------- */
.bh-iconbtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--bh-texto);
	cursor: pointer;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease;
}
.bh-iconbtn:hover { background: rgba(255, 255, 255, .55); color: var(--bh-verde); }

/* Anula los estilos globales de botones del tema dentro del header */
.bh-header button, .bh-drawer button {
	min-width: 0 !important;
	min-height: 0 !important;
	line-height: 1 !important;
	text-transform: none !important;
	box-shadow: none !important;
	letter-spacing: inherit;
}
.bh-header button.bh-iconbtn, .bh-drawer button.bh-iconbtn, .bh-header .bh-lang-btn {
	width: auto;
	background: transparent !important;
	border: 0 !important;
	color: var(--bh-texto) !important;
	padding: 0 !important;
}
.bh-header button.bh-iconbtn, .bh-drawer button.bh-iconbtn { width: 42px !important; height: 42px !important; }
.bh-header .bh-lang-btn { padding: 0 8px !important; height: 42px !important; letter-spacing: .08em; }
.bh-header button.bh-iconbtn:hover, .bh-drawer button.bh-iconbtn:hover { background: rgba(255, 255, 255, .55) !important; color: var(--bh-verde) !important; }
.bh-lang-menu button { background: transparent !important; border: 0 !important; color: var(--bh-texto) !important; padding: 10px 12px !important; height: auto !important; }
.bh-lang-menu button:hover { background: rgba(246, 200, 199, .5) !important; }
.bh-drawer-langs button { background: transparent !important; color: var(--bh-texto) !important; border: 1px solid rgba(35, 67, 63, .25) !important; padding: 9px 14px !important; height: auto !important; }
.bh-drawer-langs button.is-active { background: var(--bh-verde) !important; border-color: var(--bh-verde) !important; color: var(--bh-crema) !important; }
.bh-iconbtn:focus-visible, .bh-lang-btn:focus-visible, .bh-menu a:focus-visible {
	outline: 2px solid var(--bh-verde);
	outline-offset: 2px;
}
.bh-icon { width: 22px; height: 22px; display: block; }

.bh-badge, .bh-wish-count::after {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--bh-verde);
	color: var(--bh-crema);
	font: 600 10px/17px var(--bh-font-ui);
	text-align: center;
	box-sizing: border-box;
}
.bh-badge.is-empty { display: none; }
.bh-wish-count::after { content: attr(data-count); }
.bh-wish-count[data-count="0"]::after, .bh-wish-count[data-count=""]::after { display: none; }

.bh-divider { width: 1px; height: 20px; background: rgba(35, 67, 63, .2); margin: 0 10px; }

/* ---------- Idioma ---------- */
.bh-lang { position: relative; }
.bh-lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 42px;
	padding: 0 8px;
	border: 0;
	background: transparent;
	color: var(--bh-texto);
	font: 500 13px/1 var(--bh-font);
	letter-spacing: .08em;
	cursor: pointer;
}
.bh-lang-btn .bh-icon { width: 16px; height: 16px; transition: transform .25s ease; }
.bh-lang.is-open .bh-lang-btn .bh-icon { transform: rotate(180deg); }
.bh-lang-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 170px;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: rgba(255, 255, 255, .8);
	-webkit-backdrop-filter: blur(20px) saturate(170%);
	backdrop-filter: blur(20px) saturate(170%);
	border: 1px solid rgba(255, 255, 255, .85);
	border-radius: 14px;
	box-shadow: 0 18px 40px -14px rgba(35, 67, 63, .3);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 5;
}
.bh-lang.is-open .bh-lang-menu { opacity: 1; visibility: visible; transform: none; }
.bh-lang-menu li { margin: 0; }
.bh-lang-menu button, .bh-lang-menu a {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--bh-texto);
	font: 500 14px/1.2 var(--bh-font);
	text-decoration: none;
	cursor: pointer;
}
.bh-lang-menu button:hover, .bh-lang-menu a:hover { background: rgba(246, 200, 199, .5); }
.bh-lang-menu [aria-current="true"] { background: rgba(246, 200, 199, .7); font-weight: 600; }

/* ---------- Búsqueda ---------- */
.bh-search {
	border-top: 1px solid rgba(255, 255, 255, .5);
	padding: 18px 40px 22px;
}
.bh-search[hidden] { display: none; }
.bh-search form { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 6px; }
.bh-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 4px;
	border: 0;
	border-bottom: 1px solid rgba(35, 67, 63, .35);
	border-radius: 0;
	background: transparent;
	color: var(--bh-texto);
	font: italic 300 24px/1 var(--bh-font-serif);
	box-shadow: none;
	outline: none;
}
.bh-search input[type="search"]::placeholder { color: rgba(35, 67, 63, .55); }
.bh-search input[type="search"]:focus { border-bottom-color: var(--bh-verde); }

/* ---------- Menú lateral (móvil) ---------- */
.bh-burger { display: none; margin-left: -8px; }
.bh-drawer { position: fixed; inset: 0; z-index: 100000; pointer-events: none; }
.bh-drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(35, 67, 63, .25);
	opacity: 0;
	transition: opacity .35s ease;
}
.bh-drawer-panel {
	position: absolute;
	top: 0; left: 0; bottom: 0;
	width: min(86vw, 380px);
	padding: 22px 26px 30px;
	overflow-y: auto;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: blur(24px) saturate(170%);
	backdrop-filter: blur(24px) saturate(170%);
	box-shadow: 20px 0 50px -20px rgba(35, 67, 63, .35);
	transform: translateX(-102%);
	visibility: hidden;
	transition: transform .45s var(--bh-ease), visibility 0s linear .45s;
	font-family: var(--bh-font);
	color: var(--bh-texto);
}
.bh-drawer.is-open { pointer-events: auto; }
.bh-drawer.is-open .bh-drawer-backdrop { opacity: 1; }
.bh-drawer.is-open .bh-drawer-panel { transform: none; visibility: visible; transition: transform .45s var(--bh-ease), visibility 0s; }
.bh-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.bh-drawer-title { font: 500 12px/1 var(--bh-font); letter-spacing: .18em; text-transform: uppercase; }
.bh-drawer-menu, .bh-drawer-links { list-style: none; margin: 0; padding: 0; }
.bh-drawer-menu > li { border-bottom: 1px solid rgba(35, 67, 63, .12); margin: 0; }
.bh-drawer-menu a {
	display: block;
	padding: 16px 0;
	font: 400 28px/1.15 var(--bh-font-serif);
	color: var(--bh-texto);
	text-decoration: none;
}
.bh-drawer-menu .sub-menu { list-style: none; margin: -6px 0 12px; padding: 0 0 0 4px; }
.bh-drawer-menu .sub-menu a { font: 500 15.5px/1.2 var(--bh-font); padding: 9px 0; }
.bh-drawer-links { margin-top: 26px; }
.bh-drawer-links a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	font: 500 15.5px/1.2 var(--bh-font);
	color: var(--bh-texto);
	text-decoration: none;
}
.bh-drawer-links .bh-icon { width: 20px; height: 20px; }
.bh-drawer-langs { display: flex; gap: 8px; margin-top: 24px; }
.bh-drawer-langs button, .bh-drawer-langs a {
	padding: 9px 14px;
	border: 1px solid rgba(35, 67, 63, .25);
	border-radius: 999px;
	background: transparent;
	color: var(--bh-texto);
	font: 500 12px/1 var(--bh-font);
	letter-spacing: .08em;
	text-decoration: none;
	cursor: pointer;
}
.bh-drawer-langs .is-active, .bh-drawer-langs [aria-current="true"] { background: var(--bh-verde); border-color: var(--bh-verde); color: var(--bh-crema); }
body.bh-no-scroll { overflow: hidden; }

/* GTranslate oculto (solo hace la traducción) */
.bh-gt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1024px) {
	:root { --bh-bar: 92px; --bh-bar-scrolled: 74px; --bh-logo: 82px; --bh-logo-scrolled: 62px; }
	.bh-header .bh-icon { width: 24px; height: 24px; }
	.bh-header button.bh-iconbtn { width: 46px !important; height: 46px !important; }
	.bh-bar { gap: 8px; }
	.bh-nav, .bh-lang, .bh-divider, .bh-hide-sm { display: none !important; }
	.bh-burger { display: inline-flex; }
	.bh-search { padding: 14px 18px 18px; }
	.bh-search input[type="search"] { font-size: 20px; }
}
@media (max-width: 480px) {
	.bh-announcement { font-size: 11px; letter-spacing: .04em; padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.bh-header *, .bh-drawer * { transition: none !important; }
}

/* En móvil (≤600px) la barra de administración de WordPress no queda fija, se va con el scroll:
   el header debe pegarse arriba del todo para no dejar un hueco con el contenido asomando. */
@media screen and (max-width: 600px) {
	.bh-header { top: 0; }
}

/* La web es solo en modo claro: sin esto, en móviles/ordenadores con modo oscuro
   el navegador pintaba el fondo negro (el tema no define color de fondo en html/body). */
:root { color-scheme: light only; }
html, body { background-color: #fff; }
