/* CIMED · sistema visual
   Concepto: "expediente clínico premium". Láminas amplias, filetes dorados finos,
   datos reales del catálogo (duración, formato, sesiones) como textura editorial.
   Una sola apariencia de marca, con bandas en verde petróleo. */
:root {
  --petrol: #0D2C35;
  --petrol-2: #154453;
  --deep: #071C22;
  --gold: #B89A63;
  --gold-soft: #D9C7A1;
  --gold-ink: #85693A;
  --porcelain: #F3F6F5;
  --paper: #FFFFFF;
  --ink: #0D2C35;
  --muted: #4E656B;
  --line: #D6DEDD;
  --line-dark: rgba(217, 199, 161, .22);
  --on-dark: #E8EFEE;
  --on-dark-muted: #A7BBBC;

  --f-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: clamp(.78rem, .76rem + .1vw, .84rem);
  --s0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --s1: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --s2: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  --s3: clamp(2rem, 1.5rem + 2.2vw, 3.3rem);
  --s4: clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem);

  --wrap: 1240px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--s0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--petrol);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--petrol); padding: .6rem 1rem; border-radius: 4px; font-weight: 600; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * 32px); margin-inline: auto; padding-left: max(var(--gut), 32px); padding-right: max(var(--gut-r), 32px); }
@media (max-width: 640px) { .wrap { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); } }

/* ---------- Tipos utilitarios ---------- */
.eyebrow {
  font-family: var(--f-data); font-size: var(--s-1); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow, .on-dark .eyebrow { color: var(--gold); }
.lead { font-size: var(--s1); line-height: 1.5; color: var(--muted); max-width: 40ch; font-weight: 300; }
.dark .lead { color: var(--on-dark-muted); }
.prose { max-width: 66ch; color: var(--muted); }
.prose p + p { margin-top: 1em; }
.dark .prose { color: var(--on-dark-muted); }
.data { font-family: var(--f-data); font-size: var(--s-1); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  --b: var(--gold); --c: var(--petrol);
  display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; padding: .8rem 1.4rem;
  background: var(--b); color: var(--c); border: 1px solid var(--b); border-radius: 999px;
  font: 500 .95rem/1 var(--f-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease-out), background .3s, color .3s, box-shadow .35s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); z-index: -1; }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(13,44,53,.55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { --b: transparent; --c: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-ghost, .on-dark .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost, .adp .btn-ghost, .site-foot .btn-ghost, .drawer .btn-ghost { --c: var(--on-dark); border-color: rgba(232,239,238,.3); }
.dark .btn-ghost:hover, .on-dark .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover { border-color: var(--gold); }
.btn-petrol { --b: var(--petrol); --c: var(--on-dark); }
.link-arrow { display: inline-flex; gap: .5rem; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow span { transition: transform .35s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50; top: env(safe-area-inset-top, 0px);
  transition: background .4s var(--ease), box-shadow .4s, transform .5s var(--ease-out), color .4s;
  color: var(--on-dark);
}
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 78px; }
.site-head.is-solid { background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); }
.site-head.is-hidden { transform: translateY(-110%); }
.light-top .site-head:not(.is-solid) { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .2em; }
.brand-word small { font-family: var(--f-data); font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav > a, .nav > .has-mega > button {
  font: 450 .93rem/1 var(--f-body); color: inherit; text-decoration: none; padding: .7rem .8rem; border-radius: 999px;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; position: relative;
}
.nav > a::after, .nav > .has-mega > button::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .4rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.nav > a:hover::after, .nav > a[aria-current="page"]::after, .nav > .has-mega > button:hover::after, .nav > .has-mega > button[aria-expanded="true"]::after { transform: scaleX(1); }
.nav .btn { margin-left: .6rem; min-height: 42px; padding: .6rem 1.1rem; }
.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); color: var(--ink);
  border-top: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(7,28,34,.35);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility .35s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-block: 2.2rem 2.6rem; }
.mega h3 { font-size: 1.12rem; margin-bottom: .9rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.mega h3 a { text-decoration: none; }
.mega h3 a:hover { color: var(--gold-ink); }
.mega ul { list-style: none; display: grid; gap: .35rem; }
.mega li a { text-decoration: none; color: var(--muted); font-size: .9rem; }
.mega li a:hover { color: var(--ink); text-decoration: underline; }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .site-head { inset: 0 0 auto; padding-top: 10px; padding-left: var(--gut); padding-right: var(--gut-r); }
  .site-head .wrap { padding-inline: 0; }
  .site-head .bar {
    height: 60px; padding-inline: 14px 8px; border-radius: 999px;
    background: rgba(13,44,53,.82); color: var(--on-dark); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: 0 10px 30px -18px rgba(7,28,34,.8); border: 1px solid rgba(217,199,161,.18);
  }
  .site-head.is-solid { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-word b { font-size: 1.18rem; }
  .menu-btn { display: inline-flex; gap: .4rem; align-items: center; }
  .menu-btn .icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--petrol); border: 0; cursor: pointer; text-decoration: none; }
  .menu-btn .icon-btn.alt { background: rgba(232,239,238,.1); color: var(--on-dark); }
  .menu-btn svg { width: 20px; height: 20px; }
}

/* Menú móvil */
.drawer {
  position: fixed; inset: 0; z-index: 70; background: var(--petrol); color: var(--on-dark);
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gut-r) calc(env(safe-area-inset-bottom, 0px) + 24px) var(--gut);
  display: flex; flex-direction: column; gap: 1.2rem; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 40px) 40px); visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility .7s;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; padding-inline: 14px 8px; }
.drawer nav { display: grid; gap: .1rem; padding-inline: 6px; }
.drawer nav > a, .drawer summary { font-family: var(--f-display); font-size: 1.9rem; text-decoration: none; padding: .35rem 0; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details ul { list-style: none; display: grid; gap: .2rem; padding: .7rem 0 1rem; }
.drawer details a { color: var(--on-dark-muted); text-decoration: none; font-size: 1.02rem; }
.drawer .drawer-cta { display: grid; gap: .6rem; margin-top: auto; padding-inline: 6px; }
.drawer .drawer-cta .btn { justify-content: center; }
.close-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; color: inherit; display: grid; place-items: center; cursor: pointer; }

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); position: relative; }
.sec-tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.sec-porcelain { background: var(--porcelain); }
.dark { background: var(--petrol); color: var(--on-dark); }
.deep { background: var(--deep); color: var(--on-dark); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4.5rem); }
.sec-head h2 { font-size: var(--s3); margin-top: 1rem; }
.sec-head > p { color: var(--muted); max-width: 46ch; }
.dark .sec-head > p { color: var(--on-dark-muted); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .rule { background: var(--line-dark); }

/* ---------- Hero principal ---------- */
.hero {
  position: relative; background: var(--petrol); color: var(--on-dark); overflow: hidden; isolation: isolate;
  padding-top: calc(env(safe-area-inset-top, 0px) + 150px); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  min-height: min(920px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 80% 30%, transparent 30%, rgba(7,28,34,.65) 100%), linear-gradient(180deg, rgba(7,28,34,.55), transparent 30%, transparent 60%, rgba(7,28,34,.6)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 3rem; align-items: end; }
.hero h1 { font-size: var(--s4); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lema { margin-top: 1.6rem; font-size: var(--s1); color: var(--on-dark-muted); font-weight: 300; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-aside { border-left: 1px solid var(--line-dark); padding-left: 1.6rem; display: grid; gap: 1.2rem; }
.hero-aside dt { font-family: var(--f-data); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hero-aside dd { margin: .2rem 0 0; color: var(--on-dark); font-size: .95rem; }
.hero-foot { margin-top: clamp(3rem, 2rem + 4vw, 5rem); display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-top: 1px solid var(--line-dark); padding-top: 1.2rem; color: var(--on-dark-muted); }
.scroll-cue { display: inline-flex; gap: .7rem; align-items: center; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--paper); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }
@media (max-width: 860px) {
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 120px); min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { border-left: 0; border-top: 1px solid var(--line-dark); padding: 1.4rem 0 0; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.hero .line-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.hero .line-mask > span { display: inline-block; }

/* Hero de subpágina */
.page-hero { position: relative; background: var(--petrol); color: var(--on-dark); overflow: hidden; isolation: isolate; padding-top: calc(env(safe-area-inset-top, 0px) + 150px); padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
.page-hero canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,28,34,.85) 0%, rgba(13,44,53,.4) 70%, rgba(13,44,53,.2)); pointer-events: none; }
.page-hero h1 { font-size: var(--s4); max-width: 16ch; margin-top: 1.2rem; }
.page-hero .lead { color: var(--on-dark-muted); margin-top: 1.4rem; max-width: 50ch; }
.page-hero .hero-cta { margin-top: 2rem; }
.crumbs { font-family: var(--f-data); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; gap: .5rem; }
.crumbs a { text-decoration: none; color: inherit; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { color: var(--gold); }
@media (max-width: 1080px) { .page-hero { padding-top: calc(env(safe-area-inset-top, 0px) + 120px); } }

/* ---------- Presentación ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 5vw, 7rem); align-items: center; }
.intro-grid h2 { font-size: var(--s3); margin-top: 1rem; }
.intro-grid .prose { margin-top: 1.6rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 2.6rem; }
.stats div { padding: 1.2rem 1rem 0 0; }
.stats b { font-family: var(--f-display); font-weight: 400; font-size: var(--s2); display: block; color: var(--ink); }
.stats span { font-size: .86rem; color: var(--muted); }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } .stats div { border-bottom: 1px solid var(--line); padding-bottom: 1rem; } }

/* Placeholder de fotografía (no simula fotos reales) */
.ph {
  position: relative; aspect-ratio: var(--ar, 4 / 5); max-width: 100%; border-radius: 6px; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(184,154,99,.09) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #DCE5E4, #C9D5D4 55%, #B9C8C7);
  display: flex; align-items: flex-end; color: var(--petrol);
}
.dark .ph, .ph.ph-dark { background: repeating-linear-gradient(135deg, rgba(184,154,99,.12) 0 1px, transparent 1px 14px), linear-gradient(160deg, #18495A, #0F3540 60%, #0A2A33); color: var(--on-dark); }
.ph::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(184,154,99,.45); border-radius: 3px; pointer-events: none; }
.ph-label { position: relative; margin: 26px; font-family: var(--f-data); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; display: grid; gap: .3rem; }
.ph-label b { font-family: var(--f-body); font-weight: 500; font-size: .92rem; text-transform: none; letter-spacing: 0; }
.ph-tag { position: absolute; top: 26px; left: 26px; font-family: var(--f-data); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; background: var(--gold); color: var(--petrol); padding: .3rem .55rem; border-radius: 2px; }
.ph-stack { position: relative; perspective: 1200px; }
.ph-stack .ph:nth-child(2) { position: absolute; width: 46%; right: -6%; bottom: -8%; --ar: 1; box-shadow: 0 30px 60px -30px rgba(7,28,34,.6); border: 6px solid var(--paper); }
@media (max-width: 860px) { .ph-stack .ph:nth-child(2) { right: 0; } }
@media (max-width: 560px) { .ph-stack .ph:nth-child(2) { display: none; } .hero canvas.field { opacity: .45; } }

/* ---------- Especialidades (pista horizontal) ---------- */
.spec-pin { overflow-x: auto; scrollbar-width: thin; }
.spec-pin.is-pinned { overflow: hidden; }
.spec-track { display: flex; gap: clamp(1rem, .6rem + 1.4vw, 1.8rem); will-change: transform; }
.spec-card {
  flex: 0 0 clamp(280px, 26vw, 360px); min-width: 0; position: relative; text-decoration: none; color: var(--on-dark);
  border: 1px solid var(--line-dark); border-radius: 8px; padding: 1.6rem; min-height: 460px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; overflow: hidden; isolation: isolate;
  background: linear-gradient(170deg, rgba(21,68,83,.6), rgba(7,28,34,.5));
  transform-style: preserve-3d; transition: border-color .4s, background .4s;
}
.spec-card:hover { border-color: rgba(184,154,99,.65); }
.spec-card .glow { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(184,154,99,.22), transparent 60%); }
.spec-card:hover .glow { opacity: 1; }
.spec-card .idx { font-family: var(--f-data); font-size: .72rem; letter-spacing: .14em; color: var(--gold); }
.spec-card h3 { font-size: var(--s2); transform: translateZ(40px); }
.spec-card p { color: var(--on-dark-muted); font-size: .95rem; transform: translateZ(20px); }
.spec-card ul { list-style: none; display: grid; gap: .25rem; font-size: .88rem; color: var(--on-dark); }
.spec-card li::before { content: "— "; color: var(--gold); }
.spec-card .go { display: inline-flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-dark); padding-top: 1rem; font-size: .9rem; }
.spec-card .go i { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-style: normal; color: var(--gold); transition: background .35s, color .35s, transform .45s var(--ease-out); }
.spec-card:hover .go i { background: var(--gold); color: var(--petrol); transform: rotate(-45deg); }
.spec-shape { width: 92px; height: 92px; transform: translateZ(60px); }
@media (max-width: 899px) {
  .spec-track { flex-direction: column; }
  .spec-card { flex: none; min-height: 0; }
}

/* ---------- Medicina y seguridad ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillar { padding: 2rem 1.6rem 0 0; display: grid; gap: .8rem; align-content: start; }
.pillar + .pillar { border-left: 1px solid var(--line); padding-left: 1.6rem; }
.pillar h3 { font-size: 1.35rem; }
.pillar p { color: var(--muted); font-size: .95rem; }
.pillar svg { width: 34px; height: 34px; color: var(--gold-ink); }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, minmax(0,1fr)); } .pillar:nth-child(3) { border-left: 0; padding-left: 0; } .pillar { padding-bottom: 2rem; border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .pillar + .pillar { border-left: 0; padding-left: 0; } }

/* ---------- Tarjetas de tratamiento ---------- */
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.t-card { background: var(--paper); padding: 1.6rem 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .8rem; text-decoration: none; min-height: 230px; position: relative; transition: background .4s; }
.t-card:hover { background: var(--porcelain); }
.t-card .data { color: var(--gold-ink); }
.t-card h3 { font-size: 1.4rem; }
.t-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.t-card .more { font-size: .86rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.t-card .more span { transition: transform .4s var(--ease-out); color: var(--gold-ink); }
.t-card:hover .more span { transform: translateX(5px); }
.dark .t-grid { background: var(--line-dark); border-color: var(--line-dark); }
.dark .t-card { background: var(--petrol); }
.dark .t-card:hover { background: var(--petrol-2); }
.dark .t-card p { color: var(--on-dark-muted); }
.dark .t-card .data, .dark .t-card .more span { color: var(--gold); }

/* Destacados (tilt 3D) */
.feat-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.4rem; perspective: 1400px; }
.feat { grid-column: span 4; text-decoration: none; display: grid; gap: 1rem; transform-style: preserve-3d; }
.feat:nth-child(1) { grid-column: span 7; }
.feat:nth-child(2) { grid-column: span 5; }
.feat .ph { --ar: 4/3; transition: transform .6s var(--ease-out); }
.feat:nth-child(1) .ph { --ar: 16/10; }
.feat:nth-child(2) .ph { --ar: 4/3.27; }
.feat h3 { font-size: var(--s2); }
.feat p { color: var(--muted); font-size: .95rem; max-width: 46ch; }
.feat-meta { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: .9rem; }
@media (max-width: 860px) { .feat, .feat:nth-child(1), .feat:nth-child(2) { grid-column: span 12; } .feat .ph, .feat:nth-child(1) .ph, .feat:nth-child(2) .ph { --ar: 16/10; } }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.6rem; }
.member { display: grid; gap: .9rem; }
.member .ph { --ar: 4/5; }
.member h3 { font-size: 1.3rem; }
.member dl { margin: 0; display: grid; gap: .25rem; font-size: .88rem; color: var(--muted); }
.member dt { font-family: var(--f-data); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-top: .4rem; }
.member dd { margin: 0; }
.dark .member dl { color: var(--on-dark-muted); }
.dark .member dt { color: var(--gold); }
.pending { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--f-data); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); border: 1px dashed currentColor; padding: .25rem .55rem; border-radius: 2px; width: fit-content; }
.dark .pending { color: var(--gold); }

/* ---------- Antes · Durante · Después (escena fijada) ---------- */
.adp { position: relative; background: var(--deep); color: var(--on-dark); }
.adp-stage { min-height: 100svh; display: grid; align-items: center; padding-block: 6rem; position: relative; overflow: hidden; }
.adp-word { font-family: var(--f-display); font-size: clamp(3rem, 1rem + 10vw, 11rem); line-height: .9; letter-spacing: -.01em; display: flex; gap: .3em; flex-wrap: wrap; }
.adp-word span { color: rgba(232,239,238,.14); transition: color .6s var(--ease); }
.adp-word span.is-on { color: var(--gold); }
.adp-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 3.5rem; }
.adp-panel { border-top: 1px solid var(--line-dark); padding-top: 1.4rem; opacity: .35; transition: opacity .6s var(--ease), transform .8s var(--ease-out); }
.adp-panel.is-on { opacity: 1; }
.adp-panel .data { color: var(--gold); }
.adp-panel h3 { font-size: var(--s2); margin: .6rem 0 .8rem; }
.adp-panel p { color: var(--on-dark-muted); font-size: .95rem; }
.adp-panel ul { list-style: none; display: grid; gap: .3rem; margin-top: 1rem; font-size: .9rem; }
.adp-panel li::before { content: "— "; color: var(--gold); }
.adp-ring { position: absolute; right: -10vw; top: 50%; width: 60vw; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; border: 1px solid rgba(184,154,99,.18); pointer-events: none; }
.adp-ring::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px solid rgba(184,154,99,.1); }
@media (max-width: 860px) { .adp-panels { grid-template-columns: 1fr; } .adp-panel { opacity: 1; } .adp-stage { min-height: 0; } }

/* Recorrido del paciente */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: j; position: relative; }
.journey li { list-style: none; padding: 1.6rem 1.4rem 0 0; border-top: 1px solid var(--line); position: relative; }
.journey li::before { counter-increment: j; content: "0" counter(j); font-family: var(--f-data); font-size: .75rem; color: var(--gold-ink); letter-spacing: .1em; }
.journey li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.journey h3 { font-size: 1.5rem; margin: .5rem 0; }
.journey p { color: var(--muted); font-size: .93rem; }
@media (max-width: 760px) { .journey { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 2rem; } }

/* ---------- Comparador ---------- */
.compare { position: relative; aspect-ratio: 16/10; max-width: 100%; border-radius: 6px; overflow: hidden; user-select: none; touch-action: pan-y; background: var(--porcelain); }
.compare .side { position: absolute; inset: 0; }
.compare .side .ph { aspect-ratio: auto; height: 100%; border-radius: 0; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--gold); translate: -1px 0; pointer-events: none; }
.compare .handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--petrol); display: grid; place-items: center; font-weight: 600; letter-spacing: .2em; box-shadow: 0 10px 30px -10px rgba(7,28,34,.6); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; bottom: 18px; font-family: var(--f-data); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(13,44,53,.85); color: var(--on-dark); padding: .35rem .6rem; border-radius: 2px; }
.compare .tag.l { left: 18px; } .compare .tag.r { right: 18px; }
.compare:has(input:focus-visible) .handle::after { outline: 2px solid var(--paper); outline-offset: 3px; }

/* ---------- Instalaciones ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.gallery .ph:nth-child(1) { grid-column: span 7; --ar: 16/11; }
.gallery .ph:nth-child(2) { grid-column: span 5; --ar: auto; height: 100%; }
.gallery .ph:nth-child(3) { grid-column: span 4; --ar: 1; }
.gallery .ph:nth-child(4) { grid-column: span 4; --ar: 1; }
.gallery .ph:nth-child(5) { grid-column: span 4; --ar: 1; }
@media (max-width: 760px) { .gallery .ph:nth-child(n) { grid-column: span 12; --ar: 16/10; height: auto; } }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2rem 1.6rem; }
.post { display: grid; gap: .8rem; align-content: start; }
.post .ph { --ar: 3/2; }
.post h3 { font-size: 1.35rem; }
.post p { color: var(--muted); font-size: .93rem; }
.post .data { color: var(--gold-ink); display: flex; gap: 1rem; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.chip { font: 500 .85rem/1 var(--f-body); padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--petrol); color: var(--on-dark); border-color: var(--petrol); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.4rem 0; font-family: var(--f-display); font-size: var(--s1); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease-out), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: currentColor; translate: -50% -50%; }
.faq summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease-out); }
.faq details[open] summary i { background: var(--gold); border-color: var(--gold); color: var(--petrol); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 0 1.6rem; color: var(--muted); max-width: 70ch; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem 5rem; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.dark .faq, .dark .faq details { border-color: var(--line-dark); }
.dark .faq .ans { color: var(--on-dark-muted); }
.dark .faq summary i { border-color: var(--line-dark); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); }
.contact-data { display: grid; gap: 1.6rem; align-content: start; }
.contact-data h2 { font-size: var(--s3); margin-top: 1rem; }
.contact-list { display: grid; border-top: 1px solid var(--line-dark); }
.contact-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.contact-list dt { font-family: var(--f-data); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(184,154,99,.5); }
.copy { font: 500 .72rem/1 var(--f-data); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); background: none; border: 1px solid var(--line-dark); border-radius: 999px; padding: .35rem .6rem; margin-left: .6rem; cursor: pointer; vertical-align: middle; }
.map-card { position: relative; border-radius: 6px; overflow: hidden; min-height: 220px; border: 1px solid var(--line-dark); background: radial-gradient(circle at 60% 45%, rgba(184,154,99,.25), transparent 30%), repeating-linear-gradient(0deg, rgba(232,239,238,.05) 0 1px, transparent 1px 34px), repeating-linear-gradient(90deg, rgba(232,239,238,.05) 0 1px, transparent 1px 34px), var(--petrol-2); display: flex; align-items: flex-end; padding: 1.2rem; }
.map-card .pin { position: absolute; left: 60%; top: 45%; translate: -50% -100%; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--gold); box-shadow: 0 0 0 10px rgba(184,154,99,.18); }
.form { background: var(--paper); color: var(--ink); border-radius: 8px; padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); display: grid; gap: 1.1rem; box-shadow: 0 40px 80px -50px rgba(0,0,0,.6); }
.form h3 { font-size: var(--s2); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .contact-list > div { grid-template-columns: 1fr; gap: .2rem; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .82rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--porcelain); border: 1px solid var(--line); border-radius: 4px; padding: .8rem .9rem; min-height: 48px; width: 100%; transition: border-color .3s, background .3s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--paper); box-shadow: 0 0 0 3px rgba(184,154,99,.2); }
.field [aria-invalid="true"] { border-color: #A3442F; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--petrol); flex: none; }
.form-note { font-size: .8rem; color: var(--muted); }
.form-msg { border-radius: 4px; padding: .9rem 1rem; font-size: .9rem; background: var(--porcelain); border-left: 3px solid var(--gold); }
.form-msg.err { border-left-color: #A3442F; }

/* ---------- CTA final ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: left; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 2rem; align-items: end; }
.cta-band h2 { font-size: var(--s3); }
.cta-band p { color: var(--on-dark-muted); margin-top: 1rem; max-width: 46ch; }
.cta-band .hero-cta { justify-content: flex-end; margin: 0; }
.cta-band::before { content: ""; position: absolute; width: 70vmax; aspect-ratio: 1; right: -25vmax; top: -30vmax; border-radius: 50%; border: 1px solid rgba(184,154,99,.2); z-index: -1; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band .hero-cta { justify-content: flex-start; } }

/* ---------- Ficha de tratamiento ---------- */
.review-note { background: var(--porcelain); border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.review-note .wrap { display: flex; gap: .8rem; align-items: center; padding-block: .8rem; }
.review-note svg { width: 18px; height: 18px; color: var(--gold-ink); flex: none; }
.t-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.toc { position: sticky; top: 110px; display: grid; gap: .2rem; font-size: .88rem; }
.toc p { font-family: var(--f-data); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .6rem; }
.toc a { text-decoration: none; color: var(--muted); padding: .35rem 0 .35rem .9rem; border-left: 1px solid var(--line); transition: color .3s, border-color .3s; display: flex; gap: .6rem; }
.toc a b { font-family: var(--f-data); font-weight: 400; font-size: .72rem; color: var(--gold-ink); padding-top: .15rem; }
.toc a.is-active, .toc a:hover { color: var(--ink); border-left-color: var(--gold); }
.toc .btn { margin-top: 1.4rem; justify-content: center; }
@media (max-width: 960px) { .t-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.t-sec { padding-block: 2.6rem; border-top: 1px solid var(--line); scroll-margin-top: 100px; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 1rem 2rem; }
.t-sec:first-child { border-top: 0; padding-top: 0; }
.t-sec > .num { font-family: var(--f-data); font-size: .8rem; color: var(--gold-ink); letter-spacing: .08em; padding-top: .55rem; }
.t-sec h2 { font-size: var(--s2); margin-bottom: 1.1rem; }
.t-sec .prose { color: var(--muted); }
.t-sec ul.ticks { list-style: none; display: grid; gap: .6rem; margin-top: 1rem; max-width: 66ch; }
.t-sec ul.ticks li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.t-sec ul.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--gold); }
@media (max-width: 560px) { .t-sec { grid-template-columns: 1fr; gap: .2rem; } }
.variants { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; margin-top: 1.2rem; max-width: 100%; }
.variants th, .variants td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.variants th { font-family: var(--f-data); font-weight: 400; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); background: var(--porcelain); white-space: nowrap; }
.variants tr:last-child td { border-bottom: 0; }
.variants td.data { white-space: nowrap; }
.t-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 6px; overflow: hidden; margin-top: 2.4rem; max-width: 760px; }
.t-facts div { background: rgba(13,44,53,.55); padding: 1rem 1.1rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.t-facts dt { font-family: var(--f-data); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.t-facts dd { margin: .3rem 0 0; font-size: .95rem; }
.budget-note { margin-top: 1.4rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 6px; display: flex; gap: .9rem; align-items: flex-start; background: var(--paper); font-size: .92rem; color: var(--muted); }
.budget-note b { color: var(--ink); font-weight: 500; }
.budget-note svg { width: 22px; height: 22px; color: var(--gold-ink); flex: none; margin-top: 2px; }
.related { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.related a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; font-size: .88rem; transition: border-color .3s, background .3s; }
.related a:hover { border-color: var(--gold); background: var(--porcelain); }

/* Bloques de especialidad (página de especialidades) */
.block { padding-block: clamp(4rem, 3rem + 4vw, 7rem); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.block:first-of-type { border-top: 0; }
.block-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem 4rem; margin-bottom: 2.6rem; align-items: end; }
.block-head h2 { font-size: var(--s3); margin-top: .9rem; }
.block-head p { color: var(--muted); max-width: 52ch; }
@media (max-width: 860px) { .block-head { grid-template-columns: 1fr; } }
.jump { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 78px); z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding-block: .6rem; }
.jump a { white-space: nowrap; text-decoration: none; font-size: .88rem; padding: .5rem .9rem; border-radius: 999px; color: var(--muted); }
.jump a:hover, .jump a.is-active { background: var(--petrol); color: var(--on-dark); }
@media (max-width: 1080px) { .jump { top: calc(env(safe-area-inset-top, 0px) + 76px); } }

/* ---------- Páginas legales / texto ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: var(--s2); margin: 2.6rem 0 1rem; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: .9rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .4rem; margin-top: .6rem; }
.legal ul + p, .legal .table-wrap + p { margin-top: .9rem; }
.legal .table-wrap { overflow-x: auto; margin-top: 1rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.legal th, .legal td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal th { color: var(--ink); font-weight: 500; }
.fill { background: rgba(184,154,99,.18); padding: 0 .3em; border-radius: 2px; color: var(--ink); font-family: var(--f-data); font-size: .85em; }

/* Dos columnas genéricas */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.split h2 { font-size: var(--s3); margin-top: 1rem; }
.split .prose { margin-top: 1.4rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.values > div { padding: 1.8rem 1.6rem 1.8rem 0; }
.values > div + div { border-left: 1px solid var(--line); padding-left: 1.6rem; }
.values b { font-family: var(--f-data); font-weight: 400; color: var(--gold-ink); font-size: .8rem; letter-spacing: .1em; }
.values h3 { font-size: 1.6rem; margin: .5rem 0 .6rem; }
.values p { color: var(--muted); font-size: .95rem; }
.meter { height: 3px; background: var(--line); margin-top: 1rem; border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--gold); width: var(--w); transform-origin: left; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } .values > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Pie ---------- */
.site-foot { background: var(--deep); color: var(--on-dark-muted); padding-top: clamp(4rem, 3rem + 3vw, 6rem); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2rem); font-size: .9rem; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2.4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.foot-top h3 { font-family: var(--f-data); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.foot-top ul { list-style: none; display: grid; gap: .45rem; }
.foot-top a { text-decoration: none; }
.foot-top a:hover { color: var(--on-dark); }
.foot-lema { font-family: var(--f-display); font-size: var(--s2); color: var(--on-dark); margin: 1.4rem 0 1rem; max-width: 18ch; line-height: 1.2; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-top: 1.6rem; font-size: .8rem; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot-bottom a { text-decoration: none; }
.foot-bottom a:hover { color: var(--on-dark); }
@media (max-width: 860px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-top > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-top { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed; z-index: 45; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .6rem; height: 56px; padding: 0 1.1rem 0 .5rem; border-radius: 999px;
  background: var(--petrol); color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: .92rem;
  box-shadow: 0 18px 40px -16px rgba(7,28,34,.7); border: 1px solid rgba(184,154,99,.35);
  transition: transform .5s var(--ease-out), opacity .4s;
}
.wa i { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--petrol); display: grid; place-items: center; }
.wa svg { width: 22px; height: 22px; }
.wa:hover { transform: translateY(-3px); }
.wa.is-tucked { transform: translateY(140%); opacity: 0; }
@media (max-width: 560px) { .wa span { display: none; } .wa { padding: 0 .4rem; height: 52px; } }

/* ---------- Cookies ---------- */
.cookies { position: fixed; z-index: 80; left: var(--gut); right: var(--gut-r); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); max-width: 560px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem 1.3rem; box-shadow: 0 30px 60px -30px rgba(7,28,34,.5); display: grid; gap: .9rem; font-size: .88rem; }
.cookies p { color: var(--muted); }
.cookies .acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookies .btn { min-height: 42px; padding: .55rem 1rem; font-size: .88rem; }

/* ---------- Movimiento ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease-out); }
.js .reveal-clip { clip-path: inset(0 0 100% 0); }
.js .reveal-clip.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease-out); }
.page-enter { animation: page-in .9s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; } }
.curtain { position: fixed; inset: 0; z-index: 90; background: var(--petrol); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }
.curtain.is-on { transform: scaleY(1); transition: transform .55s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-clip { opacity: 1; transform: none; clip-path: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media print { .site-head, .wa, .cookies, canvas { display: none !important; } }

/* ---------- Guía breve de tratamientos ---------- */
.g-group { padding-block: 3rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.g-head { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1.6rem; align-items: start; margin-bottom: 2rem; }
.g-head h2 { font-size: var(--s2); margin-top: .7rem; }
.g-shape { width: 72px; height: 72px; }
.g-feat { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1rem; align-items: baseline; }
.g-feat .data { color: var(--muted); }
.g-feat a { font-size: .92rem; text-decoration: none; color: var(--gold-ink); font-weight: 500; }
.g-feat a:hover { text-decoration: underline; }
.g-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.g-entry { background: var(--paper); padding: 1.4rem 1.4rem 1.1rem; display: grid; gap: .8rem; align-content: start; scroll-margin-top: 110px; }
.g-entry:target { box-shadow: inset 3px 0 0 var(--gold); }
.g-main { display: grid; gap: .45rem; }
.g-main .data { color: var(--gold-ink); }
.g-main h3 { font-size: 1.3rem; }
.g-main p { color: var(--muted); font-size: .93rem; }
.g-entry summary { cursor: pointer; font-size: .86rem; font-weight: 500; list-style: none; display: inline-flex; gap: .4rem; align-items: center; }
.g-entry summary::-webkit-details-marker { display: none; }
.g-entry summary::after { content: "+"; color: var(--gold-ink); font-size: 1.1rem; transition: transform .4s var(--ease-out); }
.g-entry details[open] summary::after { transform: rotate(45deg); }
.g-more { display: grid; gap: .7rem; padding-top: .8rem; font-size: .92rem; color: var(--muted); }
.g-more b { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .g-head { grid-template-columns: 1fr; } }
/* Rejillas sin huecos grises cuando la última fila queda incompleta */
.t-grid, .g-list { gap: 0; background: transparent; border: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.t-card, .g-entry { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark .t-grid { border-color: var(--line-dark); }
.dark .t-card { border-color: var(--line-dark); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Vías de cita ---------- */
.ways { display: grid; gap: .6rem; }
.way { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem 1.1rem; border: 1px solid var(--line-dark); border-radius: 8px; text-decoration: none; color: var(--on-dark); transition: border-color .35s, background .35s, transform .45s var(--ease-out); }
.way:hover { border-color: rgba(184,154,99,.7); background: rgba(184,154,99,.06); transform: translateX(4px); }
.way i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--gold); }
.way i svg { width: 20px; height: 20px; }
.way b { display: block; font-weight: 500; }
.way small { color: var(--on-dark-muted); font-size: .85rem; }
.way em { font-style: normal; color: var(--gold); }
.way-main { background: var(--gold); color: var(--petrol); border-color: var(--gold); }
.way-main:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.way-main i { background: var(--petrol); border-color: var(--petrol); }
.way-main small { color: rgba(13,44,53,.75); }
.way-main em { color: var(--petrol); }
.toc-alt { border: 0 !important; padding: .6rem 0 0 !important; justify-content: center; font-size: .82rem; text-decoration: underline !important; text-underline-offset: .2em; }
.g-acts { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- Mapa estilizado ---------- */
.area-map { position: relative; aspect-ratio: 600 / 540; max-width: 100%; border-radius: 14px; overflow: hidden; background: #133640; isolation: isolate; }
.area-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.am-rings { transform-origin: 300px 265px; animation: am-breathe 7s var(--ease) infinite alternate; }
@keyframes am-breathe { to { transform: scale(1.04); opacity: .7; } }
.am-town { position: absolute; translate: -50% -50%; font: 500 clamp(.62rem, .5rem + .5vw, .82rem)/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(232,239,238,.6); white-space: nowrap; }
.am-center { position: absolute; left: 50%; top: 49%; translate: -50% -14px; display: grid; justify-items: center; gap: .55rem; text-align: center; }
.am-center b { color: var(--paper); font-weight: 600; font-size: 1rem; margin-top: .6rem; }
.am-center a { color: var(--gold-soft); font-size: .82rem; font-weight: 500; text-underline-offset: .2em; }
.am-center a:hover { color: var(--paper); }
.am-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 9px rgba(184,154,99,.18), 0 0 0 20px rgba(184,154,99,.08); animation: am-pulse 2.8s var(--ease) infinite; }
@keyframes am-pulse { 50% { box-shadow: 0 0 0 13px rgba(184,154,99,.12), 0 0 0 28px rgba(184,154,99,.04); } }

/* Especialidades de la portada: rejilla que cabe siempre en pantalla */
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, .6rem + 1vw, 1.5rem); perspective: 1400px; }
.spec-grid .spec-card { flex: none; min-height: 440px; padding: 1.4rem; }
.spec-grid .spec-card h3 { font-size: clamp(1.35rem, 1.1rem + .6vw, 1.75rem); }
@media (max-width: 1100px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .spec-grid { grid-template-columns: 1fr; } .spec-grid .spec-card { min-height: 0; } }

/* Antes y después dentro de cada tratamiento */
.compare .ph-label { margin-bottom: 64px; }
.compare .side img { width: 100%; height: 100%; object-fit: cover; }
.case { margin: 0 0 1.4rem; }
.case figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.t-sec .compare { max-width: 720px; }

/* Fotos reales dentro del marco de los espacios reservados */
.ph.has-img { background: var(--porcelain); }
.ph.has-img::before { display: none; }
.ph.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-img .ph-tag { z-index: 1; }

/* "También realizamos": otros tratamientos, solo nombres */
.also { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.also-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.also-list a { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s; }
.also-list a:hover, .also-list a:focus-visible { border-color: var(--gold); color: var(--gold-ink); }
.also-note { margin-top: .9rem; font-size: .85rem; color: var(--muted); }
