/* ==========================================================================
   Clínica Indipodo — sistema de diseño
   Editorial healthcare × clínica boutique · versión suave y premium
   ========================================================================== */

/* ---------- Tipografías alojadas en la propia web (sin Google Fonts · licencia OFL) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-ext-500-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-ext-600-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #EDE8DF;
  --bg-soft: #E1DACD;
  --teal: #236573;
  --teal-dark: #1D5663;
  --teal-deep: #17434E;
  --text: #283338;
  --heading: #1C2A2F;
  --text-muted: #5E6665;
  --white: #FFFFFF;

  --hair: rgba(28, 42, 47, .09);
  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .78);
  --teal-tint: rgba(35, 101, 115, .09);

  --grad-teal: linear-gradient(135deg, #2C7887 0%, #236573 48%, #17434E 100%);
  --grad-btn: linear-gradient(135deg, #2B7685 0%, #1D5663 100%);

  --shadow-card: 0 1px 2px rgba(28, 42, 47, .04), 0 18px 40px -26px rgba(28, 42, 47, .28);
  --shadow-soft: 0 30px 70px -36px rgba(28, 42, 47, .38);
  --shadow-btn: 0 12px 26px -14px rgba(29, 86, 99, .75);

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --radius-pill: 999px;
  --radius-signature: 28px 120px 28px 28px;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: 32px;
  --frame: 16px;
  --nav-h: 78px;

  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;
  --space-3xl: 150px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 100% -10%, rgba(35, 101, 115, .07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 var(--space-md); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus { outline: none; }
/* Solo al navegar con teclado: anillo suave en el color de la marca */
:focus-visible { outline: 2px solid rgba(35, 101, 115, .45); outline-offset: 3px; }
section[id], [id="fisioterapia"], [id="nutricion"] { scroll-margin-top: calc(var(--nav-h) + 8px); }

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

/* ---------- Tipografía ---------- */
.label {
  display: block;
  margin: 0 0 var(--space-md);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}
.label--muted { color: var(--text-muted); }
.label--light { color: rgba(255, 255, 255, .8); }

h1, h2, h3, h4, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--heading);
  margin: 0;
}
.section--teal h2, .section--teal h3, .section--teal .h2, .section--teal .h3 { color: var(--white); }
em { font-style: italic; font-weight: 600; }
.section:not(.section--teal) h2 em,
.section:not(.section--teal) h3 em,
.intent em, .steps__close em {
  color: var(--teal);
  background: linear-gradient(120deg, #2C7887, #1D5663);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .06em;
}

/* Etiqueta “píldora” dentro de un titular (palabra clave + estilo editorial) */
h1.label, .h2 > .label, .h3 > .label {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .14em;
  font-size: 10.5px;
  line-height: 1.45;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: var(--teal-tint);
  -webkit-text-fill-color: currentColor;
}
.h2 > .label { margin-bottom: 22px; }
.section--teal .h2 > .label, h1.label { background: rgba(255, 255, 255, .12); }
.section--teal .h2 > .boxes__sub { background: none; padding: 0 2px; margin: -10px 0 22px; color: rgba(255, 255, 255, .6); }

.h2 {
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.03;
  margin-bottom: var(--space-lg);
  max-width: 15ch;
}
.h2--sm { font-size: clamp(36px, 3.6vw, 50px); max-width: 14ch; margin-bottom: var(--space-md); }
.h3 { font-size: clamp(29px, 2.8vw, 40px); line-height: 1.08; margin-bottom: var(--space-md); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad-btn); color: var(--white); box-shadow: var(--shadow-btn); }
.btn--primary:hover { box-shadow: 0 18px 34px -16px rgba(29, 86, 99, .85); }
.btn--secondary {
  background: var(--glass);
  border-color: rgba(28, 42, 47, .14);
  color: var(--heading);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--secondary:hover { background: var(--white); border-color: transparent; box-shadow: var(--shadow-card); }
.btn--light { background: var(--white); color: var(--teal-dark); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .55); }
.btn--light:hover { box-shadow: 0 20px 36px -18px rgba(0, 0, 0, .6); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal-dark);
}
.link-arrow span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal-tint);
  font-size: 14px;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.link-arrow:hover span { transform: translateX(4px); background: var(--teal); color: var(--white); }
.section--teal .link-arrow { color: var(--white); }
.section--teal .link-arrow span { background: rgba(255, 255, 255, .14); }
.section--teal .link-arrow:hover span { background: var(--white); color: var(--teal-dark); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--teal); color: var(--white); padding: 10px 18px; font-size: 13px; border-radius: var(--radius-pill);
}
.skip:focus { top: 12px; }

/* ---------- Topbar ---------- */
.topbar {
  background: linear-gradient(90deg, #17434E, #1D5663 50%, #17434E);
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  letter-spacing: .02em;
}
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.topbar a:hover { color: var(--white); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 232, 223, .78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-scrolled { background: rgba(237, 232, 223, .9); box-shadow: 0 10px 30px -20px rgba(28, 42, 47, .35); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
@media (min-width: 1440px) { .nav__brand-sub { display: none; } }
.nav__brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__brand img { width: 52px; height: 52px; mix-blend-mode: multiply; border-radius: 50%; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav__brand-name { font-family: var(--serif); font-weight: 600; font-size: 23px; color: var(--teal-dark); letter-spacing: .01em; }
.nav__brand-sub { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  font-size: 13px;
  color: var(--text);
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__links a:hover { background: var(--teal-tint); color: var(--teal-dark); }
.nav__cta { min-height: 44px; padding: 0 22px; font-size: 13px; }
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(28, 42, 47, .06);
  flex-shrink: 0;
}
.lang-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch a:hover { color: var(--teal-dark); }
.lang-switch a[aria-current="true"] { background: var(--white); color: var(--teal-dark); box-shadow: var(--shadow-card); }
.lang-switch--menu { align-self: flex-start; }
.lang-switch--menu a { min-height: 44px; padding: 0 22px; font-size: 14px; letter-spacing: .02em; }
.nav__toggle {
  display: none; width: 46px; height: 46px; position: relative; margin-left: auto;
  border-radius: 50%; background: var(--glass); box-shadow: var(--shadow-card);
}
.nav__toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  z-index: 49;
  inset: var(--nav-h) 0 0 0;
  background: linear-gradient(180deg, rgba(237, 232, 223, .97), rgba(225, 218, 205, .98));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 20px var(--gutter) 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--glass);
}
.mobile-menu__meta { font-size: 13px; color: var(--text-muted); margin: 0; text-align: center; }
.mobile-menu__meta a { color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 48fr 52fr;
  gap: var(--frame);
  padding: var(--frame) var(--frame) 0;
  min-height: clamp(640px, calc(100svh - var(--nav-h) - 36px), 790px);
}
.hero__text {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: var(--grad-teal);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(40px, 5.5vw, 80px) clamp(28px, 5vw, 72px) clamp(28px, 3.5vw, 44px);
}
.hero__text::before, .hero__text::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px); pointer-events: none;
}
.hero__text::before { width: 520px; height: 520px; right: -180px; top: -200px; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%); }
.hero__text::after { width: 460px; height: 460px; left: -160px; bottom: -220px; background: radial-gradient(circle, rgba(10, 40, 48, .45), transparent 65%); }
.hero__text-inner { margin: auto 0; max-width: 540px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(54px, 6.8vw, 94px);
  line-height: .97;
  letter-spacing: -.022em;
  margin: 0 0 var(--space-lg);
  color: var(--white);
}
.hero__title em { color: #CFE6E9; }
h1.label { margin-bottom: 28px; color: rgba(255, 255, 255, .88); }
.hero__lead { font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .86); max-width: 44ch; margin-bottom: 36px; }
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin: var(--space-lg) 0 0;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  letter-spacing: .02em;
  text-transform: none;
  font-size: 13px;
  color: var(--white);
  transition: background-color .25s var(--ease);
}
.rating:hover { background: rgba(255, 255, 255, .18); }
.rating__stars { color: #F4C770; letter-spacing: 1px; font-size: 13px; }
.rating__score { font-weight: 600; }
.rating__src { color: rgba(255, 255, 255, .72); }
.hero__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-soft); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 67, 78, .28));
}
.hero__caption {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 20px;
  max-width: 340px;
  padding: 20px 24px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-card);
}
.hero__caption .label { margin-bottom: 6px; }
.hero__caption-title { display: block; font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.15; color: var(--heading); }

/* ---------- Intent ---------- */
.intent { padding-top: var(--space-lg); }
.intent__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.intent__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .35));
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.intent__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.intent__card .label { margin-bottom: 8px; }
.intent__title { font-family: var(--serif); font-weight: 600; font-size: clamp(31px, 3vw, 42px); line-height: 1.05; color: var(--heading); }
.intent__desc { color: var(--text-muted); margin-bottom: 18px; }
.intent__card .link-arrow { align-self: flex-start; }
.intent__card:hover .link-arrow span { transform: translateX(4px); background: var(--teal); color: var(--white); }

/* ---------- Secciones ---------- */
.section { padding: var(--space-3xl) 0; position: relative; }
/* Transición degradada en lugar de cortes bruscos de color */
.section--soft {
  background: linear-gradient(180deg, rgba(225, 218, 205, 0) 0%, var(--bg-soft) 18%, var(--bg-soft) 82%, rgba(225, 218, 205, 0) 100%);
}
.section--teal {
  margin: 0 var(--frame);
  border-radius: 44px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px 600px at 95% -10%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(8, 36, 44, .5), transparent 60%),
    var(--grad-teal);
  box-shadow: var(--shadow-soft);
}
.section--teal p { color: rgba(255, 255, 255, .84); }
#servicios { background: radial-gradient(700px 480px at 100% 20%, rgba(35, 101, 115, .07), transparent 70%); }
#contacto { background: radial-gradient(700px 520px at 0% 30%, rgba(35, 101, 115, .07), transparent 70%); }

.intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
  align-items: end;
  margin-bottom: var(--space-xl);
}
.intro__main { grid-column: 1 / 8; }
.intro__main .h2 { margin-bottom: 0; }
.intro__aside { grid-column: 9 / 13; color: var(--text-muted); margin: 0; }

/* ---------- Selector de servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
  align-items: start;
}
.services__list { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--nav-h) + 24px); }
.services__tab {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  border-radius: 18px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text-muted);
  transition: color .2s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.services__tab-num { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; color: var(--text-muted); min-width: 18px; }
.services__tab:hover { color: var(--text); background: rgba(255, 255, 255, .4); }
.services__tab[aria-selected="true"] {
  color: var(--teal-dark);
  font-weight: 600;
  background: var(--glass-strong);
  box-shadow: var(--shadow-card);
}
.services__tab[aria-selected="true"] .services__tab-num { color: var(--teal); }

.services__panel {
  grid-column: 5 / 13;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .45));
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--shadow-soft);
  outline: none;
}
.services__panel:not([hidden]) { animation: panel-in .45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.services__kicker {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-muted);
  margin-bottom: 12px;
  -webkit-text-fill-color: currentColor;
}
.services__desc { color: var(--text-muted); }
.services__steps-label { margin: 30px 0 10px; }
.services__content .btn-row { margin-top: 30px; }
.services__more { margin-top: 26px; padding: 22px 24px; border-radius: var(--radius); background: rgba(237, 232, 223, .6); color: var(--text-muted); font-size: 15px; }
.services__more .label { margin-bottom: 10px; }
.services__more p:last-child { margin-bottom: 0; }
.services__faq-q { font-size: 23px; margin: 16px 0 8px; line-height: 1.2; }
.services__media { align-self: start; }
.services__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-signature); background: var(--bg-soft); box-shadow: var(--shadow-card); }

/* Galerías técnicas dentro de cada servicio (antes/después, varias fotos) */
.services__media figure { position: relative; margin: 0; }
.services__media--pair { display: grid; grid-template-columns: 1fr; gap: 12px; }
.services__media--pair img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.services__media--pair figure:first-child img { border-radius: 24px 72px 24px 24px; }
.services__media--gallery { display: grid; gap: 12px; }
.services__media--gallery .services__media-main img { aspect-ratio: 4 / 3; }
.services__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.services__thumbs img { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.services__media img.is-contain { object-fit: contain; background: var(--white); }
.media-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--teal-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Foto en quirófano: priorizar cara y manos al recortar */
.split__media--stack > img:first-child { object-position: center 30%; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.tags li {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--teal-tint);
}

/* ---------- Listas numeradas ---------- */
.numlist { display: grid; gap: 10px; margin: 8px 0 40px; }
.numlist li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .5);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.numlist li:hover { background: rgba(255, 255, 255, .8); transform: translateX(4px); }
.numlist__n, .numlist--compact li::before, .mini-steps span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal-tint);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--teal-dark);
}
.numlist strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 23px; color: var(--heading); line-height: 1.2; margin: 2px 0 4px; }
.numlist p { margin: 0; color: var(--text-muted); font-size: 15px; }
.numlist--compact { counter-reset: n; margin-bottom: 0; gap: 4px; }
.numlist--compact li { counter-increment: n; padding: 6px 0; background: none; font-size: 15px; grid-template-columns: 42px 1fr; align-items: center; }
.numlist--compact li:hover { background: none; }
.numlist--compact li::before { content: "0" counter(n); }

/* ---------- Fisio + Nutri ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr minmax(220px, .62fr) 1fr;
  gap: var(--space-lg);
  align-items: stretch;
}
.duo__item p { color: var(--text-muted); }
.duo__media { overflow: hidden; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); min-height: 440px; position: relative; box-shadow: var(--shadow-soft); }
.duo__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-steps { display: grid; gap: 8px; margin: 4px 0 32px; }
.mini-steps li { display: grid; grid-template-columns: 42px 1fr; align-items: center; font-size: 14px; color: var(--text); }

/* ---------- Split editorial ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
  align-items: center;
}
.split__text { grid-column: 1 / 6; grid-row: 1; }
.split__text > p { color: var(--text-muted); max-width: 46ch; }
.split__media { grid-column: 7 / 13; grid-row: 1; position: relative; }
.split--reverse .split__text { grid-column: 8 / 13; }
.split--reverse .split__media,
.split--reverse .person { grid-column: 1 / 7; }
.split__media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.media-curve { border-radius: var(--radius-signature); overflow: hidden; box-shadow: var(--shadow-soft); }
.media-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.section--teal .media-tag { background: rgba(23, 67, 78, .55); color: var(--white); }

.split__media--stack { padding-right: 18%; padding-bottom: 14%; }
.split__media--stack > img:first-child { border-radius: var(--radius-signature); box-shadow: var(--shadow-soft); }
.split__media > .split__media-detail {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 0 0 6px var(--bg-soft), var(--shadow-soft);
}
.split__media--stack .media-tag { left: 18px; top: 18px; }

.note {
  margin: 30px 0 34px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .35));
  box-shadow: var(--shadow-card);
}
.note .label { margin-bottom: 6px; }
.note p:last-child { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.25; color: var(--heading); }

.features { display: grid; gap: 10px; margin: 8px 0 36px; }
.features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .5);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--heading);
  width: fit-content;
}
.features li::before {
  content: "";
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' fill='none'%3E%3Cpath d='M1 5.2 4.3 8.5 11 1.5' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat, var(--grad-btn);
}

/* ---------- Pasos (biomecánica) ---------- */
.steps { margin-top: var(--space-2xl); }
.steps__label { margin-bottom: var(--space-md); }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  padding: 34px 32px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .3));
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.step__num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-btn); color: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 22px;
}
.section--teal .step__num { background: rgba(255, 255, 255, .14); }
.step__title { font-size: 38px; line-height: 1.05; margin-bottom: 14px; }
.step .label { margin-bottom: 8px; }
.step__lead { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.25; margin-bottom: 14px; color: var(--heading); }
.step > p:not(.label):not(.step__lead) { color: var(--text-muted); font-size: 15px; }
.steps__close {
  margin: var(--space-xl) auto 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
  text-align: center;
  color: var(--heading);
}

/* ---------- Persona ---------- */
.person {
  grid-row: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.person__img { overflow: hidden; background: #F7F7F7; }
.person__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.person__cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 26px 22px;
}
.person__name { font-family: var(--serif); font-weight: 600; font-size: 29px; line-height: 1; color: var(--heading); }
.person__cap .label { margin: 0; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--teal-tint); color: var(--teal-dark); }
.split--person { align-items: start; }
.split--person .split__text { padding-top: var(--space-lg); }

/* ---------- Boxes (bloque teal) ---------- */
.boxes__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
  align-items: center;
}
.boxes__intro { grid-column: 1 / 7; }
.boxes__intro .h2 { max-width: 13ch; }
.boxes__media { grid-column: 8 / 13; position: relative; }
.boxes__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px 0 38px; max-width: 460px; }
.stats > div {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
}
.stats dt { font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1; margin-bottom: 6px; }
.stats dd { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .75); }
.boxes__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: var(--space-2xl); }
.boxes__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.boxes__col:hover { transform: translateY(-4px); }
.boxes__col .label { margin-bottom: 12px; }
.boxes__col .h3 { font-size: clamp(26px, 2.4vw, 32px); }
.boxes__col .link-arrow { margin-top: auto; padding-top: 8px; }

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
  align-items: start;
}
.contact__info { grid-column: 1 / 6; }
.contact__info > p { color: var(--text-muted); max-width: 40ch; }
.contact__direct { display: flex; flex-direction: column; gap: 8px; margin: 34px 0; }
.contact__phone {
  font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 4vw, 56px); line-height: 1;
  background: linear-gradient(120deg, #2C7887, #17434E);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  align-self: flex-start;
}
.contact__mail { font-size: 15px; color: var(--teal); align-self: flex-start; }
.contact__mail:hover { text-decoration: underline; }
.channels { display: grid; gap: 10px; }
.channels li {
  display: flex; flex-direction: column;
  padding: 16px 20px; border-radius: 20px;
  background: rgba(255, 255, 255, .5);
  font-size: 14px;
}
.channels strong { font-weight: 600; color: var(--heading); }
.channels span { color: var(--text-muted); }

.contact__form {
  grid-column: 7 / 13;
  padding: 28px 36px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .7));
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-soft);
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  margin-bottom: 30px;
  border-radius: var(--radius-pill);
  background: rgba(28, 42, 47, .06);
}
.tabs button {
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--teal-dark); font-weight: 600; background: var(--white); box-shadow: var(--shadow-card); }
.form__intro { font-family: var(--serif); font-weight: 500; color: var(--heading); font-size: 23px; line-height: 1.25; margin-bottom: 26px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px 4px;
}
.field label span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: rgba(237, 232, 223, .6);
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23236573' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}
.field input::placeholder { color: #9AA09D; }
.field input:hover, .field select:hover { background-color: rgba(237, 232, 223, .85); }
.field input:focus, .field select:focus { background-color: var(--white); border-color: rgba(35, 101, 115, .5); box-shadow: 0 0 0 4px rgba(35, 101, 115, .12); }
.field.has-error input { border-color: #A5442F; box-shadow: 0 0 0 4px rgba(165, 68, 47, .1); }
.field__error { color: #A5442F; font-size: 13px; margin: 6px 0 0 4px; }
.form__privacy { font-size: 12px; color: var(--text-muted); margin: 6px 0 22px 4px; }
.form__status { font-size: 13px; color: var(--teal-dark); margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--teal-tint); }
.form__status:empty { display: none; }
.form__status a { text-decoration: underline; }

/* ---------- Ubicación ---------- */
.address { font-family: var(--serif); font-weight: 500; color: var(--heading); font-size: clamp(25px, 2.4vw, 31px); line-height: 1.3; margin-bottom: 32px; }

.hours {
  margin: -8px 0 32px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
  border: 1px solid rgba(255, 255, 255, .6);
  max-width: 440px;
}
.hours__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hours__head .label { margin: 0; }
.hours__status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500;
  background: rgba(28, 42, 47, .06); color: var(--text-muted);
}
.hours__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hours__status.is-open { background: rgba(46, 140, 98, .12); color: #23704F; }
.hours__list { margin: 0; display: grid; gap: 2px; }
.hours__list div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 10px; border-radius: 12px; font-size: 14px; }
.hours__list dt { color: var(--text-muted); }
.hours__list dd { margin: 0; color: var(--heading); font-weight: 500; text-align: right; }
.hours__list div.is-today { background: var(--teal-tint); }
.hours__list div.is-today dt { color: var(--teal-dark); font-weight: 600; }

/* ---------- Datos de la clínica ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: var(--space-2xl) 0 0; }
.facts div {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .35));
  border: 1px solid rgba(255, 255, 255, .6);
}
.facts dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.facts dd { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3; color: var(--heading); }
.facts a:hover { color: var(--teal); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-md); }
.faq__head { grid-column: 1 / 5; position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.faq__list { grid-column: 6 / 13; display: grid; gap: 10px; }
.faq details {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .55);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq details:hover { background: rgba(255, 255, 255, .72); }
.faq details[open] { background: var(--white); box-shadow: var(--shadow-card); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(21px, 2.1vw, 25px);
  line-height: 1.2;
  color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus, .faq summary:focus-visible { outline: none; }
.faq details:has(summary:focus-visible) { box-shadow: 0 0 0 3px rgba(35, 101, 115, .22); }
.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal-tint);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  color: var(--teal-dark);
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--teal); color: var(--white); }
.faq details p { color: var(--text-muted); max-width: 58ch; margin: -4px 24px 24px; }
.faq details a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.faq details[open] p { animation: faq-in .35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: var(--space-lg);
  border-radius: 44px 44px 0 0;
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-lg);
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(255, 255, 255, .12), transparent 60%),
    var(--grad-teal);
}
.footer__top { display: flex; justify-content: space-between; gap: var(--space-lg); padding-bottom: var(--space-lg); }
.footer__brand { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 4.4vw, 56px); line-height: .95; margin-bottom: 20px; }
.footer__desc { max-width: 44ch; color: rgba(255, 255, 255, .78); font-size: 14px; margin: 0; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; align-content: start; font-size: 14px; }
.footer__links .label { grid-column: 1 / -1; margin-bottom: 6px; }
.footer__links a { color: rgba(255, 255, 255, .82); transition: color .2s var(--ease), transform .2s var(--ease); }
.footer__links a:hover { color: var(--white); }
.footer__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; font-size: 14px; }
.footer__contact .label { margin-bottom: 6px; }
.footer__contact a:nth-of-type(1) { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; }
.footer__contact span { color: rgba(255, 255, 255, .7); margin-top: 10px; }
.footer__contact span + span { margin-top: 4px; }
.footer__bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: var(--space-md);
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}
.footer__bottom::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
}
.footer__privacy { font-size: 12px; color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Quickbar (móvil) ---------- */
.quickbar { display: none; }

/* ---------- Privacidad ---------- */
.privacy {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.privacy::backdrop { background: rgba(23, 40, 45, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.privacy__inner { padding: 40px; }
.privacy__inner p:not(.label) { color: var(--text-muted); font-size: 15px; }
.privacy__inner a { color: var(--teal); text-decoration: underline; }
.legal { display: grid; gap: 8px; margin: 0 0 22px; }
.legal div { padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .6); }
.legal dt { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 2px; }
.legal dd { margin: 0; font-size: 15px; color: var(--heading); }
.footer__legal { display: inline-flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- Animaciones ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js figure.reveal img { transform: scale(1.04); transition: transform 1.3s var(--ease); }
.js figure.reveal.is-in img { transform: none; }
.js figure.reveal { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js figure.reveal img { opacity: 1; transform: none; transition: none; }
  .services__panel:not([hidden]) { animation: none; }
  .faq details[open] p { animation: none; }
  .btn:hover, .intent__card:hover, .step:hover, .boxes__col:hover, .numlist li:hover { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1439px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; margin-left: 0; }
  .nav__inner > .lang-switch { margin-left: auto; }
  .nav__cta { margin-left: 0; }
}

@media (max-width: 1024px) {
  :root { --space-3xl: 112px; --space-2xl: 88px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { min-height: 460px; }

  .services__list { grid-column: 1 / -1; position: static; }
  .services__panel { grid-column: 1 / -1; }

  .duo { grid-template-columns: 1fr 1fr; }
  .duo__media { grid-column: 1 / -1; grid-row: 1; min-height: 360px; border-radius: var(--radius-signature); }

  .split, .boxes__head, .contact, .faq { grid-template-columns: 1fr; gap: var(--space-lg); }
  .split__text, .split--reverse .split__text,
  .split__media, .split--reverse .split__media, .split--reverse .person,
  .boxes__intro, .boxes__media,
  .contact__info, .contact__form,
  .faq__head, .faq__list { grid-column: 1 / -1; grid-row: auto; }
  .split__media > img, .boxes__media img { aspect-ratio: 4 / 3; }
  .split__media--stack > img:first-child { aspect-ratio: 4 / 3; }
  .person { max-width: 460px; }
  .split--person .split__text { padding-top: 0; }
  .split__text > p, .contact__info > p { max-width: 60ch; }
  .h2 { max-width: 18ch; }

  .services__list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 6px;
    margin: 0 calc(var(--gutter) * -1);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .services__list::-webkit-scrollbar { display: none; }
  .services__tab {
    width: auto;
    flex-shrink: 0;
    padding: 11px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .4);
    font-size: 18px;
    gap: 10px;
  }
  .services__media { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
  .faq__head { position: static; }
  .footer__top { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --frame: 10px; --nav-h: 66px; --space-3xl: 76px; --space-2xl: 64px; --space-xl: 48px; --radius-lg: 28px; --radius-signature: 22px 72px 22px 22px; }

  body { padding-bottom: 92px; }
  .topbar { display: none; }
  .nav__inner { gap: 12px; }
  .nav__brand img { width: 42px; height: 42px; }
  .nav__brand-name { font-size: 20px; }
  .nav__brand-sub { font-size: 8px; letter-spacing: .12em; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  /* En móvil el idioma se cambia desde el menú (no cabe junto al logo) */
  .nav__inner > .lang-switch { display: none; }

  .hero__text { padding: 44px 24px 28px; }
  .hero__title { font-size: clamp(46px, 13vw, 60px); margin-bottom: 26px; }
  .hero__media { min-height: 380px; }
  .hero__caption { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 14px 18px 16px; }
  .hero__caption-title { font-size: 21px; }
  .btn-row .btn { flex: 1 1 auto; }

  .intent { padding-top: 28px; }
  .intent__grid { grid-template-columns: 1fr; gap: 12px; }
  .intent__card { padding: 30px 26px; }

  .intro { grid-template-columns: 1fr; gap: var(--space-md); margin-bottom: var(--space-lg); }
  .intro__main, .intro__aside { grid-column: 1 / -1; }

  .services__panel { grid-template-columns: 1fr; gap: 26px; padding: 22px 20px 26px; }
  .services__media { order: -1; }
  .services__media img { aspect-ratio: 4 / 3; }
  .services__media--pair { grid-template-columns: 1fr 1fr; gap: 10px; }
  .services__media--pair img { aspect-ratio: 3 / 4; }
  .services__media--gallery .services__media-main img { aspect-ratio: 4 / 3; }
  .services__thumbs img { aspect-ratio: 4 / 3; }

  .duo { grid-template-columns: 1fr; gap: var(--space-xl); }
  .duo__media { min-height: 280px; }

  .steps__grid, .boxes__cols { grid-template-columns: 1fr; gap: 12px; }
  .step, .boxes__col { padding: 26px 24px; }
  .stats dt { font-size: 38px; }
  .section--teal { border-radius: 30px; }

  .contact__form { padding: 18px 18px 24px; }
  .tabs { margin-bottom: 22px; }

  .footer { border-radius: 30px 30px 0 0; }
  .footer__top { flex-direction: column; }
  .facts { grid-template-columns: 1fr; gap: 10px; }
  .footer__contact { align-items: flex-start; text-align: left; }
  .faq summary { padding: 18px 18px; }
  .faq details p { margin: -4px 18px 20px; }
  .features li { font-size: 20px; }

  .quickbar {
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 4px;
    position: fixed;
    left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 40;
    padding: 5px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 18px 40px -18px rgba(28, 42, 47, .45);
  }
  .quickbar a {
    display: flex; align-items: center; justify-content: center;
    height: 52px; border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 500; color: var(--heading);
  }
  .quickbar .quickbar__cta { background: var(--grad-btn); color: var(--white); box-shadow: var(--shadow-btn); }
  .privacy__inner { padding: 28px 22px; }
}

/* Pantallas táctiles y tablets: legibilidad y zonas táctiles cómodas (mín. 44px) */
@media (max-width: 1024px), (pointer: coarse) {
  .label { font-size: 11.5px; }
  h1.label, .h2 > .label { font-size: 11px; }
  .nav__brand-sub { font-size: 9.5px; letter-spacing: .1em; }
  .media-tag { font-size: 11px; }
  .link-arrow, .rating { min-height: 44px; }
  .contact__mail { padding: 10px 0; }
  .topbar a { display: inline-block; padding: 4px 0; }
  .facts dd a { display: inline-block; padding: 8px 0; }
  .footer__links { gap: 0 16px; }
  .footer__links a { padding: 10px 0; }
  .footer__contact { gap: 0; }
  .footer__contact a { padding: 8px 0; }
  .footer__privacy { padding: 12px 0; }
  .mobile-menu nav a { padding: 14px 20px; }
}
