/* ============================================================
   CARLOS RODRÍGUEZ DUEÑAS — DERMOESTÉTICA
   Sistema de diseño
   Fraunces (display serif) · Fira Code (mono body)
   Oliva #2f3327 · Salvia #c3d9b8 · Crema #fffdfa · Gris #efefee
   ============================================================ */

:root {
  /* color */
  --olive:        #2f3327;
  --olive-700:    #3c4031;
  --olive-soft:   #4a4d3c;
  --sage:         #c3d9b8;
  --sage-deep:    #a9c39c;
  --cream:        #fffdfa;
  --grey:         #efefee;
  --grey-line:    #e2e1dd;
  --ink:          #2f3327;
  --ink-mute:     #6b6e60;
  --paper:        #f6f5f0;

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono:  "Fira Code", "SFMono-Regular", Menlo, monospace;

  /* rhythm */
  --pad: clamp(20px, 5vw, 88px);
  --maxw: 1480px;

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

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background: var(--sage); color: var(--olive); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- type primitives ---- */
.serif { font-family: var(--serif); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.eyebrow.no-rule::before { display: none; }

.mono-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}

.justified {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 168px); }

/* mark / logo */
.mark {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: baseline;
  gap: .12em;
  line-height: 1;
}
.mark .paren { font-size: 1.05em; opacity: .85; }

/* buttons */
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid var(--olive);
  background: var(--olive);
  color: var(--cream);
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--olive); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn.ghost { background: transparent; color: var(--olive); }
.btn.ghost:hover { background: var(--olive); color: var(--cream); }

.btn.on-dark { border-color: var(--sage); background: var(--sage); color: var(--olive); }
.btn.on-dark:hover { background: transparent; color: var(--sage); }

.link-underline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  transition: gap .35s var(--ease), opacity .35s var(--ease);
}
.link-underline:hover { gap: 14px; }

/* image slots */
.slot { background: var(--grey); }
.slot-tag {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute); pointer-events: none; z-index: 2;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease), color .5s var(--ease);
  color: var(--cream);
  mix-blend-mode: normal;
}
.nav.solid {
  background: var(--cream);
  color: var(--olive);
  padding-block: 15px;
  box-shadow: 0 1px 0 var(--grey-line);
}
.nav .brand { font-size: 19px; display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.logo-mark { display: block; height: 30px; width: auto; flex: none; }
.cr-mark { font-family: var(--serif); font-weight: 300; font-size: 36px; line-height: 1; letter-spacing: -0.01em; flex: none; }
/* Logo CD (imagen con transparencia, toma el color del texto) */
.cd-logo { display: block; flex: none; height: 34px; aspect-ratio: 588 / 312; background-color: currentColor; -webkit-mask: url("brand/logo.png") center / contain no-repeat; mask: url("brand/logo.png") center / contain no-repeat; }
.cr-mark .dot { color: var(--sage); }
.nav.solid .cr-mark .dot { color: var(--sage-deep); }
.nav .brand .cr { font-family: var(--serif); font-size: 21px; letter-spacing: .14em; }
.nav .brand .sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; line-height: 1.3; }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  position: relative; opacity: .9; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: currentColor; transition: width .4s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav .btn { padding: 11px 20px; }
.nav:not(.solid) .btn { border-color: var(--cream); background: var(--cream); color: var(--olive); }
.nav:not(.solid) .btn:hover { background: transparent; color: var(--cream); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--olive); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: var(--pad);
  overflow: hidden;
  visibility: hidden;
  transform: translateY(-100%); transition: transform .6s var(--ease), visibility 0s linear .6s;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
.mobile-menu a { font-family: var(--serif); font-size: clamp(34px, 9vw, 60px); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu .mm-close { position: absolute; top: 26px; right: var(--pad); background: none; border: 0; color: var(--cream); font-family: var(--mono); font-size: 13px; letter-spacing: .2em; cursor: pointer; }
.mobile-menu .mm-foot { margin-top: 34px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; opacity: .7; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; background: var(--olive); color: var(--cream); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .slot { width: 100%; height: 100%; background: #20231b; }
/* hero slideshow — single full-bleed image, auto crossfade */
.hero-slideshow .slot { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-slideshow .slot.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slideshow .slot { animation: kenburns 16s ease-in-out infinite alternate; }
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
}
.hero-dots { position: absolute; right: var(--pad); bottom: 28px; z-index: 4; display: flex; gap: 8px; }
.hero-dots .hd { width: 34px; height: 16px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.hero-dots .hd::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: rgba(255,253,250,.32); transition: background .4s var(--ease); }
.hero-dots .hd.on::after { background: var(--sage); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,31,23,calc(.55 * var(--hero-dim, 1))) 0%, rgba(28,31,23,calc(.15 * var(--hero-dim, 1))) 38%, rgba(28,31,23,calc(.78 * var(--hero-dim, 1))) 100%); z-index: 1; }
.hero-inner { position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(54px, 8vw, 96px); }
.hero-eyebrow { color: var(--sage); margin-bottom: 26px; }
.hero h1 { font-size: clamp(44px, 7vw, 108px); font-weight: 300; line-height: 1.03; letter-spacing: -0.025em; max-width: 15ch; }
.hero h1 em { font-style: italic; }
.hero h1 .sage { color: var(--sage); }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 66px); }
.hero-sub { font-family: var(--mono); font-size: 14px; max-width: 42ch; line-height: 1.8; opacity: .85; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll { position: absolute; left: var(--pad); bottom: 26px; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--sage); }
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll { animation: cue 2.8s var(--ease) infinite; }
  @keyframes cue { 0%, 100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(6px); opacity: 1; } }
}

.hero-top-meta { position: absolute; top: 120px; right: var(--pad); z-index: 3; text-align: right; max-width: 30ch; }
.hero-top-meta .eyebrow { color: var(--sage); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker { background: var(--sage); color: var(--olive); overflow: hidden; border-block: 1px solid var(--olive); }
.ticker-track { display: flex; gap: 0; white-space: nowrap; animation: ticker 38s linear infinite; }
.ticker-track span { font-family: var(--serif); font-size: clamp(22px, 3vw, 38px); font-style: italic; padding: 16px 0; display: inline-flex; align-items: center; }
.ticker-track span::after { content: "✦"; font-style: normal; font-size: .5em; margin: 0 38px; opacity: .6; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philo { background: var(--cream); }
.philo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.philo-quote { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 70px); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
.philo-quote u { text-decoration-thickness: 1px; text-underline-offset: 7px; text-decoration-color: var(--sage-deep); }
.philo-body p { max-width: 46ch; color: var(--ink-mute); margin: 0 0 22px; }
.philo-body .lead { color: var(--ink); font-size: 16px; }
.values { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; }
.values .v { font-family: var(--mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--olive); }
.values .v span { color: var(--sage-deep); margin-right: 10px; }

/* ============================================================
   TREATMENTS
   ============================================================ */
.tx { background: var(--paper); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 78px); }
.section-head h2 { font-size: clamp(34px, 5.4vw, 84px); font-weight: 300; max-width: 16ch; }
.section-head .sh-aside { max-width: 34ch; }
.section-head .sh-aside p { color: var(--ink-mute); margin: 14px 0 0; }

.tx-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tx-chip { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); background: none; border: 1px solid var(--grey-line); border-radius: 100px; padding: 10px 18px; cursor: pointer; transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease); }
.tx-chip:hover { color: var(--olive); border-color: var(--olive-soft); }
.tx-chip.is-on { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.tx-card.is-hidden { display: none; }

.tx-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--grey-line); border-left: 1px solid var(--grey-line); }
.tx-card {
  position: relative; padding: 0 32px 30px; border-right: 1px solid var(--grey-line); border-bottom: 1px solid var(--grey-line);
  background: var(--paper); cursor: pointer; overflow: hidden; transition: background .5s var(--ease), color .5s var(--ease);
  min-height: 280px; display: flex; flex-direction: column;
}
.tx-thumb { margin: 0 -32px 26px; aspect-ratio: 16/10; overflow: hidden; background: var(--grey); }
.tx-thumb .slot { width: 100%; height: 100%; display: block; transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.tx-card:hover .tx-thumb .slot { transform: scale(1.05); }
.tx-card .tx-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tx-card .tx-num { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-mute); transition: color .5s var(--ease); }
.tx-card .tx-price { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; color: var(--sage-deep); transition: color .5s var(--ease); }
.tx-card h3 { font-size: 30px; font-weight: 400; margin: 18px 0 14px; transition: color .5s; }
.tx-card .tx-desc { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--ink-mute); transition: color .5s; max-width: 30ch; }
.tx-card .tx-go { margin-top: auto; text-decoration: none; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: inherit; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease), gap .35s var(--ease); }anslateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease), color .5s; }
.tx-card:hover { background: var(--olive); color: var(--cream); }
.tx-card:hover .tx-num, .tx-card:hover .tx-desc { color: var(--sage); }
.tx-card:hover .tx-price { color: var(--cream); }
.tx-card:hover h3 { color: var(--cream); }
.tx-card:hover .tx-go { opacity: 1; transform: translateY(0); color: var(--sage); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--olive); color: var(--cream); }
.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-portrait { position: relative; }
.about-portrait::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid rgba(195,217,184,.4); pointer-events: none; }
.about-portrait .slot { width: 100%; aspect-ratio: 4/5; background: #24271e; }
.about-portrait .pf { position: absolute; bottom: -1px; left: -1px; right: -1px; padding: 18px 22px; background: linear-gradient(0deg, rgba(28,31,23,.92), transparent); font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--sage); }
.about-content .eyebrow { color: var(--sage); }
.about-content h2 { font-size: clamp(40px, 6vw, 96px); font-weight: 300; margin: 22px 0 6px; }
.about-content .sig { font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--sage); margin-bottom: 30px; }
.about-content .bio { font-family: var(--mono); font-size: 14.5px; line-height: 1.85; max-width: 50ch; color: rgba(255,255,255,.82); }
.about-content .bio + .bio { margin-top: 18px; }
.about-stats { display: flex; gap: 56px; margin-top: 40px; flex-wrap: wrap; }
.about-stats .st .n { font-family: var(--serif); font-size: clamp(38px, 5vw, 60px); font-weight: 300; line-height: 1; }
.about-stats .st .l { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); margin-top: 8px; }

/* ============================================================
   IMAGE BREAK (banner)
   ============================================================ */
.banner { position: relative; height: clamp(380px, 62vh, 640px); overflow: hidden; background: var(--olive); display: flex; align-items: flex-end; }
.banner > .slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,31,23,.18) 0%, rgba(28,31,23,.62) 100%); z-index: 1; pointer-events: none; }
.banner-quote { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(44px, 6vw, 80px); color: var(--cream); pointer-events: none; }
.banner-quote .eyebrow { color: var(--sage); }
.banner-quote h2 { font-size: clamp(38px, 5.6vw, 90px); font-weight: 300; margin-top: 20px; }
.banner-quote h2 em { font-style: italic; color: var(--sage); }

/* handwritten accents */
.hand { font-family: "Caveat", cursive; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; color: var(--sage); display: inline-flex; align-items: flex-end; gap: 10px; transform: rotate(-2.5deg); }
.hand .hand-arrow { width: 42px; height: 29px; flex: none; }
.banner-quote .hand { margin-top: 22px; }
.ba-hand { position: absolute; right: 6px; bottom: -48px; color: var(--sage-deep); }

/* ============================================================
   INSTAGRAM strip
   ============================================================ */
.insta { background: var(--cream); border-top: 1px solid var(--grey-line); }
.insta-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.insta-head .eyebrow { color: var(--ink-mute); }
.insta-head h2 { font-size: clamp(28px, 4vw, 56px); font-weight: 300; margin-top: 16px; }
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.insta-grid .ig { display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--grey); }
.insta-grid .ig .slot { width: 100%; height: 100%; display: block; transition: transform 1.1s var(--ease); }
.insta-grid .ig:hover .slot { transform: scale(1.05); }

/* ============================================================
   RESULTS (before/after)
   ============================================================ */
.results { background: var(--cream); }
.ba { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.ba-visual { position: relative; }
.ba-stage { position: relative; aspect-ratio: 4/5; background: var(--grey); overflow: hidden; }
.ba-stage .slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-after { z-index: 1; }
.ba-before { position: absolute; z-index: 2; inset: 0; clip-path: inset(0 50% 0 0); }
.ba-before .slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-before-inner { position: relative; height: 100%; width: 100%; }
.ba-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--cream); transform: translateX(-50%); cursor: ew-resize; }
.ba-handle .knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.ba-handle .knob::before { content: "‹ ›"; font-family: var(--mono); font-size: 14px; color: var(--olive); letter-spacing: -1px; }
.ba-tag { position: absolute; z-index: 4; top: 16px; padding: 7px 13px; border-radius: 999px; background: rgba(28,31,23,.6); color: var(--cream); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; backdrop-filter: blur(4px); }
.ba-tag.t-before { left: 16px; }
.ba-tag.t-after { right: 16px; }
.ba-caption .eyebrow { color: var(--ink-mute); }
.ba-caption h3 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 300; margin: 20px 0 22px; }
.ba-caption .justified { color: var(--ink-mute); font-size: 13.5px; max-width: 42ch; }
.ba-note { margin-top: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-mute); border-top: 1px solid var(--grey-line); padding-top: 18px; }

/* ============================================================
   CTA / RESERVA
   ============================================================ */
.cta { background: var(--sage); color: var(--olive); text-align: center; }
.cta-seal { display: block; margin: 0 auto 34px; height: 112px; color: var(--olive); }
@media (prefers-reduced-motion: no-preference) {
  .cta-seal .seal-ring { transform-origin: 50% 50%; transform-box: fill-box; animation: sealspin 46s linear infinite; }
  @keyframes sealspin { to { transform: rotate(360deg); } }
}
.cta .inner { max-width: 920px; margin: 0 auto; }
.cta .eyebrow { color: var(--olive-soft); justify-content: center; }
.cta h2 { font-size: clamp(40px, 7vw, 110px); font-weight: 300; line-height: 1; margin: 24px 0 0; }
.cta h2 em { font-style: italic; }
.cta p { font-family: var(--mono); font-size: 14px; max-width: 48ch; margin: 30px auto 0; color: var(--olive-soft); }
.cta p strong { color: var(--olive); font-weight: 500; }
.cta-actions { display: flex; gap: 16px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--olive); color: var(--cream); padding-block: clamp(56px, 8vw, 96px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .f-brand .f-logo { display: block; height: 56px; font-size: 64px; color: var(--cream); }
.social-row { display: flex; gap: 14px; margin-top: 26px; }
.icon-btn { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--cream); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.icon-btn svg { width: 20px; height: 20px; display: block; }
.icon-btn:hover { background: var(--sage); border-color: var(--sage); color: var(--olive); transform: translateY(-2px); }
.footer .f-brand p { font-family: var(--mono); font-size: 12.5px; color: rgba(255,255,255,.6); max-width: 34ch; margin-top: 18px; line-height: 1.8; }
.footer .col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--sage); font-weight: 500; margin: 0 0 20px; }
.footer .col a, .footer .col p { display: block; font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,.78); margin-bottom: 12px; transition: color .3s; }
.footer .col a:hover { color: var(--sage); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 30px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.5); }

/* ============================================================
   PILLARS (Enfoque)
   ============================================================ */
.pillars { background: var(--cream); border-top: 1px solid var(--grey-line); }
.pillars-head { margin-bottom: clamp(40px, 6vw, 70px); max-width: 40ch; }
.pillars-head .eyebrow { color: var(--ink-mute); }
.pillars-head h2 { font-size: clamp(30px, 4.4vw, 60px); font-weight: 300; margin-top: 22px; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.pillar { border-top: 1px solid var(--olive); padding-top: 24px; }
.pillar .pillar-img { aspect-ratio: 4/3; overflow: hidden; margin-bottom: 24px; }
.pillar .pillar-img .slot { width: 100%; height: 100%; display: block; transition: transform 1.2s var(--ease); }
.pillar:hover .pillar-img .slot { transform: scale(1.045); }
.pillar .p-num { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--sage-deep); }
.pillar h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 400; margin: 20px 0 16px; }
.pillar p { font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--ink-mute); max-width: 34ch; }

/* ============================================================
   TRUST strip
   ============================================================ */
.trust { background: var(--olive); color: var(--cream); padding-block: clamp(40px, 6vw, 72px); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.trust-item { background: var(--olive); padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.trust-item .ti-num { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--sage); }
.trust-item .ti-txt { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 23px); font-weight: 300; line-height: 1.2; }
.trust-item .ti-txt b { color: var(--sage); font-weight: 300; font-style: italic; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testi { background: var(--olive); color: var(--cream); }
.testi-head { max-width: 50ch; margin-bottom: clamp(36px, 5vw, 64px); }
.testi-head .eyebrow { color: var(--sage); }
.testi-head h2 { font-size: clamp(30px, 4.4vw, 60px); font-weight: 300; margin-top: 22px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.t-card { background: var(--olive); margin: 0; padding: 34px 32px 30px; display: flex; flex-direction: column; gap: 16px; }
.t-mark { font-family: var(--serif); font-size: 58px; line-height: .55; color: var(--sage); }
.t-card blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; }
.t-card figcaption { margin-top: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--sage); }

/* ============================================================
   CONSEJOS / APRENDE
   ============================================================ */
.learn { background: var(--cream); }
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.6vw, 38px); }
.learn-card { display: flex; flex-direction: column; gap: 14px; }
.learn-card .lc-img { aspect-ratio: 16/11; overflow: hidden; background: var(--grey); }
.learn-card .lc-img .slot { width: 100%; height: 100%; display: block; transition: transform 1.1s var(--ease); }
.learn-card:hover .lc-img .slot { transform: scale(1.05); }
.learn-card .lc-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--sage-deep); margin-top: 6px; }
.learn-card h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; line-height: 1.15; max-width: 24ch; }
.learn-card .lc-go { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); display: inline-flex; gap: 8px; transition: color .3s, gap .35s var(--ease); }
.learn-card:hover .lc-go { color: var(--olive); gap: 14px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-intro { position: sticky; top: 120px; }
.faq-intro .eyebrow { color: var(--ink-mute); }
.faq-intro h2 { font-size: clamp(32px, 4.6vw, 66px); font-weight: 300; margin: 22px 0 22px; }
.faq-intro p { color: var(--ink-mute); max-width: 32ch; font-size: 13.5px; }
.faq-intro .btn { margin-top: 30px; }
.faq-list { border-top: 1px solid var(--grey-line); counter-reset: faq; }
.faq-q { border-bottom: 1px solid var(--grey-line); }
.faq-q button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 26px 4px; font-family: var(--serif); font-size: clamp(19px, 1.9vw, 26px); font-weight: 400; color: var(--ink);
  transition: color .3s;
}
.faq-q button:hover { color: var(--olive-soft); }
.faq-q button::before { counter-increment: faq; content: "(0" counter(faq) ")"; font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--sage-deep); flex: none; margin-top: 9px; }
.faq-q button span:first-child { flex: 1; }
.faq-q .sign { font-family: var(--mono); font-size: 22px; line-height: 1; color: var(--sage-deep); transition: transform .4s var(--ease); flex: none; margin-top: 4px; }
.faq-q.open .sign { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a .faq-a-inner { padding: 0 4px 28px; font-family: var(--mono); font-size: 13px; line-height: 1.85; color: var(--ink-mute); max-width: 60ch; }

/* ============================================================
   FLOATING WHATSAPP + SCROLL PROGRESS
   ============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--sage-deep); transform-origin: 0 50%; transform: scaleX(0); z-index: 96; pointer-events: none; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 85; width: 58px; height: 58px; border-radius: 50%; background: var(--sage); color: var(--olive); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 32px rgba(28,31,23,.28); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--olive); color: var(--sage); }
.wa-float svg { width: 27px; height: 27px; }

/* ============================================================
   REVEAL animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav .nav-cta .btn { display: none; }
  .philo-grid, .about-grid, .ba, .tx-grid { grid-template-columns: 1fr; }
  .tx-grid { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: 1fr; gap: 0; }
  .pillar { border-top: 1px solid var(--grey-line); padding: 24px 0; }
  .pillar:first-child { border-top: 1px solid var(--olive); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .insta-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .learn-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-top-meta { display: none; }
  .about-grid { gap: 40px; }
  .about-portrait { max-width: 440px; }
}
@media (max-width: 620px) {
  .tx-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 26px; }
  .section-head { align-items: flex-start; }
  .about-stats { gap: 36px; }
}

/* tweaks-driven variants */
body[data-accent="warm"] { --sage: #d8c9a6; --sage-deep: #c2ad7e; }
body[data-accent="mono"] { --sage: #d6d8cf; --sage-deep: #b4b8a8; }

/* treatment hover fill */
body[data-txhover="sage"] .tx-card:hover { background: var(--sage); color: var(--olive); }
body[data-txhover="sage"] .tx-card:hover .tx-num,
body[data-txhover="sage"] .tx-card:hover .tx-desc,
body[data-txhover="sage"] .tx-card:hover .tx-go { color: var(--olive-soft); }
body[data-txhover="sage"] .tx-card:hover h3 { color: var(--olive); }

/* ============ Tratamientos por unidades (como el post "Nuestros servicios") ============ */
.txu-panels { border-top: 1px solid var(--grey-line); }
.txu { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); padding-top: clamp(28px, 4vw, 48px); animation: txuIn .6s var(--ease) both; }
.txu.is-hidden { display: none; }
@keyframes txuIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.txu-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; position: sticky; top: 100px; }
.txu-ph { overflow: hidden; background: var(--grey); aspect-ratio: 1 / 1; }
.txu-ph:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.txu-media .txu-ph:nth-child(2):last-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.txu-ph .slot { width: 100%; height: 100%; display: block; transition: transform 1.2s var(--ease); }
.txu-ph:hover .slot { transform: scale(1.04); }
.txu-head { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 18px; padding-bottom: 22px; }
.txu-num { font-family: var(--mono); font-size: 13px; color: var(--ink-mute); grid-row: 2; }
.txu-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); grid-column: 2; text-align: right; }
.txu-head h3 { grid-column: 2; grid-row: 2; text-align: right; font-size: clamp(32px, 4vw, 54px); font-weight: 300; margin: 6px 0 0; }
.txu-head h3 .sage { color: var(--sage-deep); }
.txu-head p { grid-column: 1 / -1; font-family: var(--mono); font-size: 12.5px; color: var(--ink-mute); margin: 14px 0 0; text-align: right; }
.txu-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--grey-line); }
.txu-list li + li { border-top: 1px solid var(--grey-line); }
.txu-item { display: grid; grid-template-columns: 1fr auto; column-gap: 18px; padding: 16px 20px; text-decoration: none; color: inherit; transition: background .4s var(--ease), color .4s var(--ease); }
.txu-name { font-family: var(--mono); font-size: 13.5px; letter-spacing: .01em; }
.txu-tag { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); border: 1px solid currentColor; border-radius: 100px; padding: 3px 9px; margin-left: 8px; white-space: nowrap; vertical-align: 1px; }
.txu-desc { grid-column: 1; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--ink-mute); margin-top: 4px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .45s var(--ease); }
.txu-arrow { grid-column: 2; grid-row: 1; align-self: center; font-family: var(--mono); color: var(--ink-mute); transition: transform .35s var(--ease), color .35s; }
.txu-item:hover, .txu-item:focus-visible { background: var(--olive); color: var(--cream); }
.txu-item:hover .txu-desc, .txu-item:focus-visible .txu-desc { max-height: 60px; opacity: 1; color: var(--sage); }
.txu-item:hover .txu-arrow, .txu-item:focus-visible .txu-arrow { color: var(--sage); transform: translateX(4px); }
.txu-item:hover .txu-tag { color: var(--sage); }
@media (hover: none) { .txu-desc { max-height: none; opacity: 1; } }
@media (max-width: 900px) {
  .txu { grid-template-columns: 1fr; }
  .txu-media { position: static; grid-template-columns: 1fr 1fr 1fr; }
  .txu-ph, .txu-ph:first-child, .txu-media .txu-ph:nth-child(2):last-child { grid-column: auto; aspect-ratio: 1 / 1; }
  .txu-media .txu-ph:nth-child(2):last-child { grid-column: span 2; aspect-ratio: auto; }
  .txu-item { padding: 14px 16px; }
}
.cta-where { margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; opacity: .8; }

/* En el estilo original el Instagram muestra solo 4 fotos */
body:not(.ed) .insta-grid .ig:nth-child(n+5) { display: none; }

/* Retrato de "Sobre mí": siempre vertical 4:5 */
.about-portrait { max-width: 480px; }
.about-portrait .slot { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; }

/* ============================================================
   UBICACIÓN
   ============================================================ */
.loc { background: var(--paper); border-top: 1px solid var(--grey-line); }
.loc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.loc-map { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: var(--grey); box-shadow: 0 1px 0 var(--grey-line); }
.loc-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.75) contrast(.98); }
.loc-info h2 { font-size: clamp(30px, 4vw, 54px); font-weight: 300; margin: 20px 0 28px; }
.loc-card { background: var(--cream); border: 1px solid var(--grey-line); border-radius: 14px; padding: 22px 24px; margin-bottom: 14px; }
.loc-card .loc-city { font-family: var(--mono); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--sage-deep); display: flex; align-items: center; gap: 10px; }
.loc-card .loc-city em { font-style: normal; letter-spacing: .14em; color: var(--ink-mute); border: 1px solid var(--grey-line); border-radius: 100px; padding: 3px 9px; font-size: 9.5px; }
.loc-card h3 { font-size: 26px; font-weight: 400; margin: 10px 0 6px; }
.loc-card p { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--ink-mute); margin: 4px 0; }
.loc-card .loc-hours { color: var(--ink); }
.loc-card.is-soon { background: transparent; border-style: dashed; }
.loc-link { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.loc-link:hover { color: var(--sage-deep); }
.loc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 900px) { .loc-grid { grid-template-columns: 1fr; } }
/* estilo editorial */
.ed .loc { background: var(--ed-bg); border-color: var(--ed-line); }
.ed .loc-map { border-radius: 0; }
.ed .loc-card { background: #fff; border-color: var(--ed-line); }
.ed .loc-card.is-soon { background: transparent; }

/* ============================================================
   TARJETA REGALO
   ============================================================ */
.gift { background: var(--cream); border-top: 1px solid var(--grey-line); overflow: hidden; }
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.gift-visual { position: relative; aspect-ratio: 1.25; display: grid; place-items: center; }
.gift-card {
  position: relative; width: 82%; aspect-ratio: 1.586; border-radius: 18px; padding: 7% 8%;
  background: var(--olive); color: var(--cream); display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 30px 60px -28px rgba(28,31,23,.55); transform: rotate(-4deg); transition: transform .8s var(--ease);
}
.gift-card--back { position: absolute; background: var(--sage); transform: rotate(5deg) translate(6%, 4%); box-shadow: none; }
.gift-visual:hover .gift-card:not(.gift-card--back) { transform: rotate(-1deg) translateY(-6px); }
.gift-card .cd-logo { height: 30px; color: var(--cream); }
.gc-kicker { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; }
.gc-title { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.05; }
.gc-title em { color: var(--sage); }
.gc-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.gift-info h2 { font-size: clamp(30px, 4vw, 54px); font-weight: 300; margin: 20px 0 18px; }
.gift-info h2 em { color: var(--sage-deep); }
.gift-info > p { font-family: var(--mono); font-size: 13.5px; line-height: 1.8; color: var(--ink-mute); max-width: 46ch; }
.gift-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.gift-chip { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-decoration: none; color: var(--ink); border: 1px solid var(--ink); border-radius: 100px; padding: 11px 18px; transition: background .3s var(--ease), color .3s var(--ease); }
.gift-chip:hover { background: var(--olive); color: var(--cream); }
.gift-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--grey-line); }
.gift-steps li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--grey-line); font-family: var(--mono); font-size: 13px; color: var(--ink); }
.gift-steps li span { color: var(--sage-deep); font-size: 11px; letter-spacing: .1em; padding-top: 2px; }
@media (max-width: 900px) { .gift-grid { grid-template-columns: 1fr; } .gift-visual { max-width: 460px; margin: 0 auto; width: 100%; } }
/* estilo editorial */
.ed .gift { background: var(--ed-stone); border-color: var(--ed-line); }
.ed .gift-chip { border-radius: 0; border-color: transparent; background: #fff; }
.ed .gift-chip:hover { background: var(--olive); color: var(--cream); }
.ed .gift-steps, .ed .gift-steps li { border-color: var(--ed-line); }

/* ============================================================
   PÁGINAS LEGALES
   ============================================================ */
.legal-page { background: var(--cream); }
.legal-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px var(--pad); border-bottom: 1px solid var(--grey-line); }
.legal-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; }
.legal-brand .cd-logo { height: 30px; }
.legal-back { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.legal-main { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--pad); }
.legal-main h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 300; margin: 18px 0 8px; }
.legal-date { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-mute); margin-bottom: 40px; }
.legal-main h2 { font-size: 22px; font-weight: 400; margin: 38px 0 12px; }
.legal-main p, .legal-main li { font-family: var(--mono); font-size: 13.5px; line-height: 1.85; color: var(--ink); }
.legal-main ul { padding-left: 18px; }
.legal-main a { color: var(--ink); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--grey-line); }
.legal-nav a { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.pendiente { background: #fff3b0; color: #6b5800; padding: 1px 6px; border-radius: 4px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { color: inherit; text-decoration: none; opacity: .8; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }
.ed.legal-page { background: var(--ed-bg); }
.loc-map { position: relative; }
.loc-map-load { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(47,51,39,.06) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(47,51,39,.06) 39px 40px), var(--grey); color: var(--ink); font-family: var(--mono); }
.loc-pin { color: var(--sage-deep); font-size: 22px; }
.loc-map-t { font-family: var(--serif); font-size: 24px; font-weight: 300; }
.loc-map-b { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--ink); border-radius: 100px; padding: 10px 20px; transition: background .3s, color .3s; }
.loc-map-load:hover .loc-map-b { background: var(--olive); color: var(--cream); }
.loc-map-n { font-size: 10.5px; color: var(--ink-mute); }
.ed .loc-map-b { border-radius: 0; }

/* Fotos como <img>: rellenan su hueco */
img.slot { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Huecos de foto pendientes (antes / después) */
.slot-empty { display: block; width: 100%; height: 100%; background: var(--grey); }

/* ============================================================
   ACCESO AL ANÁLISIS DE PIEL CON IA
   ============================================================ */
.ai-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; max-width: 720px; margin: 34px auto 0; padding: 20px 24px; text-align: left; text-decoration: none; color: var(--olive); background: var(--cream); border-radius: 18px; box-shadow: 0 18px 40px -26px rgba(28,31,23,.45); transition: transform .4s var(--ease); }
.ai-card:hover { transform: translateY(-3px); }
.ai-scan { position: relative; width: 58px; height: 58px; border-radius: 14px; background: var(--olive); overflow: hidden; flex: none; }
.ai-scan::before { content: ""; position: absolute; inset: 9px; border: 1.5px solid var(--sage); border-radius: 50% 50% 45% 45%; }
.ai-scan i { position: absolute; left: 6px; right: 6px; height: 2px; background: var(--sage); box-shadow: 0 0 10px 2px rgba(195,217,184,.8); animation: aiScan 1.8s ease-in-out infinite alternate; }
@keyframes aiScan { from { top: 8px; } to { top: 48px; } }
.ai-txt small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 4px; }
.ai-txt strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; }
.ai-txt > span { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute); margin-top: 4px; }
.ai-go { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
@media (max-width: 620px) { .ai-card { grid-template-columns: auto 1fr; } .ai-go { grid-column: 1 / -1; justify-self: start; } }
.ed .ai-card { border-radius: 0; }

/* ============================================================
   CD SKIN LAB — logotipo: logo CD pequeño + "Skin Lab"
   ============================================================ */
.skin-lab { font-family: var(--serif); font-weight: 300; white-space: nowrap; letter-spacing: -0.01em; text-transform: none; }
.skin-lab * { text-transform: none; }
.skin-lab .sl-logo { display: inline-block; height: .7em; width: auto; aspect-ratio: 588 / 312; vertical-align: -0.02em; margin-right: .26em; }
.link-underline .skin-lab { font-size: 1.5em; letter-spacing: 0; vertical-align: -0.08em; }
.ai-txt strong .skin-lab { font-size: 1.08em; }

/* Texto solo para lectores de pantalla */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Opiniones reales de Google */
.t-stars { color: var(--sage-deep); letter-spacing: .12em; font-size: 14px; }
.testi-rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; text-decoration: none; color: inherit; font-family: var(--mono); font-size: 12px; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.testi-rating b { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.testi .t-mark { display: none; }
.ed .testi .t-stars { color: #b8963e; }

/* ============================================================
   MINI ESCÁNER ANIMADO (botón CD Skin Lab)
   ============================================================ */
.mini-scan { position: relative; display: inline-block; width: 26px; height: 26px; flex: none; vertical-align: middle; overflow: hidden; border-radius: 6px; }
.mini-scan svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; }
.mini-scan .ms-face { stroke-width: 1.8; }
.mini-scan .ms-mesh { stroke-width: .8; opacity: .45; }
.mini-scan .ms-line { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: var(--sage); box-shadow: 0 0 8px 2px rgba(195,217,184,.9); animation: msScan 1.6s ease-in-out infinite alternate; }
@keyframes msScan { from { top: 2px; } to { top: calc(100% - 4px); } }
@media (prefers-reduced-motion: reduce) { .mini-scan .ms-line { animation: none; top: 50%; } }

/* botón del inicio: mismo peso que «Reservar valoración» */
.btn.btn-scan { display: inline-flex; align-items: center; gap: 12px; background: rgba(255,253,250,.12); border: 1px solid var(--sage); color: var(--cream); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); position: relative; }
.btn.btn-scan:hover { background: var(--sage); color: var(--olive); }
.btn.btn-scan::after { content: "Nuevo"; position: absolute; top: -9px; right: 14px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; background: var(--sage); color: var(--olive); padding: 2px 7px; border-radius: 100px; }
.ed .hero .btn.btn-scan { background: rgba(255,253,250,.14); border-color: var(--sage); color: #fff; }
.ed .hero .btn.btn-scan:hover { background: var(--sage); color: var(--olive); }

/* enlace del menú */
.nav-links .nav-scan { display: inline-flex; align-items: center; gap: 8px; }
.nav-links .nav-scan .mini-scan { width: 20px; height: 20px; }
.mobile-menu .mm-scan { display: flex; align-items: center; gap: 14px; }
.mobile-menu .mm-scan .mini-scan { width: 34px; height: 34px; }
/* ajustes del botón y menú con el escáner */
body:not(.ed) .nav-links { gap: 26px; }
body:not(.ed) .nav-links a { font-size: 11px; letter-spacing: .12em; }
@media (max-width: 1280px) { body:not(.ed) .nav-links .nav-scan { display: none; } }
@media (max-width: 620px) {
  .btn.btn-scan { white-space: normal; text-align: left; max-width: 100%; line-height: 1.5; padding-right: 18px; }
  .btn.btn-scan::after { right: 10px; }
}
/* logo CD pequeño dentro del botón y del menú */
.btn-scan .skin-lab { font-size: 1.45em; letter-spacing: 0; vertical-align: -0.06em; }
.mm-scan .skin-lab { letter-spacing: 0; }
.mm-scan .mm-sl { display: flex; flex-direction: column; gap: 6px; }
.mm-scan .mm-sl small { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }

/* Portada: foto de Carlos encuadrada para que la cara se vea siempre */
#hero-img-1 { object-position: 45% 12%; }
body:not(.ed) #hero-img-1 { object-position: 50% 6%; }

/* ============================================================
   ESTILO ORIGINAL — PORTADA CON UNA SOLA FOTO
   Texto sobre verde oliva a la izquierda y la foto de Carlos a la derecha.
   En móvil: foto arriba y texto debajo sobre oliva.
   ============================================================ */
body:not(.ed) .hero-slideshow .slot:not(#hero-img-1) { display: none; }
body:not(.ed) .hero-slideshow #hero-img-1 { opacity: 1; animation: none; }
body:not(.ed) .hero-dots { display: none; }
body:not(.ed) .hero-media::after { background: none; }
@media (min-width: 621px) {
  body:not(.ed) .hero { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: stretch; min-height: 100vh; background: var(--olive); }
  body:not(.ed) .hero-media { position: relative; inset: auto; grid-column: 2; grid-row: 1; }
  body:not(.ed) .hero-slideshow #hero-img-1 { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 40% 18%; }
  body:not(.ed) .hero-inner { grid-column: 1; grid-row: 1; align-self: end; max-width: none; padding: 140px clamp(28px, 4.5vw, 72px) clamp(54px, 7vw, 90px); }
  body:not(.ed) .hero h1 { font-size: clamp(38px, 4.4vw, 72px); }
  body:not(.ed) .hero-row { flex-direction: column; align-items: flex-start; gap: 26px; margin-top: 30px; }
  body:not(.ed) .hero-actions { flex-direction: column; align-items: flex-start; }
  body:not(.ed) .hero-top-meta { right: auto; left: clamp(28px, 4.5vw, 72px); top: 120px; text-align: left; }
  body:not(.ed) .hero-scroll { display: none; }
}
@media (max-width: 620px) {
  body:not(.ed) .hero { display: block; min-height: 0; padding-top: 0; }
  body:not(.ed) .hero-media { position: relative; inset: auto; height: 66vh; }
  body:not(.ed) .hero-slideshow #hero-img-1 { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 40% 0%; }
  body:not(.ed) .hero-top-meta, body:not(.ed) .hero-scroll, body:not(.ed) .hero-eyebrow { display: none; }
  body:not(.ed) .hero-inner { padding: 30px var(--pad) 46px; }
}
/* original: menú siempre sólido (crema) y botón principal visible sobre oliva */
body:not(.ed) .nav, body:not(.ed) .nav.solid { background: var(--cream); color: var(--olive); box-shadow: 0 1px 0 var(--grey-line); padding-block: 15px; }
body:not(.ed) .nav:not(.solid) .btn { border-color: var(--olive); background: var(--olive); color: var(--cream); }
body:not(.ed) .nav:not(.solid) .btn:hover { background: transparent; color: var(--olive); }
body:not(.ed) .nav .cr-mark .dot { color: var(--sage-deep); }
body:not(.ed) .hero .hero-actions .btn:not(.btn-scan) { background: var(--sage); border-color: var(--sage); color: var(--olive); }
body:not(.ed) .hero .hero-actions .btn:not(.btn-scan):hover { background: var(--cream); border-color: var(--cream); }
@media (min-width: 621px) { body:not(.ed) .hero-media { margin-top: 78px; } body:not(.ed) .hero-top-meta { top: 110px; } }
@media (max-width: 620px) { body:not(.ed) .hero { padding-top: 70px; } }


/* Unidad Capilar: foto de Carlos grande arriba, cabello en banda */
.txu[data-cat="capilar"] .txu-ph:first-child { aspect-ratio: 1 / 1; }
.txu[data-cat="capilar"] .txu-ph:first-child .slot { object-position: center 30%; }
@media (max-width: 900px) {
  .txu[data-cat="capilar"] .txu-ph:first-child { grid-column: span 2; aspect-ratio: 1 / 1; }
  .txu[data-cat="capilar"] .txu-media .txu-ph:nth-child(2):last-child { grid-column: auto; aspect-ratio: auto; }
}

/* Selector de casos antes/después */
.ba-cases { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ba-stage img.slot { object-fit: cover; transition: opacity .35s var(--ease); }
.ba-stage.is-swapping img.slot { opacity: 0; }

/* Comparador antes/después más pequeño (las fotos no pierden resolución) */
.ba { grid-template-columns: minmax(0, 400px) minmax(0, 520px); justify-content: center; }
.ba-visual { width: 100%; max-width: 400px; margin-inline: auto; }
@media (max-width: 900px) { .ba { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .ba-visual { margin-bottom: 44px; } }
.ba-stage.is-square { aspect-ratio: 1 / 1; }
.ba-stage.is-square { max-width: 340px; margin-inline: auto; }
@media (max-width: 900px) { .ba-stage.is-square { max-width: 300px; } }

/* Unidad Corporal: las dos fotos juntas y a la misma altura */
.txu[data-cat="corporal"] .txu-media, .txu[data-cat="capilar"] .txu-media, .txu[data-cat="piel"] .txu-media { grid-template-columns: 1fr 1fr; }
.txu[data-cat="corporal"] .txu-ph,
.txu[data-cat="corporal"] .txu-ph:first-child,
.txu[data-cat="corporal"] .txu-media .txu-ph:nth-child(2):last-child { grid-column: auto; aspect-ratio: 4 / 5; }
.txu[data-cat="capilar"] .txu-ph,
.txu[data-cat="capilar"] .txu-ph:first-child,
.txu[data-cat="capilar"] .txu-media .txu-ph:nth-child(2):last-child { grid-column: auto; aspect-ratio: 4 / 5; }
.txu[data-cat="piel"] .txu-ph,
.txu[data-cat="piel"] .txu-ph:first-child,
.txu[data-cat="piel"] .txu-media .txu-ph:nth-child(2):last-child { grid-column: auto; aspect-ratio: 4 / 5; }
/* Una sola foto en la unidad: ocupa todo el ancho */
.txu .txu-media .txu-ph:only-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
#txu-piel-2 { object-position: center 60%; }

/* Franja de pausa: solo frase sobre color oliva, sin foto */
body .banner.banner-texto { background: var(--olive); height: auto; align-items: center; padding: clamp(72px, 12vw, 140px) 0; }
body .banner.banner-texto::after { display: none; }
.banner-texto .banner-quote { padding-bottom: 0; text-align: center; }
.banner-texto .banner-quote h2 { max-width: 16ch; margin-inline: auto; }

/* Newsletter (Brevo) */
.news-box { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px,4vw,64px); align-items: center; background: var(--grey); padding: clamp(28px,5vw,64px); }
.news-copy h2 { font-size: clamp(30px,3.6vw,52px); font-weight: 300; margin: 14px 0 12px; }
.news-copy h2 em { font-style: italic; color: var(--sage-deep); }
.news-copy p { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--ink-mute); margin: 0; }
.news-form { display: grid; gap: 14px; }
.news-field input { width: 100%; box-sizing: border-box; font: inherit; font-family: var(--mono); font-size: 15px; padding: 16px 18px; border: 1px solid var(--grey-line); background: var(--cream); color: var(--olive); border-radius: 0; }
.news-field input:focus { outline: none; border-color: var(--olive); }
.news-consent { display: flex; gap: 10px; align-items: flex-start; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--ink-mute); }
.news-consent input { margin-top: 3px; accent-color: var(--olive); }
.news-consent a { color: inherit; }
.news-form .btn { justify-self: start; }
.news-ok { font-family: var(--mono); font-size: 13px; color: var(--olive); background: var(--sage); padding: 12px 14px; margin: 0; }
.news-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) { .news-box { grid-template-columns: 1fr; } .news-form .btn { justify-self: stretch; justify-content: center; } }
body .news-form .btn { background: var(--olive); color: var(--cream); border: 1px solid var(--olive); padding: 16px 26px; }
body .news-form .btn:hover { background: transparent; color: var(--olive); }

/* Fotos de tratamientos en carrusel (solo móvil) */
@media (max-width: 900px) {
  body .txu .txu-media { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-right: calc(-1 * var(--pad, 20px)); padding-right: var(--pad, 20px); scrollbar-width: none; }
  body .txu .txu-media::-webkit-scrollbar { display: none; }
  body .txu .txu-media .txu-ph { flex: 0 0 82%; aspect-ratio: 4 / 5 !important; scroll-snap-align: start; grid-column: auto !important; }
  body .txu .txu-media .txu-ph:only-child { flex-basis: 100%; }
}
@media (max-width: 900px) {
  .txu-dots { display: flex; justify-content: center; gap: 7px; margin: 12px 0 2px; }
  .txu-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--grey-line, #d9d9d6); transition: background .3s, transform .3s; }
  .txu-dots i.on { background: var(--olive); transform: scale(1.25); }
}
@media (min-width: 901px) { .txu-dots { display: none; } }
