/* =============================================================
   CMD · Centro Médico Dermatológico — sistema editorial
   Los colores y tipografías salen de las variables de abajo:
   cambiando esos valores cambia toda la web.
   (El archivo conserva los temas de las otras marcas del grupo
   por si en algún momento se suma una segunda página.)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root,
[data-brand="cmd"] {
  --bg:        #f3f6f6;
  --bg-2:      #e6eeee;
  --paper:     #ffffff;
  --ink:       #0f2427;
  --ink-soft:  #2d4549;
  --ink-mute:  #62797b;
  --accent:      #0d7f8a;
  --accent-deep: #07565e;
  --accent-soft: #86d3d4;
  --dark:        #0b1e21;

  --bg-rgb: 243 246 246;
  --ink-rgb: 15 36 39;
  --accent-rgb: 13 127 138;
  --accent-soft-rgb: 134 211 212;
  --dark-rgb: 11 30 33;

  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.045em;
  --line: rgb(var(--ink-rgb) / .12);
}

[data-brand="stok"] {
  --bg:        #f8f1ef;
  --bg-2:      #efe2df;
  --ink:       #2a161b;
  --ink-soft:  #4d343a;
  --ink-mute:  #8a6d73;
  --accent:      #a8243a;
  --accent-deep: #741626;
  --accent-soft: #e4aeb7;
  --dark:        #3a0f18;

  --bg-rgb: 248 241 239;
  --ink-rgb: 42 22 27;
  --accent-rgb: 168 36 58;
  --accent-soft-rgb: 228 174 183;
  --dark-rgb: 58 15 24;

  --display: "Cormorant Garamond", "Georgia", serif;
  --display-weight: 500;
  --display-tracking: -0.02em;
  --line: rgb(var(--ink-rgb) / .13);
}

[data-brand="home"] {
  --bg:        #f4f2f0;
  --bg-2:      #eae6e3;
  --ink:       #171b1c;
  --ink-soft:  #3a4143;
  --ink-mute:  #737a7b;
  --accent:      #171b1c;
  --accent-deep: #000000;
  --accent-soft: #cfd3d3;
  --dark:        #121516;

  --bg-rgb: 244 242 240;
  --ink-rgb: 23 27 28;
  --accent-rgb: 23 27 28;
  --accent-soft-rgb: 207 211 211;
  --dark-rgb: 18 21 22;

  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.045em;
  --line: rgb(var(--ink-rgb) / .12);
}

:root {
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Georgia", serif;

  --cmd: #0d7f8a;
  --stok: #a8243a;

  --gutter: clamp(1.15rem, 4vw, 3rem);
  --max: 1360px;
  --radius: 20px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-io:   cubic-bezier(0.76, 0, 0.24, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--ink-soft); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); line-height: .98;
  color: var(--ink); text-wrap: balance;
}
em { font-style: italic; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

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

/* serif italic como acento en CUALQUIER marca */
.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* =============================================================
   3. Tipografía editorial
   ============================================================= */
.label {
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute);
}
.label b { color: var(--accent); font-weight: 600; }

.display-xl { font-size: clamp(3.1rem, 10.5vw, 9.6rem); }
.display-l  { font-size: clamp(2.5rem, 7vw, 6rem); }
.display-m  { font-size: clamp(2rem, 4.8vw, 3.9rem); }
[data-brand="stok"] .display-xl { font-size: clamp(3.5rem, 11.5vw, 10.5rem); line-height: .9; }
[data-brand="stok"] .display-l  { font-size: clamp(2.9rem, 8vw, 6.8rem); line-height: .92; }
[data-brand="stok"] .display-m  { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }

/* =============================================================
   4. Botones y enlaces
   ============================================================= */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--bg);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1.05rem 1.65rem; border-radius: 999px;
  font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: -0.005em;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: color .5s var(--ease-out), transform .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease-io);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; }
.btn .arrow {
  display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: rgb(255 255 255 / .16); transition: transform .5s var(--ease-out);
}
.btn:hover .arrow { transform: rotate(-45deg); }
.btn-accent { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn-accent::before { background: var(--ink); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--bg); }
.btn-sm { padding: .72rem 1.15rem; font-size: .86rem; }

.link {
  position: relative; display: inline-flex; gap: .4rem; align-items: center;
  font-weight: 500; color: var(--ink);
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(.35);
  transition: transform .6s var(--ease-io);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }

.has-magnetic { isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; gap: inherit; transition: transform .8s var(--ease-soft); }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center; background: var(--dark); color: #fff;
  transition: opacity .7s var(--ease-out), visibility 0s .7s;
  animation: splashSafety .01s 2s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-word {
  font-family: var(--display); font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  overflow: hidden; display: block;
}
.splash-word span { display: inline-block; animation: splashUp 1s var(--ease-out) both; }
@keyframes splashUp { from { transform: translateY(105%); } to { transform: none; } }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 1.1rem 0; color: var(--ink);
  transition: background-color .5s var(--ease-out), padding .5s var(--ease-out),
              color .5s var(--ease-out), transform .6s var(--ease-out);
}
.nav.is-scrolled {
  background: rgb(var(--bg-rgb) / .88);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  padding: .65rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner {
  width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .65rem; margin-right: auto; color: inherit; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-pair { display: flex; }
.brand-pair span { width: 30px; height: 30px; }
.brand-pair span + span { margin-left: -8px; }
.brand-pair svg { width: 100%; height: 100%; }
.brand-name { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1; }
[data-brand="stok"] .brand-name { font-size: 1.45rem; letter-spacing: .02em; }
.brand-name small {
  display: block; margin-top: .22rem;
  font-family: var(--sans); font-size: .6rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; opacity: .65;
}

.nav-links { display: none; gap: 1.9rem; font-size: .9rem; }
.nav-links a { position: relative; opacity: .82; transition: opacity .3s; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-io);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-actions .btn { display: none; }
.nav-switch {
  display: none; align-items: center; gap: .45rem; font-size: .82rem; opacity: .8;
  padding: .5rem .85rem; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor;
  transition: opacity .3s;
}
.nav-switch:hover { opacity: 1; }
.nav-switch i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }

.nav-burger {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-content: center; gap: 6px;
  box-shadow: inset 0 0 0 1px currentColor;
}
.nav-burger span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* nav clara mientras flota sobre una foto oscura */
.nav[data-nav-light]:not(.is-scrolled) { color: #fff; }
.nav[data-nav-light]:not(.is-scrolled) .btn { --btn-bg: #fff; --btn-fg: var(--ink); }
html.menu-abierto .nav { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--dark); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--gutter) 2.5rem;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .8s var(--ease-io), visibility 0s .8s;
}
.nav-mobile[aria-hidden="false"] { transform: none; visibility: visible; transition: transform .8s var(--ease-io), visibility 0s; }
.nav-mobile nav { display: grid; gap: .2rem; }
.nav-mobile a {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(2.3rem, 10vw, 3.4rem); letter-spacing: var(--display-tracking); line-height: 1.12;
}
.nav-mobile .nav-mobile-foot {
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / .15);
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem;
  font-family: var(--sans); font-size: .95rem; letter-spacing: 0; opacity: .75;
}
.nav-mobile .nav-mobile-foot a { font-family: var(--sans); font-size: .95rem; font-weight: 400; letter-spacing: 0; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-actions .btn { display: inline-flex; }
  .nav-switch { display: inline-flex; }
  .nav-burger { display: none; }
}

/* =============================================================
   7. Secciones: estructura editorial
   ============================================================= */
.section { padding: clamp(5rem, 12vw, 10rem) 0; position: relative; }
.section-dark { background: var(--dark); color: rgb(255 255 255 / .78); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .label { color: rgb(255 255 255 / .55); }
.section-dark .lead { color: rgb(255 255 255 / .75); }
.section-tint { background: var(--bg-2); }

/* cabecera de sección: índice a la izquierda, título a la derecha */
.head {
  display: grid; gap: 1.4rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section-dark .head { border-color: rgb(255 255 255 / .14); }
.head .label { padding-top: .4rem; }
@media (min-width: 900px) {
  .head { grid-template-columns: 1fr 3fr; gap: 2rem; }
  .head-copy { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
}

/* =============================================================
   8. Portada: hero partido con dos fotos
   ============================================================= */
.split {
  position: relative; display: flex; flex-direction: column;
  min-height: 100svh; background: var(--dark);
}
.split-panel {
  position: relative; overflow: hidden; isolation: isolate;
  flex: 1 1 0; min-height: 78svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--gutter) clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  transition: flex-grow 1s var(--ease-io);
}
.split-panel > img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.04);
  transition: transform 1.4s var(--ease-out), filter 1s var(--ease-out);
}
.split-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / .28) 0%, rgb(0 0 0 / 0) 30%, rgb(0 0 0 / .08) 50%, rgb(var(--dark-rgb) / .92) 100%);
}
.split-panel[data-brand="cmd"] > img  { object-position: 62% 50%; }
.split-panel[data-brand="stok"] > img { object-position: 40% 45%; }
.split-kind { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.split-kind i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-soft); }
.split-kind .label { color: rgb(255 255 255 / .8); }
.split-name { color: #fff; font-size: clamp(4.4rem, 15vw, 11rem); line-height: .82; margin-bottom: 1.2rem; }
.split-panel[data-brand="stok"] .split-name { font-style: italic; font-weight: 400; font-size: clamp(5rem, 17vw, 12.5rem); line-height: .78; }
.split-sub {
  display: grid; gap: 1.3rem; align-items: end;
  padding-top: 1.3rem; border-top: 1px solid rgb(255 255 255 / .22);
}
.split-sub p { color: rgb(255 255 255 / .82); max-width: 36ch; font-size: 1.02rem; }
.split-go {
  display: inline-flex; align-items: center; gap: .8rem; justify-self: start;
  font-weight: 500; color: #fff;
}
.split-go .circle {
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55);
  transition: background-color .5s var(--ease-out), color .5s, transform .6s var(--ease-out);
}
.split-panel:hover .split-go .circle { background: #fff; color: var(--dark); transform: rotate(-45deg); }
.split-go::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.split-center {
  position: absolute; z-index: 3; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #fff;
  background: rgb(0 0 0 / .35); padding: .55rem 1rem; border-radius: 999px;
  white-space: nowrap; pointer-events: none;
}
@media (min-width: 900px) {
  .split { flex-direction: row; }
  .split-panel { min-height: 100svh; }
  .split:hover .split-panel { flex-grow: .8; }
  .split .split-panel:hover { flex-grow: 1.25; }
  .split:hover .split-panel:not(:hover) > img { filter: saturate(.6) brightness(.8); }
  .split-panel:hover > img { transform: scale(1); }
  .split-sub { grid-template-columns: 1fr auto; }
  .split-center { display: block; }
  .split-panel + .split-panel { box-shadow: -1px 0 0 rgb(255 255 255 / .18); }
}

/* =============================================================
   9. Manifiesto con palabras que se encienden al hacer scroll
   ============================================================= */
.manifesto {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.035em;
  font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.05;
}
[data-brand="stok"] .manifesto { font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -0.015em; }
.manifesto .w { transition: color .5s var(--ease-out); }
.words-ready .w { color: rgb(var(--ink-rgb) / .16); }
.words-ready .w.is-on { color: var(--ink); }
.words-ready .it.w.is-on, .words-ready .it .w.is-on { color: var(--accent); }
.chip-img {
  display: inline-block; vertical-align: middle;
  width: 1.9em; height: .95em; margin: 0 .12em; border-radius: 999px;
  background-size: cover; background-position: center; transform: translateY(-.06em);
}
.manifesto-foot {
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.4rem; border-top: 1px solid var(--line);
}

/* =============================================================
   10. Lista editorial (orientación, tratamientos, novedades)
   ============================================================= */
.rows { border-top: 1px solid var(--line); }
.section-dark .rows { border-color: rgb(255 255 255 / .14); }
.row {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.6rem;
  padding: clamp(1.2rem, 2.6vw, 2rem) 0; border-bottom: 1px solid var(--line);
  transition: padding .6s var(--ease-out), color .4s;
}
.section-dark .row { border-color: rgb(255 255 255 / .14); }
.row-n { font-size: .78rem; color: var(--ink-mute); font-variant-numeric: tabular-nums; min-width: 2ch; }
.row-title {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(1.45rem, 3.4vw, 2.9rem); letter-spacing: var(--display-tracking); line-height: 1.05;
  color: var(--ink); transition: transform .7s var(--ease-out);
}
.row-title small {
  display: block; margin-top: .35rem;
  font-family: var(--sans); font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--ink-mute);
}
.row-tag {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}
.row-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--accent)); }
a.row::after { content: ""; position: absolute; inset: 0; }
a.row:hover .row-title { transform: translateX(clamp(.5rem, 2vw, 1.6rem)); }
a.row:hover { color: var(--ink); }
.row[data-dot="cmd"]  { --dot: var(--cmd); }
.row[data-dot="stok"] { --dot: var(--stok); }
.row[data-dot="stok"] .row-title { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; font-size: clamp(1.7rem, 3.9vw, 3.3rem); }
.row[data-dot="cmd"] .row-title { font-family: "Outfit", var(--sans); font-weight: 600; letter-spacing: -0.04em; }

/* vista previa que sigue al cursor */
.preview {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: clamp(200px, 20vw, 300px); aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85);
  transition: opacity .35s var(--ease-out), scale .5s var(--ease-out);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .35);
}
.preview.is-on { opacity: 1; scale: 1.18; }
.preview img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   11. Hero de marca a sangre (Stok)
   ============================================================= */
.bleed {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem 0 clamp(1.6rem, 4vw, 2.6rem);
}
.bleed-img { position: absolute; inset: 0; z-index: -2; }
.bleed-img img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.bleed::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(var(--bg-rgb) / .55) 0%, rgb(var(--bg-rgb) / .15) 45%, rgb(var(--bg-rgb) / 0) 60%);
}
.bleed-copy { max-width: min(100%, 46rem); }
.bleed h1 { margin: 1.3rem 0 1.6rem; }
.bleed h1 em { color: var(--accent); font-weight: 400; }
.bleed .lead { margin-bottom: 2rem; }
.bleed-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.bleed-meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2rem;
  margin-top: clamp(2.5rem, 7vh, 5rem); padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.bleed-meta strong { display: block; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.25rem, 2.2vw, 1.8rem); color: var(--ink); line-height: 1.05; }
.bleed-meta > div > span { font-size: .84rem; color: var(--ink-mute); }
@media (max-width: 899px) {
  .bleed { justify-content: flex-start; }
  .bleed::before { background: linear-gradient(180deg, rgb(var(--bg-rgb) / .92) 0%, rgb(var(--bg-rgb) / .75) 48%, rgb(var(--bg-rgb) / .1) 72%, rgb(var(--bg-rgb) / 0) 100%); }
  .bleed-img img { object-position: 80% 50%; }
  .bleed-meta { margin-top: auto; background: rgb(var(--bg-rgb) / .9); padding: 1.1rem; border-radius: 16px; border: 0; }
}
@media (min-width: 900px) { .bleed-meta { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   12. Hero partido de marca (CMD)
   ============================================================= */
.hero-split { display: grid; min-height: 100svh; background: var(--bg); }
.hero-split-copy {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem var(--gutter) clamp(2rem, 5vw, 3.2rem);
}
.hero-split h1 { margin: 1.3rem 0 1.6rem; }
.hero-split h1 .it { color: var(--accent); }
.hero-split .lead { margin-bottom: 2rem; }
.hero-split-media { position: relative; overflow: hidden; min-height: 70svh; }
.hero-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.float-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .7rem;
  background: rgb(255 255 255 / .92); color: var(--ink);
  padding: .8rem 1.1rem .8rem .8rem; border-radius: 999px;
  font-size: .88rem; font-weight: 500;
  box-shadow: 0 20px 40px -18px rgb(var(--dark-rgb) / .45);
  animation: floatY 6s var(--ease-soft) infinite;
}
.float-chip i { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; }
.float-chip i svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float-chip.c1 { left: 1.2rem; bottom: 18%; }
.float-chip.c2 { right: 1.2rem; top: 22%; animation-delay: -3s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-split-meta {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.2rem 2.6rem;
  margin-top: clamp(2.5rem, 6vh, 4.5rem); padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.hero-split-meta strong { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.hero-split-meta > div > span { font-size: .82rem; color: var(--ink-mute); }
@media (min-width: 900px) {
  .hero-split { grid-template-columns: 1.08fr .92fr; }
  .hero-split-copy { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: 3rem; }
  .hero-split-media { min-height: 100svh; }
}

/* =============================================================
   13. Imagen con revelado al entrar
   ============================================================= */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
html.reveal-on .frame[data-reveal] img { transform: scale(1.18); transition: transform 1.6s var(--ease-out); }
html.reveal-on .frame[data-reveal].is-revealed img { transform: scale(1); }

/* =============================================================
   14. Galería fija + lista (tratamientos de Stok)
   ============================================================= */
.gallery { display: grid; gap: 2.5rem; }
.gallery-stage { display: none; }
.gallery-list { display: grid; }
.g-item { padding: clamp(1.6rem, 3vw, 2.6rem) 0; border-top: 1px solid var(--line); }
.g-item:last-child { border-bottom: 1px solid var(--line); }
.g-item .frame { aspect-ratio: 4 / 3; margin-bottom: 1.5rem; }
.g-top { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.g-top .row-n { font-size: .85rem; }
.g-item h3 { font-size: clamp(2.2rem, 5vw, 4rem); transition: color .5s var(--ease-out); }
.g-item p { color: var(--ink-mute); max-width: 44ch; margin-bottom: 1.2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li {
  font-size: .84rem; padding: .42rem .85rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft);
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .gallery-stage {
    display: block; position: sticky; top: 6.5rem;
    aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  }
  .gallery-stage img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.08);
    transition: opacity .9s var(--ease-out), transform 1.6s var(--ease-out);
  }
  .gallery-stage img.is-on { opacity: 1; transform: scale(1); }
  .gallery-stage-caption {
    position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2;
    background: rgb(255 255 255 / .9); color: var(--ink); border-radius: 999px;
    padding: .45rem .95rem; font-size: .8rem; font-weight: 500;
  }
  .g-item { padding: clamp(3rem, 9vh, 6rem) 0; min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
  .g-item .frame { display: none; }
  .g-item h3 { color: rgb(var(--ink-rgb) / .28); }
  .g-item.is-active h3 { color: var(--ink); }
  html:not(.reveal-on) .g-item h3 { color: var(--ink); }
}

/* =============================================================
   15. Destacado partido (S Booster)
   ============================================================= */
.feature { display: grid; background: var(--dark); color: rgb(255 255 255 / .78); }
.feature-media { position: relative; min-height: 70svh; overflow: hidden; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding: clamp(3rem, 8vw, 7rem) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.feature-copy h2 { color: #fff; margin: 1.2rem 0 1.4rem; }
.feature-copy h2 em { color: var(--accent-soft); font-weight: 400; }
.feature-copy .lead { color: rgb(255 255 255 / .75); }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); margin: 2.5rem 0; border-top: 1px solid rgb(255 255 255 / .15); }
.spec { padding: 1.3rem 1rem 1.3rem 0; border-bottom: 1px solid rgb(255 255 255 / .15); }
.spec:nth-child(odd) { border-right: 1px solid rgb(255 255 255 / .15); }
.spec:nth-child(even) { padding-left: 1.2rem; }
.spec strong { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4rem); line-height: .95; color: #fff; }
.spec > span { font-size: .85rem; color: rgb(255 255 255 / .6); }
.checks { display: grid; gap: .6rem; margin-bottom: 2.4rem; }
.checks li { display: flex; gap: .8rem; align-items: baseline; }
.checks li::before { content: "—"; color: var(--accent-soft); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature-media { min-height: 100%; }
  .feature-copy { padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-left: clamp(3rem, 6vw, 6rem); }
}

/* =============================================================
   16. Bloque grande de campaña (tatuajes / combo)
   ============================================================= */
.big-cta { display: grid; gap: 2.5rem; align-items: end; }
.big-cta h2 em { color: var(--accent); font-weight: 400; }
.big-cta-side { display: grid; gap: 1.6rem; }
.dash-list { display: grid; }
.dash-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; }
.dash-list li:first-child { border-top: 1px solid var(--line); }
.dash-list li span { color: var(--ink-mute); font-size: .82rem; min-width: 2ch; padding-top: .15rem; }
@media (min-width: 900px) { .big-cta { grid-template-columns: 1.5fr 1fr; gap: 5rem; } }

.price-block { display: grid; gap: 2rem; align-items: center; }
.price-media { aspect-ratio: 4 / 3; }
.price {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(3.4rem, 9vw, 7.4rem); letter-spacing: -0.05em; line-height: .9; color: var(--ink);
}
.price small { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .8rem; }
@media (min-width: 900px) { .price-block { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* =============================================================
   17. Pasos con línea de progreso (CMD)
   ============================================================= */
.steps-layout { display: grid; gap: 2.5rem; }
.steps-media { aspect-ratio: 1 / 1; }
.steps-media img { object-position: 30% 70%; }
.steps { position: relative; display: grid; --progress: 0; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: .35rem; top: .5rem; bottom: .5rem; width: 1px;
}
.steps::before { background: var(--line); }
.steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--progress)); }
.step { position: relative; padding: 0 0 clamp(2.5rem, 6vh, 4.5rem) 2.6rem; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 0; top: .45rem; width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink-mute);
  transition: background-color .5s, box-shadow .5s; z-index: 1;
}
.step.is-active::before { background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.step .row-n { display: block; margin-bottom: .6rem; }
.step h3 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); margin-bottom: .7rem; }
.step p { color: var(--ink-mute); max-width: 40ch; }
@media (min-width: 900px) {
  .steps-layout { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
  .steps-media { position: sticky; top: 6.5rem; }
  .steps { padding: 3rem 0; }
}

/* =============================================================
   18. Acordeón editorial (tratamientos CMD + FAQ)
   ============================================================= */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 1.6rem; align-items: center;
  padding: clamp(1.3rem, 2.8vw, 2rem) 0;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .row-title { font-size: clamp(1.4rem, 3.2vw, 2.6rem); }
.acc-faq summary .row-title { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(1.1rem, 2vw, 1.45rem); }
.acc summary:hover .row-title { transform: translateX(.6rem); }
.plus { position: relative; width: 2.8rem; height: 2.8rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .4s, transform .6s var(--ease-out); }
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px;
  background: var(--ink); transition: transform .5s var(--ease-out), background-color .4s;
}
.plus::after { transform: rotate(90deg); }
.acc details[open] .plus { background: var(--ink); transform: rotate(180deg); }
.acc details[open] .plus::before, .acc details[open] .plus::after { background: var(--bg); }
.acc details[open] .plus::after { transform: rotate(0deg); }
.acc-body { padding: 0 0 clamp(1.6rem, 3vw, 2.4rem) calc(2ch + 1.6rem); display: grid; gap: 1.2rem; }
.acc-body p { color: var(--ink-mute); max-width: 56ch; }
.acc-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.acc details[open] .acc-body { animation: accIn .6s var(--ease-out) both; }
@keyframes accIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: start; }
  .faq-layout > :first-child { position: sticky; top: 7rem; }
}

/* =============================================================
   19. Números / seguidores / pilares
   ============================================================= */
.stats { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 2rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .6rem; }
.stat strong { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(3.4rem, 8vw, 6.4rem); line-height: .9; letter-spacing: -0.05em; color: var(--ink); }
.stat p { color: var(--ink-mute); max-width: 32ch; }
.stat h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .stats.two { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 2.4rem 2.2rem 2.4rem 0; border-bottom: 0; }
  .stat + .stat { padding-left: 2.2rem; border-left: 1px solid var(--line); }
}
.stat[data-brand="stok"] strong { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
.stat a.link { justify-self: start; }

/* =============================================================
   20. Antes / después
   ============================================================= */
.ba-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba-item { display: grid; gap: .9rem; }
.ba {
  --pos: 50%;
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius);
  user-select: none; touch-action: pan-y;
  background:
    repeating-linear-gradient(135deg, rgb(var(--ink-rgb) / .045) 0 1px, transparent 1px 14px),
    var(--bg-2);
}
.ba-after {
  position: absolute; inset: 0 auto 0 0; width: var(--pos); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgb(var(--accent-rgb) / .06) 0 1px, transparent 1px 14px),
    rgb(var(--accent-soft-rgb) / .28);
  box-shadow: 1px 0 0 #fff;
}
.ba-tag {
  position: absolute; top: 1rem; z-index: 2;
  font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  background: #fff; color: var(--ink); padding: .4rem .75rem; border-radius: 999px;
}
.ba-tag-after { left: 1rem; } .ba-tag-before { right: 1rem; }
.ba-empty { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 2.5rem; text-align: center; pointer-events: none; }
.ba-empty p { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; color: var(--ink-soft); max-width: 16ch; }
.ba-handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 3;
  width: 3.2rem; height: 3.2rem; margin: -1.6rem 0 0 -1.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--bg); pointer-events: none;
}
.ba-handle svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ba input[type="range"] { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.ba:focus-within .ba-handle { outline: 2px solid var(--accent); outline-offset: 3px; }
.ba-caption { font-size: .9rem; color: var(--ink-mute); }
.ba-caption strong { color: var(--ink); font-weight: 600; }

/* =============================================================
   21. Marquee gigante
   ============================================================= */
.marquee { overflow: hidden; padding: clamp(1.4rem, 3vw, 2.4rem) 0; border-block: 1px solid var(--line); }
.marquee-track {
  display: flex; gap: 2.2rem; width: max-content; white-space: nowrap; align-items: center;
  font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1; color: var(--ink);
}
.marquee-track .sep { width: .5em; height: .5em; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.marquee-track .it { color: var(--accent); }
.marquee-track.is-looping { animation: marquee 55s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   22. Contacto (oscuro)
   ============================================================= */
.contact-grid { display: grid; gap: 3.5rem; }
.contact-title { margin: 1.3rem 0 2rem; }
.contact-title em { color: var(--accent-soft); font-weight: 400; }
.contact-list { display: grid; border-top: 1px solid rgb(255 255 255 / .14); }
.contact-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgb(255 255 255 / .14); }
.contact-list .label { padding-top: .2rem; }
.contact-list a, .contact-list span.v { color: #fff; font-size: 1.05rem; }
.contact-list a:hover { color: var(--accent-soft); }
.contact-list .inline { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }

.form { display: grid; gap: 1.6rem; position: relative; }
.field { display: grid; gap: .5rem; }
.field > span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / .55); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.15rem; color: #fff;
  background: transparent; border: 0; border-bottom: 1px solid rgb(255 255 255 / .25);
  padding: .6rem 0; border-radius: 0; transition: border-color .4s;
}
.field select option, .field select optgroup { color: #111; }
.field textarea { resize: vertical; min-height: 3.2rem; }
.field input::placeholder, .field textarea::placeholder { color: rgb(255 255 255 / .32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-soft); }
.form-row { display: grid; gap: 1.6rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .82rem; color: rgb(255 255 255 / .45); }
.form .btn { justify-self: start; }

.cta-form { transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.cta-form.is-sending .btn { opacity: .6; }
.cta-success {
  position: absolute; inset: 0; display: grid; align-content: center; gap: 1rem;
  opacity: 0; pointer-events: none; transition: opacity .8s var(--ease-out) .25s;
}
.cta-success.is-visible { opacity: 1; pointer-events: auto; }
.cta-success h3 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }

/* =============================================================
   23. Cruce entre marcas
   ============================================================= */
.cross {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end;
  min-height: 70svh; padding: clamp(2rem, 5vw, 4rem) var(--gutter); color: #fff;
}
.cross > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.cross::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / .05) 30%, rgb(var(--dark-rgb) / .9) 100%); }
.cross:hover > img { transform: scale(1.04); }
.cross-inner { width: min(100%, var(--max)); margin-inline: auto; display: grid; gap: 1.6rem; align-items: end; }
.cross h2 { color: #fff; }
.cross p { color: rgb(255 255 255 / .8); max-width: 44ch; }
.cross .split-go::after { content: ""; position: absolute; inset: 0; }
@media (min-width: 900px) { .cross-inner { grid-template-columns: 1fr auto; } }
.cross[data-brand="stok"] h2 { font-style: italic; font-weight: 400; }

/* =============================================================
   24. Footer con marca gigante
   ============================================================= */
.footer { background: var(--dark); color: rgb(255 255 255 / .6); padding: clamp(4rem, 8vw, 6rem) 0 1.6rem; overflow: hidden; }
.footer-top { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-top h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 18ch; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-cols .label { color: rgb(255 255 255 / .4); display: block; margin-bottom: .9rem; }
.footer-cols a, .footer-cols p { display: block; color: rgb(255 255 255 / .78); padding: .2rem 0; font-size: .95rem; }
.footer-cols a:hover { color: #fff; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr 2fr; } .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-giant {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(4.5rem, 21vw, 22rem); line-height: .78; letter-spacing: -0.06em;
  color: #fff; white-space: nowrap; margin: 1rem 0 2rem; user-select: none;
}
[data-brand="stok"] .footer-giant { font-style: italic; font-weight: 400; letter-spacing: -0.03em; font-size: clamp(5.5rem, 27vw, 28rem); }
.footer-giant .dot-cmd { color: var(--cmd); } .footer-giant .dot-stok { color: var(--stok); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between;
  padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .8rem;
}
.footer-bottom p { max-width: 64ch; }

/* =============================================================
   25. WhatsApp flotante
   ============================================================= */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 80;
  width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgb(37 211 102 / .6);
  transition: transform .5s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 1.65rem; height: 1.65rem; fill: currentColor; }
@media (min-width: 900px) { .wa-float { right: 1.8rem; bottom: 1.8rem; } }

/* =============================================================
   26. Revelados
   ============================================================= */
html.reveal-on [data-reveal]:not(.frame) {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
html.reveal-on [data-reveal]:not(.frame).is-revealed { opacity: 1; transform: none; }
html.reveal-on [data-reveal][data-delay="1"] { transition-delay: .1s; }
html.reveal-on [data-reveal][data-delay="2"] { transition-delay: .2s; }
html.reveal-on [data-reveal][data-delay="3"] { transition-delay: .3s; }

/* entrada del hero: líneas que suben */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; }
html.js .line > span {
  transform: translateY(105%); transition: transform 1.2s var(--ease-out);
  animation: lineSafety .01s 2.6s forwards;   /* si el JS no marca is-ready, el título aparece igual */
}
@keyframes lineSafety { to { transform: none; } }
html.js.is-ready .line > span { transform: none; }
html.js.is-ready .line:nth-child(2) > span { transition-delay: .08s; }
html.js.is-ready .line:nth-child(3) > span { transition-delay: .16s; }
html.js.is-ready .line:nth-child(4) > span { transition-delay: .24s; }

/* =============================================================
   27. Reduced motion — sólo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track.is-looping { animation: none; }
  .float-chip { animation: none; }
}

/* =============================================================
   28. Utilidades finales
   ============================================================= */
.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;
}
.c-cmd { color: var(--cmd); }
.c-stok { color: var(--stok); }
.words-ready .c-cmd .w, .words-ready .c-stok .w { color: rgb(var(--ink-rgb) / .16); }
.words-ready .c-cmd .w.is-on { color: var(--cmd); }
.words-ready .c-stok .w.is-on { color: var(--stok); }

/* la foto se agranda un poco para que el parallax nunca muestre bordes */
[data-parallax] { scale: 1.14; }

/* =============================================================
   29. Ajustes tras revisar capturas reales
   ============================================================= */
.bleed h1.display-xl { font-size: clamp(3.2rem, 7vw, 7.4rem); line-height: .92; }
.hero-split h1.display-xl { font-size: clamp(3rem, 5.6vw, 6.2rem); line-height: .95; }

/* el botón de WhatsApp no tapa los CTA del primer pantallazo */
html.reveal-on:not(.past-hero) .wa-float { opacity: 0; transform: scale(.7); pointer-events: none; }
.wa-float { transition: transform .5s var(--ease-out), opacity .4s var(--ease-out); }
@media (min-width: 900px) { .footer-bottom { padding-right: 5rem; } }

.footer { border-top: 1px solid rgb(255 255 255 / .08); }

/* en celular las dos mitades se apilan: más contraste bajo el texto */
@media (max-width: 899px) {
  .split-panel::before {
    background: linear-gradient(180deg, rgb(0 0 0 / .3) 0%, rgb(0 0 0 / .05) 22%, rgb(var(--dark-rgb) / .55) 48%, rgb(var(--dark-rgb) / .95) 100%);
  }
}

/* los datos del hero de Stok caen sobre la foto: base clara para que se lean */
@media (min-width: 900px) {
  .bleed-meta {
    background: rgb(var(--bg-rgb) / .8);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 1.3rem 1.6rem; border-radius: 18px; border-top: 0;
  }
}

.head-copy .lead { margin-top: 1.3rem; }
@media (min-width: 900px) { .head-copy .lead { margin-top: 0; } }

/* los enlaces del acordeón son ítems de grilla: sin esto se estiran a todo el ancho */
.acc-body .link { justify-self: start; }

/* bloque destacado: titular más contenido y aire antes de la lista */
.feature-copy h2.display-l { font-size: clamp(2.3rem, 4.4vw, 4rem); }
.feature-copy .lead { margin-bottom: 1.8rem; }

/* =============================================================
   30. Ajuste de escala en la mitad de abajo
   Arriba el titular gigante funciona; de la mitad para abajo
   cansaba y comía pantalla. Acá baja la escala y sube el ritmo.
   ============================================================= */
#faq h2.display-l,
.big-cta h2.display-l,
.contact-title.display-l { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }

#faq .acc-faq summary .row-title { font-size: clamp(1rem, 1.6vw, 1.2rem); }
.contact-list a, .contact-list span.v { font-size: .98rem; }
.contact-list li { grid-template-columns: 6.5rem 1fr; padding: .9rem 0; }
.field input, .field select, .field textarea { font-size: 1rem; }
.field > span { font-size: .68rem; }

.steps h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.stat strong { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.marquee-track { font-size: clamp(1.5rem, 3.4vw, 2.8rem); }

/* la marca del pie era casi una valla publicitaria */
.footer-giant { font-size: clamp(3rem, 11vw, 9rem); margin: .5rem 0 1.6rem; }
.footer-top h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.footer { padding-top: clamp(3rem, 6vw, 4.5rem); }

/* =============================================================
   31. Bloque de cierre en turquesa: que pegue
   ============================================================= */
.section-accent {
  background: var(--accent); color: rgb(255 255 255 / .86);
  position: relative; overflow: hidden; isolation: isolate;
}
.section-accent::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; z-index: -1;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / .16) 0%, transparent 68%);
}
.section-accent h2, .section-accent .it { color: #fff; }
.section-accent .lead { color: rgb(255 255 255 / .88); }
.section-accent .label { color: rgb(255 255 255 / .7); }
.section-accent .dash-list li { border-color: rgb(255 255 255 / .22); color: #fff; }
.section-accent .dash-list li:first-child { border-top-color: rgb(255 255 255 / .22); }
.section-accent .dash-list li span { color: rgb(255 255 255 / .6); }

/* =============================================================
   32. Detalles que llaman: un pulso en el botón de WhatsApp
   ============================================================= */
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgb(37 211 102 / .55);
  animation: waPulse 2.6s var(--ease-out) infinite;
}
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgb(37 211 102 / .5); }
  70%  { box-shadow: 0 0 0 16px rgb(37 211 102 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0); }
}
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

/* el cierre, más compacto y centrado */
.section-accent { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-accent .big-cta { align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.section-accent .lead { max-width: 42ch; }

/* contacto: menos aire muerto */
.section-dark { padding: clamp(4rem, 8vw, 6.5rem) 0; }

/* en el celular el botón flotante tapaba texto: un poco más chico */
@media (max-width: 899px) { .wa-float { width: 3.1rem; height: 3.1rem; } .wa-float svg { width: 1.45rem; height: 1.45rem; } }

/* =============================================================
   33. Logo real de CMD
   Dos versiones del mismo archivo: turquesa para fondo claro y
   blanca para el menú abierto, el arranque y el pie.
   ============================================================= */
.brand { position: relative; }
.brand-logo {
  height: 50px; width: auto; display: block;
  transition: height .4s var(--ease-out), opacity .3s var(--ease-out);
}
.nav.is-scrolled .brand-logo { height: 42px; }
.brand-logo-blanco { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
html.menu-abierto .brand-logo-color { opacity: 0; }
html.menu-abierto .brand-logo-blanco { opacity: 1; }

.splash-logo { width: min(62vw, 320px); height: auto; animation: splashUp 1s var(--ease-out) both; }

.footer-logo {
  width: min(78%, 420px); height: auto; margin: 1.5rem 0 2.5rem;
  opacity: .96;
}

@media (max-width: 899px) {
  .brand-logo { height: 42px; }
  .nav.is-scrolled .brand-logo { height: 36px; }
  .footer-logo { width: min(86%, 300px); }
}

/* =============================================================
   34. Nuestros profesionales
   Retratos redondos con un anillo que se completa al pasar.
   ============================================================= */
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.2rem, 5vw, 3.5rem) clamp(1.2rem, 3vw, 2.4rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.doc { text-align: center; }
.doc-photo {
  position: relative; width: min(100%, 250px); margin: 0 auto 1.3rem;
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 26px 50px -30px rgb(var(--ink-rgb) / .55);
}
.doc-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.doc:hover .doc-photo img { transform: scale(1.05); }

/* el anillo queda insinuado y se cierra al pasar por encima */
.doc-ring {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .28);
}
.doc-photo::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgb(var(--accent-rgb) / .3);
  clip-path: inset(0 0 60% 0);
  transition: clip-path 1s var(--ease-io), border-color .6s var(--ease-out);
}
.doc:hover .doc-photo::after { clip-path: inset(0 0 0 0); border-color: var(--accent); }

.doc h3 { font-size: clamp(1.05rem, 1.5vw, 1.32rem); letter-spacing: -0.02em; }

/* =============================================================
   35. Video del FotoFinder
   ============================================================= */
.feature-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.video-badge {
  position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgb(255 255 255 / .93); color: var(--ink);
  padding: .5rem .95rem; border-radius: 999px;
  font-size: .78rem; font-weight: 500;
}
.video-badge i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: dotLive 2.4s var(--ease-soft) infinite;
}
@keyframes dotLive { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .video-badge i { animation: none; } }

/* =============================================================
   36. Contacto directo: sin formulario, WhatsApp a la vista
   ============================================================= */
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-content: center; justify-items: start; gap: 1.2rem;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: var(--accent); color: #fff;
}
.cta-panel::before {
  content: ""; position: absolute; inset: -55% -25% auto auto; z-index: -1;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / .2) 0%, transparent 68%);
}
.cta-panel .label { color: rgb(255 255 255 / .75); }
.cta-phone {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(2.4rem, 5.2vw, 3.6rem); letter-spacing: -0.045em; line-height: 1;
  color: #fff;
}
.cta-phone:hover { text-decoration: underline; text-underline-offset: 6px; }
.btn-wa {
  --btn-bg: #25d366; --btn-fg: #06331a;
  font-weight: 600; padding: 1.1rem 1.8rem;
}
.btn-wa::before { background: #fff; }
.btn-wa:hover { color: #06331a; }
.btn-wa svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }
.cta-panel-note { font-size: .88rem; color: rgb(255 255 255 / .8); max-width: 34ch; }

/* =============================================================
   37. Mapa en el contacto
   ============================================================= */
.map-frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 380px; background: var(--bg-2);
  box-shadow: 0 30px 60px -36px rgb(0 0 0 / .6);
}
.map-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(.25) contrast(1.04);
}
.map-cta {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem 1.2rem; border-radius: 14px;
  background: rgb(255 255 255 / .95); color: var(--ink);
  box-shadow: 0 14px 30px -14px rgb(0 0 0 / .5);
  transition: transform .5s var(--ease-out), background-color .4s var(--ease-out);
}
.map-cta:hover { transform: translateY(-3px); background: #fff; }
.map-cta span { display: grid; font-size: .84rem; color: var(--ink-mute); line-height: 1.35; }
.map-cta b { font-size: 1rem; color: var(--ink); font-weight: 600; }
.map-cta i { font-style: normal; color: var(--accent); font-size: 1.1rem; }
@media (min-width: 900px) { .map-frame { min-height: 440px; } }

/* el enlace al mapa va debajo del marco, para no tapar la ficha de Google */
.map-link {
  display: inline-flex; margin-top: 1rem; font-size: .92rem; font-weight: 500;
  color: rgb(255 255 255 / .85);
}
.map-link:hover { color: var(--accent-soft); }
.map-col { display: flex; flex-direction: column; align-items: flex-start; }
.map-col .map-frame { width: 100%; }

/* la imagen de los pasos: cuadrada, llena la columna al lado de los 4 pasos */
.steps-media { aspect-ratio: 1 / 1; width: 100%; }
.steps-media img { object-position: 50% 45%; }
@media (min-width: 900px) { .steps-layout { align-items: start; } }

/* sin los botones en la portada, el espacio bajo el texto sobraba */
.hero-split .lead { margin-bottom: 0; }

/* =============================================================
   Endoláser · antes y después (01/10/2026)
   ============================================================= */
.endo-layout { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .endo-layout { grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}
.endo-cases { display: grid; gap: clamp(1.8rem, 3vw, 2.6rem); }
.endo-case { margin: 0; display: grid; gap: .9rem; }
.endo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.endo-shot {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) * .7);
  background: var(--bg-2);
}
.endo-pair-v .endo-shot { aspect-ratio: 2 / 3; }
.endo-pair-h .endo-shot { aspect-ratio: 2 / 1; }
.endo-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.endo-tag {
  position: absolute; left: .7rem; bottom: .7rem; z-index: 2;
  font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: rgb(255 255 255 / .92); color: var(--ink);
  padding: .32rem .6rem; border-radius: 999px;
}
.endo-tag-after { background: var(--accent); color: #fff; }
.endo-case figcaption {
  font-size: .9rem; color: var(--ink-mute);
  padding-top: .2rem; border-top: 1px solid var(--line);
}
.endo-checks li::before { color: var(--accent); }
.endo-note {
  margin-top: 1.4rem; font-size: .82rem; line-height: 1.5; color: var(--ink-mute);
  max-width: 46ch;
}
@media (min-width: 900px) { .endo-aside { position: sticky; top: 7rem; } }
