/* ==========================================================================
   Hallenbeck — estilos del sitio
   Medidas tomadas del XD (lienzo de 1360 px). Escritorio primero, con
   ajustes en 1024 / 900 / 640 px.
   ========================================================================== */

/* Tokens ------------------------------------------------------------------ */

:root {
	--hb-navy: #33526d;
	--hb-navy-dark: #1e3646;
	--hb-blue: #3b6b8c;
	--hb-teal: #39a3b8;
	--hb-teal-strong: #209fb9;
	--hb-teal-light: #9bd0db;
	--hb-sky: #d7edf1;
	--hb-white: #fff;

	/* Texto: #707070 del XD oscurecido para leerse cómodo (6:1 sobre el celeste). */
	--hb-text: #555;
	/* Teal del XD para texto: ajustado para contraste mínimo de texto grande. */
	--hb-accent-text: #3399ae;
	--hb-accent-text-on-sky: #2e8da1;
	--hb-link-on-sky: #1a6f80;

	--hb-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--hb-container: 1108px;
	--hb-container-wide: 1296px;
	--hb-container-narrow: 760px;
	--hb-gutter: clamp(16px, 3vw, 32px);

	--hb-radius-lg: 20px;
	--hb-radius: 10px;
	--hb-radius-sm: 6px;

	--hb-section-space: clamp(40px, 5vw, 64px);
	--hb-title-space: clamp(32px, 5vw, 72px);
	--hb-header-h: 135px;

	--hb-ease: cubic-bezier(.2, .7, .2, 1);
	--hb-ease-out: cubic-bezier(.16, 1, .3, 1);
	--hb-reveal-distance: 12px;
	--hb-reveal-duration: .6s;
}

/* Base -------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}

body {
	margin: 0;
	background: var(--hb-white);
	color: var(--hb-text);
	font-family: var(--hb-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--hb-navy);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.2;
	text-wrap: balance;
}

p {
	margin: 0;
}

a {
	color: var(--hb-blue);
	text-underline-offset: .18em;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

address {
	font-style: normal;
}

:focus-visible {
	outline: 3px solid var(--hb-teal);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 20px;
	clip: auto;
	background: var(--hb-white);
	color: var(--hb-navy);
	font-weight: 600;
	border-radius: var(--hb-radius);
}

.hb-icon {
	flex: none;
	width: auto;
	height: 1em;
	fill: currentColor;
}

/* Layout ------------------------------------------------------------------ */

.hb-container {
	width: 100%;
	max-width: calc(var(--hb-container) + 2 * var(--hb-gutter));
	margin-inline: auto;
	padding-inline: var(--hb-gutter);
}

.hb-container--wide {
	max-width: calc(var(--hb-container-wide) + 2 * var(--hb-gutter));
}

.hb-container--narrow {
	max-width: calc(var(--hb-container-narrow) + 2 * var(--hb-gutter));
}

.hb-section {
	padding-block: var(--hb-section-space);
	scroll-margin-top: 16px;
}

.hb-section__title,
.hb-section__header {
	margin-bottom: var(--hb-title-space);
	text-align: center;
}

.hb-section__header .hb-section__intro {
	margin-top: 12px;
}

.hb-section__intro {
	max-width: 702px;
	margin-inline: auto;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	text-align: center;
	text-wrap: pretty;
}

.hb-section__title + .hb-section__intro {
	margin-top: calc(-1 * var(--hb-title-space) + 14px);
	margin-bottom: 46px;
}

/* Tipografía -------------------------------------------------------------- */

.hb-h2 {
	font-size: clamp(28px, 1.9vw + 14px, 40px);
	line-height: 1.225;
}

.hb-h3 {
	font-size: clamp(21px, .6vw + 17px, 25px);
	line-height: 1.2;
}

.hb-accent {
	color: var(--hb-accent-text);
}

/* Sobre los bloques celestes, el teal necesita un tono más oscuro para el contraste */
.hb-card-sky .hb-accent {
	color: var(--hb-accent-text-on-sky);
}

.hb-prose {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: -0.015em;
}

.hb-prose p + p {
	margin-top: 17px;
}

.hb-prose strong {
	font-weight: 600;
}

/* Botones ----------------------------------------------------------------- */

.hb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 22px;
	border: 2px solid transparent;
	border-radius: var(--hb-radius);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s var(--hb-ease), color .2s var(--hb-ease), border-color .2s var(--hb-ease), transform .2s var(--hb-ease);
}

.hb-btn .hb-icon--calendar {
	height: 18px;
}

.hb-btn .hb-icon--arrow-up-right {
	height: 13px;
	transition: transform .2s var(--hb-ease);
}

.hb-btn:hover .hb-icon--arrow-up-right {
	transform: translate(2px, -2px);
}

.hb-btn:active {
	transform: translateY(1px);
}

.hb-btn--primary {
	background: var(--hb-blue);
	color: var(--hb-white);
}

.hb-btn--primary:hover {
	background: var(--hb-navy);
	color: var(--hb-white);
}

.hb-btn--outline {
	border-color: var(--hb-blue);
	color: var(--hb-blue);
}

.hb-btn--outline:hover {
	background: var(--hb-blue);
	color: var(--hb-white);
}

.hb-btn--outline-soft {
	border-color: var(--hb-teal-light);
	color: var(--hb-blue);
}

.hb-btn--outline-soft:hover {
	border-color: var(--hb-blue);
	background: var(--hb-blue);
	color: var(--hb-white);
}

.hb-btn--light {
	background: var(--hb-white);
	color: var(--hb-blue);
}

.hb-btn--light:hover {
	background: var(--hb-sky);
	color: var(--hb-navy);
}

.hb-btn--outline-light {
	border-color: var(--hb-teal-light);
	color: var(--hb-teal-light);
}

.hb-btn--outline-light:hover {
	background: var(--hb-teal-light);
	color: var(--hb-navy);
}

.hb-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 22px;
}

.hb-btn-stack {
	display: grid;
	gap: 10px;
}

/* Superficies ------------------------------------------------------------- */

.hb-card-sky {
	background: var(--hb-sky);
	border-radius: var(--hb-radius-lg);
}

.hb-frame {
	border: 1px dashed var(--hb-teal-light);
	border-radius: var(--hb-radius);
	background: var(--hb-white);
}

/* Bloque dividido: foto + texto (About, Team, Contact) */
.hb-split {
	display: grid;
	grid-template-columns: 640fr 656fr;
	overflow: hidden;
}

.hb-split--media-right {
	grid-template-columns: 658fr 638fr;
}

.hb-split--contact {
	grid-template-columns: 544fr 752fr;
}

.hb-split__media {
	position: relative;
	min-height: 360px;
	background: var(--hb-white);
}

.hb-split__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}

.hb-split__body {
	align-self: center;
	max-width: calc(450px + 114px + 94px);
	padding: 56px 94px 56px 114px;
}

.hb-split--media-right .hb-split__body {
	padding: 56px 94px;
}

.hb-split--contact .hb-split__body {
	max-width: none;
	padding: 52px 94px 64px 114px;
}

.hb-split__body > .hb-h2,
.hb-split__body > .hb-h3 {
	margin-bottom: 22px;
}

/* Header ------------------------------------------------------------------ */

.site-header {
	position: relative;
	z-index: 50;
	background: var(--hb-blue);
	color: var(--hb-white);
}

.site-header__inner {
	display: flex;
	align-items: flex-end;
	gap: 40px;
	min-height: var(--hb-header-h);
	padding-block: 20px 14px;
}

.site-header__logo {
	align-self: center;
	margin-right: auto;
	color: var(--hb-white);
}

.hb-logo {
	width: 213px;
	height: auto;
}

.site-header__panel {
	display: flex;
	flex: 1;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.site-nav__list {
	display: flex;
	gap: clamp(18px, 2.5vw - 6px, 34px);
	padding-bottom: 20px;
}

.site-nav__list a {
	position: relative;
	display: block;
	padding-block: 4px;
	color: var(--hb-white);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav__list a::after {
	position: absolute;
	right: 0;
	bottom: -2px;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--hb-teal-light);
	content: "";
	transform: scaleX(0);
	transition: transform .25s var(--hb-ease);
}

.site-nav__list a:hover::after,
.site-nav__list a[aria-current="true"]::after {
	transform: scaleX(1);
}

.site-header__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
}

.site-header__cta {
	min-width: 215px;
}

/* Selector de idioma */
.hb-lang {
	position: relative;
}

.hb-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	padding: 4px 2px;
	border: 0;
	background: none;
	color: var(--hb-white);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.hb-lang__toggle .hb-icon--globe {
	height: 13px;
}

.hb-lang__chevron {
	height: 6px !important;
	transition: transform .2s var(--hb-ease);
}

.hb-lang__toggle[aria-expanded="true"] .hb-lang__chevron {
	transform: rotate(180deg);
}

.hb-lang__list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 60;
	min-width: 150px;
	padding: 6px;
	border-radius: var(--hb-radius);
	background: var(--hb-white);
	box-shadow: 0 12px 30px rgba(30, 54, 70, .18);
}

.hb-lang__list a {
	display: block;
	padding: 10px 12px;
	border-radius: var(--hb-radius-sm);
	color: var(--hb-navy);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.hb-lang__list a:hover,
.hb-lang__list a[aria-current="true"] {
	background: var(--hb-sky);
}

.site-header__toggle {
	display: none;
}

/* Hero -------------------------------------------------------------------- */

.hb-hero {
	position: relative;
	overflow: hidden;
}

.hb-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	min-height: 562px;
	padding-block: 64px;
}

.hb-hero__content {
	max-width: 640px;
}

.hb-hero__title {
	font-size: clamp(34px, 3.2vw + 10px, 54px);
	line-height: 1.111;
	letter-spacing: -0.015em;
}

.hb-hero__text {
	max-width: 310px;
	margin-top: 24px;
	color: var(--hb-blue);
	font-size: 16px;
	line-height: 1.5;
}

.hb-hero .hb-btn-row {
	margin-top: 26px;
}

.hb-hero__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 49.3%;
}

.hb-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 30% 0;
}

/* Funde el borde izquierdo del retrato con el fondo de la página */
@media (min-width: 901px) {
	.hb-hero__media {
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%);
		mask-image: linear-gradient(to right, transparent 0, #000 14%);
	}
}

/* Services ---------------------------------------------------------------- */

/* Flex en vez de grid: si la última fila queda incompleta, se centra. */
.hb-services__grid {
	--hb-cols: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.hb-service {
	flex: 0 0 calc((100% - (var(--hb-cols) - 1) * 20px) / var(--hb-cols));
}

.hb-service__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--hb-radius);
	color: var(--hb-white);
	text-decoration: none;
}

.hb-service__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 356 / 199;
	border-radius: var(--hb-radius) var(--hb-radius) 0 0;
	background: var(--hb-sky);
}

.hb-service__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--hb-ease);
}

.hb-service__link:hover .hb-service__media img {
	transform: scale(1.04);
}

.hb-service__bar {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	gap: 14px;
	min-height: 68px;
	padding: 8px 22px 8px 87px;
	border-radius: 0 0 var(--hb-radius) var(--hb-radius);
	background: var(--hb-blue);
	transition: background-color .2s var(--hb-ease);
}

.hb-service__link:hover .hb-service__bar {
	background: var(--hb-navy);
}

.hb-service__icon {
	position: absolute;
	top: -13px;
	left: 11px;
	display: grid;
	place-items: center;
	width: 62px;
	height: 63px;
	border-radius: var(--hb-radius);
	background: var(--hb-white);
	color: var(--hb-teal);
}

.hb-service__icon .hb-icon {
	width: 34px;
	height: 34px;
}

.hb-service__name {
	flex: 1;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.25;
}

.hb-service__name small {
	display: block;
	font-size: 14px;
	font-weight: 300;
}

.hb-service__arrow {
	display: grid;
	flex: none;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--hb-white);
	border-radius: var(--hb-radius-sm);
	transition: background-color .2s var(--hb-ease), color .2s var(--hb-ease);
}

.hb-service__arrow .hb-icon {
	height: 13px;
}

.hb-service__link:hover .hb-service__arrow,
.hb-service__link:focus-visible .hb-service__arrow {
	background: var(--hb-white);
	color: var(--hb-teal);
}

/* Team -------------------------------------------------------------------- */

.hb-team .hb-split {
	grid-template-columns: 7fr 5fr;
}

.hb-team .hb-split__media {
	min-height: 380px;
}

.hb-team .hb-split__media img {
	object-position: 50% 15%;
}

.hb-team__gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 23px;
}

.hb-team__gallery .hb-frame {
	overflow: hidden;
	aspect-ratio: 418 / 290;
}

.hb-team__gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}

/* Insurance --------------------------------------------------------------- */

.hb-insurance__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px 44px;
}

.hb-insurance__item {
	display: grid;
	place-items: center;
	width: 148px;
	height: 56px;
}

.hb-insurance__item img {
	width: auto;
	max-width: 100%;
	max-height: 46px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .6;
	transition: filter .3s var(--hb-ease), opacity .3s var(--hb-ease);
}

.hb-insurance__item:hover img {
	filter: none;
	opacity: 1;
}

/* Aseguradora sin logo: el nombre, con el mismo tono que los logos en gris. */
.hb-insurance__name {
	color: #6b6b6b;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: .02em;
	opacity: .75;
}

/* Location ---------------------------------------------------------------- */

.hb-location__card {
	display: grid;
	grid-template-columns: 1fr 740px;
	align-items: center;
	gap: 32px;
	min-height: 473px;
	padding: 17px 19px 17px 88px;
	border-radius: var(--hb-radius-lg);
}

.hb-location__address {
	margin-top: 14px;
	font-size: 16px;
	line-height: 1.4;
}

.hb-location__body .hb-btn-row {
	margin-top: 28px;
	gap: 12px;
}

.hb-location__hours {
	margin-top: 22px;
	font-size: 15px;
	line-height: 1.5;
}

.hb-location__hours-title {
	margin-bottom: 6px;
	color: var(--hb-navy);
	font-size: 16px;
	letter-spacing: 0;
}

.hb-location__hours li {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
}

.hb-location__days {
	min-width: 112px;
	font-weight: 600;
}

.hb-location__hours .is-closed span:last-child {
	font-style: italic;
}

/* Notas cortas bajo botones (correo, emergencias) */
.hb-note {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.45;
}

.hb-note + .hb-note {
	margin-top: 4px;
}

.hb-note--alert {
	color: var(--hb-navy);
	font-weight: 600;
}

.hb-insurance__cta {
	margin-top: 36px;
	font-size: 15px;
	text-align: center;
}

.hb-insurance__cta a {
	font-weight: 600;
	white-space: nowrap;
}

/* Flecha de las tarjetas de servicio: apunta a la derecha (ancla interna, no enlace externo) */
.hb-icon--inpage {
	transform: rotate(45deg);
}

.hb-location__map {
	overflow: hidden;
	height: 440px;
	border-radius: var(--hb-radius-lg);
	background: var(--hb-sky);
}

.hb-location__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* New patients ------------------------------------------------------------ */

.hb-newpatients__banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	overflow: hidden;
	min-height: 537px;
	padding: 58px 94px;
	border-radius: var(--hb-radius-lg);
	background: var(--hb-sky);
}

.hb-newpatients__media {
	position: absolute;
	inset: 0;
}

.hb-newpatients__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 30% 50%;
}

.hb-newpatients__card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 450px;
	min-height: 420px;
	padding: 48px 94px;
	border-radius: var(--hb-radius-lg);
	background: var(--hb-sky);
}

.hb-newpatients__card p {
	margin-top: 22px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.015em;
}

.hb-newpatients__card .hb-btn-stack {
	margin-top: 32px;
}

/* Patient portal ---------------------------------------------------------- */

.hb-portal__panel {
	padding: 56px var(--hb-gutter) 74px;
}

.hb-portal__panel .hb-section__header {
	margin-bottom: 58px;
}

.hb-portal__panel .hb-section__intro {
	font-size: 16px;
}

.hb-portal__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	max-width: var(--hb-container);
	margin-inline: auto;
}

.hb-portal-card {
	display: flex;
	flex-direction: column;
	min-height: 249px;
	padding: 23px 21px 20px;
	border-radius: var(--hb-radius);
	background: var(--hb-white);
}

.hb-portal-card__title {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 20px;
	letter-spacing: 0;
	line-height: 1.1;
}

.hb-portal-card__title > span:last-child {
	text-wrap: balance;
}

.hb-portal-card__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 43px;
	height: 43px;
	border-radius: 50%;
	background: var(--hb-teal-light);
	color: var(--hb-blue);
}

.hb-portal-card__icon .hb-icon {
	height: 22px;
}

.hb-portal-card > p {
	margin-top: 12px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.015em;
}

.hb-portal-card .hb-btn-row {
	margin-top: 22px;
}

.hb-portal-card__login {
	margin-top: 14px !important;
	font-size: 14px !important;
}

.hb-portal-card__login a {
	font-weight: 600;
}

/* Testimonials ------------------------------------------------------------ */

.hb-testimonials .hb-section__title {
	margin-bottom: 40px;
}

.hb-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.hb-testimonial figure {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 272px;
	margin: 0;
	padding: 34px 20px 28px;
}

.hb-stars {
	display: flex;
	gap: 2px;
}

.hb-stars__star {
	display: grid;
	place-items: center;
	width: 27px;
	height: 27px;
	background: var(--hb-teal-strong);
	color: var(--hb-white);
}

.hb-stars__star .hb-icon {
	height: 18px;
}

.hb-stars__star.is-empty {
	background: var(--hb-teal-light);
}

.hb-testimonial__quote {
	margin: 13px 0 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

.hb-testimonial__author {
	margin-top: auto;
	padding-top: 32px;
	font-size: 16px;
	font-weight: 600;
}

/* Contact ----------------------------------------------------------------- */

.hb-contact .hb-split__media {
	min-height: 596px;
}

.hb-contact .hb-split__media img {
	object-position: 40% 50%;
}

.hb-contact__subtitle {
	margin-top: -16px;
	font-size: 16px;
}

.hb-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 32px;
	margin-top: 48px;
}

.hb-contact__info {
	margin: 0;
}

.hb-contact__info > div + div {
	margin-top: 20px;
}

.hb-contact__info dt,
.hb-contact__label {
	color: var(--hb-accent-text-on-sky);
	font-size: clamp(21px, .6vw + 17px, 25px);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
}

.hb-contact__info dd {
	margin: 2px 0 0;
	font-size: 15px;
	line-height: 1.5;
}

.hb-contact__info a {
	color: var(--hb-link-on-sky);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	overflow-wrap: anywhere;
}

.hb-contact__info a:hover {
	color: var(--hb-navy);
	text-decoration-thickness: 2px;
}

.hb-hours tr.is-closed td {
	font-style: italic;
}

.hb-hours {
	margin-top: 8px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.45;
}

.hb-hours th,
.hb-hours td {
	padding: 0 0 5px;
	text-align: left;
	vertical-align: top;
}

.hb-hours th {
	padding-right: 18px;
	font-weight: 600;
	white-space: nowrap;
}

.hb-hours td {
	white-space: nowrap;
}

.hb-hours__note {
	max-width: 262px;
	margin-top: 14px;
	font-size: 14px;
	line-height: 1.45;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
	padding-top: 79px;
	background: var(--hb-navy);
	color: var(--hb-white);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 470fr 282fr 322fr 222px;
	align-items: start;
}

.site-footer__logo {
	display: inline-block;
	color: var(--hb-white);
}

.site-footer__address {
	margin-top: 36px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
}

.site-footer__phone {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
	color: var(--hb-white);
	font-size: 18px;
	font-weight: 800;
	text-decoration: none;
}

.site-footer__phone-icon {
	display: grid;
	place-items: center;
	width: 33px;
	height: 33px;
	border: 1px solid var(--hb-white);
	border-radius: 50%;
}

.site-footer__phone-icon .hb-icon {
	height: 14px;
}

.site-footer__phone:hover span:last-child {
	text-decoration: underline;
}

.site-footer__email {
	display: block;
	width: fit-content;
	margin-top: 14px;
	color: var(--hb-teal-light);
	font-size: 15px;
	text-decoration: none;
}

.site-footer__email:hover {
	color: var(--hb-white);
	text-decoration: underline;
}

.site-footer__title {
	color: var(--hb-white);
	font-size: 20px;
	letter-spacing: 0;
	line-height: 1.5;
}

.site-footer__list {
	max-width: 258px;
	margin-top: 12px;
	padding-left: 18px;
	line-height: 1.15;
}

.site-footer__list li + li {
	margin-top: 10px;
}

.site-footer__list a {
	color: var(--hb-teal-light);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
}

.site-footer__list a:hover {
	color: var(--hb-white);
	text-decoration: underline;
}

.site-footer__actions {
	display: grid;
	gap: 17px;
}

.site-footer__actions .hb-btn {
	padding-inline: 16px;
}

.site-footer__actions .hb-btn--light {
	color: var(--hb-navy);
}

.site-footer__legal {
	margin-top: 90px;
}

.site-footer__legal p {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	padding-block: 12px 14px;
	border-top: 1px solid var(--hb-teal-light);
	font-size: 14px;
	font-weight: 300;
}

.site-footer__legal p > * + *::before {
	margin-inline: 14px;
	content: "|";
}

.site-footer__legal a {
	color: var(--hb-white);
	text-decoration: none;
}

.site-footer__legal a:hover {
	text-decoration: underline;
}

/* Barra fija de contacto (solo móvil) */
.hb-mobile-bar {
	display: none;
}

/* Páginas de texto -------------------------------------------------------- */

.hb-page {
	padding-block: clamp(48px, 7vw, 96px);
}

.hb-page__title {
	margin-bottom: 32px;
	font-size: clamp(30px, 2.4vw + 12px, 44px);
}

.hb-page .hb-prose {
	font-size: 16px;
	font-weight: 400;
}

.hb-page .hb-btn-row {
	margin-top: 32px;
}

/* ==========================================================================
   Movimiento — sobrio: fundidos cortos y desplazamientos mínimos.
   Solo opacity/transform (sin saltos de layout). Todo cuelga de .hb-motion,
   que el <head> agrega solo si el usuario no pidió reducir el movimiento.
   ========================================================================== */

@keyframes hb-rise {
	from {
		opacity: 0;
		transform: translateY(var(--hb-reveal-distance));
	}
}

@keyframes hb-fade {
	from {
		opacity: 0;
	}
}

/* Entrada del hero */
.hb-motion .hb-hero__title,
.hb-motion .hb-hero__text,
.hb-motion .hb-hero .hb-btn-row {
	animation: hb-rise var(--hb-reveal-duration) var(--hb-ease-out) both;
}

.hb-motion .hb-hero__text {
	animation-delay: .08s;
}

.hb-motion .hb-hero .hb-btn-row {
	animation-delay: .16s;
}

.hb-motion .hb-hero__media img {
	animation: hb-fade .9s ease-out both;
}

/* Revelado al hacer scroll */
.hb-motion [data-hb-reveal],
.hb-motion [data-hb-stagger] > * {
	opacity: 0;
	transform: translateY(var(--hb-reveal-distance));
	transition:
		opacity var(--hb-reveal-duration) var(--hb-ease-out) var(--hb-delay, 0ms),
		transform var(--hb-reveal-duration) var(--hb-ease-out) var(--hb-delay, 0ms);
}

.hb-motion [data-hb-reveal].is-in,
.hb-motion [data-hb-stagger].is-in > * {
	opacity: 1;
	transform: none;
}

/* Mapa: aparece cuando terminó de cargar */
.hb-motion .hb-location__map iframe {
	opacity: 0;
	transition: opacity .5s ease-out;
}

.hb-motion .hb-location__map iframe.is-loaded {
	opacity: 1;
}

/* Microinteracciones */
.hb-service__link {
	transition: transform .25s var(--hb-ease-out), box-shadow .25s var(--hb-ease-out);
}

.hb-service__link:hover {
	box-shadow: 0 10px 22px rgba(30, 54, 70, .12);
	transform: translateY(-2px);
}

.hb-lang__list:not([hidden]) {
	animation: hb-fade .15s ease-out;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
	.site-header__inner,
	.site-header__panel {
		gap: 24px;
	}

	.site-nav__list a {
		font-size: 13px;
	}

	.hb-location__card {
		grid-template-columns: 1fr 62%;
		padding-left: 56px;
	}

	.hb-split__body,
	.hb-split--media-right .hb-split__body,
	.hb-split--contact .hb-split__body {
		padding-inline: 64px;
	}
}

/* Menú móvil a partir de 1024 px */
@media (max-width: 1024px) {
	:root {
		--hb-header-h: 76px;
	}

	.site-header {
		position: sticky;
		top: 0;
	}

	.site-header__inner {
		align-items: center;
		padding-block: 10px;
	}

	.hb-logo {
		width: 170px;
	}

	.site-header__toggle {
		display: grid;
		place-items: center;
		width: 48px;
		height: 48px;
		margin-right: -8px;
		padding: 0;
		border: 0;
		border-radius: var(--hb-radius);
		background: none;
		color: var(--hb-white);
		cursor: pointer;
	}

	.hb-burger,
	.hb-burger::before,
	.hb-burger::after,
	.hb-burger span {
		display: block;
		width: 24px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform .25s var(--hb-ease), opacity .2s;
	}

	.hb-burger {
		position: relative;
		background: none;
	}

	.hb-burger::before,
	.hb-burger::after {
		position: absolute;
		left: 0;
		content: "";
	}

	.hb-burger::before {
		top: -7px;
	}

	.hb-burger::after {
		top: 7px;
	}

	[aria-expanded="true"] .hb-burger span {
		opacity: 0;
	}

	[aria-expanded="true"] .hb-burger::before {
		transform: translateY(7px) rotate(45deg);
	}

	[aria-expanded="true"] .hb-burger::after {
		transform: translateY(-7px) rotate(-45deg);
	}

	.site-header__panel {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-10px);
		pointer-events: none;
		transition: opacity .25s var(--hb-ease), transform .35s var(--hb-ease-out), visibility 0s linear .35s;
		max-height: calc(100vh - var(--hb-header-h));
		max-height: calc(100dvh - var(--hb-header-h));
		overflow-y: auto;
		padding: 8px var(--hb-gutter) 28px;
		background: var(--hb-blue);
		box-shadow: 0 18px 30px rgba(30, 54, 70, .25);
	}

	.site-header__panel.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		pointer-events: auto;
		transition-delay: 0s;
	}

	.site-header.is-scrolled {
		box-shadow: 0 6px 20px rgba(30, 54, 70, .22);
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0;
		padding: 0;
	}

	.site-nav__list li + li {
		border-top: 1px solid rgba(255, 255, 255, .14);
	}

	.site-nav__list a {
		padding-block: 14px;
		font-size: 17px;
	}

	.site-nav__list a::after {
		display: none;
	}

	.site-header__actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.site-header__cta {
		width: 100%;
	}

	.hb-lang__toggle {
		margin-inline: auto;
	}

	.hb-lang__list {
		right: 50%;
		transform: translateX(50%);
	}

	.hb-split__body,
	.hb-split--media-right .hb-split__body,
	.hb-split--contact .hb-split__body {
		padding: 48px;
	}

	.hb-contact__grid {
		grid-template-columns: 1fr;
		gap: 28px;
		margin-top: 36px;
	}

	.hb-newpatients__banner {
		padding: 48px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 48px 32px;
	}
}

@media (max-width: 900px) {
	.hb-hero__inner {
		min-height: 0;
		padding-block: 48px 32px;
	}

	.hb-hero__content {
		max-width: 560px;
	}

	.hb-hero__text {
		max-width: 420px;
	}

	.hb-hero__media {
		position: relative;
		width: 100%;
		height: clamp(320px, 70vw, 520px);
	}

	.hb-hero__media img {
		object-position: 50% 0;
	}

	.hb-split,
	.hb-split--media-right,
	.hb-split--contact {
		grid-template-columns: 1fr;
	}

	.hb-split--media-right .hb-split__media {
		order: -1;
	}

	.hb-split__media,
	.hb-team .hb-split__media,
	.hb-contact .hb-split__media {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.hb-team .hb-split {
		grid-template-columns: 1fr;
	}

	.hb-team .hb-split__media {
		aspect-ratio: 16 / 10;
	}

	.hb-location__body .hb-btn-row {
		justify-content: center;
	}

	.hb-location__hours ul {
		display: inline-block;
		text-align: left;
	}

	.hb-split__body {
		max-width: none;
	}

	.hb-services__grid {
		--hb-cols: 2;
	}

	.hb-location__card {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 40px 16px 16px;
		text-align: center;
	}

	.hb-location__map {
		height: 360px;
	}

	.hb-newpatients__banner {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		padding: 0;
		background: var(--hb-sky);
	}

	.hb-newpatients__media {
		position: relative;
		aspect-ratio: 16 / 10;
	}

	.hb-newpatients__card {
		width: auto;
		min-height: 0;
		padding: 36px 32px 40px;
		border-radius: 0;
	}

	.hb-newpatients__card .hb-btn-stack {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}

	.hb-portal__cards,
	.hb-testimonials__grid {
		grid-template-columns: 1fr;
	}

	.hb-testimonial figure {
		min-height: 0;
	}
}

@media (max-width: 767px) {
	body {
		padding-bottom: 64px;
	}

	.hb-mobile-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 40;
		display: grid;
		grid-template-columns: 1fr 1fr;
		height: 64px;
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--hb-white);
		box-shadow: 0 -6px 20px rgba(30, 54, 70, .16);
	}

	.hb-mobile-bar a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		font-size: 15px;
		font-weight: 600;
		text-decoration: none;
	}

	.hb-mobile-bar .hb-icon {
		height: 18px;
	}

	.hb-mobile-bar__call {
		color: var(--hb-blue);
	}

	.hb-mobile-bar__appointment {
		background: var(--hb-blue);
		color: var(--hb-white);
	}
}

@media (max-width: 640px) {
	.hb-prose,
	.hb-section__intro,
	.hb-portal-card > p,
	.hb-testimonial__quote,
	.hb-newpatients__card p {
		font-size: 16px;
	}

	.hb-hero .hb-btn-row .hb-btn,
	.hb-portal-card .hb-btn {
		flex: 1 1 100%;
	}

	.hb-split__body,
	.hb-split--media-right .hb-split__body,
	.hb-split--contact .hb-split__body {
		padding: 32px 20px 36px;
	}

	.hb-services__grid {
		--hb-cols: 1;
	}

	.hb-team__gallery {
		grid-template-columns: 1fr;
	}

	.hb-insurance__list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px 16px;
	}

	.hb-insurance__item {
		width: auto;
		height: 52px;
	}

	.hb-insurance__item img {
		max-height: 38px;
	}

	.hb-portal__panel {
		padding: 40px 16px 16px;
	}

	.hb-portal__panel .hb-section__header {
		margin-bottom: 32px;
	}

	.hb-newpatients__card {
		padding: 32px 20px 36px;
	}

	.site-footer {
		padding-top: 56px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.site-footer__legal {
		margin-top: 48px;
	}
}
