@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/AtkinsonHyperlegibleNext-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/AtkinsonHyperlegibleNext-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/AtkinsonHyperlegibleNext-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/AtkinsonHyperlegibleNext-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --primary-50: #f6fbff;
  --primary-100: #e7f3fc;
  --primary-300: #88c5f4;
  --primary-500: #146eb9;
  --primary-600: #0f5d9c;
  --primary-700: #0b4a7b;
  --background: #eef7f4;
  --mint: #b8d7d2;
  --mint-light: #dff0ec;
  --card-blue: #d8ecfb;
  --review-blue: #d5ecff;
  --text: #243447;
  --text-muted: #64748b;
  --white: #ffffff;
  --off-white: #fafaf8;
  --star: #edbe00;
  --line: rgba(36, 52, 71, 0.2);
  --shadow-card: 0 10px 28px rgba(36, 52, 71, 0.15);
  --shadow-nav: 0 12px 34px rgba(36, 52, 71, 0.13);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --transition: 300ms cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1312px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  /* El header no es fijo: solo un pequeño espacio sobre el destino del ancla */
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "Atkinson Hyperlegible Next", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open,
body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
}

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--white);
  color: var(--primary-700);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--primary-300);
  outline-offset: 4px;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.button2 {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

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

.button:active {
  transform: translateY(0);
}

.button--small {
  min-height: 48px;
  padding: 10px 24px;
  font-size: 16px;
}

.button--small2 {
  min-height: 48px;
  padding: 10px 120px;
  font-size: 16px;
  }

.button--primary {
  background: var(--primary-500);
  color: var(--white);
}

.button--primary2 {
  background: var(--primary-500);
  color: var(--white);
}


.button--primary:hover {
  background: var(--primary-600);
  box-shadow: 0 8px 20px rgba(15, 93, 156, 0.2);
}

.button--primary2:hover {
  background: var(--primary-600);
  box-shadow: 0 8px 20px rgba(15, 93, 156, 0.2);
}

.button--outline {
  border-color: var(--primary-500);
  background: transparent;
  color: var(--primary-500);
}


.button--outline:hover {
  border-color: var(--primary-600);
  background: var(--primary-50);
  color: var(--primary-600);
}

.button--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--primary-500);
}

.button--light2 {
  border-color: var(--white);
  background: var(--white);
  color: var(--primary-500);
  padding: 12px 32px;
}

.button--light:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  box-shadow: 0 8px 20px rgba(9, 72, 120, 0.18);
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  padding: 24px 0 8px;
}

.site-header--overlay {
  position: absolute;
  inset: 0 0 auto;
}

.nav-shell {
  min-height: 120px;
  display: grid;
  grid-template-columns: 142px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 7px 28px;
  border-radius: 72px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(12px);
}

.brand {
  width: 106px;
  height: 106px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.brand img {
  width: 102px;
  height: 102px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.7vw, 48px);
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 4px;
  left: 50%;
  height: 2px;
  border-radius: 4px;
  background: var(--primary-500);
  content: "";
  transition: inset var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  right: 0;
  left: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-button,
.mobile-nav {
  display: none;
}

/* Home: hero */
.hero {
  position: relative;
  min-height: 800px;
  margin-bottom: 166px;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/images/hero.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.68) 30%, rgba(255, 255, 255, 0.08) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 55%, rgba(36, 52, 71, 0.2) 100%);
  content: "";
  pointer-events: none;
}

.hero__content {
  position: absolute;
  top: 220px;
  left: 50%;
  transform: translateX(-50%);
}

.hero h1 {
  width: min(680px, 58vw);
  margin-bottom: 28px;
  color: #243447;
  font-size: clamp(50px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.026em;
}

.hero__content > p {
  width: min(520px, 47vw);
  margin-bottom: 0;
  color: #243447;
  font-size: 23px;
  font-weight: 500;
}

.rotating-word {
  display: inline-grid;
  min-width: 154px;
  color: var(--primary-500);
  vertical-align: bottom;
}

.rotating-word > span {
  grid-area: 1 / 1;
  transition: opacity var(--transition), transform var(--transition);
}

.rotating-word > span.is-changing {
  opacity: 0;
  transform: translateY(-12px);
}

.hero__actions {
  position: absolute;
  top: 456px;
  left: 50%;
  display: flex;
  gap: 18px;
  transform: translateX(-50%);
}

.care-steps {
  position: absolute;
  right: 0;
  bottom: -88px;
  left: 0;
  min-height: 210px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  background: #b8d7d2;
  box-shadow: var(--shadow-card);
  list-style: none;
}

.care-steps li {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 28px 8px 48px;
  isolation: isolate;
}

.care-steps li + li {
  border-left: 1px solid rgba(36, 52, 71, 0.18);
}

.care-steps__number {
  position: absolute;
  top: 5px;
  left: 24px;
  z-index: -1;
  color: rgba(20, 110, 185, 0.24);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
}

.care-steps strong {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  color: var(--primary-700);
  font-size: 23px;
}

.care-steps li > span:last-child {
  position: relative;
  z-index: 1;
  font-size: 16px;
}

/* Shared sections */
.section,
.page-section {
  padding: 88px 0;
}

.section-heading,
.page-intro {
  max-width: 790px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading h2,
.reviews__heading h2,
.visit h2,
.clinic-section > .container > h2 {
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-heading p,
.page-intro p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 20px;
}

.inner-page {
  min-height: 60vh;
}

.page-section {
  padding-top: 76px;
}

.page-intro h1,
.page-title {
  margin-bottom: 26px;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.page-title {
  text-align: center;
}

/* Home: services */
.services-preview {
  padding-top: 52px;
}

.preview-group {
  margin-top: 54px;
}

.preview-group > h3,
.service-category > h2,
.category-heading h2 {
  margin-bottom: 28px;
  color: var(--primary-500);
  font-size: 30px;
  font-weight: 800;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.preview-group:last-of-type .preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-preview-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid rgba(20, 110, 185, 0.1);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}


.service-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(36, 52, 71, 0.18);
}



.service-preview-card h4 {
  margin-bottom: 18px;
  color: var(--primary-500);
  font-size: 25px;
}

.service-preview-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.service-preview-card > strong {
  color: var(--primary-500);
  font-size: 19px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card-actions2 {
  justify-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.all-services-link {
  display: table;
  margin: 44px auto 0;
  color: var(--primary-600);
  font-weight: 700;
  text-underline-offset: 5px;
}

/* Home: why */
.why {
  padding-top: 96px;
}

.why-card {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px) 1fr;
  grid-template-areas:
    "title title title"
    "one image three"
    "two image four";
  align-items: center;
  gap: 36px 42px;
  padding: 58px 62px 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--primary-500);
  color: var(--white);
}

.why-card > h2 {
  grid-area: title;
  margin-bottom: 10px;
  text-align: center;
  font-size: clamp(38px, 4vw, 54px);
}

.benefit--one { grid-area: one; }
.benefit--two { grid-area: two; }
.benefit--three { grid-area: three; }
.benefit--four { grid-area: four; }

.benefit h3 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 22px;
}

.benefit h3 img {
  width: 27px;
  flex: 0 0 27px;
  filter: brightness(0) invert(1);
}

.benefit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
}

.why-card__image {
  grid-area: image;
  align-self: end;
}

.why-card__image img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  object-position: bottom;
}

/* Home: reviews */
.reviews {
  overflow: hidden;
}

.reviews__heading {
  margin-bottom: 38px;
  text-align: center;
}

.rating-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto minmax(220px, auto);
  align-items: center;
  gap: 24px 40px;
  margin-bottom: 44px;
  padding: 28px 38px;
  border-radius: var(--radius-md);
  background: var(--white);
}

.rating-summary p,
.rating-summary b {
  margin: 0;
}

.rating-summary strong {
  color: var(--primary-500);
  font-size: 28px;
}

.stars {
  color: var(--star);
  font-size: 26px;
  letter-spacing: 4px;
  line-height: 1;
}

.stars--small {
  margin-bottom: 22px;
  font-size: 20px;
  letter-spacing: 3px;
}

.carousel {
  position: relative;
  padding: 0 58px 58px;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 24px;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.review-card {
  min-width: calc((100% - 48px) / 3);
  min-height: 390px;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--review-blue);
  box-shadow: 0 7px 18px rgba(36, 52, 71, 0.09);
}

.review-card h3 {
  margin-bottom: 8px;
  color: var(--primary-600);
  font-size: 22px;
}

.review-card__author {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 16px;
}

.review-card blockquote {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.55;
}

.carousel__arrow,
.gallery-control {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 8px 18px rgba(20, 110, 185, 0.25);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.carousel__arrow:hover,
.gallery-control:hover {
  background: var(--primary-600);
  transform: scale(1.06);
}

.carousel__arrow img,
.gallery-control img {
  width: 26px;
  filter: brightness(0) invert(1);
}

.carousel__arrow--previous {
  top: calc(50% - 52px);
  left: 0;
}

.carousel__arrow--next {
  top: calc(50% - 52px);
  right: 0;
}

.carousel__arrow--next img,
.gallery-control--next img {
  transform: rotate(180deg);
}

.carousel__dots,
.gallery-dots {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel__dot,
.gallery-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #aeb6bd;
  cursor: pointer;
  transition: width var(--transition), background var(--transition);
}

.carousel__dot[aria-current="true"],
.gallery-dot[aria-current="true"] {
  width: 34px;
  background: var(--primary-500);
}

/* Home: visit and CTA */
.visit {
  padding-top: 54px;
}

.contact-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 46px 0 70px;
}

.contact-summary article,
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-summary article > img,
.contact-detail > img {
  width: 28px;
  flex: 0 0 28px;
  margin-top: 3px;
}

.contact-summary h3,
.contact-detail h2 {
  margin-bottom: 12px;
  color: var(--primary-500);
  font-size: 22px;
}

.contact-summary p,
.contact-detail p {
  margin-bottom: 0;
}

.contact-link,
.footer-column a {
  text-underline-offset: 4px;
  transition: color var(--transition), opacity var(--transition);
}

.contact-link:hover {
  color: var(--primary-600);
}

.map-block > h3 {
  margin-bottom: 22px;
  color: var(--primary-500);
  font-size: 26px;
}

.map-frame {
  height: 430px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #d7e4e1;
  box-shadow: var(--shadow-card);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.booking-cta {
  margin-top: 70px;
  overflow: hidden;
  background: var(--primary-500);
  color: var(--white);
}

.booking-cta__inner {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: 50px;
}

.booking-cta__image {
  align-self: end;
}

.booking-cta__image img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  object-position: bottom;
}

.booking-cta__content h2,
.products-cta h2 {
  margin-bottom: 18px;
  font-size: clamp(40px, 4.5vw, 62px);
  font-weight: 800;
}

.booking-cta__content p,
.products-cta p {
  margin-bottom: 30px;
  font-size: 21px;
}

/* Footer */
.site-footer {
  padding: 72px 0 22px;
  background: var(--primary-500);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.72fr 1fr 1fr;
  gap: 58px;
}

.footer-brand img {
  width: 224px;
  height: auto;
  margin-bottom: 24px;
}

.footer-brand p {
  max-width: 310px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-column h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.86);
}

.footer-column > a:not([data-link="maps"]) {
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--white);
  opacity: 0.8;
}

.footer-column p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.social-links img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-bottom p {
  margin-bottom: 0;
}

/* Nosotros */
.about-intro {
  padding-bottom: 100px;
}

.about-card {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 58px;
  padding: 58px;
  border-radius: var(--radius-lg);
  background: var(--card-blue);
}

.about-card__image {
  grid-column: 2;
  grid-row: 1;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.about-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-card__content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.about-card__content p {
  margin-bottom: 22px;
}

.value-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 32px 0;
  list-style: none;
}

.value-chips li {
  padding: 8px 18px;
  border: 1.5px solid var(--primary-500);
  border-radius: 999px;
  color: var(--primary-700);
  font-weight: 600;
}

.team-section {
  padding-top: 40px;
}

.team-card {
  max-width: 970px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.team-card__image {
  min-height: 530px;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__content {
  align-self: center;
  padding: 52px;
}

.team-card__content h3 {
  margin-bottom: 8px;
  color: var(--primary-500);
  font-size: 36px;
}

.team-card__content h4 {
  margin-bottom: 28px;
  font-size: 22px;
}

.team-card__content blockquote {
  margin-bottom: 30px;
  font-style: normal;
}

.team-card__content p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.clinic-section {
  padding-bottom: 128px;
}

.clinic-section > .container > h2 {
  margin-bottom: 46px;
  text-align: center;
}

.clinic-gallery {
  position: relative;
}

.clinic-gallery__viewport {
  overflow: visible;
}

.clinic-gallery__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 265px);
  gap: 20px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  background: #d8e5e2;
  cursor: zoom-in;
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item--building {
  grid-column: span 2;
}

.gallery-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter var(--transition);
}

.gallery-item > span {
  position: absolute;
  inset: auto 16px 16px auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(36, 52, 71, 0.84);
  color: var(--white);
  font-size: 15px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item > span img {
  width: 19px;
  filter: brightness(0) invert(1);
}

.gallery-item:hover > img {
  filter: brightness(0.78);
  transform: scale(1.035);
}

.gallery-item:hover > span,
.gallery-item:focus-visible > span {
  opacity: 1;
  transform: translateY(0);
}

.gallery-control,
.gallery-dots {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  place-items: center;
  gap: 18px;
  padding: 42px;
  background: rgba(12, 23, 34, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox figure {
  max-width: min(1100px, 78vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.lightbox figure > img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.lightbox figcaption {
  margin-top: 14px;
  color: var(--white);
  text-align: center;
}

.lightbox__close,
.lightbox__control {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.lightbox__close:hover,
.lightbox__control:hover {
  background: var(--primary-500);
  transform: scale(1.06);
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 35px;
  line-height: 1;
}

.lightbox__control {
  width: 58px;
  height: 58px;
}

.lightbox__control img {
  width: 30px;
  filter: brightness(0) invert(1);
}

.lightbox__control--next img {
  transform: rotate(180deg);
}

.lightbox__counter {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

/* Servicios */
.services-page,
.products-page {
  padding-bottom: 120px;
}

.service-category,
.product-category {
  margin-top: 84px;
}

.service-category > h2 {
  text-align: center;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 34px;
}

.service-detail-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.service-detail-card__image {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.service-detail-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
}

.service-detail-card__content h3 {
  margin-bottom: 28px;
  color: var(--primary-500);
  font-size: 28px;
}

.service-detail-card__body {
  flex: 1;
}

.service-detail-card__body h4 {
  margin-bottom: 8px;
  font-size: 19px;
}

.service-detail-card__body p,
.service-detail-card__body ul {
  margin-bottom: 22px;
}

.service-detail-card__body ul {
  padding-left: 22px;
}

.service-detail-card__body li + li {
  margin-top: 4px;
}

.service-price {
  display: block;
  margin: 6px 0 26px;
  color: var(--primary-500);
  font-size: 20px;
}

.service-detail-card .button {
  width: 100%;
}

/* Productos */
.category-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.category-heading h2 {
  margin-bottom: 14px;
}

.category-heading p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  gap: 30px;
}

.product-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(36, 52, 71, 0.18);
}

.product-card__image {
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background: #ffffff;
}

.product-grid--two .product-card__image {
  height: 390px;
}

.product-card__image,
.product-grid--two .product-card__image {
  height: auto;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #ffffff;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center bottom;
}

.product-card:hover .product-card__image img {
  transform: none;
}

.product-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}

.product-card__content h3 {
  margin-bottom: 12px;
  color: var(--primary-500);
  font-size: 23px;
}

.product-card__content p {
  flex: 1;
  margin-bottom: 22px;
  color: var(--text-muted);
}

.product-card__content strong {
  color: var(--primary-500);
  font-size: 20px;
}

.products-cta {
  padding: 72px 0;
  background: var(--primary-500);
  color: var(--white);
}

.products-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 52px;
}

.products-cta h2 {
  font-size: clamp(38px, 4vw, 56px);
}

.products-cta p {
  max-width: 750px;
  margin-bottom: 0;
}

/* Contacto */
.contact-page {
  padding-bottom: 130px;
}

.contact-page__map {
  margin: 68px 0 74px;
}

.contact-page__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 74px;
}

.contact-detail {
  padding: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.52);
}

/* Reveal animation */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  body {
    font-size: 17px;
  }

  .nav-shell {
    grid-template-columns: 116px 1fr auto;
    gap: 14px;
    padding-inline: 20px;
  }

  .brand,
  .brand img {
    width: 92px;
    height: 92px;
  }

  .desktop-nav {
    gap: 20px;
  }

  .header-actions .button {
    padding-inline: 18px;
  }

  .care-steps li {
    padding-inline: 30px 18px;
  }

  .care-steps__number {
    left: 10px;
  }

  .why-card {
    grid-template-columns: 1fr 280px 1fr;
    gap: 28px;
    padding-inline: 42px;
  }

  .footer-grid {
    gap: 34px;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding-top: 14px;
  }

  .nav-shell {
    position: relative;
    z-index: 101;
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    padding: 4px 10px 4px 12px;
    border-radius: 44px;
  }

  .brand,
  .brand img {
    width: 68px;
    height: 68px;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    width: 56px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--primary-500);
    cursor: pointer;
  }

  .menu-button span {
    width: 23px;
    height: 2px;
    border-radius: 3px;
    background: var(--white);
    transition: transform var(--transition), opacity var(--transition);
  }

  .menu-open .menu-button span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-open .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-button span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 110px 32px 40px;
    background: var(--white);
  }

  .mobile-nav a {
    position: relative;
    color: var(--text);
    font-size: 30px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-nav a.is-active {
    color: var(--primary-500);
  }

  .why-card {
    grid-template-columns: 1fr 250px 1fr;
    padding-inline: 28px;
  }

  .rating-summary {
    grid-template-columns: 1fr auto auto;
  }

  .rating-summary b {
    grid-column: 1 / -1;
    text-align: center;
  }

  .review-card {
    min-width: calc((100% - 24px) / 2);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-card {
    gap: 34px;
    padding: 38px;
  }

  .about-card__image {
    min-height: 520px;
  }

  .clinic-gallery__track {
    grid-template-rows: repeat(2, 220px);
  }

  .product-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --radius-md: 18px;
    --radius-lg: 22px;
  }

  html {
    scroll-padding-top: 16px;
  }

  body {
    font-size: 16px;
    line-height: 1.48;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    padding-top: 10px;
  }

  .nav-shell {
    width: calc(100% - 24px);
    min-height: 64px;
    padding: 2px 6px 2px 8px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .brand,
  .brand img {
    width: 56px;
    height: 56px;
  }

  .menu-button {
    width: 52px;
    height: 52px;
  }

  .mobile-nav:not([hidden]) {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
    padding: 140px 44px 44px;
  }

  .mobile-nav a {
    font-size: 28px;
  }

  .button {
    min-height: 48px;
    padding: 10px 24px;
    font-size: 15px;
  }

  .button--small {
    min-height: 42px;
    padding: 9px 15px;
    font-size: 14px;
  }

  /* Home hero */
  .hero {
    min-height: 0;
    margin-bottom: 0;
    padding-top: 470px;
  }

  .hero__image {
    height: 470px;
    background-position: 60% center;
  }

  .hero::after {
    height: 470px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.63) 48%, rgba(255, 255, 255, 0.07) 78%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.1) 62%, rgba(36, 52, 71, 0.22) 100%);
  }

  .hero__content {
    top: 108px;
  }

  .hero h1 {
    width: min(290px, 76vw);
    margin-bottom: 18px;
    font-size: clamp(35px, 10vw, 43px);
  }

  .hero__content > p {
    width: min(250px, 66vw);
    font-size: 18px;
  }

  .rotating-word {
    min-width: 95px;
  }

  .hero__actions {
    top: 353px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero__actions .button {
    padding-inline: 16px;
  }

  .care-steps {
    position: relative;
    bottom: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 22px 18px;
    margin-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: none;
  }

  .care-steps li {
    min-height: 98px;
    align-items: center;
    padding: 20px 20px 16px;
    text-align: center;
  }

  .care-steps li + li {
    border-top: 1px solid rgba(36, 52, 71, 0.16);
    border-left: 0;
  }

  .care-steps__number {
    top: 5px;
    left: 50%;
    font-size: 64px;
    transform: translateX(-50%);
  }

  .care-steps strong {
    margin-bottom: 4px;
    font-size: 20px;
  }

  .care-steps li > span:last-child {
    font-size: 14px;
  }

  .section,
  .page-section {
    padding: 64px 0;
  }

  .section-heading,
  .page-intro {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .reviews__heading h2,
  .visit h2,
  .clinic-section > .container > h2 {
    margin-bottom: 14px;
    font-size: 34px;
  }

  .section-heading p,
  .page-intro p {
    font-size: 16px;
  }

  .page-section {
    padding-top: 48px;
  }

  .page-intro,
  .page-title {
    text-align: left;
  }

  .page-intro h1,
  .page-title {
    margin-bottom: 20px;
    font-size: 39px;
  }

  /* Home services */
  .services-preview {
    padding-top: 56px;
  }

  .preview-group {
    margin-top: 42px;
  }

  .preview-group > h3,
  .service-category > h2,
  .category-heading h2 {
    margin-bottom: 22px;
    font-size: 24px;
    text-align: center;
  }

  .preview-grid,
  .preview-group:last-of-type .preview-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-preview-card {
    min-height: 270px;
    gap: 18px;
    padding: 25px 22px;
    text-align: center;
  }

  .service-preview-card--mobile-hidden,
  .preview-group--mobile-hidden {
    display: none;
  }

  .service-preview-card h4 {
    font-size: 21px;
  }

  .service-preview-card p {
    font-size: 15px;
  }

  .service-preview-card > strong {
    font-size: 17px;
  }

  .all-services-link {
    margin-top: 32px;
  }

  /* Home why */
  .why {
    padding-top: 72px;
  }

  .why .container {
    width: 100%;
  }

  .why-card {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "one" "two" "image" "three" "four";
    gap: 34px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
  }

  .why-card > h2,
  .benefit {
    width: calc(100% - 32px);
    margin-inline: auto;
  }

  .why-card > h2 {
    margin-bottom: 4px;
    font-size: 34px;
  }

  .benefit {
    text-align: center;
  }

  .benefit h3 {
    justify-content: center;
    color: var(--primary-500);
    font-size: 20px;
  }

  .benefit h3 img {
    width: 24px;
    flex-basis: 24px;
    filter: none;
  }

  .benefit p {
    color: var(--text-muted);
  }

  .why-card__image {
    height: 330px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: var(--primary-500);
  }

  .why-card__image img {
    width: auto;
    height: 100%;
  }

  /* Reviews */
  .reviews {
    padding-top: 74px;
  }

  .rating-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 36px;
    padding: 0;
    background: transparent;
    text-align: center;
  }

  .rating-summary p {
    max-width: 280px;
  }

  .rating-summary strong {
    font-size: 23px;
  }

  .rating-summary b {
    font-size: 16px;
  }

  .carousel {
    padding: 0 34px 50px;
  }

  .carousel__track {
    gap: 16px;
  }

  .review-card {
    min-width: 100%;
    min-height: 360px;
    padding: 27px 24px;
  }

  .review-card h3 {
    font-size: 20px;
  }

  .carousel__arrow,
  .gallery-control {
    width: 38px;
    height: 38px;
  }

  .carousel__arrow img,
  .gallery-control img {
    width: 22px;
  }

  .carousel__arrow--previous {
    left: -2px;
  }

  .carousel__arrow--next {
    right: -2px;
  }

  /* Visit */
  .visit {
    padding-top: 52px;
  }

  .contact-summary {
    grid-template-columns: 1fr;
    gap: 38px;
    margin: 40px 0 6px;
  }

  .contact-summary article {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .contact-summary article > img {
    width: 23px;
    flex-basis: 23px;
    margin: 0;
  }

  .contact-summary h3 {
    margin-bottom: 8px;
    font-size: 20px;
  }

  .map-block {
    display: none;
  }

  .booking-cta {
    margin-top: 50px;
  }

  .booking-cta__inner {
    width: 100%;
    min-height: 570px;
    display: flex;
    flex-direction: column-reverse;
    gap: 0;
    padding-top: 46px;
    text-align: center;
  }

  .booking-cta__content {
    z-index: 1;
    width: calc(100% - 32px);
    margin-inline: auto;
  }

  .booking-cta__content h2,
  .products-cta h2 {
    font-size: 36px;
  }

  .booking-cta__content p,
  .products-cta p {
    font-size: 17px;
  }

  .booking-cta__image {
    width: 100%;
    height: 290px;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    overflow: hidden;
  }

  .booking-cta__image img {
    width: auto;
    height: 310px;
    max-height: none;
    object-position: bottom;
  }

  /* Footer */
  .site-footer {
    padding: 56px 0 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .footer-brand img {
    width: 230px;
  }

  .footer-brand p {
    max-width: 330px;
  }

  .footer-column {
    gap: 15px;
  }

  .footer-column h2 {
    font-size: 22px;
  }

  .footer-bottom {
    margin-top: 54px;
    padding-top: 20px;
  }

  /* Nosotros */
  .about-intro {
    padding-bottom: 62px;
  }

  .about-card {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 12px 12px 28px;
  }

  .about-card__image {
    min-height: 0;
    height: 340px;
  }

  .about-card__content {
    padding: 0 4px;
  }

  .about-card__content p {
    margin-bottom: 19px;
  }

  .value-chips {
    justify-content: center;
    gap: 10px;
    margin: 27px 0;
  }

  .value-chips li {
    padding: 7px 14px;
    font-size: 14px;
  }

  .about-card__content > .button {
    width: 100%;
  }

  .team-section {
    padding-top: 36px;
  }

  .team-card {
    display: block;
  }

  .team-card__image {
    height: 400px;
    min-height: 0;
  }

  .team-card__content {
    padding: 28px 24px 32px;
  }

  .team-card__content h3 {
    font-size: 30px;
  }

  .team-card__content h4 {
    font-size: 20px;
  }

  .clinic-section {
    padding-top: 74px;
    padding-bottom: 94px;
    overflow: hidden;
  }

  .clinic-gallery__viewport {
    overflow: hidden;
  }

  .clinic-gallery__track {
    display: flex;
    gap: 16px;
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .gallery-item,
  .gallery-item--large,
  .gallery-item--building {
    min-width: 100%;
    height: 390px;
  }

  .gallery-item > span {
    opacity: 1;
    transform: none;
  }

  .gallery-control {
    display: grid;
    top: calc(50% - 30px);
  }

  .gallery-control--previous {
    left: -9px;
  }

  .gallery-control--next {
    right: -9px;
  }

  .gallery-dots {
    bottom: -42px;
    display: flex;
  }

  .lightbox {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 4px;
    padding: 70px 8px 48px;
  }

  .lightbox figure {
    max-width: 100%;
  }

  .lightbox figure > img {
    max-height: 70vh;
  }

  .lightbox__control {
    width: 38px;
    height: 38px;
  }

  .lightbox__control img {
    width: 23px;
  }

  /* Servicios */
  .services-page,
  .products-page {
    padding-bottom: 80px;
  }

  .service-category,
  .product-category {
    margin-top: 58px;
  }

  .service-detail-grid,
  .product-grid--two,
  .product-grid--three {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-detail-card__image {
    height: 230px;
  }

  .service-detail-card__content {
    padding: 25px 22px;
  }

  .service-detail-card__content h3 {
    margin-bottom: 22px;
    font-size: 23px;
  }

  .service-detail-card__body h4 {
    font-size: 17px;
  }

  .service-detail-card__body p,
  .service-detail-card__body ul {
    margin-bottom: 18px;
  }

  .service-price {
    font-size: 18px;
  }

  /* Products */
  .category-heading {
    margin-bottom: 26px;
    text-align: left;
  }

  .category-heading h2 {
    text-align: left;
  }

  .product-card__image,
  .product-grid--two .product-card__image {
    height: 330px;
  }

  .product-card__content {
    padding: 24px 22px;
  }

  .product-card__content h3 {
    font-size: 21px;
  }

  .products-cta {
    padding: 52px 0;
    text-align: center;
  }

  .products-cta__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .products-cta p {
    margin-bottom: 0;
  }

  .products-cta .button {
    justify-self: center;
    min-width: 180px;
  }

  /* Contact */
  .contact-page {
    padding-bottom: 86px;
  }

  .contact-page__map {
    display: none;
  }

  .contact-page__details {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 170px;
  }

  .contact-detail {
    padding: 22px 14px;
    background: transparent;
  }

  .contact-detail h2 {
    font-size: 23px;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero h1 {
    width: 76vw;
    font-size: 34px;
  }

  .hero__content > p {
    font-size: 17px;
  }

  .hero__actions {
    gap: 7px;
  }

  .hero__actions .button {
    padding-inline: 10px;
    font-size: 14px;
  }

  .card-actions {
    gap: 8px;
  }

  .card-actions .button {
    padding-inline: 10px;
  }

  .review-card {
    padding-inline: 21px;
  }

  .about-card__image {
    height: 300px;
  }

  .team-card__image {
    height: 350px;
  }

  .gallery-item,
  .gallery-item--large,
  .gallery-item--building {
    height: 340px;
  }

  .product-card__image,
  .product-grid--two .product-card__image {
    height: 290px;
  }
}

/* Ajustes finales según los componentes aprobados */
.hero h1 {
  font-size: 64px;
}

.hero__content > h2 {
  width: min(620px, 50vw);
  margin: 0;
  color: var(--text);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
}

.hero__actions {
  position: static;
  width: auto;
  margin-top: 24px;
  transform: none;
}

.care-steps {
  bottom: -70px;
  min-height: 172px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(184, 215, 210, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 40px rgba(36, 52, 71, 0.16);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.care-steps li {
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  text-align: center;
  isolation: auto;
}

.care-steps__number {
  position: relative;
  top: auto;
  left: auto;
  z-index: auto;
  margin-bottom: 5px;
  color: #fafaf8;
  font-size: clamp(76px, 6.6vw, 95px);
  font-weight: 400;
  line-height: 0.72;
}

.care-steps strong {
  margin-bottom: 6px;
  color: var(--primary-700);
  font-size: 24px;
  font-weight: 600;
}

.care-steps li > span:last-child {
  color: var(--text);
  font-size: 16px;
}

.page-intro h1,
.page-title {
  font-size: 56px;
}

.preview-group > h3 {
  color: var(--primary-700);
  font-size: 40px;
  text-align: center;
}

.service-preview-card {
  text-align: center;
}

.service-preview-card h4 {
  color: var(--primary-700);
  font-size: 24px;
  font-weight: 600;
}

.service-preview-card > strong {
  color: var(--primary-600);
}

.why-card {
  min-height: 576px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(330px, 0.82fr);
  grid-template-areas:
    "title title image"
    "one two image"
    "three four image";
  grid-template-rows: auto 1fr 1fr;
  align-items: start;
  gap: 30px 40px;
  padding: 0;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.why-card > h2 {
  padding: 52px 30px 0 56px;
  margin: 0;
  color: var(--primary-700);
  font-size: 55px;
  font-weight: 800;
  text-align: left;
}

.benefit--one,
.benefit--three {
  padding-left: 56px;
}

.benefit--two,
.benefit--four {
  padding-right: 38px;
}

.benefit h3 {
  color: var(--primary-500);
  font-size: 24px;
  font-weight: 600;
}

.benefit h3 img {
  width: 26px;
  flex-basis: 26px;
  filter: none;
}

.benefit p {
  color: var(--text);
  font-size: 18px;
}

.why-card__image {
  align-self: stretch;
  min-height: 576px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--primary-600);
}

.why-card__image img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  object-position: bottom;
}

.rating-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 230px;
  margin-bottom: 48px;
  padding: 24px;
  background: transparent;
  text-align: center;
}

.rating-summary p {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 400;
}

.rating-summary strong {
  color: var(--text);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
}

.rating-summary b {
  margin: 0;
  color: var(--text);
  font-size: 29px;
  font-weight: 700;
}

.carousel {
  padding: 0 34px 58px;
}

.carousel__track {
  align-items: stretch;
  gap: 16px;
}

.review-card {
  min-width: calc((100% - 32px) / 3);
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title title"
    "author stars"
    "quote quote";
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 8px 14px;
  padding: 16px;
}

.review-card h3 {
  grid-area: title;
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}

.review-card__author {
  grid-area: author;
  align-self: center;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.review-card .stars--small {
  grid-area: stars;
  align-self: center;
  justify-self: end;
  margin: 0;
  font-size: 15px;
  letter-spacing: 2px;
}

.review-card blockquote {
  grid-area: quote;
  width: 100%;
  margin: 18px 0 0;
  color: var(--primary-700);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.42;
}

.booking-cta {
  margin: 70px 0 120px;
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
}

.booking-cta__content h2 {
  font-size: 56px;
  font-weight: 800;
}

.booking-cta__content p {
  font-size: 24px;
  font-weight: 600;
}

.products-cta {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
}

.footer-column a,
.contact-link {
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--white);
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--primary-700);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.social-links a:hover,
.social-links a:focus-visible {
  text-decoration: none;
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.services-page .page-intro h1,
.products-page .page-intro h1 {
  color: var(--text);
}

.services-page .service-category > h2,
.products-page .category-heading h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-700);
}

.service-detail-card {
  position: relative;
}

.service-detail-card__image {
  background: var(--white);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.38) 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.38) 86%, transparent 100%);
}

.service-detail-card__content h3 {
  color: var(--primary-700);
  font-size: 40px;
  font-weight: 700;
}

.product-card__image,
.product-grid--two .product-card__image {
  background: var(--white);
}

.product-card__image img {
  padding: 24px;
  object-fit: cover;
}

.product-card__content h3 {
  color: var(--primary-700);
  font-size: 24px;
  font-weight: 600;
}

.contact-detail {
  background: var(--white);
  box-shadow: 0 10px 24px rgba(36, 52, 71, 0.16);
}

.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 240;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 12px 28px rgba(20, 67, 43, 0.3);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 34px rgba(20, 67, 43, 0.38);
}

.menu-open .whatsapp-float,
.lightbox-open .whatsapp-float {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) and (min-width: 768px) {
  .why-card {
    grid-template-columns: minmax(0, 1fr) 290px;
    grid-template-areas:
      "title image"
      "one image"
      "two image"
      "three image"
      "four image";
    grid-template-rows: auto repeat(4, auto);
    gap: 24px;
  }

  .benefit--one,
  .benefit--three,
  .benefit--two,
  .benefit--four {
    padding: 0 24px 0 42px;
  }

  .review-card {
    min-width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero__content > h2 {
    width: min(280px, 72vw);
    font-size: 24px;
  }

  .hero__actions {
    position: static;
    width: min(300px, 82vw);
    margin-top: 24px;
    transform: none;
  }

  .care-steps {
    position: relative;
    bottom: auto;
    min-height: 551px;
    padding: 12px 18px;
    margin-top: 16px;
    border-radius: var(--radius-lg);
    background: rgba(184, 215, 210, 0.66);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      0 12px 28px rgba(36, 52, 71, 0.13);
  }

  .care-steps li {
    min-height: 126px;
    padding: 14px 16px;
  }

  .care-steps__number {
    font-size: 72px;
  }

  .care-steps strong {
    font-size: 20px;
  }

  .care-steps li > span:last-child {
    font-size: 16px;
  }

  .page-intro h1,
  .page-title {
    font-size: 32px;
  }

  .preview-group > h3 {
    font-size: 24px;
  }

  .service-preview-card h4 {
    font-size: 20px;
  }

  .why-card {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas: "title" "one" "two" "image" "three" "four";
    grid-template-rows: auto;
    gap: 32px;
    padding: 36px 0 0;
    background: var(--white);
    color: var(--text);
    box-shadow: none;
  }

  .why-card > h2,
  .benefit {
    width: calc(100% - 40px);
    padding: 0;
    margin-inline: auto;
  }

  .why-card > h2 {
    color: var(--primary-700);
    font-size: 32px;
    text-align: center;
  }

  .benefit h3 {
    color: var(--primary-500);
    font-size: 20px;
  }

  .benefit p {
    color: var(--text);
    font-size: 18px;
  }

  .why-card__image {
    min-height: 330px;
    height: 330px;
    background: var(--primary-600);
  }

  .rating-summary {
    gap: 8px;
    min-height: 239px;
    margin-bottom: 36px;
    padding: 24px 12px;
  }

  .rating-summary p {
    max-width: 320px;
    font-size: 20px;
  }

  .rating-summary strong,
  .rating-summary b {
    font-size: 29px;
  }

  .carousel {
    padding: 0 28px 54px;
  }

  .review-card {
    min-width: 100%;
    min-height: 300px;
    padding: 16px;
  }

  .review-card blockquote {
    font-size: 18px;
  }

  .booking-cta {
    margin: 48px 0 88px;
  }

  .booking-cta__content h2 {
    font-size: 32px;
  }

  .booking-cta__content p {
    font-size: 20px;
  }

  .services-page .service-category > h2,
  .products-page .category-heading h2 {
    font-size: 32px;
  }

  .service-detail-card__content h3 {
    font-size: 24px;
  }

  .product-card__image img {
    padding: 16px;
  }

  .product-card__content h3 {
    font-size: 20px;
  }

  .contact-detail {
    padding: 22px 18px;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(36, 52, 71, 0.15);
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
.product-card--cream .product-card__image {
  background-color: #ffffff;
}

.product-card--cream .product-card__image img {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 24px;
  object-fit: contain;
  object-position: center;
}

/* Evita que el hover vuelva a cortar la imagen */
.product-card--cream:hover .product-card__image img {
  transform: none;
}

@media (max-width: 767px) {
  .product-card--cream .product-card__image img {
    padding: 16px;
  }
}

/* Imágenes cuadradas de productos, excepto las cremas */

.product-grid--three .product-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  background-color: #ffffff;
}

.product-grid--three .product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

/* Evita que el zoom del hover vuelva a cortar las imágenes */
.product-grid--three .product-card:hover .product-card__image img {
  transform: none;
}

/* Pop-up de reserva (<dialog>) */
.modal {
  width: min(calc(100% - 32px), 520px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--text);
}

.modal[open] {
  animation: modal-in 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.modal::backdrop {
  background: rgba(12, 23, 34, 0.55);
  backdrop-filter: blur(4px);
}

.modal[open]::backdrop {
  animation: modal-backdrop-in 320ms ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

@keyframes modal-backdrop-in {
  from {
    opacity: 0;
  }
}

.modal__card {
  position: relative;
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 32px 32px;
  overflow-y: auto;
  border: 1px solid rgba(20, 110, 185, 0.1);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 24px 60px rgba(12, 23, 34, 0.25);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-500);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.modal__close:hover {
  background: var(--primary-500);
  color: var(--white);
  transform: scale(1.06);
}

.modal__header {
  padding-right: 48px;
}

.modal__header h3 {
  margin-bottom: 8px;
  color: var(--primary-500);
  font-size: 28px;
}

.modal__header p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 17px;
}

.modal__options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.modal__options-list {
  display: grid;
  gap: 12px;
}

/* Opción seleccionable (General / Adulto mayor) */
.modal-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 16px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.modal-option:hover {
  border-color: var(--primary-300);
  background: var(--primary-50);
}

.modal-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modal-option__radio {
  width: 22px;
  height: 22px;
  border: 2px solid var(--primary-300);
  border-radius: 50%;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.modal-option__name {
  font-weight: 600;
  font-size: 19px;
}

.modal-option__price {
  color: var(--primary-500);
  font-size: 19px;
  text-align: right;
}

.modal-option:has(.modal-option__input:checked) {
  border-color: var(--primary-500);
  background: var(--primary-50);
  box-shadow: 0 8px 20px rgba(15, 93, 156, 0.12);
}

.modal-option__input:checked + .modal-option__radio {
  border-color: var(--primary-500);
  box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 12px var(--primary-500);
}

.modal-option:has(.modal-option__input:focus-visible) {
  outline: 3px solid var(--primary-300);
  outline-offset: 4px;
}

.modal__submit {
  width: 100%;
}

.modal__submit:not([hidden]) {
  animation: modal-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767px) {
  .modal__card {
    gap: 20px;
    padding: 32px 20px 24px;
  }

  .modal__header h3 {
    font-size: 24px;
  }

  .modal-option {
    gap: 12px;
    min-height: 64px;
    padding: 14px 16px;
  }

  .modal-option__name,
  .modal-option__price {
    font-size: 17px;
  }
}
