/* design-core · genre: editorial · macrostructure: Split Studio · design-system: design.md · designed-as-app · pre-emit critique: P5 H5 E4 S5 R4 V4 */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f7f4ef;
  --bg2: #efece5;
  --bg3: #e8e4da;
  --ink: #1a1814;
  --body: #3a3830;
  --muted: #5a5650;
  --sage: #556644;
  --sage-mid: #7a9260;
  --sage-light: #a8bf92;
  --sage-pale: #e8efe0;
  --white: #fdfcf9;
  --header-background: rgba(247, 244, 239, 0.96);
  --header-line: rgba(0, 0, 0, 0.08);
  --header-height: 83px;
  --duration-fade-up: 900ms;
  --duration-zoom-in: 1200ms;
}

html,
body {
  overflow-x: clip;
}

body {
  font-weight: 300;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  letter-spacing: -0.025em;
}

p {
  text-wrap: pretty;
}

.site-header {
  height: var(--header-height);
  padding: 17px 56px;
  background: var(--header-background);
  border-bottom: 1px solid var(--header-line);
  backdrop-filter: blur(14px);
}

.site-nav a,
.language-switcher a,
.language-trigger,
.therapies-menu-toggle,
.button,
.text-link {
  transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease, transform 200ms ease;
}

.site-nav a[aria-current="page"],
.language-switcher a[aria-current="page"] {
  color: var(--sage);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45rem;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 11px;
  color: var(--ink);
  font: 500 0.72rem/1 var(--sans);
  letter-spacing: 1.5px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.language-trigger:hover {
  color: var(--sage);
  border-color: var(--sage);
}

.language-trigger::after {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentcolor;
  border-bottom: 1px solid currentcolor;
  content: "";
  transform: rotate(45deg);
}

.language-trigger[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  display: grid;
  min-width: 164px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.language-options[hidden] {
  display: none;
}

.language-options a {
  padding: 9px 12px;
  letter-spacing: 0.4px;
  text-transform: none;
  white-space: nowrap;
}

.language-options a:hover {
  background: var(--sage-pale);
}

.therapies-menu {
  position: relative;
}

.site-nav > a,
.therapies-menu-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font: 500 0.72rem/1 var(--sans);
}

.therapies-menu-toggle {
  gap: 10px;
  color: var(--ink);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.therapies-menu-toggle:hover,
.therapies-menu-toggle:active,
.therapies-menu-toggle.is-active {
  color: var(--sage);
}

.therapies-menu-toggle.is-active {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45rem;
}

.therapies-menu-toggle::after {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentcolor;
  border-bottom: 1px solid currentcolor;
  content: "";
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.therapies-menu-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.therapies-menu-panel {
  position: fixed;
  top: var(--header-height);
  left: 50%;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  width: min(40rem, calc(100vw - 48px));
  padding: 28px 32px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  transform: translateX(-50%);
}

.therapies-menu-panel[hidden] {
  display: none;
}

.therapies-menu-group p {
  margin: 0 0 8px;
  color: var(--sage);
  font: 500 0.7rem/1.4 var(--sans);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.therapies-menu-group ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav .therapies-menu-panel a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  line-height: 1.4;
  letter-spacing: 0.2px;
  text-transform: none;
}

.site-nav .therapies-menu-panel a:hover,
.site-nav .therapies-menu-panel a[aria-current="page"] {
  color: var(--sage);
}

.site-nav .therapies-menu-all {
  grid-column: 1 / -1;
  padding-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--sage-mid);
  outline-offset: 4px;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.home-hero {
  min-height: calc(100dvh - var(--header-height));
  padding: 0;
}

.home-hero > .hero-grid {
  width: 100%;
  min-height: calc(100dvh - var(--header-height));
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}

.home-hero .hero-grid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 72px clamp(32px, 5vw, 72px) 64px;
}

.home-hero h1 em {
  color: var(--sage);
  font-style: normal;
}

.home-hero .lead {
  max-width: 36ch;
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.85;
}

.hero-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: calc(100dvh - var(--header-height));
  object-fit: cover;
  object-position: 55% 28%;
  filter: brightness(0.9) saturate(0.85);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 28%);
  content: "";
  pointer-events: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1);
  }
}

.home-hero .hero-grid > div:first-child > * {
  animation: fadeUp var(--duration-fade-up) ease-out both;
}

.hero-media img {
  animation: zoomIn var(--duration-zoom-in) ease-out both;
}

.section,
.page-hero {
  padding-block: 100px;
}

.trust-grid > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
  border-top: 1px solid var(--line);
}

.service-card {
  min-height: 270px;
  padding: 36px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.service-card h2 {
  margin: 12px 0;
  font-size: 2rem;
}

.service-card h2 a {
  text-decoration: none;
}

.feature-section,
.final-cta,
.site-footer {
  color: var(--white);
}

.feature-section h2,
.final-cta h2 {
  color: var(--white);
}

.feature-section .eyebrow {
  color: var(--white);
}

.feature-section .text-link {
  color: var(--white);
  border-color: var(--white);
}

.feature-section .text-link:hover,
.feature-section .text-link:focus-visible {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.feature-section img,
.profile-grid img {
  filter: brightness(0.92) saturate(0.86);
}

img[src="/assets/images/imagen-3.jpg"] {
  width: 100%;
  height: auto;
  aspect-ratio: auto 1200 / 1227;
  object-fit: contain;
}

.footer-logo {
  width: min(240px, 100%);
  height: auto;
  content: url("/assets/images/logo-footer.png");
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.whatsapp-action {
  display: none;
}

.access-video {
  max-width: 760px;
  margin: 32px auto 0;
}

.access-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: 0;
}

.therapy-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.therapy-gallery figure {
  margin: 0;
}

.therapy-gallery img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.86);
}

.therapy-gallery figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.booking-photo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 680px;
  margin-inline: auto;
}

.booking-photo img {
  height: auto;
  max-height: 680px;
}

@media (max-width: 900px) {
  :root {
    --header-height: 77px;
  }

  .site-header {
    gap: 16px;
    padding: 14px 24px;
  }

  .site-nav.open {
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .therapies-menu-toggle {
    justify-content: space-between;
    width: 100%;
    text-align: left;
  }

  .therapies-menu-panel {
    position: static;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin-top: 12px;
    padding: 20px;
    background: var(--bg2);
    transform: none;
  }

  .home-hero,
  .home-hero > .hero-grid {
    min-height: auto;
  }

  .home-hero > .hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero .hero-grid > div:first-child {
    min-height: 58dvh;
    padding: 72px 24px 56px;
  }

  .hero-media {
    min-height: 56dvh;
  }

  .hero-media img {
    min-height: 56dvh;
    object-position: 50% 22%;
  }

  .hero-media::after {
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 24%);
  }

  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .whatsapp-action {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 9;
    display: grid;
    width: 52px;
    height: 52px;
    color: var(--white);
    text-decoration: none;
    background: var(--sage);
    border: 2px solid var(--white);
    place-items: center;
    transition: background-color 250ms ease, transform 200ms ease;
  }

  .whatsapp-action svg {
    width: 26px;
    height: 26px;
  }

  .whatsapp-action:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
  }

  .whatsapp-action:active {
    background: var(--ink);
    transform: translateY(1px);
  }
}

@media (max-width: 900px) and (hover: hover) and (pointer: fine) {
  .whatsapp-action:hover {
    background: var(--ink);
    transform: translateY(-1px);
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .page-hero {
    padding-block: 72px;
  }

  .access-video iframe {
    min-height: 220px;
  }

  .therapy-gallery {
    grid-template-columns: 1fr;
  }

  .therapy-gallery img {
    height: auto;
    max-height: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
