/* =============================================================
   HORMONA VIDA — ESTILOS BASE
   Fuente de verdad: theme.json (colores, fuentes, tamaños).
   Este archivo solo añade lo que theme.json no puede expresar:
   alias --hv-*, clases heredadas de la web anterior, cabecera,
   pie, variantes de botón y ajustes finos.

   Paleta de marca (no inventar más):
     Forest Sage #4A6B58   Muted Sage #7A9E8A   Warm Ochre #B8924A
     Petal Rose  #D5A89C   Driftwood  #C4B5A5   Cream Linen #F5EDE4
   Fuentes: Montserrat (todo) y Cormorant Garamond (acentos
   editoriales: citas, testimonios, titulares destacados).
   ============================================================= */

:root {
	/* Alias cortos para usar en CSS propio. Apuntan a theme.json,
	 * así un cambio de color en el editor se refleja aquí también. */
	--hv-forest-sage: var(--wp--preset--color--forest-sage);
	--hv-forest-deep: var(--wp--preset--color--forest-deep);
	--hv-forest-night: var(--wp--preset--color--forest-night);
	--hv-muted-sage: var(--wp--preset--color--muted-sage);
	--hv-sage-tint: var(--wp--preset--color--sage-tint);
	--hv-warm-ochre: var(--wp--preset--color--warm-ochre);
	--hv-ochre-tint: var(--wp--preset--color--ochre-tint);
	--hv-petal-rose: var(--wp--preset--color--petal-rose);
	--hv-rose-tint: var(--wp--preset--color--rose-tint);
	--hv-driftwood: var(--wp--preset--color--driftwood);
	--hv-driftwood-tint: var(--wp--preset--color--driftwood-tint);
	--hv-cream-linen: var(--wp--preset--color--cream-linen);
	--hv-cream-deep: var(--wp--preset--color--cream-deep);
	--hv-white: var(--wp--preset--color--white);
	--hv-ink: var(--wp--preset--color--ink);
	--hv-ink-muted: var(--wp--preset--color--ink-muted);
	--hv-ink-soft: var(--wp--preset--color--ink-soft);
	--hv-hairline: var(--wp--preset--color--hairline);

	--hv-font-sans: var(--wp--preset--font-family--sans);
	--hv-font-serif: var(--wp--preset--font-family--serif);

	--hv-radius-pill: var(--wp--custom--radius--pill);
	--hv-radius-card: var(--wp--custom--radius--card);
	--hv-radius-media: var(--wp--custom--radius--media);
	--hv-shadow: var(--wp--preset--shadow--soft);
	--hv-header-h: var(--wp--custom--header-height);
	--hv-maxw: var(--wp--style--global--wide-size, 1300px);
	/* Movimiento: UNA sola duración y UNA sola curva para todo el sitio
	 * (botones, tarjetas, menús, acordeones, apariciones). */
	--hv-dur: .4s;
	--hv-ease: cubic-bezier(.2, .7, .2, 1);

	/* Alias heredados de la web anterior (hv26-token / hv-brand). */
	--hv-green: var(--hv-forest-sage);
	--hv-green-dark: var(--hv-forest-deep);
	--hv-green-light: var(--hv-muted-sage);
	--hv-text: var(--hv-ink);
	--hv-text-muted: var(--hv-ink-muted);
}

/* -------------------------------------------------------------
   Base
   ------------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; }

:where(a) { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--hv-warm-ochre);
	outline-offset: 3px;
}

::selection { background: var(--hv-sage-tint); color: var(--hv-ink); }

/* -------------------------------------------------------------
   Tipografía editorial (Cormorant). Mismos nombres de clase que
   la web anterior, para que el contenido migrado siga igual.
   ------------------------------------------------------------- */
.hv-serif,
.font-garamont-h1, .font-garamont-h2, .font-garamont-h3,
.font-garamont-h4, .font-garamont-h5, .font-garamont-h6,
.font-garamont-t, .font-garamont-p,
.is-style-hv-serif {
	font-family: var(--hv-font-serif) !important;
	letter-spacing: 0.005em;
}
/* Cormorant tiene la x pequeña: se sube un poco para igualar. */
p.hv-serif, .font-garamont-p, p.is-style-hv-serif { font-size: 1.2em; }

/* Antetítulo: texto pequeño en mayúsculas sobre un título. */
.hv-eyebrow,
.is-style-hv-eyebrow {
	font-size: 0.8125rem !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hv-warm-ochre);
	margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------
   Utilidades de color (heredadas). El texto de cada fondo es el
   que cumple contraste AA (4.5:1) sobre ese fondo.
   ------------------------------------------------------------- */
.hv-c-forest { color: var(--hv-forest-sage) !important; }
.hv-c-sage   { color: var(--hv-muted-sage) !important; }
.hv-c-ochre  { color: var(--hv-warm-ochre) !important; }
.hv-c-rose   { color: var(--hv-petal-rose) !important; }
.hv-c-drift  { color: var(--hv-driftwood) !important; }
.hv-c-ink    { color: var(--hv-ink) !important; }
.hv-c-white  { color: var(--hv-white) !important; }

.hv-bg-forest { background-color: var(--hv-forest-sage) !important; color: var(--hv-white) !important; }
.hv-bg-deep   { background-color: var(--hv-forest-deep) !important; color: var(--hv-white) !important; }
.hv-bg-sage   { background-color: var(--hv-muted-sage) !important; color: var(--hv-ink) !important; }
.hv-bg-ochre  { background-color: var(--hv-warm-ochre) !important; color: var(--hv-ink) !important; }
.hv-bg-rose   { background-color: var(--hv-petal-rose) !important; color: var(--hv-ink) !important; }
.hv-bg-drift  { background-color: var(--hv-driftwood) !important; color: var(--hv-ink) !important; }
.hv-bg-cream  { background-color: var(--hv-cream-linen) !important; color: var(--hv-ink) !important; }

/* Sobre fondos verdes, los títulos y enlaces pasan a blanco. */
.has-forest-sage-background-color :where(h1, h2, h3, h4, h5, h6, a:not(.wp-element-button)),
.has-forest-deep-background-color :where(h1, h2, h3, h4, h5, h6, a:not(.wp-element-button)),
.has-forest-night-background-color :where(h1, h2, h3, h4, h5, h6, a:not(.wp-element-button)),
.hv-bg-forest :where(h1, h2, h3, h4, h5, h6, a), .hv-bg-deep :where(h1, h2, h3, h4, h5, h6, a) {
	color: var(--hv-white);
}

/* -------------------------------------------------------------
   Botones. El estilo principal está en theme.json (píldora verde).
   Aquí las variantes que se eligen en el editor (Estilos).
   ------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link {
	transition: background-color var(--hv-dur) var(--hv-ease), color var(--hv-dur) var(--hv-ease), border-color var(--hv-dur) var(--hv-ease);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--hv-forest-sage);
	border: 1px solid currentColor;
	padding: calc(0.9rem - 1px) calc(2rem - 1px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--hv-forest-sage);
	border-color: var(--hv-forest-sage);
	color: var(--hv-white);
}

.wp-block-button.is-style-hv-light > .wp-block-button__link {
	background: var(--hv-white);
	color: var(--hv-forest-sage);
}
.wp-block-button.is-style-hv-light > .wp-block-button__link:hover {
	background: var(--hv-cream-linen);
	color: var(--hv-forest-deep);
}

.wp-block-button.is-style-hv-sand > .wp-block-button__link {
	background: var(--hv-driftwood);
	color: var(--hv-ink);
}
.wp-block-button.is-style-hv-sand > .wp-block-button__link:hover {
	background: var(--hv-cream-deep);
}

/* -------------------------------------------------------------
   Tarjetas y medios
   ------------------------------------------------------------- */
.is-style-hv-card {
	background: var(--hv-white);
	border: 1px solid var(--hv-driftwood-tint);
	border-radius: var(--hv-radius-card);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}
.is-style-hv-card-cream {
	background: var(--hv-cream-linen);
	border-radius: var(--hv-radius-card);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}
.is-style-hv-card.has-shadow, .is-style-hv-card-shadow {
	box-shadow: var(--hv-shadow);
}
.wp-block-image.is-style-hv-square img { border-radius: 0; }
.wp-block-image.is-style-hv-round img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }

/* Listas con viñeta de marca */
.is-style-hv-check { list-style: none; padding-left: 0; }
.is-style-hv-check > li { position: relative; padding-left: 1.75rem; margin-bottom: 0.5rem; }
.is-style-hv-check > li::before {
	content: "";
	position: absolute; left: 0; top: 0.55em;
	width: 0.9rem; height: 0.5rem;
	border-left: 2px solid var(--hv-forest-sage);
	border-bottom: 2px solid var(--hv-forest-sage);
	transform: rotate(-45deg) translateY(-50%);
}

/* -------------------------------------------------------------
   Cabecera — medidas tomadas de la web original a 1440 px:
   barra blanca al 76 %, 89 px de alto, logo de 169 px a 5 % del
   borde, menú 12,6 px en mayúsculas (espaciado 1 px) y botón
   "Patient Login" verde en píldora.
   ------------------------------------------------------------- */
.wp-site-blocks > .wp-block-template-part:has(> .hv-header) {
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .hv-header) { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > .wp-block-template-part:has(> .hv-header) { top: 0; } }
.hv-header { background: rgba(255, 255, 255, 0.76); }
.hv-header__inner {
	min-height: 89px;
	padding: 0 5%;
	gap: 56px;
}
.hv-header .wp-block-site-logo { flex: 0 0 auto; }
.hv-header .wp-block-site-logo img { width: 169px; height: auto; display: block; }
.hv-header .hv-menu { flex: 1 1 auto; font-size: 12.6px; text-transform: uppercase; letter-spacing: 1px; font-weight: 400; }
.hv-header .hv-menu .wp-block-navigation__container { gap: 0; }
/* Separador vertical entre opciones, como en la web original. */
@media (min-width: 1101px) {
	.hv-header .hv-menu .wp-block-navigation__container > .wp-block-navigation-item { padding: 0 17px; position: relative; }
	.hv-header .hv-menu .wp-block-navigation__container > .wp-block-navigation-item:first-child { padding-left: 0; }
	.hv-header .hv-menu .wp-block-navigation__container > .wp-block-navigation-item:not(:last-child)::after {
		content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 16px; margin-top: -8px; background: #333;
	}
	.hv-header .hv-menu .wp-block-navigation__submenu-icon { display: none; }
}
.hv-header .hv-menu .wp-block-navigation-item__content { color: var(--hv-ink-muted); line-height: 35px; padding: 0; }
.hv-header .hv-menu .wp-block-navigation-item__content:hover,
.hv-header .hv-menu .current-menu-item > .wp-block-navigation-item__content,
.hv-header .hv-menu .current-menu-ancestor > .wp-block-navigation-item__content { color: var(--hv-forest-sage); }
.hv-header .hv-menu .wp-block-navigation__submenu-container {
	background: #fff;
	border: 0 !important;
	box-shadow: 1px 1px 2px rgba(26, 26, 26, .2);
	padding: 18px 0 16px;
	min-width: 220px;
	font-size: 11px;
	letter-spacing: 2px;
}
.hv-header .hv-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 6px 18px; line-height: 27px; }
.hv-header .hv-header__cta { flex: 0 0 auto; }
.hv-header .hv-header__cta .wp-block-button__link {
	font-size: 12.6px;
	font-weight: 700;
	letter-spacing: 0.63px;
	line-height: 15px;
	padding: 10px 20px;
	border: 1px solid var(--hv-hairline);
	border-radius: 999px;
}

/* Menú móvil */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem max(16px, 5vw);
	background: var(--hv-white) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 15px;
	padding-block: 0.6rem;
}
.hv-header .wp-block-navigation__responsive-container-open svg { fill: var(--hv-forest-sage); width: 28px; height: 28px; }
@media (max-width: 1100px) {
	.hv-header__inner { min-height: 72px; gap: 16px; }
	.hv-header .wp-block-site-logo img { width: 140px; }
	.hv-header .hv-menu { flex: 0 0 auto; order: 3; }
	.hv-header .hv-header__cta { margin-left: auto; }
}

/* -------------------------------------------------------------
   Pie de página
   ------------------------------------------------------------- */
.hv-footer { color: var(--hv-sage-tint); }
.hv-footer a { color: var(--hv-sage-tint); text-decoration: none; }
.hv-footer a:hover { color: var(--hv-white); text-decoration: underline; }
.hv-footer :where(h2, h3, h4, h5, h6) { color: var(--hv-white); }
.hv-footer .hv-footer__legal { font-size: 0.8125rem; line-height: 1.6; opacity: 0.85; }
.hv-footer .wp-block-separator { border-color: rgba(255, 255, 255, 0.2); opacity: 1; }
.hv-footer ul { list-style: none; padding: 0; margin: 0; }
.hv-footer li { margin-bottom: 0.6rem; }

/* -------------------------------------------------------------
   Contenido de artículos
   ------------------------------------------------------------- */
.hv-entry :where(p, li) { color: var(--hv-ink-muted); }
.hv-entry .wp-block-post-content > * + :where(h2, h3) { margin-top: 2.5rem; }
.hv-meta { font-size: 0.8125rem; color: var(--hv-ink-soft); letter-spacing: 0.04em; }

/* Comentarios */
.wp-block-comments { border-top: 1px solid var(--hv-driftwood-tint); padding-top: 2rem; }
.wp-block-comment-template li { border-bottom: 1px solid var(--hv-driftwood-tint); padding-bottom: 1.25rem; }
.wp-block-post-comments-form :where(input[type="text"], input[type="email"], input[type="url"], textarea) {
	border: 1px solid var(--hv-hairline);
	border-radius: 10px;
	padding: 0.75rem 1rem;
	font: inherit;
}

/* Formularios en general */
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], select, textarea) {
	font: inherit;
	color: var(--hv-ink);
	background: var(--hv-white);
	border: 1px solid var(--hv-hairline);
	border-radius: 10px;
	padding: 0.75rem 1rem;
}
:where(input, select, textarea):focus { border-color: var(--hv-forest-sage); outline: none; box-shadow: 0 0 0 3px var(--hv-sage-tint); }

/* -------------------------------------------------------------
   Aparición suave al hacer scroll (la primera pantalla siempre
   se ve al instante; solo se anima lo que entra después).
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.hv-js .hv-reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--hv-dur) var(--hv-ease), transform var(--hv-dur) var(--hv-ease); }
	.hv-js .hv-reveal.is-visible { opacity: 1; transform: none; }
	/* Elementos que WPBakery ocultaba hasta animarlos con su JavaScript (ya no existe): misma aparición que .hv-reveal. */
	.hv-js .wpb_animate_when_almost_visible:not(.is-visible) { opacity: 0 !important; transform: translateY(18px); }
	.hv-js .wpb_animate_when_almost_visible { transition: opacity var(--hv-dur) var(--hv-ease), transform var(--hv-dur) var(--hv-ease); }
}

/* -------------------------------------------------------------
   Portada (patrón "Portada")
   ------------------------------------------------------------- */
.hv-hero .wp-block-media-text { min-height: min(78vh, 680px); }
.hv-hero .wp-block-media-text__content { padding: var(--wp--preset--spacing--60) clamp(24px, 6vw, 80px); }
.hv-hero .wp-block-media-text__content > * { max-width: 560px; }
.hv-hero p { color: var(--hv-ink-muted); }
@media (max-width: 781px) {
	.hv-hero .wp-block-media-text { min-height: 0; }
	.hv-hero .wp-block-media-text__media { min-height: 320px; }
}

/* Cita sin borde (estilo "plain") centrada, para testimonios */
.wp-block-quote.is-style-plain { border: 0; padding: 0; text-align: center; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--hv-forest-deep); }
.wp-block-quote cite { display: block; margin-top: 1rem; font-family: var(--hv-font-sans); font-style: normal; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hv-ink-soft); }

/* El botón de cada tarjeta queda siempre abajo, aunque los textos midan distinto. */
.is-style-hv-card > .wp-block-buttons:last-child,
.is-style-hv-card-cream > .wp-block-buttons:last-child { margin-top: auto; }

/* =============================================================
   ESCALA TIPOGRÁFICA ÚNICA
   Todo el texto del sitio usa uno de estos 10 tamaños. La web
   anterior tenía más de 20 tamaños distintos; al migrar, cada
   texto se asignó al escalón más cercano. Para cambiar un tamaño
   en todo el sitio, se cambia aquí y nada más.
   (Escritorio → móvil, interpolado entre 375 y 1440 px de ancho.)
   ============================================================= */
:root {
	--hv-fs-display: clamp(32px, calc(27.07px + 1.315vw), 46px);
	--hv-fs-h2:      clamp(28px, calc(23.07px + 1.315vw), 42px);
	--hv-fs-h3:      clamp(22px, calc(19.18px + 0.751vw), 30px);
	--hv-fs-h4:      clamp(19px, calc(18.30px + 0.188vw), 21px);
	--hv-fs-h5:      clamp(17px, calc(16.65px + 0.094vw), 18px);
	--hv-fs-lead:    clamp(18px, calc(16.94px + 0.282vw), 21px);
	--hv-fs-body:    clamp(16px, calc(15.65px + 0.094vw), 17px);
	--hv-fs-small:   14px;
	--hv-fs-xs:      13px;
	--hv-fs-btn:     14px;
}

/* Valores por defecto, sin especificidad (cualquier clase los cambia). */
:where(body) { font-size: var(--hv-fs-body); line-height: 1.6; }
:where(h1, h2, h3, h4, h5, h6) { color: var(--hv-forest-sage); font-weight: 400; line-height: 1.2; }
:where(h1) { font-size: var(--hv-fs-display); }
:where(h2) { font-size: var(--hv-fs-h2); }
:where(h3) { font-size: var(--hv-fs-h3); }
:where(h4) { font-size: var(--hv-fs-h4); }
:where(h5) { font-size: var(--hv-fs-h5); }
:where(h6) { font-size: var(--hv-fs-small); }
:where(a) { color: var(--hv-forest-sage); }
:where(a:hover) { color: var(--hv-forest-deep); }

/* Clases de la escala (las pone la migración y se pueden usar a mano). */
/* Interlineados: los que usaba la web original en cada tamaño (medidos en las páginas capturadas). */
body .hv-fs-display { font-size: var(--hv-fs-display); line-height: 1.3; }
body .hv-fs-h2      { font-size: var(--hv-fs-h2); line-height: 1.3; }
body .hv-fs-h3      { font-size: var(--hv-fs-h3); line-height: 1.2; }
body .hv-fs-h4      { font-size: var(--hv-fs-h4); line-height: 1.3; }
body .hv-fs-h5      { font-size: var(--hv-fs-h5); line-height: 1.45; }
body .hv-fs-lead    { font-size: var(--hv-fs-lead); line-height: 1.4; }
body .hv-fs-body    { font-size: var(--hv-fs-body); line-height: 1.2; }
body .hv-fs-small   { font-size: var(--hv-fs-small); line-height: 1.5; }
body .hv-fs-xs      { font-size: var(--hv-fs-xs); line-height: 1.2; }
body .hv-fs-btn     { font-size: var(--hv-fs-btn); line-height: 1.2; }
/* Lo que va dentro de un texto (negritas, cursivas, spans) hereda su tamaño. */
body [class*="hv-fs-"] :where(span, strong, b, em, i, a, small, sup) { font-size: inherit; line-height: inherit; }

/* Filas a ancho completo (antes las estiraba WPBakery con JavaScript). */
.hv-stretch { box-sizing: border-box !important; width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; left: auto !important; }
/* "Estirar solo la fila" de WPBakery: el fondo va de borde a borde, pero el contenido sigue alineado con la
   columna (el relleno lateral que calculaba su JavaScript: mitad del espacio sobrante menos los 15 px de la fila). */
.hv-stretch.hv-stretch--boxed { padding-left: max(0px, calc(50vw - 50% - 15px)) !important; padding-right: max(0px, calc(50vw - 50% - 15px)) !important; }
.page_content_wrap { overflow-x: clip; }

/* Contenedor de las páginas migradas: misma base de texto que la web original. */
.page_content_wrap { font-family: var(--hv-font-sans); color: var(--hv-ink); }

/* Cormorant dentro de un texto (p. ej. la parte en cursiva de un título)
 * va 1,2 veces más grande que el resto, como en la web original: su letra
 * es más pequeña a igual tamaño y así se ven parejas. */
body [class*="hv-fs-"] :where(.font-garamont-h1, .font-garamont-h2, .font-garamont-h3, .font-garamont-h4, .font-garamont-t, .hv-serif, .is-style-hv-serif) {
	font-size: 1.2em;
	line-height: 1;
}

/* Las filas de WPBakery tienen margen negativo de 15 px: se recortan para que no haya scroll lateral. */
.footer_wrap { overflow-x: clip; }

/* Botón del menú móvil: sin el fondo verde que el CSS heredado da a todos los <button>. */
.hv-header .wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	background: none !important;
	border: 0 !important;
	padding: 4px !important;
	color: var(--hv-forest-sage) !important;
	box-shadow: none !important;
}
.hv-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; fill: currentColor; }
/* Hasta 1100 px (móvil y tablet) el menú se abre con el icono, como en la web
 * original. El bloque de WordPress solo lo hace bajo 600 px, así que se fuerza. */
@media (max-width: 1100px) {
	.hv-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.hv-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
/* En móvil y tablet la web original solo muestra logo y menú. */
@media (max-width: 1100px) {
	.hv-header .hv-header__cta { display: none; }
	.hv-header .hv-menu { margin-left: auto; }
}

/* "Patient Login": el CSS heredado de Luxmed pinta todos los enlaces de celeste
 * (#2e9dd1) con más prioridad que el estilo del botón. Se fija el blanco. */
.hv-header .hv-header__cta .wp-block-button__link,
.hv-header .hv-header__cta .wp-block-button__link:hover,
.hv-header .hv-header__cta .wp-block-button__link:focus { color: #fff !important; }
.hv-header .hv-header__cta .wp-block-button__link:hover { background: var(--hv-forest-deep); }

/* Pie de página: texto un escalón más pequeño (14 px) para que respire. */
.footer_wrap .hv-fs-body,
.footer_wrap .hv-fs-lead { font-size: var(--hv-fs-small) !important; line-height: 1.6 !important; }
.footer_wrap .hv-fs-small,
.footer_wrap .hv-fs-xs { font-size: var(--hv-fs-xs) !important; }
.footer_wrap .hv-fs-h5,
.footer_wrap .hv-fs-h4 { font-size: 16px !important; }

/* Menú abierto (móvil y tablet): opciones alineadas a la izquierda y botón de cierre visible. */
.hv-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px max(20px, 5vw) 40px; }
.hv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.hv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.hv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	justify-content: flex-start !important;
	text-align: left;
}
.hv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 4px; width: 100%; padding-top: 32px; }
.hv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { padding: 4px 0 4px 16px !important; box-shadow: none; border-left: 1px solid var(--hv-driftwood-tint) !important; }
.hv-header .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; fill: currentColor; display: block; }
body .hv-header .wp-block-navigation button.wp-block-navigation__responsive-container-close,
body .hv-header .wp-block-navigation button.wp-block-navigation__responsive-container-open {
	background-color: transparent !important;
	background-image: none !important;
}

/* Mismo movimiento para todo lo interactivo: enlaces, botones, tarjetas y menús. */
a, button, .wp-element-button, .wp-block-button__link,
.wp-block-navigation-item__content, .wp-block-navigation__submenu-container,
[class*="card"], [class*="__btn"], [class*="-btn"], .vc_btn3 {
	transition-duration: var(--hv-dur);
	transition-timing-function: var(--hv-ease);
}
@media (prefers-reduced-motion: reduce) {
	:root { --hv-dur: 0s; }
}

/* -------------------------------------------------------------
   Blog: ajustes para que los bloques de WordPress (lista de
   artículos, buscador, categorías) usen el aspecto original.
   ------------------------------------------------------------- */
.blog_archive .posts_container, .related_wrap .posts_container { list-style: none; padding: 0; margin: 0; }
.blog_archive .posts_container > li { margin: 0; }
.blog_archive .wp-block-post-excerpt__more-text { margin-top: 1em; }
.post_item .wp-block-post-excerpt__more-link, .post_item .more-link { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: var(--hv-fs-small); }
.post_meta { gap: 0 .75em; align-items: baseline; }
.post_meta > * { margin: 0; }
.post_meta .wp-block-post-terms a + a::before { content: ""; }
.widget_categories .wp-block-categories-list, .widget_recent_entries .wp-block-latest-posts { list-style: none; padding: 0; margin: 0; }
.widget_search .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.widget_search .wp-block-search__input { border: 1px solid var(--hv-hairline); border-radius: 0; padding: .9em 1em; }
.widget_search .wp-block-search__button { margin: 0; border-radius: 0; background: var(--hv-forest-sage); color: #fff; border: 0; padding: 0 1em; }
.widget_search .wp-block-search__button svg { fill: currentColor; }
.wp-block-query-pagination.pagination { gap: 8px; margin-top: 2em; }
.wp-block-query-pagination .page-numbers, .wp-block-query-pagination a {
	display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 50px; padding: 0 .5em;
	border: 1px solid var(--hv-hairline); text-decoration: none; color: var(--hv-ink-muted);
}
.wp-block-query-pagination .page-numbers.current { background: var(--hv-forest-sage); border-color: var(--hv-forest-sage); color: #fff; }
.post_featured img { display: block; width: 100%; height: auto; }

/* Fondo crema de toda la zona del blog (en la web original lo ponía .page_wrap). */
body.blog_mode_blog .wp-site-blocks { background: var(--hv-cream-linen); }
.post_item .post_meta { display: block !important; }
.post_item .post_meta > * { display: inline; }
.post_item .post_categories { display: none; }
.post_item .post_featured { margin-top: 0 !important; }
.post_item .wp-block-post-excerpt__more-text { margin: 30px 0 0; }
.post_item .wp-block-post-excerpt__more-link {
	display: inline-block; background: var(--hv-forest-sage); color: #fff !important; text-decoration: none;
	padding: 17px 37px; border-radius: 33px; font-size: 11px; line-height: 18px; letter-spacing: 2px; font-weight: 400; text-transform: uppercase;
	transition: background-color var(--hv-dur) var(--hv-ease);
}
.post_item .wp-block-post-excerpt__more-link:hover { background: var(--hv-forest-deep); }
.blog_archive .posts_container > li + li { margin-top: 47px; }
/* Sin hueco automático entre cabecera, portada y contenido (WordPress pone 24 px). */
.wp-site-blocks > * + * { margin-block-start: 0; }
/* Dentro de las zonas migradas los espacios los ponen los estilos originales
 * (márgenes de párrafos, títulos, tarjetas), no el "blockGap" de WordPress. */
.page_content_wrap :where(.is-layout-flow, .is-layout-constrained) > * { margin-block-start: 0; }
.post_item .post_meta { font-size: var(--hv-fs-small); line-height: 2.25; }
.post_item .post_title { margin-top: 31.5px; }
.widget_categories li, .widget_recent_entries li { line-height: 1.2; }
.post_item_single .post_featured img { object-fit: cover; }
.hv-share { display: inline-flex; gap: 10px; }
.hv-share__link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--hv-sage-tint); color: var(--hv-forest-sage); transition: background-color var(--hv-dur) var(--hv-ease), color var(--hv-dur) var(--hv-ease); }
.hv-share__link:hover { background: var(--hv-forest-sage); color: #fff; }
.comments_field input, .comments_field textarea { width: 100%; }
.comments_field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.post_item .post_featured { margin-bottom: 16px !important; }
.post_item > :last-child, .post_item .post_content > :last-child, .post_item .wp-block-post-excerpt { margin-bottom: 0 !important; }
.hv-blog-hero { overflow-x: clip; }

/* -------------------------------------------------------------
   Selector de idioma (EN | ES) en la cabecera — [hv_lang_switch]
   ------------------------------------------------------------- */
.hv-lang { display: flex; align-items: center; flex: 0 0 auto; gap: 0; margin-right: 22px; font-family: var(--hv-font-sans); font-size: 12.6px; letter-spacing: 1px; line-height: 1; }
.hv-lang__item { padding: 6px 7px; color: var(--hv-ink-muted); text-decoration: none; transition: color var(--hv-dur) var(--hv-ease); }
.hv-lang__item + .hv-lang__item { border-left: 1px solid var(--hv-hairline); }
.hv-header__inner > .hv-lang { margin-right: 22px; } /* gana a .is-layout-flex > * de WordPress */
a.hv-lang__item:hover, a.hv-lang__item:focus-visible { color: var(--hv-forest-sage); }
.hv-lang__item.is-current { color: var(--hv-forest-sage); font-weight: 600; }
@media (max-width: 1100px) {
	.hv-header__inner > .hv-lang { order: 2; margin: 0 4px 0 auto; }
	.hv-header .hv-menu { margin-left: 0; }
}

/* Sin JavaScript (o fuera de la animación) se ven siempre. */
.wpb_animate_when_almost_visible { opacity: 1 !important; }

/* -------------------------------------------------------------
   Cabecera entre 1101 y 1759 px: el mismo diseño en una sola fila. El menú
   completo no cabe con las medidas originales (pensadas para 1760 px), así que
   logo, letras, separaciones, idioma y botón se reducen en proporción al ancho
   (1 vw = 1/1760 de las medidas originales). Desde 1760 px, medidas originales;
   hasta 1100 px, menú con icono.
   ------------------------------------------------------------- */
@media (min-width: 1101px) and (max-width: 1759px) {
	.hv-header__inner { gap: 2.2vw; padding: 0 3%; flex-wrap: nowrap !important; }
	.hv-header .wp-block-site-logo img { width: 9.6vw; min-width: 104px; }
	.hv-header .hv-menu { font-size: 0.716vw; letter-spacing: 0.045vw; }
	.hv-header .hv-menu .wp-block-navigation__container { flex-wrap: nowrap; }
	.hv-header .hv-menu .wp-block-navigation__container > .wp-block-navigation-item { padding: 0 0.95vw; }
	.hv-header .hv-menu .wp-block-navigation-item__content { white-space: nowrap; }
	.hv-header__inner > .hv-lang { margin-right: 0.6vw; font-size: 0.716vw; letter-spacing: 0.045vw; }
	.hv-lang__item { padding: 0.35vw 0.4vw; }
	.hv-header .hv-header__cta .wp-block-button__link { font-size: 0.716vw; padding: 0.57vw 1.14vw; line-height: 1.2; white-space: nowrap; }
}

/* -------------------------------------------------------------
   Ebooks: visor de PDF (bloque Archivo con vista previa) a pantalla
   completa sobre gris, como el visor de libro de la web original.
   ------------------------------------------------------------- */
.hv-ebook { background: #7f7f7f; padding: 0; }
.hv-ebook .wp-block-file { margin: 0; }
.hv-ebook .wp-block-file__embed { display: block; width: 100%; height: 100vh !important; border: 0; }
/* Con visor: solo el PDF. Sin visor (móviles que no muestran PDF incrustado): botón para abrirlo. */
.hv-ebook .wp-block-file:has(.wp-block-file__embed:not([hidden])) > a { display: none; }
.hv-ebook .wp-block-file:has(.wp-block-file__embed[hidden]) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 60vh; padding: 40px 16px; text-align: center; }
.hv-ebook .wp-block-file:has(.wp-block-file__embed[hidden]) > a:not(.wp-block-file__button) { color: var(--hv-white); font-family: var(--hv-font-serif); font-size: var(--hv-fs-h3); text-decoration: none; }
.hv-ebook .wp-block-file__button { display: none; }
.hv-ebook .wp-block-file:has(.wp-block-file__embed[hidden]) > a:not(.wp-block-file__button)::after { content: ""; display: block; margin: 18px auto 0; width: 46px; height: 46px; border-radius: 50%; background: var(--hv-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a6b58' stroke-width='2'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / 22px no-repeat; }
.page_content_wrap .hv-ebook .wp-block-file__embed,
body:not(.page-template-blank) .hv-ebook .wp-block-file__embed { height: calc(100vh - 89px) !important; }

/* Páginas en blanco (tarjetas de doctores…): las filas de WPBakery tienen margen negativo de 15 px. */
.hv-blank { overflow-x: clip; }

/* Rejilla estándar de WPBakery con prioridad: cada CSS de página trae ".vc_column_container { width: 100% }" y,
   si se carga después de otro (p. ej. en el blog: blog, blog-hero, blog-library tras el del pie), anulaba el ancho
   de las columnas del otro (el pie del blog salía en una sola columna). Mismos valores que WPBakery. */
@media (min-width: 768px) {
	.vc_row > .vc_column_container[class*="vc_col-sm-"] { float: left; }
	.vc_row > .vc_col-sm-1 { width: 8.33333%; }
	.vc_row > .vc_col-sm-2 { width: 16.6667%; }
	.vc_row > .vc_col-sm-3 { width: 25%; }
	.vc_row > .vc_col-sm-4 { width: 33.3333%; }
	.vc_row > .vc_col-sm-5 { width: 41.6667%; }
	.vc_row > .vc_col-sm-6 { width: 50%; }
	.vc_row > .vc_col-sm-7 { width: 58.3333%; }
	.vc_row > .vc_col-sm-8 { width: 66.6667%; }
	.vc_row > .vc_col-sm-9 { width: 75%; }
	.vc_row > .vc_col-sm-10 { width: 83.3333%; }
	.vc_row > .vc_col-sm-11 { width: 91.6667%; }
	.vc_row > .vc_col-sm-12 { width: 100%; }
}

/* Care Team / Equipo de Atención: la fila de tres sellos (Licensed Medical Providers…) cabe justa; con la
   escala tipográfica unificada el tercero bajaba de línea entre 1024 y 1300 px. Se mantiene en una fila. */
@media (min-width: 1024px) {
	.hv26-px60-all.hv26-d-flex { flex-wrap: nowrap; }
}

/* Menú móvil: buscador e iconos de Facebook/Instagram, como el menú móvil de la web original.
   Solo dentro del menú abierto (en escritorio no se ven). */
.hv-header .hv-menu .hv-menu-extra { display: none; }
.hv-header .hv-menu .is-menu-open .hv-menu-extra { display: flex; }
.hv-header .hv-menu .is-menu-open .hv-menu-search { width: 100%; max-width: 420px; margin-top: 1.5rem; }
.hv-header .hv-menu .is-menu-open .hv-menu-search .wp-block-search__inside-wrapper { border: 1px solid var(--hv-hairline); border-radius: 999px; padding: 4px 4px 4px 16px; }
.hv-header .hv-menu .is-menu-open .hv-menu-search .wp-block-search__input { border: 0; background: transparent; font-size: 15px; }
.hv-header .hv-menu .is-menu-open .hv-menu-search .wp-block-search__button { background: var(--hv-forest-sage) !important; color: var(--hv-white) !important; border: 0; border-radius: 999px; }
.hv-header .hv-menu .is-menu-open .hv-menu-socials { gap: 12px; margin-top: 1rem; }
.hv-header .hv-menu .is-menu-open .hv-menu-socials .wp-social-link { background: var(--hv-forest-sage) !important; }
.hv-header .hv-menu .is-menu-open .wp-block-navigation__container { order: 1; }
.hv-header .hv-menu .is-menu-open .hv-menu-search { order: 2; }
.hv-header .hv-menu .is-menu-open .hv-menu-socials { order: 3; }
.hv-header .hv-menu .is-menu-open .wp-block-navigation__container:has(.hv-menu-socials) { order: 3; }

/* Texto solo para lectores de pantalla y buscadores (como .hv-sr-text de la web original). */
.hv-sr-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ------------------------------------------------------------------
   Flipbook (inc/flipbook.php): ebook con efecto libro, igual que el sitio antiguo.
   Antes de que cargue la librería se reserva el espacio en gris para que la página no salte.
   ------------------------------------------------------------------ */
.hv-flipbook { max-width: 1140px; margin: 0 auto; }
.hv-flipbook ._df_book:not([df-parsed]) { min-height: 70vh; background: #777; }
body .hv-ebook { margin-block-start: 0; margin-block-end: 0; }

/* Descripciones (extracto) de los artículos en listados del blog: en negro. */
.post_item .wp-block-post-excerpt, .post_item .wp-block-post-excerpt__excerpt { color: #000 !important; }
