/* ============================================================
   SHIM CLINIC — Sistema de diseño editorial minimalista
   ============================================================ */

:root {
  --ivory: #f7f4ef;
  --porcelain: #ffffff;
  --soft: #efeade;
  --ink: #1b2420;
  --ink-soft: #2c3732;
  --stone: #6b736e;
  --line: #e2dcd0;
  --bronze: #a98f5f;
  --bronze-deep: #8a7248;

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

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--bronze); color: var(--ivory); }

/* ---------- Tipografía ---------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.display {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  color: var(--ink);
}

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--bronze-deep);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--bronze);
}

.section {
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  position: relative;
}
.section--tight { padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(40px, 6vw, 84px); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: var(--ivory); }
.section--dark .kicker { color: var(--bronze); }

.container { max-width: var(--wrap); margin: 0 auto; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 18ch;
  margin-top: 18px;
}
.lede {
  margin-top: 24px;
  max-width: 56ch;
  color: var(--stone);
  font-size: 1.06rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: all 0.45s var(--ease);
  position: relative;
}
.btn::after {
  content: "→";
  transition: transform 0.45s var(--ease);
}
.btn:hover { border-color: var(--ink); }
.btn:hover::after { transform: translateX(6px); }

.btn--solid { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--solid::after { content: ""; }
.btn--solid:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); }

.btn--light { border-color: rgba(247,244,239,0.35); color: var(--ivory); }
.btn--light:hover { border-color: var(--ivory); }

.btn--bronze { background: var(--bronze); color: var(--ivory); border-color: var(--bronze); }
.btn--bronze::after { content: ""; }
.btn--bronze:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 var(--gutter);
  background: rgba(247,244,239,0.98);
  box-shadow: 0 1px 0 var(--line);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(27,36,32,0.08);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.brand-name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.02em; }
.brand-name em { font-style: normal; color: var(--bronze); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
.nav a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 8px 0;
  position: relative;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { border: 1px solid currentColor; padding: 11px 22px !important; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--bronze); border-color: var(--bronze); color: var(--ivory); }

.lang { display: flex; gap: 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.lang a { padding: 4px 6px; opacity: 0.6; }
.lang a.active { opacity: 1; color: var(--bronze); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  z-index: 130;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: currentColor;
  margin: 6px auto;
  transition: all 0.4s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  position: relative;
}
.hero-copy {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px var(--gutter) 90px;
}
.hero-media {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.hero-media .art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 20% 10%, #2c3b33 0%, #1b2420 55%, #10150f 100%);
}
.hero-media .art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(247,244,239,0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.4;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero-media .orb {
  position: absolute;
  width: min(52vmin, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 32% 30%, rgba(169,143,95,0.5), transparent 60%),
    linear-gradient(145deg, #3c4b42, #232d27);
  border: 1px solid rgba(169,143,95,0.35);
  box-shadow: 0 0 90px rgba(169,143,95,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.hero-media .orb .orb-logo {
  max-width: 62%;
  height: auto;
  filter: brightness(0) invert(1);
}
.hero-media .orb .orb-year {
  padding: 8px 18px;
  border-top: 1px solid rgba(247,244,239,0.35);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.75);
}
.hero-media .tick {
  position: absolute;
  width: 36%; height: 36%;
  border: 1px solid rgba(169,143,95,0.4);
}
.hero-media .tick.t1 { top: 8%; right: 8%; border-left: 0; border-bottom: 0; }
.hero-media .tick.t2 { bottom: 8%; left: 8%; border-right: 0; border-top: 0; }
.hero-media .label {
  position: absolute;
  bottom: 34px; left: 34px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.55);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 26px;
}
.hero-title { font-size: clamp(2.9rem, 6vw, 5rem); max-width: 13ch; }
.hero-title em { font-style: italic; color: var(--bronze-deep); }
.hero-sub {
  margin-top: 28px;
  max-width: 52ch;
  color: var(--stone);
  font-size: 1.08rem;
}
.hero-actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-meta {
  margin-top: 64px;
  display: flex;
  gap: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta div:first-child span { display: block; color: var(--stone); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 6px; }
.hero-meta strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
}
.marquee-track { display: inline-block; animation: marquee 36s linear infinite; }
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 26px;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Filosofía ---------- */
.philo { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.philo-quote {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.25;
  max-width: 20ch;
  font-weight: 400;
}
.philo-quote em { color: var(--bronze-deep); }
.philo-body p { color: var(--stone); margin-bottom: 22px; max-width: 58ch; }
.philo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.philo-stats .num { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); }
.philo-stats .lbl { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-top: 8px; }

/* ---------- Servicios (grid editorial) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.service-card {
  grid-column: span 6;
  border: 1px solid var(--line);
  background: var(--porcelain);
  padding: clamp(30px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(27,36,32,0.25);
  border-color: var(--bronze);
}
.service-card .sc-index {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--bronze-deep);
  margin-bottom: 26px;
}
.service-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 16ch; }
.service-card p { color: var(--stone); margin-top: 16px; max-width: 46ch; font-size: 0.98rem; }
.service-card .sc-link {
  margin-top: 34px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.service-card .sc-link span { display: inline-block; transition: transform 0.4s var(--ease); }
.service-card:hover .sc-link span { transform: translateX(8px); }
.service-card.narrow { grid-column: span 6; }

@media (min-width: 900px) {
  .service-card.wide { grid-column: span 7; }
  .service-card.stack { grid-column: span 5; }
}

/* ---------- Aparatología strip ---------- */
.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.gear-card {
  background: var(--porcelain);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.gear-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(27,36,32,0.22); }
.gear-media { height: 220px; overflow: hidden; background: var(--soft); display: grid; place-items: center; }
.gear-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gear-card:hover .gear-media img { transform: scale(1.05); }
.gear-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.gear-body h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.gear-body p { color: var(--stone); margin-top: 10px; font-size: 0.92rem; }
.gear-body .gear-tag {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-deep);
}

/* ---------- Antes / Después ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.ba-card { border-top: 1px solid var(--line); padding-top: 26px; }
.ba-card h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.ba-slider {
  margin-top: 20px;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--porcelain);
  border: 1px solid var(--line);
}
.ba-slider .plane {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
}
.ba-slider .plane::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,12,0.45), transparent 45%);
}
.ba-tag {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ivory);
  padding: 6px 14px;
  border: 1px solid rgba(247,244,239,0.55);
}
.ba-slider .before {
  background-color: var(--soft);
  background-image: url("https://www.shimclinic.es/wp-content/uploads/2020/11/antes-1.png");
}
.ba-slider .after {
  background-color: var(--ink);
  background-image: url("https://www.shimclinic.es/wp-content/uploads/2020/11/despues-1.png");
}
.ba-slider .clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 50%;
}
.ba-slider .clip .plane {
  width: 100%;
  height: 100%;
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: var(--bronze);
  transform: translateX(-1px);
  z-index: 2;
}
.ba-handle::after {
  content: "↔";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(27,36,32,0.18);
}
.ba-caption { margin-top: 16px; display: flex; justify-content: space-between; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }

/* ---------- Galería de la clínica ---------- */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.gal-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.gal-item:hover img { transform: scale(1.04); }
.gal-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 18px 14px;
  background: linear-gradient(to top, rgba(10,14,12,0.58), transparent);
  color: var(--ivory);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ---------- Bandas oscuras / CTA ---------- */
.band {
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(72px, 9vw, 120px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  right: -120px; top: -120px;
  background: radial-gradient(circle, rgba(169,143,95,0.28), transparent 70%);
}
.band .container { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; }
.band p { margin-top: 20px; color: rgba(247,244,239,0.72); max-width: 52ch; }
.band .band-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.band-facts { display: flex; flex-direction: column; gap: 22px; }
.band-fact { border-top: 1px solid rgba(247,244,239,0.16); padding-top: 20px; }
.band-fact .kicker { color: rgba(247,244,239,0.5); }
.band-fact .kicker::before { background: rgba(247,244,239,0.5); }
.band-fact p { margin-top: 12px; font-family: var(--serif); font-size: 1.15rem; color: var(--ivory); }

/* ---------- Certificación ---------- */
.badge-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(56px, 8vw, 100px);
}
.badge-item { background: var(--ivory); padding: 40px 32px; text-align: center; }
.badge-item .ico { font-size: 1.6rem; color: var(--bronze-deep); margin-bottom: 12px; }
.badge-item strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.badge-item span { font-size: 0.8rem; color: var(--stone); margin-top: 6px; display: block; }

/* ---------- Pedestal / footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); padding: clamp(56px, 7vw, 96px) var(--gutter) 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); max-width: var(--wrap); margin: 0 auto; }
.footer-brand .brand { color: var(--ivory); }
.footer-brand p { margin-top: 20px; color: rgba(247,244,239,0.6); max-width: 34ch; font-size: 0.95rem; }
.footer-col h5 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(247,244,239,0.5); margin-bottom: 22px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(247,244,239,0.82); font-size: 0.94rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--bronze); }
.footer-bottom {
  max-width: var(--wrap);
  margin: 56px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(247,244,239,0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(247,244,239,0.45);
  font-size: 0.8rem;
}

/* ---------- Páginas interiores ---------- */
.page-hero {
  padding: 170px var(--gutter) clamp(50px, 7vw, 90px);
  background: var(--ivory);
}
.page-hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.page-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin-top: 14px; max-width: 16ch; }
.page-hero .lede { margin-top: 22px; max-width: 50ch; }
.page-hero aside { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 40px); }
.page-hero aside p { color: var(--stone); font-size: 0.95rem; margin-bottom: 16px; }
.page-hero aside .tag { display: block; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--bronze-deep); }

.breadcrumb { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.breadcrumb a { color: var(--bronze-deep); }

/* ---------- Grid de tratamientos ---------- */
.tx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tx-card {
  background: var(--porcelain);
  padding: clamp(28px, 3.4vw, 44px);
  transition: background 0.4s var(--ease);
}
.tx-card:hover { background: var(--soft); }
.tx-card h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 400; display: flex; gap: 16px; align-items: baseline; }
.tx-card h3 .n { font-size: 0.8rem; color: var(--bronze-deep); letter-spacing: 0.1em; }
.tx-card p { color: var(--stone); margin-top: 12px; font-size: 0.95rem; max-width: 52ch; }

/* ---------- Equality split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.split-visual { position: relative; }
.split-visual .frame { aspect-ratio: 4 / 5; background: var(--soft); border: 1px solid var(--line); position: relative; overflow: hidden; }
.split-visual .frame::after { content: attr(data-label); position: absolute; left: 0; bottom: 0; padding: 30px; font-family: var(--serif); font-style: italic; color: var(--stone); }
.split-visual .frame .f-orb { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; }

/* ---------- Lista numerada ---------- */
.clinic-list { border-top: 1px solid var(--line); }
.clinic-list li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.clinic-list .cl-n { font-family: var(--serif); color: var(--bronze-deep); font-size: 1.1rem; }
.clinic-list h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 400; }
.clinic-list p { color: var(--stone); grid-column: 2; margin-top: 6px; max-width: 62ch; }

/* ---------- Acordeón ---------- */
.accordion { border-top: 1px solid var(--line); max-width: var(--wrap); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.acc-head:hover { color: var(--bronze-deep); }
.acc-icon { font-family: var(--sans); font-size: 1.4rem; font-weight: 300; transition: transform 0.4s var(--ease); }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.acc-body-inner { padding: 0 4px 28px; color: var(--stone); max-width: 66ch; }
.acc-body-inner p + p { margin-top: 12px; }

/* ---------- Formulario ---------- */
.form-card { background: var(--porcelain); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--bronze); }
select { appearance: none; }

/* ---------- Mapa embebido ---------- */
.map-wrap { border: 1px solid var(--line); background: var(--soft); aspect-ratio: 21 / 9; display: grid; place-items: center; position: relative; overflow: hidden; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { text-align: center; color: var(--stone); font-family: var(--serif); font-style: italic; padding: 40px; }

/* ---------- Equipo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.team-card {
  background: var(--porcelain);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(27,36,32,0.22); }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.8s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.team-role { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze-deep); margin-bottom: 10px; }
.team-body h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; line-height: 1.2; }
.team-body p { color: var(--stone); font-size: 0.92rem; margin-top: 14px; }

/* ---------- Blog ---------- */
.blog-cat-nav { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.blog-cat-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 11px 20px;
  color: var(--ink);
  transition: all 0.4s var(--ease);
}
.blog-cat-nav a:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.blog-groups { display: flex; flex-direction: column; gap: clamp(64px, 10vw, 120px); }
.blog-group { scroll-margin-top: 120px; }
.blog-group-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: clamp(30px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}
.blog-group-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 400; }
.post-list { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); }
.post-card { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 48px); }
.post-meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 14px;
}
.post-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); max-width: 22ch; }
.post-sub { font-size: 1.2rem; font-weight: 500; }
.post-content { margin-top: 24px; max-width: 72ch; }
.post-content p { color: var(--stone); margin: 16px 0; }
.post-content h3, .post-content h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin-top: 32px; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.3rem; }
.post-content img { margin: 28px 0; border: 1px solid var(--line); }
.post-list-items { margin: 16px 0 16px 2px; }
.post-list-items li {
  color: var(--stone);
  padding-left: 22px;
  position: relative;
  margin: 10px 0;
}
.post-list-items li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--bronze);
}

/* ---------- Página legal ---------- */
.legal { max-width: 78ch; }
.legal-block { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 44px); margin-top: clamp(28px, 4vw, 44px); }
.legal-block:first-child { margin-top: 0; }
.legal-block h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 400; }
.legal-block p { color: var(--stone); margin: 16px 0; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 20px; border: 1px solid var(--line); }
.legal-table th, .legal-table td { text-align: left; padding: 16px 18px; border: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--soft); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.legal-table td { color: var(--stone); font-size: 0.94rem; }

/* ---------- Banda de logos de marca ---------- */
.brand-band { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 5vw, 72px); padding: clamp(40px, 6vw, 64px) var(--gutter); background: var(--porcelain); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand-band span { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--stone); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a { font-size: 0.72rem; letter-spacing: 0.12em; }
  .gear-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--ivory);
    color: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    transform: translateY(-100%);
    transition: transform 0.55s var(--ease);
    z-index: 120;
  }
  .nav.open { transform: translateY(0); }
  .nav a { font-size: 1.1rem; letter-spacing: 0.18em; }
  .nav .lang { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); }
  .hero { flex-direction: column; }
  .hero-media { min-height: 44vh; order: -1; }
  .hero-copy { padding-top: 120px; }
  .philo { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card.wide, .service-card.stack, .service-card.narrow { grid-column: span 1; }
  .band .container, .page-hero .container, .split { grid-template-columns: 1fr; }
  .split-visual { order: -1; }
  .split-visual .frame { max-width: 480px; }
  .tx-grid { grid-template-columns: 1fr; }
  .badge-strip { grid-template-columns: 1fr; }
  .philo-stats { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: 1; }
  .clinic-list li { grid-template-columns: 48px 1fr; }
  .clinic-list p { grid-column: 2; }
}

@media (max-width: 620px) {
  .gear-grid, .ba-grid, .team-grid, .gal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
  .display { letter-spacing: -0.01em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *.reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}