/* Dr. Jorge Plotz — cirugía plástica
   Colores muestreados del mockup: crema, bronce del botón, verde pizarra del titular.
   Puntos de quiebre: 1260 menú · 1099 hero tablet · 999 grillas · 860 · 760 · 719 hero móvil · 640 · 600 · 560 · 520 · 420 · 380 · 340.
   Fuentes alojadas en el sitio (assets/fonts), licencia SIL OFL 1.1. */

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

:root {
  --ivory: #F6F0E9;
  --cream: #F9F2EC;
  --sand: #EFE7DC;
  --stone: #DDD2C4;
  --bronze: #8D6A4A;       /* relleno de botones */
  --bronze-deep: #765638;  /* texto chico en bronce (contraste 5:1 sobre crema) */
  --bronze-soft: #B9A088;  /* líneas y guiones */
  --ink: #263130;
  --text: #4A4640;
  --text-soft: #6B645B;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --sec: clamp(64px, 10vw, 136px);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 100px; }
::selection { background: rgb(141 106 74 / .28); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Tipografía */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 350; letter-spacing: -.012em; line-height: 1.08; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.6rem, 1.5rem + 5vw, 5.4rem); line-height: 1; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.55; }
.eyebrow { margin: 0 0 1.1em; font: 500 .76rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-deep); }
.eyebrow::before { content: ""; display: block; width: 40px; height: 1px; background: var(--bronze-soft); margin-bottom: 14px; }
.eyebrow--plain::before { display: none; }

/* Botones y enlaces */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .95em 1.9em; border-radius: 999px;
  background: var(--bronze); color: #fff; border: 1px solid var(--bronze);
  font: 500 1rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); }
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: .72em 1.5em; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--bronze-deep); border-color: var(--bronze-soft); }
.btn--ghost:hover { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.more { display: inline-flex; gap: .5em; align-items: center; font-weight: 500; color: var(--bronze-deep); text-decoration: underline; text-decoration-color: var(--bronze-soft); text-underline-offset: .3em; }
.more:hover { text-decoration-color: currentColor; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(246 240 233 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgb(141 106 74 / .14); }
.bar { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 28px); min-height: 84px; }
.nav a, .sede summary, .cta-bar { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { font: 400 2.15rem/1 var(--serif); letter-spacing: -.05em; color: var(--bronze); padding-right: 14px; border-right: 1px solid var(--bronze-soft); }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name { font: 400 1rem/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.brand-role { font: 400 .66rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--text-soft); }

.panel { display: contents; }
.nav { display: flex; gap: clamp(10px, 1.1vw, 22px); margin-left: auto; order: 1; }
.nav a { position: relative; padding: 6px 0; font-size: .92rem; text-decoration: none; color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.cta-bar { order: 2; }
.sede { order: 3; position: relative; }
.sede summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .92rem; color: var(--text); padding: 8px 2px; }
.sede summary::-webkit-details-marker { display: none; }
.sede svg { width: 18px; height: 18px; fill: none; stroke: var(--text-soft); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sede .chev { width: 14px; height: 14px; transition: transform .2s; }
.sede[open] .chev { transform: rotate(180deg); }
.sede ul { position: absolute; right: 0; top: calc(100% + 10px); width: 270px; background: var(--cream); border: 1px solid var(--stone); border-radius: 10px; padding: 8px; box-shadow: 0 18px 40px -22px rgb(38 49 48 / .35); }
.sede ul a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; line-height: 1.35; }
.sede ul a:hover { background: var(--sand); }
.sede strong { display: block; font-weight: 500; color: var(--ink); }
.sede ul span { font-size: .88rem; color: var(--text-soft); }
.menu-btn { display: none; order: 4; width: 46px; height: 46px; border: 1px solid var(--stone); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; flex: none; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

@media (max-width: 1260px) {
  /* Sin JavaScript el menú queda desplegado debajo de la barra; con JavaScript (clase .js) se abre con el botón */
  .bar { gap: 14px; flex-wrap: wrap; }
  .cta-bar { margin-left: auto; }
  .cta-bar .long { display: none; }
  .panel { display: block; flex: 1 0 100%; order: 5; padding-bottom: 12px; }
  .js .bar { flex-wrap: nowrap; }
  .js .menu-btn { display: inline-flex; }
  .js .panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex: none;
    background: var(--ivory); border-bottom: 1px solid var(--stone); padding: 12px var(--gutter) 28px;
    max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain;
  }
  .js .panel[data-open] { display: block; }
  .nav { flex-direction: column; gap: 0; margin: 0; }
  .nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--stone); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--bronze-deep); font-weight: 500; }
  .sede { margin-top: 18px; }
  .sede ul { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .nav { flex-direction: row; flex-wrap: wrap; gap: 0 22px; }
  html:not(.js) .nav a { padding: 8px 0; font-size: 1rem; border-bottom: 0; }
  html:not(.js) .sede { margin-top: 4px; }
}
@media (min-width: 640px) and (max-width: 1260px) { .cta-bar .long { display: inline; } }
@media (max-width: 560px) {
  .brand { gap: 10px; }
  .brand-mark { font-size: 1.8rem; padding-right: 10px; }
  .brand-name { font-size: .88rem; letter-spacing: .13em; }
  .brand-role { letter-spacing: .22em; }
  .cta-bar { padding: .62em 1em; }
  .cta-bar svg { display: none; }
}
@media (max-width: 420px) { .brand-role { display: none; } }
@media (max-width: 380px) {
  .bar { gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { font-size: 1.6rem; padding-right: 8px; }
  .brand-name { font-size: .78rem; letter-spacing: .1em; }
  .cta-bar { padding: .55em .85em; font-size: .9rem; }
  .menu-btn { width: 42px; height: 42px; }
}
@media (max-width: 340px) {
  :root { --gutter: 16px; }
  .brand-mark { font-size: 1.45rem; }
  .brand-name { font-size: .72rem; letter-spacing: .08em; }
}

/* Hero */
.hero { position: relative; background: #F1ECE5; overflow: hidden; isolation: isolate; }
/* La foto es el fondo de todo el hero. Un velo crema se desvanece hacia la derecha: el texto se lee y la imagen se ve detrás. */
.hero-media { position: absolute; inset: 0 0 0 auto; width: min(100%, 1400px); z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%); mask-image: linear-gradient(90deg, transparent 0, #000 10%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgb(241 236 229 / .92) 0%, rgb(241 236 229 / .86) 36%, rgb(241 236 229 / .5) 46%, rgb(241 236 229 / 0) 58%); }
.hero-inner { min-height: clamp(580px, 82vh, 700px); display: flex; align-items: center; padding-block: 64px 72px; }
.hero-copy { max-width: 31rem; }
.hero h1 span { display: block; }
.hero .lead { margin: 1.4rem 0 2rem; max-width: 24rem; color: var(--text); }
.hero-values { display: flex; align-items: flex-start; gap: 18px; margin-top: 3.2rem; }
.hero-values::before { content: ""; width: 34px; height: 1px; background: var(--bronze-soft); margin-top: .8em; flex: none; }
.hero-values ul { display: grid; gap: 1px; font: 500 .75rem/1.7 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze-deep); }

/* Tablet (720–1099 px): misma composición, con titular y texto más compactos */
@media (max-width: 1099px) {
  .hero-inner { min-height: 0; padding-block: 56px 64px; }
  .hero h1 { font-size: clamp(2.4rem, 1rem + 4.6vw, 4.4rem); }
  .hero .lead { max-width: min(21rem, calc(42vw - var(--gutter) - 12px)); }
  .hero-values { margin-top: 2.2rem; }
}

/* Móvil y tablet angosta (hasta 719 px): la imagen es el fondo del hero y el texto va encima.
   Un degradé verde pizarra oscurece la imagen de arriba hacia abajo para que el texto claro se lea siempre. */
@media (max-width: 719px) {
  .hero { --hero-img-h: clamp(380px, 118vw, 523px); background: var(--ink); }
  .hero::after { display: none; }
  .hero-media { inset: 0 0 auto 0; width: 100%; height: var(--hero-img-h); }
  .hero-media img { object-position: 62% 20%; -webkit-mask-image: none; mask-image: none; }
  .hero-media::after { content: ""; position: absolute; inset: 0 0 -2px; background: linear-gradient(180deg, rgb(38 49 48 / 0) 0%, rgb(38 49 48 / 0) 30%, rgb(38 49 48 / .45) 46%, rgb(38 49 48 / .82) 60%, var(--ink) 78%); }
  .hero-inner { align-items: flex-start; min-height: 0; padding-block: calc(var(--hero-img-h) * .6) 56px; }
  .hero h1 { font-size: clamp(2.6rem, 1.5rem + 5vw, 4.2rem); color: #F6F0E9; }
  .hero .eyebrow { color: #D9BF9B; }
  .hero .lead { max-width: 24rem; color: #E6DED3; }
  .hero .btn { background: #F6F0E9; border-color: #F6F0E9; color: var(--ink); }
  .hero .btn:hover { background: #fff; border-color: #fff; }
  .hero .btn:focus-visible { outline-color: #fff; }
  .hero-values { margin-top: 2.4rem; }
  .hero-values::before { background: #8A7A66; }
  .hero-values ul { color: #D9BF9B; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span { animation: rise .95s var(--ease) both; }
  .hero h1 span:nth-child(2) { animation-delay: .12s; }
  .hero h1 span:nth-child(3) { animation-delay: .24s; }
  .hero .eyebrow { animation: fade .9s ease both; }
  .hero .lead, .hero .btn, .hero-values { animation: fade 1s ease .5s both; }
  .hero-media img { animation: settle 1.8s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } }
@keyframes fade { from { opacity: 0; } }
@keyframes settle { from { opacity: 0; transform: scale(1.035); } }

/* Franja de valores */
.values { background: var(--cream); border-block: 1px solid var(--stone); }
.values ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.values li { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 34px 14px; }
.values li + li::before { content: ""; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: var(--stone); }
.values svg { width: 46px; height: 46px; flex: none; fill: none; stroke: var(--bronze); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.values span { font-size: 1.02rem; line-height: 1.35; color: var(--ink); }
@media (max-width: 999px) {
  .values ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values li { justify-content: flex-start; padding: 26px 16px; }
  .values li + li::before { display: none; }
  .values li:nth-child(n+3) { border-top: 1px solid var(--stone); }
  .values li:nth-child(even) { border-left: 1px solid var(--stone); padding-left: 24px; }
}
@media (max-width: 560px) {
  .values li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 12px; }
  .values li:nth-child(even) { padding-left: 18px; }
  .values svg { width: 40px; height: 40px; }
  .values span { font-size: .98rem; }
}
@media (max-width: 380px) {
  .values li { padding: 20px 10px; }
  .values li:nth-child(even) { padding-left: 14px; }
  .values span { font-size: .9rem; }
}

/* Secciones */
.sec { padding-block: var(--sec); }
.sec--cream { background: var(--cream); }
.sec--sand { background: var(--sand); }
.sec-head { max-width: 42rem; margin-bottom: clamp(32px, 5vw, 64px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
h2 + .lead { margin-top: 1.3rem; }
.section-cta { margin-top: 44px; }
.mt-lg { margin-top: 1.6rem; }

/* Espacio: agua + sede + hojas */
.space { display: grid; grid-template-columns: 1.55fr 1fr .8fr; min-height: clamp(320px, 33vw, 440px); }
.space-water { position: relative; display: grid; place-items: center; padding: 32px; text-align: center; color: #fff; background: #5d6163 url("../img/agua.jpg") center / cover; isolation: isolate; }
.space-water::before { content: ""; position: absolute; inset: 0; background: rgb(38 49 48 / .38); z-index: -1; }
.space-water p { margin: 0; font: 500 .85rem/1.9 var(--sans); letter-spacing: .24em; text-transform: uppercase; max-width: 16rem; }
.space-panel { background: var(--sand); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.space-panel p { max-width: 24rem; }
.space-leaves { background: #E3DACF url("../img/hojas.jpg") center / cover; min-height: 200px; }
@media (max-width: 999px) {
  .space { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
  .space-water { grid-column: 1 / -1; min-height: 260px; }
  .space-panel { padding: 36px var(--gutter); }
  .space-leaves { min-height: 220px; }
}
@media (max-width: 640px) {
  .space { grid-template-columns: minmax(0, 1fr); }
  .space-water { min-height: 220px; }
  .space-leaves { min-height: 150px; }
}

/* Retrato + datos */
.portrait { position: relative; padding: 0 18px 18px 0; isolation: isolate; }
.portrait::after { content: ""; position: absolute; inset: 18px 0 0 18px; border: 1px solid var(--bronze-soft); z-index: -1; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
@media (max-width: 860px) { .portrait { max-width: 520px; } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2rem 0 2.2rem; border-top: 1px solid var(--stone); }
.facts div { display: flex; flex-direction: column-reverse; padding: 20px 8px 0 0; }
.facts div + div { border-left: 1px solid var(--stone); padding-left: clamp(12px, 1.6vw, 24px); }
.facts dt { font-size: .9rem; line-height: 1.35; color: var(--text-soft); }
.facts dd { margin: 0; font: 350 clamp(1.7rem, .9rem + 1.5vw, 2.6rem)/1.05 var(--serif); color: var(--ink); }
@media (max-width: 520px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div, .facts div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--stone); flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 16px; }
}

/* Índice de tratamientos (home) */
.tindex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.tindex h3 { padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.tindex li a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--stone); text-decoration: none; color: var(--text); transition: color .2s, padding-left .25s var(--ease); }
.tindex li a:hover { color: var(--bronze-deep); padding-left: 6px; }
@media (max-width: 760px) { .tindex { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* Recorrido (secuencia real: lleva numeración) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); counter-reset: paso; position: relative; }
.steps::before { content: ""; position: absolute; top: 31px; left: 0; right: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--bronze-soft) 0 6px, transparent 6px 13px); }
.steps li { position: relative; counter-increment: paso; }
.steps li::before { content: counter(paso); display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 22px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--bronze-soft); font: 350 1.6rem/1 var(--serif); color: var(--bronze-deep); position: relative; }
.sec--cream .steps li::before { background: var(--cream); }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--text); margin: 0; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(24px, 5vw, 56px); }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { display: block; top: 0; bottom: 0; left: 31px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--bronze-soft) 0 6px, transparent 6px 13px); }
  .steps li { padding: 0 0 34px 90px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Resultados */
.pair-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); align-items: end; }
.pair-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.pair-grid figure, .gallery figure { margin: 0; }
.pair-grid img, .gallery img { width: 100%; background: var(--sand); }
figcaption { margin-top: 10px; font-size: .92rem; color: var(--text-soft); }
.note { font-size: .92rem; color: var(--text-soft); max-width: 44rem; }
.note--end { margin-top: 56px; }
@media (max-width: 720px) { .pair-grid:not(.pair-grid--2) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pair-grid:not(.pair-grid--2) figure:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .pair-grid--2 { grid-template-columns: minmax(0, 1fr); } }
.gallery { columns: 3 280px; column-gap: clamp(16px, 2.4vw, 32px); }
.gallery figure { break-inside: avoid; margin-bottom: clamp(16px, 2.4vw, 32px); }
.group-title { margin: clamp(48px, 6vw, 80px) 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.group-title:first-of-type { margin-top: 0; }

/* Reseñas */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.quotes figure { margin: 0; padding-top: 22px; border-top: 1px solid var(--bronze-soft); }
.quotes blockquote { margin: 0 0 1.2rem; font: 350 clamp(1.15rem, 1.05rem + .35vw, 1.38rem)/1.5 var(--serif); color: var(--ink); }
.quotes figcaption { margin: 0; font-weight: 500; color: var(--bronze-deep); }
@media (max-width: 1000px) { .quotes { grid-template-columns: minmax(0, 1fr); max-width: 42rem; gap: 36px; } }

/* Cierre */
.close { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; }
.close h2 { max-width: 20ch; }
.close p { max-width: 34rem; margin: 1.2rem 0 0; }
@media (max-width: 760px) { .close { grid-template-columns: minmax(0, 1fr); } .close .btn { justify-self: start; } }

/* Encabezado de páginas internas */
.page-head { background: var(--cream); padding-block: clamp(48px, 8vw, 110px) clamp(36px, 6vw, 80px); border-bottom: 1px solid var(--stone); }
.page-head h1 { font-size: clamp(2.1rem, 1.1rem + 4.2vw, 4.6rem); max-width: 16ch; }
.page-head .lead { max-width: 38rem; margin: 1.4rem 0 0; }

/* Tratamientos */
.treat { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.treat-nav { position: sticky; top: 108px; }
.treat-nav h2 { font: 500 .76rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-deep); margin-bottom: 14px; }
.treat-nav a { display: block; padding: 9px 0; border-bottom: 1px solid var(--stone); text-decoration: none; color: var(--text); transition: color .2s; }
.treat-nav a:hover { color: var(--bronze-deep); }
.treat-group + .treat-group { margin-top: clamp(56px, 7vw, 96px); }
.treat-group > h2 { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.treat-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px clamp(20px, 4vw, 56px); padding: 30px 0; border-bottom: 1px solid var(--stone); }
.treat-item h3 { font-size: 1.55rem; }
.treat-item p { margin-bottom: .9em; }
@media (max-width: 960px) {
  .treat { grid-template-columns: minmax(0, 1fr); }
  .treat-nav { position: static; }
  .treat-nav h2 { display: none; }
  .treat-nav ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
  .treat-nav a { white-space: nowrap; padding: 8px 16px; border: 1px solid var(--stone); border-radius: 999px; }
}
@media (max-width: 640px) { .treat-item { grid-template-columns: minmax(0, 1fr); padding: 24px 0; } }

/* Sobre mí: línea de tiempo y títulos */
.timeline { border-top: 1px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--stone); }
.timeline li > :first-child { font: 350 1.5rem/1.2 var(--serif); color: var(--bronze-deep); }
.timeline p { margin: 0; }
.titles li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--stone); position: relative; }
.titles li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 14px; height: 1px; background: var(--bronze); }
@media (max-width: 560px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Contacto */
.sedes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); }
.sede-block { padding-top: 22px; border-top: 1px solid var(--ink); }
.sede-block address { font-style: normal; margin-bottom: 1.2rem; }
.sede-block h2 { margin-bottom: .7rem; }
.form { display: grid; gap: 20px; max-width: 40rem; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 500; color: var(--ink); font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; background: var(--cream); border: 1px solid var(--bronze-soft); border-radius: 8px; font: inherit; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: 1px; border-color: var(--bronze-deep); }
.form-note { font-size: .92rem; color: var(--text-soft); margin: 0; }
@media (max-width: 760px) { .sedes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form .btn { width: 100%; justify-content: center; } }

/* Footer */
.site-footer { background: var(--ink); color: #CFC7BB; padding-block: clamp(48px, 7vw, 96px) 32px; }
.brand--light { color: #F6F0E9; }
.brand--light .brand-mark { color: #D2B896; border-color: #6B6458; }
.brand--light .brand-role { color: #B7AE9F; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; gap: clamp(28px, 4vw, 56px); }
.foot-brand p { margin: 1.4rem 0 0; max-width: 20rem; font-size: .98rem; }
.foot-title { font: 500 .76rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #D2B896; margin: 0 0 16px; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { text-decoration: none; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.site-footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: .25em; }
.site-footer :focus-visible { outline-color: #D9BF9B; }
.site-footer li span { color: #A39A8C; font-size: .92rem; }
.foot-legal { margin: clamp(40px, 6vw, 72px) 0 0; padding-top: 24px; border-top: 1px solid #44504F; font-size: .86rem; color: #A39A8C; max-width: 52rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* Vacío (blog) */
.empty { max-width: 40rem; }
.empty h2 { margin-bottom: 1rem; }
.empty .btn { margin-top: 1rem; }
.btn + .more { margin-left: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
