/*
 * Shared component contracts for the compact site.
 * Keep page-specific hero and header rules in their dedicated stylesheets.
 */

/* Team cards: common text rows and a shared button baseline. */
body.hg-compact-site .hg-team-carousel__track {
  align-items: stretch !important;
}

body.hg-compact-site .hg-team-carousel__card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  height: auto !important;
  align-self: stretch !important;
}

body.hg-compact-site .hg-team-carousel__name {
  width: 100% !important;
  height: 2.5em !important;
  min-height: 2.5em !important;
  margin-bottom: 3px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: center !important;
}

body.hg-compact-site .hg-team-carousel__role {
  width: 100% !important;
  min-height: 3em !important;
  margin: 0 0 16px !important;
  text-align: center !important;
}

body.hg-compact-site .hg-team-carousel__more {
  margin-top: auto !important;
  align-self: center !important;
  font-size: 13px !important;
}

/* Portrait focal points: keep every face centred in the circular crop. */
body.hg-compact-site .hg-team-carousel__photo img {
  object-position: var(--hg-portrait-x, 50%) var(--hg-portrait-y, 20%) !important;
  transform-origin: var(--hg-portrait-x, 50%) var(--hg-portrait-y, 20%) !important;
  transform: translate(var(--hg-portrait-offset-x, 0), var(--hg-portrait-offset-y, 0)) scale(var(--hg-portrait-zoom, 1)) !important;
}

body.hg-compact-site .hg-team-carousel__card[data-member-id="orts"] .hg-team-carousel__photo img {
  object-position: 50% 28% !important;
  transform-origin: 50% 28% !important;
}

body.hg-compact-site .hg-team-carousel__card[data-member-id="navarro"] .hg-team-carousel__photo img {
  object-position: 50% 8% !important;
  transform-origin: 50% 16% !important;
  transform: translate(12px, -40px) scale(1.65) !important;
}

body.hg-compact-site .hg-team-carousel__card[data-member-id="serrano"] .hg-team-carousel__photo img {
  object-position: 50% 20% !important;
  transform-origin: 50% 20% !important;
  transform: translate(-18px, 26px) scale(2.9) !important;
}

/* Elementor content widgets: editable data, unchanged visual contracts. */
body.hg-compact-site :is(
  .elementor-widget-hg-specialty-cards,
  .elementor-widget-hg-treatment-list,
  .elementor-widget-hg-team-cards,
  .elementor-widget-hg-reviews-cards,
  .elementor-widget-hg-treatment-article
) {
  width: 100% !important;
  max-width: none !important;
}

body.hg-compact-site .elementor-widget-hg-specialty-cards .hg-specialties-grid {
  display: flex !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
}

body.hg-compact-site .elementor-widget-hg-specialty-cards .hg-speciality-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 18px 18px 20px !important;
  border: 1px solid #9F957F !important;
}

body.hg-compact-site .elementor-widget-hg-specialty-cards .hg-card-image img {
  display: block !important;
  width: min(100%, 224px) !important;
  height: 224px !important;
  margin: 0 auto !important;
  object-fit: cover !important;
}

body.hg-compact-site .elementor-widget-hg-treatment-list .hg-treatments-grid {
  display: flex !important;
  width: 100% !important;
}

/* These buttons used to receive their border/background from individual
   Elementor IDs. The managed widgets need the complete visual contract. */
body.hg-compact-site .elementor-widget-hg-specialty-cards .hg-card-btn .elementor-button,
body.hg-compact-site .elementor-widget-hg-treatment-list .hg-pill .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--hgc-brown, #4D3420) !important;
  fill: var(--hgc-brown, #4D3420) !important;
  background: transparent !important;
  border: 1px solid rgba(77, 52, 32, .72) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-family: 'Source Sans 3', sans-serif !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

body.hg-compact-site .elementor-widget-hg-specialty-cards .hg-card-btn .elementor-button {
  min-height: 42px !important;
  padding: 9px 24px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

body.hg-compact-site .elementor-widget-hg-specialty-cards .hg-card-btn,
body.hg-compact-site .elementor-widget-hg-specialty-cards .hg-card-btn > .elementor-widget-container,
body.hg-compact-site .elementor-widget-hg-specialty-cards .hg-card-btn .elementor-button-wrapper {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

body.hg-compact-site .elementor-widget-hg-treatment-list .hg-pill .elementor-button {
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 7px 18px !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

body.hg-compact-site .elementor-widget-hg-specialty-cards .hg-card-btn .elementor-button:is(:hover, :focus-visible),
body.hg-compact-site .elementor-widget-hg-treatment-list .hg-pill .elementor-button:is(:hover, :focus-visible) {
  color: var(--hgc-paper, #FFFCFA) !important;
  fill: var(--hgc-paper, #FFFCFA) !important;
  background: var(--hgc-brown, #4D3420) !important;
  border-color: var(--hgc-brown, #4D3420) !important;
}

body.hg-compact-site .hg-team-widget-data {
  display: none !important;
}

body.hg-compact-site .elementor-widget-hg-reviews-cards .hg-reviews-row {
  display: flex !important;
  align-items: stretch !important;
}

body.hg-compact-site .elementor-widget-hg-reviews-cards .hg-review-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--hgc-paper, #FFFCFA) !important;
}

body.hg-compact-site .elementor-widget-hg-reviews-cards .hg-review-side > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.hg-compact-site .hgcm-empty,
body.hg-compact-site .hg-team-row__loading {
  width: 100%;
  padding: 20px;
  text-align: center;
  color: var(--hgc-copy, #6F6A5E);
}

@media (max-width: 767px) {
  body.hg-compact-site .elementor-widget-hg-specialty-cards .hg-specialties-grid,
  body.hg-compact-site .elementor-widget-hg-treatment-list .hg-treatments-grid {
    flex-direction: column !important;
  }

  body.hg-compact-site .elementor-widget-hg-specialty-cards .hg-card-image img {
    width: min(100%, 224px) !important;
    height: 224px !important;
  }

  body.hg-compact-site .elementor-widget-hg-treatment-list .hg-pill .elementor-button {
    height: 62px !important;
    min-height: 62px !important;
    font-size: 14px !important;
  }
}

/* Refined section reveals: content moves, section backgrounds never do. */
@media (prefers-reduced-motion: no-preference) {
  html.hg-js body.hg-compact-site .hg-animate-section {
    opacity: 1 !important;
    transform: none !important;
  }

  html.hg-js body.hg-compact-site .hg-animate-child {
    opacity: calc(.38 + var(--hg-progress-child, 0) * .62) !important;
    transform: translate3d(0, calc(28px * (1 - var(--hg-progress-child, 0))), 0) !important;
    will-change: opacity, transform;
  }

  html.hg-js body.hg-compact-site :is(
    .hg-specialties,
    .hg-treatments
  ) > .e-con-inner > .elementor-widget-divider.hg-animate-child {
    transform: translate3d(0, calc(14px * (1 - var(--hg-progress-child, 0))), 0) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.hg-js body.hg-compact-site .hg-animate-child {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }
}

/* Reviews layout: cards and avatar rail share one exact row height. */
@media (min-width: 1025px) {
  body.hg-compact-site .elementor-34
  .elementor-widget-hg-reviews-cards .hg-reviews-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) clamp(88px, 6.35vw, 122px) !important;
    align-items: stretch !important;
    justify-content: center !important;
  }

  body.hg-compact-site .elementor-34
  .elementor-widget-hg-reviews-cards :is(.hg-review-card, .hg-review-side, .hg-review-bubbles) {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
  }
}

/* On touch layouts the avatar rail sits below the cards and must not inherit
   the progressive opacity used by the desktop scroll reveal. */
@media (max-width: 1024px) {
  body.hg-compact-site .elementor-34
  .elementor-widget-hg-reviews-cards .hg-review-side,
  body.hg-compact-site .elementor-34
  .elementor-widget-hg-reviews-cards .hg-review-bubbles,
  body.hg-compact-site .elementor-34
  .elementor-widget-hg-reviews-cards .hg-review-bubbles__stack {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  html.hg-js body.hg-compact-site .elementor-34
  .elementor-widget-hg-reviews-cards :is(.hg-review-bubbles__bubble, .hg-review-bubbles__more) {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Privacy consent: readable without competing with the field labels. */
body.hg-compact-site .elementor-34 .hg-contact :is(
  .ff-el-form-check-label,
  .ff-el-form-check-label span,
  .ff-el-form-check-label p,
  .ff-el-form-check-label a,
  .ff_t_c,
  .ff_t_c p,
  .ff_t_c a
) {
  font-size: 14.5px !important;
  line-height: 1.35 !important;
}

/* Add a calmer pause between the team carousel and the review curve. */
body.hg-compact-site .elementor-34 .hg-team {
  padding-bottom: 92px !important;
}

@media (max-width: 767px) {
  body.hg-compact-site .elementor-34 .hg-team {
    padding-bottom: 72px !important;
  }
}

/* Final desktop hover contract for controls inside carousels and reusable cards. */
@media (hover: hover) and (pointer: fine) {
  body.hg-compact-site .hg-team-carousel__more:hover {
    color: #FFFCFA !important;
    background-color: #4D3420 !important;
    border-color: #4D3420 !important;
    box-shadow: 0 8px 18px rgba(77, 52, 32, .2) !important;
    transform: translateY(-2px) !important;
  }

  body.hg-compact-site .hg-team-carousel__nav:hover {
    color: #4D3420 !important;
    background-color: #FFFCFA !important;
    border-color: #FFFCFA !important;
    box-shadow: 0 9px 22px rgba(77, 52, 32, .22) !important;
    transform: translateY(-50%) scale(1.05) !important;
  }

  body.hg-compact-site a.hg-specialty-accordion__pill:hover,
  body.hg-compact-site .elementor-widget-hg-specialty-cards
  .hg-card-btn .elementor-button:hover {
    color: #FFFCFA !important;
    background-color: #4D3420 !important;
    border-color: #4D3420 !important;
    box-shadow: 0 7px 16px rgba(77, 52, 32, .18) !important;
    transform: translateY(-2px) !important;
  }

  body.hg-compact-site .elementor-widget-hg-specialty-cards
  .hg-card-btn .elementor-button:hover :is(.elementor-button-text, .elementor-button-icon) {
    color: #FFFCFA !important;
    fill: #FFFCFA !important;
  }
}

/* Team carousel: exactly three complete cards from tablet landscape upward. */
@media (min-width: 768px) {
  body.hg-compact-site .hg-team-carousel {
    width: min(calc(100% - 48px), 1120px) !important;
    max-width: 1120px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.hg-compact-site .hg-team-carousel__track {
    gap: 18px !important;
  }

  body.hg-compact-site .hg-team-carousel__card {
    flex: 0 0 calc((100% - 36px) / 3) !important;
    width: calc((100% - 36px) / 3) !important;
    max-width: calc((100% - 36px) / 3) !important;
  }

  body.hg-compact-site .hg-team-carousel__photo {
    width: 148px !important;
    height: 148px !important;
  }
}

/* Every button-like control receives a visible, colour-safe interaction. */
body.hg-compact-site :is(
  .elementor-button,
  .hg-team-carousel__more,
  .hg-team-modal__cta,
  .hg-specialty-hero__cta,
  .hg-specialty-accordion__pill,
  .hg-review-bubbles__more,
  .ff-btn-submit,
  .hg-site-drawer__cta
) {
  transition:
    filter .28s ease,
    box-shadow .28s ease,
    background-color .28s ease,
    color .28s ease,
    border-color .28s ease !important;
}

body.hg-compact-site :is(
  .elementor-button,
  .hg-team-carousel__more,
  .hg-team-modal__cta,
  .hg-specialty-hero__cta,
  .hg-specialty-accordion__pill,
  .hg-review-bubbles__more,
  .ff-btn-submit,
  .hg-site-drawer__cta
):is(:hover, :focus-visible) {
  filter: brightness(.91) saturate(1.06) !important;
  box-shadow: 0 7px 18px rgba(77, 52, 32, .14) !important;
}

body.hg-compact-site .hg-team-carousel__more:is(:hover, :focus-visible),
body.hg-compact-site .hg-team-modal__cta:is(:hover, :focus-visible) {
  color: var(--hgc-paper, #FFFCFA) !important;
  background-color: var(--hgc-olive, #72765B) !important;
  border-color: var(--hgc-olive, #72765B) !important;
}

body.hg-compact-site .hg-team-carousel__nav {
  transition: color .24s ease, background-color .24s ease, box-shadow .24s ease !important;
}

body.hg-compact-site .hg-team-carousel__nav:is(:hover, :focus-visible) {
  color: var(--hgc-paper, #FFFCFA) !important;
  background-color: var(--hgc-olive, #72765B) !important;
  box-shadow: 0 5px 14px rgba(77, 52, 32, .14) !important;
}

/* Reviews: restore the available real portrait and keep some air below. */
body.hg-compact-site .hg-review-bubbles__bubble.is-photo {
  overflow: hidden !important;
  padding: 0 !important;
  background: var(--hgc-paper, #FFFCFA) !important;
}

body.hg-compact-site .hg-review-bubbles__bubble.is-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 24% !important;
  border-radius: inherit !important;
}

/* The second source is a portrait photo: keep the couple inside the round crop. */
body.hg-compact-site .hg-review-bubbles__stack > .hg-review-bubbles__bubble:nth-child(2) img {
  object-position: center 54% !important;
  transform: scale(5.2) !important;
  transform-origin: 50% 49% !important;
}

/* Enlarge the portrait and move the embedded star outside the round viewport. */
body.hg-compact-site .hg-review-bubbles__stack > .hg-review-bubbles__bubble:nth-child(3) img {
  transform: scale(1.55) !important;
  transform-origin: 38% 35% !important;
}

/* Specialty detail: give the accordion more room and keep it away from the edge. */
@media (min-width: 1181px) {
  body.hg-specialty-template .hg-specialty-hero__media-overlay {
    display: grid !important;
    grid-template-columns: min(56%, 800px) minmax(0, 1fr) !important;
    align-items: center !important;
    justify-content: stretch !important;
    padding: 34px !important;
  }

  body.hg-specialty-template .hg-specialty-accordion {
    grid-column: 2 !important;
    justify-self: center !important;
    width: min(calc(100% - 16px), 560px) !important;
    max-height: 500px !important;
  }
}

body.hg-specialty-template .hg-specialty-accordion__panel {
  will-change: height, opacity;
}

body.hg-specialty-template :is(
  .hg-specialty-hero__media,
  .hg-specialty-accordion,
  .hg-specialty-accordion__item,
  .hg-specialty-accordion__panel
) {
  overflow-anchor: none;
}

/* Reviews: the complete portrait rail enters as one stable white panel. */
@media (prefers-reduced-motion: no-preference) {
  html.hg-js body.hg-compact-site .elementor-34
  .elementor-widget-hg-reviews-cards :is(.hg-review-bubbles__bubble, .hg-review-bubbles__more) {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.hg-js body.hg-compact-site .elementor-34
  .elementor-widget-hg-reviews-cards :is(.hg-review-bubbles__bubble, .hg-review-bubbles__more) {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1024px) and (prefers-reduced-motion: no-preference) {
  html.hg-js body.hg-compact-site .elementor-34
  .elementor-widget-hg-reviews-cards .hg-review-side.hg-animate-child {
    visibility: visible !important;
    opacity: calc(.38 + var(--hg-progress-child, 0) * .62) !important;
    transform: translate3d(0, calc(28px * (1 - var(--hg-progress-child, 0))), 0) !important;
    will-change: opacity, transform;
  }
}

body.hg-specialty-template .hg-specialty-accordion__icon::after {
  transition: transform .34s cubic-bezier(.22, .7, .25, 1) !important;
}

/* Keep the accordion sharp while softly masking responsive background reframing. */
body.hg-specialty-template .hg-specialty-hero__media {
  background-image: none !important;
  isolation: isolate;
}

body.hg-specialty-template .hg-specialty-hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--hg-specialty-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
  transform: scale(1);
  transform-origin: center;
}

body.hg-specialty-template .hg-specialty-hero__media-overlay {
  z-index: 1;
}

@keyframes hg-specialty-backdrop-reframe {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
  45% {
    opacity: .72;
    filter: blur(4px);
    transform: scale(1.015);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

body.hg-specialty-template
.hg-specialty-hero__media.is-backdrop-transitioning::before {
  animation: hg-specialty-backdrop-reframe 540ms cubic-bezier(.22, .7, .25, 1);
}

@media (prefers-reduced-motion: reduce) {
  body.hg-specialty-template
  .hg-specialty-hero__media.is-backdrop-transitioning::before {
    animation: none !important;
  }
}

/* Scrollbars aligned with the olive, brown and paper palette. */
html {
  scrollbar-width: thin;
  scrollbar-color: #72765B #FFFCFA;
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: #FFFCFA;
}

html::-webkit-scrollbar-thumb {
  background: #72765B;
  border: 2px solid #FFFCFA;
  border-radius: 999px;
}

body.hg-specialty-template .hg-specialty-accordion {
  scrollbar-width: thin;
  scrollbar-color: #72765B #FFFCFA;
}

body.hg-specialty-template .hg-specialty-accordion::-webkit-scrollbar {
  width: 8px;
}

body.hg-specialty-template .hg-specialty-accordion::-webkit-scrollbar-track {
  background: #FFFCFA;
}

body.hg-specialty-template .hg-specialty-accordion::-webkit-scrollbar-thumb {
  background: #72765B;
  border: 2px solid #FFFCFA;
  border-radius: 999px;
}

/* Mobile reviews: cards and avatar rail share one centered measure. */
@media (max-width: 700px) {
  body.hg-compact-site .elementor-34
  .elementor-widget-hg-reviews-cards .hg-reviews-row {
    width: min(100%, 360px) !important;
    max-width: 360px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.hg-compact-site .elementor-34
  .elementor-widget-hg-reviews-cards :is(.hg-review-card, .hg-review-side, .hg-review-bubbles) {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
  }

  body.hg-compact-site .elementor-34
  .elementor-widget-hg-reviews-cards .hg-review-bubbles__stack {
    margin-right: auto !important;
    margin-left: auto !important;
    justify-content: center !important;
  }
}

/* Specialty hero copy: justified on desktop and mobile without hyphenation. */
body.hg-specialty-template :is(
  .hg-specialty-hero__intro,
  .hg-specialty-hero__intro p
) {
  text-align: justify !important;
  text-align-last: left !important;
  text-justify: inter-word;
  -webkit-hyphens: none !important;
  hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Mobile specialty accordion: long headings wrap instead of overflowing. */
@media (max-width: 767px) {
  body.hg-specialty-template .hg-specialty-accordion__trigger {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 18px !important;
    align-items: start !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body.hg-specialty-template .hg-specialty-accordion__title {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  body.hg-specialty-template .hg-specialty-accordion__icon {
    flex-shrink: 0 !important;
    margin-top: 2px !important;
  }
}

body.hg-compact-site.page-id-34 .elementor-34 .hg-reviews > .e-con-inner {
  padding-bottom: 124px !important;
}

/* Reviews: extend the green field evenly around the content. */
body.hg-compact-site .elementor-34 .hg-reviews > .e-con-inner {
  padding-top: 80px !important;
  padding-bottom: 124px !important;
}

body.hg-compact-site .elementor-34 .hg-reviews-row {
  margin-top: 42px !important;
}

/* Contact rhythm: headings sit close to their content and the contact chips
   behave like the rest of the site's pill buttons. */
body.hg-compact-site .elementor-34 .hg-contact-left > .elementor-widget-heading,
body.hg-compact-site .elementor-34 .hg-contact-right > .elementor-widget-heading:first-child {
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

body.hg-compact-site .elementor-34 .hg-contact-right > .elementor-widget-heading:first-child {
  margin-bottom: 22px !important;
}

body.hg-compact-site .elementor-34 .hg-contact-right > .elementor-widget-heading:not(:first-child) {
  min-height: 0 !important;
  margin-top: 18px !important;
  margin-bottom: 6px !important;
}

body.hg-compact-site .elementor-34 .hg-contact-chips {
  gap: 6px !important;
  margin-top: 0 !important;
}

body.hg-compact-site .elementor-34 .hg-contact-chips .elementor-button {
  overflow: hidden !important;
  transition: background-color 220ms ease, color 220ms ease,
    border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease !important;
}

body.hg-compact-site .elementor-34 .hg-contact-chips .elementor-button,
body.hg-compact-site .elementor-34 .hg-contact-chips .elementor-button .elementor-button-text {
  font-size: 14px !important;
}

body.hg-compact-site .elementor-34 .hg-contact-chips .elementor-button:hover,
body.hg-compact-site .elementor-34 .hg-contact-chips .elementor-button:focus-visible {
  color: var(--hgc-offwhite, #FFFCFA) !important;
  background-color: var(--hgc-brown, #4D3420) !important;
  border-color: var(--hgc-brown, #4D3420) !important;
  box-shadow: 0 5px 14px rgba(77, 52, 32, 0.14) !important;
  transform: translateY(-1px) !important;
}

body.hg-compact-site .elementor-34 .hg-contact-chips .elementor-button:hover .elementor-button-text,
body.hg-compact-site .elementor-34 .hg-contact-chips .elementor-button:focus-visible .elementor-button-text {
  color: var(--hgc-offwhite, #FFFCFA) !important;
}

@media (max-width: 767px) {
  body.hg-compact-site .elementor-34 .hg-reviews > .e-con-inner {
    padding-top: 60px !important;
    padding-bottom: 92px !important;
  }

  body.hg-compact-site.page-id-34 .elementor-34 .hg-reviews > .e-con-inner {
    padding-bottom: 92px !important;
  }

  body.hg-compact-site .elementor-34 .hg-reviews-row {
    margin-top: 32px !important;
  }
}

/* Specialties: a slightly wider, more readable card scale on every page
   that consumes the shared home component. */
@media (min-width: 1025px) {
  body.hg-compact-site .elementor-34 .hg-specialties > .e-con-inner,
  body.hg-compact-site .elementor-34 .hg-specialties-grid {
    width: min(calc(100% - 32px), 1520px) !important;
    max-width: 1520px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.hg-compact-site .elementor-34 .hg-specialties-grid {
    gap: 22px !important;
  }

  body.hg-compact-site .elementor-34 .hg-speciality-card {
    --width: calc((100% - 66px) / 4) !important;
    flex: 0 0 calc((100% - 66px) / 4) !important;
    width: calc((100% - 66px) / 4) !important;
    max-width: none !important;
  }
}

body.hg-compact-site .elementor-34 .hg-specialties > .e-con-inner {
  align-items: center !important;
}

body.hg-compact-site .elementor-34 .hg-specialties-grid {
  align-self: center !important;
  justify-content: center !important;
}

body.hg-compact-site .elementor-34 .hg-specialties .elementor-widget-divider,
body.hg-compact-site .elementor-34 .hg-specialties .elementor-divider {
  width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

@media (min-width: 768px) {
  body.hg-compact-site.home .elementor-34 .hg-specialties .elementor-widget-divider {
    margin-top: 48px !important;
  }
}

body.hg-compact-site .elementor-34 .hg-specialties .elementor-divider {
  display: flex !important;
  justify-content: center !important;
}

body.hg-compact-site .elementor-34 .hg-speciality-card > .elementor-widget-heading .elementor-heading-title {
  font-size: 24px !important;
  line-height: 1.16 !important;
}

body.hg-compact-site .elementor-34 .hg-speciality-card > .elementor-widget-text-editor,
body.hg-compact-site .elementor-34 .hg-speciality-card > .elementor-widget-text-editor p {
  max-width: 300px !important;
  font-size: 17px !important;
  line-height: 1.42 !important;
  font-weight: 400 !important;
  text-transform: none !important;
}

body.hg-compact-site .elementor-34 .hg-speciality-card {
  min-height: 550px !important;
  height: 550px !important;
}

body.hg-compact-site .elementor-34 .hg-speciality-card > .elementor-widget-text-editor {
  min-height: 136px !important;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
}

@media (min-width: 1200px) {
  body.hg-compact-site .elementor-34 .hg-speciality-card {
    min-height: 470px !important;
    height: 470px !important;
  }

  body.hg-compact-site .elementor-34 .hg-speciality-card > .elementor-widget-heading {
    min-height: 38px !important;
  }

  body.hg-compact-site .elementor-34 .hg-speciality-card > .elementor-widget-text-editor {
    min-height: 0 !important;
    height: auto !important;
  }

  body.hg-compact-site .elementor-34 .hg-speciality-card > .elementor-widget-button {
    margin-top: 12px !important;
  }
}

body.hg-compact-site .elementor-34 .hg-speciality-card > .elementor-widget-button .elementor-button,
body.hg-compact-site .elementor-34 .hg-speciality-card > .elementor-widget-button .elementor-button-text {
  font-size: 14px !important;
  color: var(--hgc-brown, #4D3420) !important;
  fill: var(--hgc-brown, #4D3420) !important;
  border-color: var(--hgc-brown, #4D3420) !important;
}

/* Contact: hours, map and parking share one measure. */
body.hg-compact-site .elementor-34 .hg-contact-right .hg-map-embed {
  width: min(100%, 440px) !important;
  max-width: 440px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  align-self: center !important;
}

body.hg-compact-site .elementor-34 .hg-contact-right .hg-map-embed iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.hg-compact-site .elementor-34 .hg-contact-right {
  align-items: center !important;
  row-gap: 0 !important;
}

/* Keep the Elementor wrappers on the same measure as the map. Without this,
   their children can be 420px wide while the text still lays out in a narrower widget. */
body.hg-compact-site .elementor-34 .hg-contact-right > .elementor-widget-text-editor {
  width: min(100%, 440px) !important;
  max-width: 440px !important;
  align-self: center !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.hg-compact-site .elementor-34 .hg-contact-right > .elementor-widget-text-editor > .elementor-widget-container {
  width: 100% !important;
}

body.hg-compact-site .elementor-34 .hg-contact-right :is(
  .hg-hours,
  .hg-parking,
  .hg-contact-chips
) {
  width: min(100%, 440px) !important;
  max-width: 440px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.hg-compact-site .elementor-34 .hg-contact-right > .elementor-widget-heading {
  width: min(100%, 440px) !important;
  max-width: 440px !important;
  align-self: center !important;
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center !important;
}

@media (min-width: 768px) {
  body.hg-compact-site .elementor-34 .hg-contact-right .hg-hours__grid {
    width: 100% !important;
    grid-template-columns: auto auto minmax(0, 1fr) !important;
    column-gap: 34px !important;
  }

  body.hg-compact-site .elementor-34 .hg-contact-right .hg-hours__col:last-of-type {
    justify-self: end !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  body.hg-compact-site .elementor-34 .hg-contact-right .hg-parking,
  body.hg-compact-site .elementor-34 .hg-contact-right .hg-parking__intro,
  body.hg-compact-site .elementor-34 .hg-contact-right .hg-parking__list {
    width: 100% !important;
    box-sizing: border-box !important;
  }

}

@media (max-width: 767px) {
  body.hg-compact-site .elementor-34 .hg-contact-right :is(
    .hg-hours,
    .hg-map-embed,
    .hg-parking,
    .hg-contact-chips
  ),
  body.hg-compact-site .elementor-34 .hg-contact-right > :is(
    .elementor-widget-heading,
    .elementor-widget-text-editor
  ) {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 767px) {
  body.hg-compact-site .hg-team-carousel__name {
    min-height: 0 !important;
    height: auto !important;
  }

  body.hg-compact-site .hg-team-carousel__role {
    min-height: 0 !important;
  }

  body.hg-compact-site.page-id-34 .elementor-34 .hg-reviews > .e-con-inner {
    padding-bottom: 38px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hg-compact-site :is(
    .elementor-button,
    .hg-team-carousel__more,
    .hg-team-modal__cta,
    .hg-specialty-hero__cta,
    .hg-specialty-accordion__pill,
    .hg-review-bubbles__more,
    .ff-btn-submit,
    .hg-site-drawer__cta,
    .hg-team-carousel__nav
  ) {
    transition: none !important;
  }
}

/* Final hover contract for the managed and legacy specialty/treatment pills.
   Elementor applies text colour to the inner span, so the anchor alone is not enough. */
body.hg-compact-site :is(
  .elementor-widget-hg-specialty-cards .hg-card-btn,
  .hg-speciality-card > .elementor-widget-button,
  .elementor-widget-hg-treatment-list .hg-pill,
  .hg-treatments-grid .hg-pill
) .elementor-button {
  transition: background-color 220ms ease, color 220ms ease,
    border-color 220ms ease, transform 220ms ease !important;
}

body.hg-compact-site :is(
  .elementor-widget-hg-specialty-cards .hg-card-btn,
  .hg-speciality-card > .elementor-widget-button,
  .elementor-widget-hg-treatment-list .hg-pill,
  .hg-treatments-grid .hg-pill
) .elementor-button:is(:hover, :focus-visible) {
  color: #FFFCFA !important;
  fill: #FFFCFA !important;
  background-color: var(--hgc-brown, #4D3420) !important;
  border-color: var(--hgc-brown, #4D3420) !important;
  transform: translateY(-1px) !important;
}

body.hg-compact-site :is(
  .elementor-widget-hg-specialty-cards .hg-card-btn,
  .hg-speciality-card > .elementor-widget-button,
  .elementor-widget-hg-treatment-list .hg-pill,
  .hg-treatments-grid .hg-pill
) .elementor-button:is(:hover, :focus-visible) :is(
  .elementor-button-content-wrapper,
  .elementor-button-text,
  .elementor-button-icon,
  svg
) {
  color: #FFFCFA !important;
  fill: #FFFCFA !important;
}

/* One specialty-card contract everywhere the shared Elementor widget is
   rendered (home, treatment pages and future reusable sections). */
html body.hg-compact-site .elementor.elementor-34
  .elementor-widget-hg-specialty-cards .hg-speciality-card {
  min-height: 470px !important;
  height: 470px !important;
  padding: 18px 18px 20px !important;
}

html body.hg-compact-site .elementor.elementor-34
  .elementor-widget-hg-specialty-cards .hg-card-image img {
  width: min(100%, 224px) !important;
  height: 224px !important;
  object-fit: cover !important;
}

html body.hg-compact-site .elementor.elementor-34
  .elementor-widget-hg-specialty-cards .hg-card-title {
  min-height: 38px !important;
}

html body.hg-compact-site .elementor.elementor-34
  .elementor-widget-hg-specialty-cards .hg-card-title .elementor-heading-title {
  font-size: 24px !important;
  line-height: 1.16 !important;
  font-weight: 400 !important;
}

html body.hg-compact-site .elementor.elementor-34
  .elementor-widget-hg-specialty-cards .hg-card-copy,
html body.hg-compact-site .elementor.elementor-34
  .elementor-widget-hg-specialty-cards .hg-card-copy p {
  max-width: 300px !important;
  min-height: 0 !important;
  height: auto !important;
  font-size: 17px !important;
  line-height: 1.42 !important;
  font-weight: 400 !important;
  color: #655E54 !important;
}

html body.hg-compact-site .elementor.elementor-34
  .elementor-widget-hg-specialty-cards .hg-card-btn {
  margin-top: auto !important;
  padding-top: 12px !important;
  width: 100% !important;
  align-self: stretch !important;
  display: flex !important;
  justify-content: center !important;
}

html body.hg-compact-site .elementor.elementor-34
  .elementor-widget-hg-specialty-cards .hg-card-btn .elementor-button,
html body.hg-compact-site .elementor.elementor-34
  .elementor-widget-hg-specialty-cards .hg-card-btn .elementor-button-text {
  font-size: 14px !important;
}

/* On narrow desktop/tablet-landscape widths the summaries wrap onto more
   lines. Give the shared row enough height so its bottom-aligned CTAs remain
   inside every card. */
@media (min-width: 768px) and (max-width: 1199px) {
  html body.hg-compact-site .elementor.elementor-34
    .elementor-widget-hg-specialty-cards .hg-speciality-card {
    min-height: 540px !important;
    height: 540px !important;
  }
}

@media (max-width: 767px) {
  html body.hg-compact-site .elementor.elementor-34
    .elementor-widget-hg-specialty-cards .hg-speciality-card {
    min-height: 0 !important;
    height: auto !important;
  }

  html body.hg-compact-site .elementor.elementor-34
    .elementor-widget-hg-specialty-cards .hg-card-copy,
  html body.hg-compact-site .elementor.elementor-34
    .elementor-widget-hg-specialty-cards .hg-card-copy p {
    max-width: 290px !important;
    font-size: 16px !important;
  }
}


/* Preserve the existing two-column card layout on narrow tablet windows. */
@media (min-width: 768px) and (max-width: 900px) {
  body.hg-compact-site .elementor-widget-hg-specialty-cards .hg-specialties-grid {
    flex-wrap: wrap !important;
  }
}

/* HG visual correction 20261008-r3: match form ink; frame Blanca above blank wall. */
#contacto #hg-online-booking-notice,
#contacto #hg-online-booking-notice strong {
  color: #4D3420 !important;
}
.hg-team-modal__photo:has(img[src*="/hg-blanca-rebollo-20261008.jpeg"]) {
  min-height: 0;
  aspect-ratio: 1 / 1;
}
.hg-team-modal__photo img[src*="/hg-blanca-rebollo-20261008.jpeg"] {
  min-height: 0;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* HG team framing 20261008-r4: one square viewport, original photos retained. */
body.hg-compact-site .hg-team-carousel__photo,
body.hg-compact-site .hg-team-modal__photo {
  position: relative;
  overflow: hidden;
}
body.hg-compact-site .hg-team-modal__photo {
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  align-self: start;
}
body.hg-compact-site .hg-team-carousel__photo img,
body.hg-compact-site .hg-team-modal__photo img {
  position: absolute !important;
  display: block;
  width: var(--hg-crop-width, 100%) !important;
  height: var(--hg-crop-height, 100%) !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  left: var(--hg-crop-left, 0%) !important;
  top: var(--hg-crop-top, 0%) !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none !important;
  object-fit: fill !important;
}
body.hg-compact-site .hg-team-carousel__photo img[src*="/antonio-hernandez.jpg"],
body.hg-compact-site .hg-team-modal__photo img[src*="/antonio-hernandez.jpg"] {
  --hg-crop-width: 113.636364%;
  --hg-crop-height: 135.909091%;
  --hg-crop-left: -6.818182%;
  --hg-crop-top: -4.545455%;
}
body.hg-compact-site .hg-team-carousel__photo img[src*="/jesus-hernandez.jpg"],
body.hg-compact-site .hg-team-modal__photo img[src*="/jesus-hernandez.jpg"] {
  --hg-crop-width: 126.582278%;
  --hg-crop-height: 143.544304%;
  --hg-crop-left: -24.050633%;
  --hg-crop-top: -2.531646%;
}
body.hg-compact-site .hg-team-carousel__photo img[src*="/javier-ruiz.jpg"],
body.hg-compact-site .hg-team-modal__photo img[src*="/javier-ruiz.jpg"] {
  --hg-crop-width: 161.290323%;
  --hg-crop-height: 173.548387%;
  --hg-crop-left: -35.483871%;
  --hg-crop-top: 0.000000%;
}
body.hg-compact-site .hg-team-carousel__photo img[src*="/marisa-ubeda-686x1024.jpg"],
body.hg-compact-site .hg-team-modal__photo img[src*="/marisa-ubeda-686x1024.jpg"] {
  --hg-crop-width: 152.444444%;
  --hg-crop-height: 227.555556%;
  --hg-crop-left: -37.777778%;
  --hg-crop-top: -8.888889%;
}
body.hg-compact-site .hg-team-carousel__photo img[src*="/Jose-Orts-768x1024.jpg"],
body.hg-compact-site .hg-team-modal__photo img[src*="/Jose-Orts-768x1024.jpg"] {
  --hg-crop-width: 160.000000%;
  --hg-crop-height: 213.333333%;
  --hg-crop-left: -27.083333%;
  --hg-crop-top: -38.541667%;
}
body.hg-compact-site .hg-team-carousel__photo img[src*="/Jose-Pablo-Serrano-768x769.jpg"],
body.hg-compact-site .hg-team-modal__photo img[src*="/Jose-Pablo-Serrano-768x769.jpg"] {
  --hg-crop-width: 236.307692%;
  --hg-crop-height: 236.615385%;
  --hg-crop-left: -87.692308%;
  --hg-crop-top: -27.692308%;
}
body.hg-compact-site .hg-team-carousel__photo img[src*="/Jose-Navarro-768x1024.jpg"],
body.hg-compact-site .hg-team-modal__photo img[src*="/Jose-Navarro-768x1024.jpg"] {
  --hg-crop-width: 178.604651%;
  --hg-crop-height: 238.139535%;
  --hg-crop-left: -31.395349%;
  --hg-crop-top: -69.767442%;
}
body.hg-compact-site .hg-team-carousel__photo img[src*="/hg-blanca-rebollo-20261008.jpeg"],
body.hg-compact-site .hg-team-modal__photo img[src*="/hg-blanca-rebollo-20261008.jpeg"] {
  --hg-crop-width: 226.415094%;
  --hg-crop-height: 301.886792%;
  --hg-crop-left: -73.584906%;
  --hg-crop-top: -84.905660%;
}


/* HG team framing card transform final: supersede legacy member-specific zoom. */
body.hg-compact-site .hg-team-carousel__card[data-member-id] .hg-team-carousel__photo img {
  transform: none !important;
}

/* HG team photo close stacking: retain mobile close-button access. */
body.hg-compact-site .hg-team-modal__close {
  z-index: 2;
}
