/* ==========================================================================
   Fonts (self-hosted latin subsets from Google Fonts; licences in assets/fonts/OFL-*.txt)
   ========================================================================== */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/montserrat-500-700.woff2") format("woff2"); }

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  /* Brand (identity manual): Azul Cobalto is the primary colour, Azul Zafiro the
     complementary one. Every blue on the page comes from these two and their tints. */
  --blue: #144a97;   /* Azul Cobalto: surfaces, buttons, text accents */
  --blue-2: #4b78bb; /* Azul Zafiro: icons, decoration, hover states */
  --blue-soft: #a5bcdd; /* 50% Zafiro on white */
  --blue-tint: #edf2f8; /* 10% Zafiro on white */
  --shadow-blue: rgba(20, 74, 151, .25);

  /* Neutrals */
  --ink: #1b1f24;
  --text: #4a5260;
  --muted: #6b7280;
  --line: #e3e8ee;
  --bg-soft: #f6f8fb;
  --white: #fff;
  --whatsapp: #25d366;

  /* Type: Montserrat (geometric, close to the logo's Adam) for display, Lato for text */
  --f-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Lato", system-ui, sans-serif;
  --fs-hero: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  /* Space & shape */
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(72px, 6rem + 2vw, 128px);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .07);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .14);
  --header-h: 84px;
  --wave-h: clamp(36px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 var(--fs-body)/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; }

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   Type patterns
   ========================================================================== */
.eyebrow {
  font: 600 .8125rem/1.3 var(--f-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--light { color: var(--white); }

.section-title {
  margin-top: 12px;
  font: 600 var(--fs-h2)/1.15 var(--f-display);
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}

.lead {
  margin-top: 18px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  font: 600 .8125rem/1.2 var(--f-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding-inline: 28px; font-size: .875rem; }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-2); box-shadow: 0 8px 20px var(--shadow-blue); }

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

.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--blue); }

/* On Cobalto surfaces the primary button inverts: white with Cobalto text */
.hero .btn--primary, .section--blue .btn--primary { background: var(--white); color: var(--blue); }
.hero .btn--primary:hover, .section--blue .btn--primary:hover { background: var(--blue-tint); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(16, 24, 40, .06); }
.site-header__inner {
  display: flex; align-items: center; gap: 40px;
  height: var(--header-h);
  max-width: 1400px; margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header__logo { display: block; flex-shrink: 0; }
.site-header__logo img { display: block; width: auto; height: 50px; } /* horizontal logo on desktop */
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 36px; }
.site-nav a {
  font: 600 .875rem/1.6 var(--f-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(var(--blue), var(--blue)) left bottom / 0 2px no-repeat;
  transition: background-size .25s, color .2s;
}
.site-nav a:hover { color: var(--blue); background-size: 100% 2px; }
.site-header__cta { flex: none; }

/* ES / EN language switcher */
.lang-switch { display: flex; flex: none; gap: 2px; margin-left: -24px; }
.lang-switch a {
  padding: 6px 7px; border-radius: var(--radius-sm);
  font: 600 .8125rem/1 var(--f-display); letter-spacing: .06em;
  color: var(--muted); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.lang-switch a:hover { color: var(--blue); }
.lang-switch a[aria-current] { color: var(--blue); background: var(--blue-tint); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
}
.hero__inner {
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(620px, calc(100svh - var(--header-h)), 880px);
}
.hero__text { position: relative; z-index: 2; max-width: 540px; padding-block: 96px 120px; }
.hero h1 {
  margin-top: 14px;
  max-width: 13ch;
  font: 600 var(--fs-hero)/1.08 var(--f-display);
  letter-spacing: -.015em;
  color: var(--white);
  text-wrap: balance;
}
.hero__lead {
  margin-top: 22px;
  max-width: 30ch;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  line-height: 1.5;
  color: var(--white);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__trust { display: grid; gap: 8px; margin-top: 32px; font-size: .9375rem; color: var(--white); }
.hero__trust li { display: flex; align-items: center; gap: 10px; }
.hero__trust .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.hero__photo {
  position: absolute;
  right: -120px; bottom: 0;
  width: auto; height: calc(100% - 16px);
  max-width: none;
  z-index: 1;
  filter: drop-shadow(0 24px 40px var(--shadow-blue));
}
/* Soft wave separator, like the brand's social covers */
.hero::after, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: var(--wave-h);
  -webkit-mask: var(--wave) 0 0 / 100% 100% no-repeat;
  mask: var(--wave) 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
:root { --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V58C240 82 480 82 720 58S1200 0 1440 22V80Z'/%3E%3C/svg%3E"); }
.hero::after { bottom: -1px; z-index: 2; background: var(--bg-soft); }

/* Stomach symbol: anchored to the container so it never hides behind the photo */
.hero__symbol {
  position: absolute; z-index: 0;
  left: 50%; top: 50%;
  height: 96%; aspect-ratio: 595.3 / 841.9;
  transform: translate(-42%, -50%);
  pointer-events: none;
}
/* Narrow desktops: nudge right so the bubbles stay clear of the headline */
@media (max-width: 1200px) { .hero__symbol { transform: translate(-36%, -50%); } }
.hero__symbol svg { display: block; width: 100%; height: 100%; overflow: visible; opacity: .35; fill: var(--white); }
.hero__dot { transform-box: fill-box; transform-origin: center; }
/* Symbol entrance: the outline draws itself, fills in and the bubbles pop out,
   then the bubbles keep floating gently */
@media (prefers-reduced-motion: no-preference) {
  .hero__stomach {
    fill-opacity: 0; stroke: var(--white); stroke-width: 2.5; vector-effect: non-scaling-stroke;
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: stomach-draw .9s cubic-bezier(.5, 0, .3, 1) .2s forwards, stomach-fill .45s ease-out .95s forwards;
  }
  .hero__dot {
    transform: scale(0);
    animation:
      dot-pop .45s cubic-bezier(.34, 1.7, .64, 1) calc(1.1s + var(--i) * .09s) forwards,
      dot-float calc(4s + var(--i) * .7s) ease-in-out calc(1.7s + var(--i) * .09s) infinite alternate;
  }
}
@keyframes stomach-draw { to { stroke-dashoffset: 0; } }
@keyframes stomach-fill { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes dot-pop { to { transform: scale(1); } }
@keyframes dot-float {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1) translate(calc((var(--i) - 2) * 1.5px), -7px); }
  100% { transform: scale(1) translate(calc((2 - var(--i)) * 1px), 4px); }
}

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > *, .hero__photo, .social--hero {
    animation: hero-in .5s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero__text > :nth-child(1) { animation-delay: 0s; }
  .hero__text > :nth-child(2) { animation-delay: .06s; }
  .hero__text > :nth-child(3) { animation-delay: .12s; }
  .hero__text > :nth-child(4) { animation-delay: .18s; }
  .hero__text > :nth-child(5) { animation-delay: .24s; }
  .hero__photo { animation-name: hero-photo-in; animation-duration: .7s; animation-delay: .08s; }
  .social--hero { animation-delay: .3s; }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-photo-in {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: none; }
}

.social--hero {
  position: absolute; left: var(--gutter); bottom: calc(var(--wave-h) * .3 + 14px); z-index: 3;
  display: flex; gap: 6px;
}
.social--hero a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; color: var(--white);
  transition: background-color .2s;
}
.social--hero a:hover { background: rgba(255, 255, 255, .16); }
.social--hero .icon { width: 16px; height: 16px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue .section-title, .section--blue .lead { color: var(--white); }

/* Secondary symbol (manual p. 10): the isotype as a large 5% watermark */
.section--watermark { position: relative; overflow: hidden; isolation: isolate; }
.section--watermark::before {
  content: ""; position: absolute; z-index: -1;
  top: 50%; right: -4%;
  width: clamp(280px, 38vw, 560px); aspect-ratio: 238 / 336;
  transform: translateY(-50%);
  background: url("../img/isotipo.svg") center / contain no-repeat;
  opacity: .05;
  pointer-events: none;
}
.section--watermark-left::before { right: auto; left: -4%; transform: translateY(-50%) scaleX(-1); }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .lead { margin-inline: auto; max-width: 56ch; }
.section-cta { margin-top: 40px; text-align: center; color: var(--muted); }
.section-cta a { color: var(--blue); font-weight: 700; text-underline-offset: 3px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Services */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative;
  padding: 44px 32px 40px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.service-card::before {
  content: ""; position: absolute; inset: -1px -1px auto; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--blue-2);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-card img { height: 88px; width: auto; margin: 0 auto 24px; }
.service-card h3 {
  font: 600 1.125rem/1.25 var(--f-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.service-card ul { margin-top: 20px; }
.service-card li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.45; }
.service-card li:last-child { border-bottom: 1px solid var(--line); }

/* Video */
.video { background: var(--ink); }
.video__trigger {
  position: relative; display: block; width: 100%;
  height: clamp(300px, 52vw, 720px);
  padding: 0; border: 0; cursor: pointer; background: #000;
}
.video__trigger img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
/* Brand overlay: recolour the teal operating room towards Azul Cobalto (keeping
   the photo's light and shadow), then a Cobalto gradient so the play button reads */
.video__trigger::before, .video__trigger::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.video__trigger::before { background: var(--blue); mix-blend-mode: color; opacity: .75; }
.video__trigger::after { background: linear-gradient(to top, rgba(20, 74, 151, .85), rgba(20, 74, 151, .35) 60%, rgba(20, 74, 151, .2)); }
.video__play, .video__label { z-index: 1; }
.video__label {
  position: absolute; left: 0; right: 0; top: calc(50% + 64px);
  font: 600 .875rem/1.3 var(--f-display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--white); text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.video__play {
  position: absolute; left: 50%; top: 50%;
  width: 88px; height: 88px; margin: -44px 0 0 -44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 2px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(4px);
  transition: transform .25s, background-color .25s;
}
.video__play::after {
  content: ""; position: absolute; left: 34px; top: 27px;
  border-style: solid; border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent var(--white);
}
.video__trigger:hover .video__play { transform: scale(1.08); background: var(--blue); }

/* About */
.about__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__inner > img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); }
.about__points { display: grid; gap: 16px; margin-top: 32px; }
.about__points li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius);
  background: var(--blue-tint);
}
.about__points img {
  width: 52px; height: 52px; flex: none;
  padding: 10px; border-radius: 50%; background: var(--blue);
  object-fit: contain;
}
.about__points h3 { font: 600 .9375rem/1.35 var(--f-display); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.about__points p { margin-top: 4px; font-size: .9375rem; line-height: 1.55; }

/* 360 */
.vr__inner { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.vr__hint { margin-top: 20px; font-size: var(--fs-small); color: var(--white); opacity: .9; }
.vr .vr__viewer {
  height: clamp(340px, 42vw, 560px);
  border-radius: var(--radius); overflow: hidden;
  background: var(--blue-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.vr__viewer > img { width: 100%; height: 100%; object-fit: cover; }

/* Gallery */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__grid a { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s; }
.gallery__grid a:hover img { transform: scale(1.06); }

/* Socials */
.socials__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 880px; margin-inline: auto; }
.social-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.social-card:hover { border-color: var(--blue-soft); box-shadow: var(--shadow); transform: translateY(-2px); }
.social-card .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--blue); fill: var(--white); }
.social-card span { display: grid; font-size: .9375rem; color: var(--muted); line-height: 1.35; }
.social-card strong { font: 600 .875rem/1.35 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.tiktok-facade { margin-top: 32px; text-align: center; }
.tiktok-facade__note { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.tiktok-embed { margin: 32px auto 0 !important; }

/* Visit */
.visit__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.visit__details { display: grid; gap: 16px; margin-top: 28px; font-size: 1.0625rem; color: var(--ink); }
.visit__details li { display: flex; gap: 14px; align-items: flex-start; }
.visit__details .icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--blue-tint); fill: var(--blue); }
.visit__details a { color: var(--ink); font-weight: 700; text-decoration: none; line-height: 40px; }
.visit__details a:hover { color: var(--blue-2); }
.visit__details li > span { padding-top: 7px; line-height: 1.5; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.visit__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.visit__map iframe { display: block; width: 100%; height: 440px; border: 0; }
.typed::after { content: "|"; margin-left: 1px; font-weight: 400; color: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   Trust components (ready for content: credentials, reviews, FAQ)
   ========================================================================== */
.credentials { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.credential {
  display: grid; gap: 6px; padding: 22px;
  border-left: 4px solid var(--blue);
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.credential__label { font: 600 .8125rem/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.credential__value { font: 600 1.125rem/1.35 var(--f-display); letter-spacing: .03em; color: var(--ink); }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review { display: flex; flex-direction: column; gap: 16px; padding: 28px; margin: 0; }
.review__stars { color: #f5a623; letter-spacing: 2px; font-size: 1.125rem; }
.review__stars span { color: var(--line); }
.review blockquote p { margin: 0; }
.review blockquote { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.6; }
.review figcaption { margin-top: auto; font-size: var(--fs-small); color: var(--muted); }
.review figcaption strong { display: block; color: var(--ink); font-weight: 700; }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--f-text); color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--blue);
  padding: 64px 20px 40px;
  text-align: center;
  color: rgba(255, 255, 255, .7);
}
.site-footer::before { bottom: 100%; margin-bottom: -1px; background: var(--blue); }
.site-footer > img { width: 240px; margin: 0 auto 20px; }
.social--footer { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.social--footer a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  color: var(--white); transition: background-color .2s, border-color .2s;
}
.social--footer a:hover { background: var(--white); border-color: var(--white); color: var(--blue); }
.social--footer .icon { width: 18px; height: 18px; }
.site-footer__contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px;
  font-size: .9375rem;
}
.site-footer__contact a { color: var(--white); font-weight: 700; text-decoration: none; }
.site-footer__copy { max-width: var(--container); margin: 28px auto 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-small); color: rgba(255, 255, 255, .55); }
.site-footer__copy a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer__copy a:hover { color: var(--white); }
.site-footer__legal { margin-top: 8px; font-size: .8125rem; color: rgba(255, 255, 255, .55); }
.site-footer__legal a, .site-footer__legal button {
  color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.site-footer__legal a:hover, .site-footer__legal button:hover { color: var(--white); }

/* ==========================================================================
   Floating WhatsApp, consent, lightbox
   ========================================================================== */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 45;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .icon { width: 32px; height: 32px; }

.consent {
  position: fixed; left: 50%; bottom: 20px; z-index: 60;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; gap: 20px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: .875rem; line-height: 1.5; color: var(--ink);
}
.consent[hidden] { display: none; }
.consent__actions { display: flex; gap: 8px; flex: none; }
.consent .btn { min-height: 42px; padding: 8px 18px; }

.lightbox {
  width: min(92vw, 1200px); max-height: 92vh;
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 14, 24, .9); }
.lightbox__body img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox[data-kind="video"] .lightbox__body { aspect-ratio: 16 / 9; }
.lightbox__body iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }
.lightbox__close {
  position: absolute; top: -48px; right: 0;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  font-size: 36px; line-height: 1; color: var(--white);
}

/* ==========================================================================
   Legal page
   ========================================================================== */
.legal { padding: 64px 0 104px; }
.legal .container { max-width: 820px; }
.legal h1 { font: 600 var(--fs-h2)/1.15 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.legal h2 { margin: 40px 0 8px; font: 600 1rem/1.4 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.legal p, .legal li { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal__updated { font-size: var(--fs-small); color: var(--muted); }
.site-header--simple .btn { margin-left: auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .site-nav ul { gap: 24px; }
  .hero__photo { right: -200px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .site-header__inner { gap: 12px; }
  .lang-switch { margin-left: 0; }
  .site-header__logo img { height: 46px; } /* isotype */
  .site-header__cta { margin-left: auto; min-height: 42px; padding: 8px 16px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    margin: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(16, 24, 40, .08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 14px 0; background: none; }

  /* Hero: text on top, photo below so the doctor is visible on phones */
  .hero__symbol { left: auto; top: auto; right: -6%; bottom: 3%; height: 46%; transform: none; }
  .hero__inner { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__text { max-width: 640px; padding-block: 72px 0; }
  .hero__lead { max-width: 36ch; }
  .hero__photo {
    position: relative; right: auto; bottom: auto;
    width: min(88%, 460px); height: auto;
    margin: 24px 0 0 auto;
  }

  .social--hero { display: none; } /* would sit on the white coat; the footer has them */
  .services__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .about__inner, .vr__inner, .visit__inner { grid-template-columns: 1fr; }
  .about__inner > img { aspect-ratio: 16 / 10; }
  .socials__links { grid-template-columns: 1fr; max-width: 480px; }
  .whatsapp-float { display: none; } /* header CTA is always visible on small screens */
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .hero__text { padding-top: 64px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__photo { width: 92%; }
  .service-card { padding: 36px 24px 32px; }
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery__grid a { border-radius: var(--radius-sm); }
  .about__points li { padding: 16px; }
  .visit__actions .btn { flex: 1 1 100%; }
  .visit__map iframe { height: 320px; }
  .site-footer__contact { flex-direction: column; }
  .site-footer__contact > span[aria-hidden] { display: none; }
  .consent { flex-direction: column; align-items: stretch; bottom: 12px; }
  .consent__actions .btn { flex: 1; }
  .site-header--simple .btn { padding-inline: 16px; }
}

/* 404 */
.not-found { min-height: 60vh; text-align: center; }
.not-found .container { max-width: 640px; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
