/* Design tokens: paleta, tipografías y medidas compartidas por todo el sitio. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-italic-latin.woff2") format("woff2");
}
:root {
  --cream: #f7f6f0;
  --paper: #fffefa;
  --ink: #7c7c60; /* #253b32 */
  --sec: #b3b287;
  --muted: #4f554e; /* Textos */
  --sage: #cbaa9f; /* Subtitulos #859783 */
  --sage-light: #e8ede4;
  --terra: #ca8065; /* Iconos */
  --terra-light: #e5cdc6;
  --line: #dfe3d9;
  --white: #fff;
  --lora: "Lora", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --wrap: 1200px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
/* Iconoir icons inherit the current text color and align with adjacent labels. */
.iconoir-arrow-up-right,
.iconoir-arrow-down,
.iconoir-arrow-up,
.iconoir-whatsapp {
  display: inline-block;
  font-size: 1.2em;
  line-height: 1;
  vertical-align: -0.16em;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: white;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.section-wrap {
  width: min(var(--wrap), calc(100% - 96px));
  margin-inline: auto;
}
.site-header {
  height: 88px;
  padding: 0 max(48px, calc((100vw - var(--wrap)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: rgba(247, 246, 240, 0.94);
  backdrop-filter: blur(14px);
  z-index: 20;
  border-bottom: 1px solid rgba(37, 59, 50, 0.07);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--lora);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 5px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--lora);
  font-style: italic;
  font-size: 18px;
}
.brand-logo {
  display: block;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: cover;
}
.brand-logo-header {
  width: 184px;
  height: 56px;
}
.brand-logo-footer {
  width: 70px;
  height: 70px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-nav > a {
  font-size: 12px;
  text-decoration: none;
  color: #536156;
  transition: color 0.25s ease;
}
.site-nav > a:not(.nav-cta) {
  position: relative;
}
.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.site-nav > a:hover,
.text-link:hover {
  color: var(--terra);
}
.site-nav > a:not(.nav-cta):hover::after,
.site-nav > a:not(.nav-cta):focus-visible::after,
.site-nav > a[aria-current="location"]:not(.nav-cta)::after {
  transform: scaleX(1);
}
.site-nav > a[aria-current="location"]:not(.nav-cta) {
  color: var(--terra);
}
.site-nav > a[aria-current="location"]:not(.nav-cta):hover {
  color: var(--terra);
}
.site-nav .nav-cta {
  border: 1px solid var(--ink);
  border-radius: 40px;
  padding: 12px 18px;
  color: var(--ink);
  transition:
    background 0.25s,
    color 0.25s;
}
.nav-cta:hover {
  background: var(--ink);
  color: white !important;
}
.nav-cta span {
  padding-left: 7px;
}
.menu-toggle {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 70px;
  padding-top: 68px;
  padding-bottom: 88px;
  align-items: center;
  min-height: 660px;
}
.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 9px;
  font-weight: 600;
}
.eyebrow i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--terra);
  border-radius: 50%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--lora);
  font-weight: 500;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(48px, 6vw, 70px);
  line-height: 1.07;
  margin: 24px 0 22px;
}
h1 em,
h2 em {
  font-weight: 500;
  color: var(--sage);
  font-style: italic;
}
.hero-lead {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.hero-copy > p:not(.hero-lead) {
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
  padding: 15px 21px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.035em;
  transition:
    transform 0.25s,
    background 0.25s;
}
.button:hover {
  transform: none;
}
.button-dark {
  background: var(--ink);
  color: white;
}
.button-dark:hover {
  background: var(--terra);
}
.text-link {
  font-weight: 600;
  text-decoration: none;
  font-size: 11px;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 4px;
}
.text-link span {
  margin-left: 9px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 53px;
  color: #667468;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.note-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #aab4a6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--terra);
}
.note-icon i,
.caption-flower i,
.intro-dot i,
.line-icon i,
.about-flower i {
  font-size: inherit;
  line-height: 1;
}
.hero-visual {
  height: 495px;
  position: relative;
}
.avocado-stage {
  position: absolute;
  inset: 0;
  isolation: isolate;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.avocado-stage.is-dragging {
  cursor: grabbing;
}
.avocado-stage.is-unavailable .avocado-canvas,
.avocado-stage.is-unavailable .avocado-shadow {
  display: none;
}
.avocado-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: pan-y;
}
.avocado-canvas:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: -4px;
  border-radius: 28px;
}
.avocado-shadow {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 4%;
  width: 34%;
  height: 7%;
  border-radius: 50%;
  background: #29392d24;
  filter: blur(18px);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.avocado-stage.is-ready .avocado-shadow {
  opacity: 1;
}
.image-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  /* width: 205px;
  height: 126px; */
  padding: 22px;
  background: var(--paper);
  box-shadow: 0 14px 40px #243b3218;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 16px;
  line-height: 1.35;
  z-index: 4;
  animation: caption-float 5.5s ease-in-out infinite;
}
.caption-flower {
  color: var(--terra);
  font-size: 26px;
}
.hero-stamp {
  position: absolute;
  right: -12px;
  top: 35px;
  background: var(--sage-light);
  width: 98px;
  height: 98px;
  border-radius: 50%;
  display: grid;
  align-content: center;
  text-align: center;
  font-size: 8px;
  line-height: 1.5;
  /* letter-spacing: 0.15em; */
  transform: rotate(9deg);
  z-index: 4;
  animation: stamp-float 6s ease-in-out infinite;
}
.image-caption,
.hero-stamp {
  will-change: transform;
}
@keyframes caption-float {
  50% {
    transform: translateY(-7px);
  }
}
@keyframes stamp-float {
  50% {
    transform: rotate(9deg) translateY(-8px);
  }
}
.hero-stamp b {
  font-family: var(--lora);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0;
}
/* Banda editorial entre el hero y las secciones de contenido. */
.intro-band {
  background: #e9ede5;
}
.intro-inner {
  min-height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--lora);
  font-style: italic;
  color: #536858;
  font-size: 16px;
}
.intro-dot {
  color: var(--terra);
  font-style: normal;
  font-size: 20px;
}
.section-space {
  padding-top: 112px;
  padding-bottom: 112px;
}
.section-heading {
  text-align: center;
  max-width: 670px;
  margin: 0 auto 54px;
}
.section-heading h2,
.start-intro h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(38px, 4.8vw, 56px);
  line-height: 1.12;
  margin: 18px 0 14px;
}
.section-heading > p {
  color: var(--muted);
  font-size: 13px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 17px;
}
.why-card {
  position: relative;
  min-height: 245px;
  padding: 28px 21px;
  background: var(--paper);
  border: 1px solid #ecece5;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px #243b3210;
}
.card-number {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #aab3a5;
  font-size: 9px;
  letter-spacing: 0.1em;
}
.line-icon {
  display: block;
  color: var(--terra);
  font-family: var(--lora);
  font-size: 26px;
  margin-bottom: 30px;
}
.why-card h3 {
  font-family: var(--lora);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.start-section {
  background:
    radial-gradient(ellipse at 15% 20%, #ca80652e, transparent 34%),
    radial-gradient(ellipse at 88% 85%, #8ea58c35, transparent 38%),
    linear-gradient(125deg, #20372e, #344d40 54%, #253b32);
  padding-block: 64px;
}
.start-layout {
  display: flex;
  justify-content: center;
}
.start-cta {
  position: relative;
  width: min(100%, 660px);
  padding: 38px clamp(22px, 5vw, 48px);
  background: var(--paper);
  border: 1px solid #ffffff88;
  box-shadow: 0 22px 64px #101c1740;
  text-align: center;
}
.start-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 54px;
  height: 3px;
  background: var(--terra);
  transform: translateX(-50%);
}
.start-intro h2 {
  margin: 12px 0 10px;
}
.start-intro > p {
  color: var(--muted);
  font-size: 13px;
  max-width: 470px;
  margin: 0 auto 18px;
}
.start-cta .button {
  margin-inline: auto;
}
.services-heading {
  margin-bottom: 42px;
}
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
}
.service-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.72fr) minmax(0, 1.28fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e7e4db;
  background: var(--paper);
  color: var(--ink);
}
.service-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--sage-light);
}
.service-image::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, #17251fe8);
  content: "";
  pointer-events: none;
}
.service-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-image-copy {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  left: 14px;
  margin: 0;
  color: #fffefa;
  font-family: var(--lora);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.28;
  text-wrap: pretty;
  text-shadow: 0 1px 10px #0007;
}
.service-content {
  min-width: 0;
  padding: 20px;
}
.service-index {
  color: var(--sage);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.service-content h3 {
  font-family: var(--lora);
  color: var(--ink);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 500;
  margin: 8px 0 6px;
}
.service-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 10px;
}
.service-highlights {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  width: 100%;
  padding: 0;
  list-style: none;
  color: #4f5f53;
  font-size: 13px;
  line-height: 1.5;
}
.service-highlights li {
  position: relative;
  padding-left: 17px;
}
.service-highlights li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
}
.service-content a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #c9a08c;
  padding-bottom: 5px;
}
.service-content a:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px;
}
.about {
  background:
    radial-gradient(ellipse at 8% 20%, #ca80651a, transparent 34%),
    linear-gradient(125deg, #e8ede4, #f1eee5 72%);
}
.about-layout {
  display: grid;
  grid-template-columns: 0.87fr 1fr;
  gap: 11%;
  align-items: center;
}
.about-photo {
  position: relative;
  height: 535px;
}
.about-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.photo-label {
  position: absolute;
  left: -18px;
  bottom: 28px;
  background: var(--paper);
  padding: 17px 22px;
  font-family: var(--lora);
  font-size: 15px;
}
.photo-label small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.about-flower {
  position: absolute;
  right: -22px;
  top: 30px;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  background: var(--terra);
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.about-copy h2 {
  margin-bottom: 23px;
}
.about-copy p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.about-copy .about-lead {
  font-family: var(--lora);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.5;
}
.about-copy .text-link {
  display: inline-block;
  margin-top: 8px;
}
.patient-story {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 8% 20%, #ca80651a, transparent 34%),
    linear-gradient(125deg, #e8ede4, #f1eee5 72%);
}
.patient-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(38px, 7vw, 92px);
}
.patient-comparison {
  min-width: 0;
}
.comparison-frame {
  --comparison-position: 50%;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  margin: 0;
  background: #d8ded4;
  box-shadow: 0 24px 55px #20372e20;
}
.comparison-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.comparison-photo-before {
  clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0);
}
.comparison-label {
  position: absolute;
  z-index: 2;
  top: 18px;
  padding: 7px 12px;
  background: #fffefaed;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.comparison-label-before {
  left: 18px;
}
.comparison-label-after {
  right: 18px;
}
.comparison-divider {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--comparison-position);
  width: 2px;
  background: #fffefa;
  box-shadow: 0 0 12px #18241e70;
  transform: translateX(-50%);
  pointer-events: none;
}
.comparison-handle {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: var(--comparison-position);
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 2px solid #fffefa;
  border-radius: 50%;
  background: var(--ink);
  color: #fffefa;
  font-size: 14px;
  box-shadow: 0 4px 18px #18241e55;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.comparison-slider {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.comparison-frame:focus-within .comparison-handle {
  outline: 3px solid var(--terra);
  outline-offset: 4px;
}

.patient-story-copy h2 {
  max-width: 560px;
  margin: 17px 0 14px;
  font-family: var(--lora);
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.story-sample-label {
  display: inline-flex;
  margin-top: 18px;
  padding: 5px 9px;
  border: 1px solid #b8c4b5;
  color: #536858;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.story-intro {
  max-width: 46ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
}
.story-details {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}
.story-details > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 12px;
}
.story-detail-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #cbd4c8;
  border-radius: 50%;
  color: var(--terra);
  font-size: 17px;
}
.story-details p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.story-details strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: var(--lora);
  font-size: 16px;
  font-weight: 500;
}
.patient-story-copy .text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.gallery-section {
  scroll-margin-top: 90px;
  padding-inline: max(48px, calc((100vw - var(--wrap)) / 2));
  background: linear-gradient(118deg, #f0e5dc 0%, #f5f0e8 52%, #e8ede4 100%);
  border-block: 1px solid #e7e2d8;
}
.gallery-heading {
  margin-bottom: 40px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 19vw, 250px);
  gap: 18px;
}
.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--sage-light);
  color: var(--ink);
  cursor: zoom-in;
  text-align: left;
}
.gallery-card-tall {
  grid-row: span 2;
}
.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  z-index: 1;
}
.gallery-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 19px;
  opacity: 1;
}
.gallery-dialog {
  position: fixed;
  inset: 0;
  width: min(94vw, 1160px);
  max-width: none;
  max-height: 92dvh;
  padding: 18px;
  overflow: auto;
  border: 1px solid #ffffff45;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 90px #101a1680;
}
.gallery-dialog::backdrop {
  background: #6f786ed1;
  backdrop-filter: blur(5px);
}
.gallery-dialog figure {
  margin: 0;
}
.gallery-dialog-image {
  display: block;
  width: 100%;
  max-height: calc(92dvh - 88px);
  object-fit: cover;
  background: #17231d;
}
.gallery-dialog-caption {
  padding: 14px 44px 0 2px;
  color: var(--muted);
  font-size: 14px;
}
.gallery-close {
  position: sticky;
  z-index: 1;
  top: 0;
  float: right;
  display: grid;
  width: 40px;
  height: 40px;
  margin: 0 0 -40px auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 23px;
  cursor: pointer;
}
.gallery-close:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}
.testimonials {
  padding-bottom: 105px;
}
.testimonials-heading-wrap .section-heading {
  margin-bottom: 44px;
}
.testimonial-marquee {
  width: 100%;
  overflow: hidden;
  padding-block: 8px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}
.testimonial-track,
.testimonial-set {
  display: flex;
  width: max-content;
}
.testimonial-track {
  animation: testimonial-marquee 52s linear infinite;
}
.testimonial-set {
  align-items: stretch;
  gap: 20px;
  padding-right: 20px;
}
.testimonial-marquee:hover .testimonial-track,
.testimonial-marquee:focus-within .testimonial-track {
  animation-play-state: paused;
}
@keyframes testimonial-marquee {
  to {
    transform: translateX(-50%);
  }
}
.testimonial {
  background: var(--paper);
  padding: 27px 28px 24px;
  margin: 0;
  min-height: 0;
  width: clamp(300px, 31vw, 390px);
  flex: 0 0 auto;
  border: 1px solid #ecece5;
  display: flex;
  flex-direction: column;
}
.quote-mark {
  display: block;
  font-family: var(--lora);
  font-size: 44px;
  line-height: 0.9;
  color: var(--terra);
}
.testimonial blockquote {
  font-family: var(--lora);
  font-size: 17px;
  line-height: 1.6;
  margin: 12px 0 20px;
  flex: 1;
}
.testimonial figcaption {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.testimonial-author {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.testimonial-type {
  color: var(--muted);
}
.testimonial-line {
  width: 22px;
  height: 1px;
  background: var(--sage);
}
.sample-note {
  text-align: center;
  font-size: 12px;
  color: #899087;
  margin: 20px 24px 0;
}
.contact-section {
  background: var(--ink);
  color: #f8f6ef;
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.87fr 1fr;
  gap: 10%;
  align-items: center;
}
.contact-copy .eyebrow {
  color: var(--terra-light);
}
.contact-copy h2 {
  margin: 19px 0;
}

.contact-copy > p {
  color: var(--white);
  font-size: 12px;
  max-width: 400px;
}
.button-light {
  background: #f7f6f0;
  color: var(--ink);
  margin-top: 9px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
.button-light:hover,
.button-light:focus-visible {
  background: var(--terra);
  color: #fff;
}
.wa-icon {
  color: #5e8b70;
  font-size: 1.45em;
  vertical-align: -0.2em;
}
.button-light:hover .wa-icon,
.button-light:focus-visible .wa-icon {
  color: #fff;
}
.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 32px;
  margin-top: 38px;
  padding-top: 25px;
  border-top: 1px solid #ffffff32;
}
.contact-details > div > span {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--white);
}
.contact-details p {
  font-size: 10px;
  line-height: 1.8;
  margin: 6px 0 0;
  color: var(--white);
}
.contact-details a {
  text-decoration: none;
}
.map-wrap {
  height: 425px;
  position: relative;
  background: #e4e4db;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.8) sepia(0.13);
}
.map-link {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--ink);
  padding: 10px 14px;
  text-decoration: none;
}
.site-footer {
  min-height: 98px;
  background: #6a6a55;
  color: var(--sec);
  padding: 20px max(48px, calc((100vw - var(--wrap)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
}
.footer-brand {
  color: #f8f6ef;
  font-size: 16px;
}
.footer-brand small {
  color: #b6c1b7;
}
.site-footer > a:last-child {
  text-decoration: none;
}
/* CTA flotante persistente para facilitar el contacto desde móvil y desktop. */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 21px;
  z-index: 25;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #537b61;
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 24px #17292045;
  font-size: 23px;
  transition: background-color 0.25s ease;
}
.floating-whatsapp:hover {
  background: #385e47;
}
.floating-whatsapp > i {
  font-size: 25px;
  line-height: 1;
}
.floating-label {
  position: absolute;
  right: 64px;
  white-space: nowrap;
  background: white;
  color: var(--ink);
  font-size: 10px;
  padding: 8px 12px;
  box-shadow: 0 5px 18px #17292020;
  opacity: 0;
  transform: translateX(5px);
  transition: all 0.2s;
  pointer-events: none;
}
.floating-whatsapp:hover .floating-label,
.floating-whatsapp:focus-visible .floating-label {
  opacity: 1;
  transform: none;
}
/* Estado inicial de entrada; script.js activa .is-visible al entrar en pantalla. */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
:focus-visible {
  outline: 3px solid #cc866a;
  outline-offset: 4px;
}
/* Ajustes para tablet y pantallas medianas. */
@media (max-width: 1000px) {
  .section-wrap {
    width: calc(100% - 56px);
  }
  .site-header {
    padding-inline: 28px;
  }
  .site-nav {
    gap: 20px;
  }
  .hero {
    gap: 35px;
    min-height: 590px;
  }
  .hero-visual {
    height: 430px;
  }
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-card {
    min-height: 220px;
  }
  .about-layout {
    gap: 7%;
  }
  .site-footer {
    padding-inline: 28px;
  }
}
/* Navegación desplegable y composición de una columna en móvil. */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 72px;
  }
  .section-wrap {
    width: calc(100% - 42px);
  }
  .site-header {
    height: 72px;
    padding-inline: 21px;
  }
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-logo-header {
    width: 150px;
    height: 46px;
  }
  .menu-toggle {
    display: flex;
    border: 0;
    background: none;
    width: 42px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    align-items: center;
  }
  .menu-toggle span {
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.2s;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--cream);
    padding: 10px 21px 24px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 15px 20px #253b3210;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav > a {
    padding: 12px 3px;
    border-bottom: 1px solid #e8e9e2;
    font-size: 13px;
  }
  .site-nav > a[aria-current="location"]:not(.nav-cta) {
    padding-left: 10px;
    border-left: 2px solid var(--terra);
    background: #edece4;
  }
  .site-nav > a[aria-current="location"]:not(.nav-cta)::after {
    content: none;
  }
  .site-nav > a:not(.nav-cta)::after {
    content: none;
  }
  .site-nav .nav-cta {
    margin-top: 12px;
    text-align: center;
    border: 1px solid var(--ink);
    padding: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 55px;
    padding-bottom: 54px;
    min-height: 0;
  }
  .hero-copy {
    max-width: 560px;
  }
  .hero h1 {
    font-size: clamp(48px, 12vw, 70px);
  }
  .hero-copy > p:not(.hero-lead) {
    font-size: 13px;
  }
  .hero-note {
    margin-top: 28px;
  }
  .hero-visual {
    height: 390px;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }
  .hero-stamp {
    right: -3px;
    top: 21px;
  }
  .image-caption {
    /* width: 175px;
    height: 108px; */
    font-size: 14px;
    padding: 17px;
  }
  .intro-inner {
    min-height: 89px;
    gap: 12px;
    font-size: 13px;
    line-height: 1.4;
  }
  .intro-inner span:first-child,
  .intro-inner span:last-child {
    max-width: 43%;
  }
  .intro-dot {
    flex: none;
  }
  .section-space {
    padding-top: 77px;
    padding-bottom: 77px;
  }
  .section-heading {
    margin-bottom: 34px;
  }
  .section-heading h2,
  .start-intro h2,
  .about-copy h2,
  .contact-copy h2 {
    font-size: 42px;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .why-card {
    padding: 22px 17px;
    min-height: 218px;
  }
  .line-icon {
    margin-bottom: 23px;
  }
  .why-card h3 {
    font-size: 17px;
  }
  .why-card p {
    font-size: 10px;
  }
  .start-layout {
    justify-content: center;
  }
  .start-intro > p {
    max-width: 500px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo {
    height: 430px;
    max-width: 520px;
    width: calc(100% - 15px);
  }
  .photo-label {
    left: -10px;
  }
  .about-copy p {
    font-size: 11px;
  }
  .testimonial {
    padding: 24px;
  }
  .testimonial blockquote {
    font-size: 16px;
    margin-bottom: 17px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .map-wrap {
    height: 340px;
  }
  .contact-details {
    margin-top: 28px;
  }
  .site-footer {
    padding: 23px 21px;
    gap: 18px;
    flex-wrap: wrap;
  }
  .site-footer > span {
    order: 3;
    width: 100%;
  }
  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 51px;
    height: 51px;
  }
}
@media (max-width: 400px) {
  .hero-actions {
    gap: 16px;
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-visual {
    height: 320px;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-card {
    min-height: auto;
  }
  .why-card p {
    max-width: 280px;
  }
  .contact-details {
    gap: 16px 12px;
  }
  .site-footer {
    font-size: 8px;
  }
}
/* Legibilidad: sube los textos de lectura y metadatos que antes quedaban pequeños. */
body {
  font-size: 16px;
}
.site-nav > a {
  font-size: 14px;
}
.brand small {
  font-size: 10px;
}
.hero-copy > p:not(.hero-lead),
.about-copy p,
.contact-copy > p {
  font-size: 15px;
}
.button,
.text-link {
  font-size: 13px;
}
.hero-note {
  font-size: 12px;
}
.hero-stamp,
.service-index,
.card-number {
  font-size: 10px;
}
.section-heading > p,
.start-intro > p {
  font-size: 15px;
}
.why-card h3 {
  font-size: 20px;
}
.why-card p {
  font-size: 14px;
}
.service-content p {
  font-size: 13px;
}

.photo-label small,
.contact-details > div > span,
.contact-details p,
.map-link,
.testimonial figcaption,
.sample-note,
.floating-label {
  font-size: 13px;
}
.about-copy .about-lead {
  font-size: 21px;
}
.testimonial blockquote {
  font-size: 18px;
}
.site-footer {
  font-size: 11px;
}
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .hero-copy > p:not(.hero-lead),
  .section-heading > p,
  .start-intro > p,
  .about-copy p,
  .contact-copy > p {
    font-size: 15px;
  }
  .why-card p,
  .service-content p {
    font-size: 13px;
  }
  .why-card h3 {
    font-size: 19px;
  }
  .service-index {
    font-size: 9px;
  }
  .contact-details > div > span,
  .contact-details p,
  .map-link,
  .testimonial figcaption,
  .sample-note {
    font-size: 12px;
  }
  .site-footer {
    font-size: 11px;
  }
}
@media (max-width: 400px) {
  .site-footer {
    font-size: 10px;
  }
}
/* Servicios responsive: vuelve a una cuadrícula regular en tablet y apila en móvil. */
@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(190px, 30vw, 270px);
  }
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
  }
}
@media (max-width: 820px) {
  .patient-story-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 720px;
  }
  .comparison-frame {
    aspect-ratio: 16 / 11;
  }
}
@media (max-width: 720px) {
  .gallery-section {
    padding-inline: 21px;
  }
  .start-section {
    padding-block: 48px;
  }
  .start-cta {
    padding: 28px 20px;
  }
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: min(68vw, 340px);
    gap: 14px;
  }
  .gallery-card-tall {
    grid-row: auto;
  }
  .gallery-zoom {
    width: 36px;
    height: 36px;
    opacity: 1;
  }
  .gallery-dialog {
    width: 100vw;
    max-height: 100dvh;
    padding: 12px;
    border: 0;
  }
  .gallery-dialog-image {
    max-height: calc(100dvh - 82px);
  }
  .patient-story-layout {
    gap: 24px;
  }
  .comparison-frame {
    aspect-ratio: 4 / 3;
  }
  .comparison-label {
    top: 12px;
    font-size: 9px;
  }
  .comparison-label-before {
    left: 12px;
  }
  .comparison-label-after {
    right: 12px;
  }
  .comparison-handle {
    width: 42px;
    height: 42px;
  }
  .patient-story-copy h2 {
    font-size: 40px;
  }
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 16px;
  }
  .service-card {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
  }
  .service-image {
    height: 140px;
    min-height: 0;
  }
  .service-image-copy {
    right: 16px;
    bottom: 12px;
    left: 16px;
    max-width: 38ch;
    font-size: 17px;
  }
  .service-content {
    padding: 22px;
  }
  .service-content h3 {
    font-size: 26px;
  }
  .service-content p {
    max-width: 42ch;
    font-size: 14px;
  }
  .service-highlights {
    font-size: 13px;
  }
  .testimonial {
    width: min(82vw, 360px);
    /* height: 340px; */
    padding: 24px;
  }
}
@media (max-width: 400px) {
  .service-grid {
    gap: 12px;
  }
  .service-content {
    padding: 18px;
  }
  .service-image {
    height: 120px;
  }
  .service-image-copy {
    right: 12px;
    bottom: 9px;
    left: 12px;
    font-size: 15px;
  }
  .service-content h3 {
    font-size: 24px;
  }
  .service-index {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .testimonial {
    width: 86vw;
    /* height: 350px; */
  }
}
/* Accesibilidad: desactiva desplazamientos y animaciones si el sistema lo solicita. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .testimonial-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .testimonial-track {
    animation: none;
  }
  .testimonial-set[aria-hidden="true"] {
    display: none;
  }
  .testimonial-set .marquee-clone {
    display: none;
  }
  .image-caption,
  .hero-stamp {
    animation: none;
    will-change: auto;
  }
}
