/* ==========================================================================
   Vitrina de webs vendedoras — maqueta fase 5
   "Carcasa" de la vitrina: 3 caminos visuales (A Galeria · B Arquivo · C Assinatura)
   La paleta oficial de Diana se usa solo en la firma.
   ========================================================================== */

:root {
  /* Firma de Diana (guía de marca) */
  --dg-verde: #173D3A;
  --dg-turquesa: #4ED6D4;
  --dg-ouro: #C8A45B;
  --dg-creme: #F3E9D0;

  /* A · Galeria — editorial neutra (por defecto) */
  --c-bg: #F5F2EC;
  --c-surface: #FFFFFF;
  --c-ink: #171614;
  --c-muted: #625E57;
  --c-line: #DCD6CC;
  --c-accent: #171614;
  --c-accent-ink: #F5F2EC;
  --c-sinal: #B8431E;
  --c-font-display: "Instrument Serif", Georgia, serif;
  --c-font-body: "DM Sans", system-ui, sans-serif;
  --c-display-weight: 400;
  --c-display-tracking: -0.015em;
  --c-display-scale: 1;
  --c-pendente: #8A5300;
  --c-pendente-bg: rgba(255, 184, 0, .14);
  --cab-h: 64px;
}

/* B · Arquivo — escura, sobria, una sola familia */
html[data-carcasa="b"] {
  --c-bg: #111110;
  --c-surface: #1B1B19;
  --c-ink: #EFEBE4;
  --c-muted: #A29D94;
  --c-line: #2D2C29;
  --c-accent: #EFEBE4;
  --c-accent-ink: #111110;
  --c-sinal: #E9C46A;
  --c-font-display: "Manrope", system-ui, sans-serif;
  --c-font-body: "Manrope", system-ui, sans-serif;
  --c-display-weight: 700;
  --c-display-tracking: -0.04em;
  --c-display-scale: .86;
  --c-pendente: #F2C25B;
  --c-pendente-bg: rgba(242, 194, 91, .12);
}

/* C · Assinatura — cercana a la marca de Diana */
html[data-carcasa="c"] {
  --c-bg: #F8F2E4;
  --c-surface: #FFFDF8;
  --c-ink: #142725;
  --c-muted: #56625F;
  --c-line: #E3D9C3;
  --c-accent: #173D3A;
  --c-accent-ink: #F3E9D0;
  --c-sinal: #8A6A34;
  --c-font-display: "Cormorant Garamond", Georgia, serif;
  --c-font-body: "Montserrat", system-ui, sans-serif;
  --c-display-weight: 600;
  --c-display-tracking: -0.01em;
  --c-display-scale: 1.04;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cab-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--c-font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
body { overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--c-sinal); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }

.envoltorio { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.titular {
  font-family: var(--c-font-display);
  font-weight: var(--c-display-weight);
  letter-spacing: var(--c-display-tracking);
  line-height: 1.02;
  font-size: calc(clamp(2.6rem, 6vw, 5.4rem) * var(--c-display-scale));
  margin: 0;
  text-wrap: balance;
}
.titular em { font-style: italic; color: var(--c-muted); }
html[data-carcasa="b"] .titular em { font-style: normal; color: var(--c-muted); }
.titular--seccion { font-size: calc(clamp(2.1rem, 4.4vw, 3.9rem) * var(--c-display-scale)); }

.antetitulo, .numeral {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1.4rem;
}
.entrada { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--c-muted); max-width: 38ch; }

.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 2rem; }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.45em;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .4s ease;
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.boton--linea { background: transparent; color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line); }
.boton--linea:hover { box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.boton--pequeno { padding: .6em 1.1em; font-size: .86rem; }

.pendente {
  display: inline-block;
  font: 600 10.5px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 7px;
  border: 1px dashed currentColor;
  border-radius: 6px;
  color: var(--c-pendente);
  background: var(--c-pendente-bg);
  white-space: nowrap;
}

/* ---------- Barra de maqueta (solo trabajo) ---------- */
.maqueta-barra {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 8px 8px 14px;
  background: #1d1d1b; color: #f2efe9;
  border-radius: 14px;
  font: 500 12px/1.2 system-ui, sans-serif;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
}
.maqueta-barra__etiqueta { opacity: .75; margin-right: 4px; }
.maqueta-barra__grupo { display: inline-flex; gap: 4px; }
.maqueta-barra button {
  font: inherit; color: inherit; cursor: pointer;
  background: transparent; border: 1px solid #44433f; border-radius: 9px; padding: 6px 9px;
}
.maqueta-barra button[aria-pressed="true"] { background: #f2efe9; color: #1d1d1b; border-color: #f2efe9; }
html:not(.js) .maqueta-barra__grupo { display: none; }

/* ---------- Cabecera ---------- */
.cab {
  position: sticky; top: 0; z-index: 60;
  height: var(--cab-h);
  background: color-mix(in srgb, var(--c-bg) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.cab__fila { height: 100%; display: flex; align-items: center; gap: 18px; }
.firma { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.firma img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px var(--dg-ouro); }
.firma__nome { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.2rem; letter-spacing: .01em; }
.marca-prov { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.marca-prov__nome { font-family: var(--c-font-display); font-size: 1.45rem; line-height: 1; letter-spacing: -.01em; }
.marca-prov__por { font-size: .78rem; color: var(--c-muted); }
.cab__nav { margin-left: auto; display: flex; gap: 26px; font-size: .92rem; }
.cab__nav a { text-decoration: none; color: var(--c-muted); }
.cab__nav a:hover { color: var(--c-ink); }

/* ---------- 1 · Hero / Dor ---------- */
.hero { position: relative; }
.hero__fijo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  min-height: calc(100vh - var(--cab-h));
  padding-top: 48px; padding-bottom: 48px;
}
.hero .titular { margin-bottom: 1.6rem; }
.pista { margin-top: 2.4rem; font-size: .85rem; color: var(--c-muted); letter-spacing: .02em; }

.escenario {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.35);
  padding: 14px;
  overflow: clip; /* clip (no hidden): no crea contenedor de scroll y deja funcionar el efecto en móvil */
}
.escenario__barra { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 14px; }
.puntos { display: inline-flex; gap: 6px; }
.puntos i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-line); }
.estado {
  display: inline-grid; font: 600 10.5px/1 ui-monospace, Consolas, monospace;
  text-transform: uppercase; letter-spacing: .08em;
}
.estado > span { grid-area: 1 / 1; justify-self: end; padding: 5px 8px; border-radius: 999px; }
.estado .t-antes { background: #f1e3e0; color: #8b2f1c; }
.estado .t-depois { background: #dff1e9; color: #1d5c46; }

.escenario__lienzo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "nav nav nav"
    "tit tit tit"
    "sub sub sub"
    "cta cta cta"
    "c1  c2  c3";
  gap: 12px;
  min-height: 420px;
}
.peca {
  display: grid; align-items: center;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
  transform-origin: center;
}
.peca > span { grid-area: 1 / 1; }
.peca .t-antes {
  font-family: "Times New Roman", Times, serif; color: #1f43a8; font-size: .92rem;
  text-decoration: underline; text-decoration-color: rgba(31,67,168,.35);
  opacity: 0;
}
html[data-carcasa="b"] .peca .t-antes { color: #9DB2FF; text-decoration-color: rgba(157,178,255,.4); }
.peca--nav { grid-area: nav; }
.peca--nav .t-depois { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; }
.peca--nav .t-depois small { color: var(--c-muted); font-size: .78rem; }
.peca--tit { grid-area: tit; padding: 18px 16px; }
.peca--tit .t-depois { font-family: var(--c-font-display); font-weight: var(--c-display-weight); font-size: clamp(1.4rem, 2.3vw, 2.05rem); line-height: 1.05; letter-spacing: var(--c-display-tracking); }
.peca--tit .t-antes { font-size: 1.25rem; font-style: italic; }
.peca--sub { grid-area: sub; }
.peca--sub .t-depois { color: var(--c-muted); font-size: .95rem; }
.peca--cta { grid-area: cta; justify-self: start; border-radius: 999px; padding: 12px 20px; background: var(--c-sinal); border-color: var(--c-sinal); }
.peca--cta .t-depois { color: #fff; font-weight: 600; font-size: .95rem; }
.peca--c { min-height: 74px; align-items: end; font-size: .85rem; font-weight: 600; }
.peca--c1 { grid-area: c1; }
.peca--c2 { grid-area: c2; }
.peca--c3 { grid-area: c3; }
.escenario__lienzo { position: relative; }

/* Ruido del folleto (desaparece) */
.lixo {
  position: absolute; z-index: 3; opacity: 0; pointer-events: none;
  font: 700 .82rem/1 Arial, Helvetica, sans-serif; padding: 6px 9px; border-radius: 3px;
  transform: rotate(var(--r, 0deg)); white-space: nowrap;
}
.lixo--1 { top: 4%;  left: 56%; --r: 8deg;  background: #FFE14D; color: #C21807; }
.lixo--2 { top: 42%; left: 66%; --r: -6deg; background: #C21807; color: #fff; text-decoration: underline; }
.lixo--3 { top: 74%; left: 2%;  --r: 4deg;  background: #3B5998; color: #fff; }
.lixo--4 { top: 56%; left: 34%; --r: -3deg; background: #fff; color: #1f43a8; border: 2px ridge #aaa; }
.lixo--5 { top: 90%; left: 50%; --r: 2deg;  background: transparent; color: #888; font-family: "Times New Roman", serif; font-weight: 400; font-style: italic; }

/* Lo que se gana (aparece al final) */
.nota {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 6px; border-radius: 999px;
  background: var(--c-ink); color: var(--c-bg);
  font-size: .74rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,.45);
}
.nota i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c-sinal); color: #fff; font-style: normal; font-size: .7rem; }
.nota--1 { top: 13%; right: 2%; }
.nota--2 { top: 61%; left: 46%; }
.nota--3 { bottom: -4px; right: 2%; }
.cursor { position: absolute; z-index: 5; top: 63%; left: 30%; opacity: 0; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }

.progreso { margin-top: 18px; padding: 0 4px; }
.progreso__pista { height: 4px; border-radius: 999px; background: var(--c-line); overflow: hidden; }
.progreso__relleno { display: block; height: 100%; width: 100%; background: var(--c-sinal); transform-origin: left; }
.progreso__etapas { display: flex; justify-content: space-between; margin-top: 8px; font: 600 10.5px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink); }
.escenario__fim { margin: 14px 4px 2px; font-family: var(--c-font-display); font-size: 1.35rem; line-height: 1.1; }

/* Animación ligada al scroll (sin bloquear el scroll). Sin soporte o con
   "reducir movimiento": se ve directamente el estado ordenado. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero { height: 185vh; }
    .hero__fijo { position: sticky; top: var(--cab-h); }

    .peca {
      animation: ordenar linear both;
      animation-timeline: scroll(root);
      animation-range: 4vh 62vh;
    }
    .peca .t-antes, .estado .t-antes {
      animation: sair linear both;
      animation-timeline: scroll(root);
      animation-range: 14vh 38vh;
    }
    .peca .t-depois, .estado .t-depois {
      animation: entrar linear both;
      animation-timeline: scroll(root);
      animation-range: 34vh 58vh;
    }
    .peca--cta {
      animation: ordenar linear both, acender linear both;
      animation-timeline: scroll(root), scroll(root);
      animation-range: 4vh 62vh, 38vh 60vh;
    }
    .pista { animation: sair linear both; animation-timeline: scroll(root); animation-range: 0 20vh; }
    .lixo { animation: barrer linear both; animation-timeline: scroll(root); animation-range: 8vh 34vh; }
    .progreso__relleno { animation: encher linear both; animation-timeline: scroll(root); animation-range: 4vh 62vh; }
    .etapa--2 { animation: activar linear both; animation-timeline: scroll(root); animation-range: 26vh 34vh; }
    .etapa--3 { animation: activar linear both; animation-timeline: scroll(root); animation-range: 54vh 62vh; }
    .nota { animation: aparecer linear both; animation-timeline: scroll(root); animation-range: 60vh 70vh; }
    .cursor { animation: clicar linear both; animation-timeline: scroll(root); animation-range: 50vh 68vh; }
    .escenario__fim { animation: entrar linear both; animation-timeline: scroll(root); animation-range: 66vh 74vh; }
  }
}
@keyframes ordenar {
  from { transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 0)) scale(var(--s, 1)); box-shadow: 0 10px 18px -10px rgba(0,0,0,.35); }
  to   { transform: none; box-shadow: none; }
}
@keyframes sair   { from { opacity: 1; } to { opacity: 0; } }
@keyframes barrer { from { opacity: 1; transform: rotate(var(--r, 0deg)); } to { opacity: 0; transform: rotate(var(--r, 0deg)) translateY(-14px) scale(.6); } }
@keyframes encher { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes activar { from { opacity: .35; } to { opacity: 1; } }
@keyframes aparecer { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes clicar {
  0%   { opacity: 0; transform: translate(160px, -170px); }
  20%  { opacity: 1; }
  75%  { opacity: 1; transform: translate(0, 0) scale(1); }
  85%  { transform: translate(0, 0) scale(.82); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes entrar { from { opacity: 0; } to { opacity: 1; } }
@keyframes acender {
  from { background: var(--c-bg); border-color: var(--c-line); }
  to   { background: var(--c-sinal); border-color: var(--c-sinal); }
}

/* ---------- 3 · Ponte ---------- */
.ponte { padding: clamp(90px, 16vh, 180px) 0; border-top: 1px solid var(--c-line); }
.ponte__frase {
  font-family: var(--c-font-display);
  font-weight: var(--c-display-weight);
  letter-spacing: var(--c-display-tracking);
  font-size: calc(clamp(2rem, 4.6vw, 4.2rem) * var(--c-display-scale));
  line-height: 1.05;
  max-width: 18ch;
  text-wrap: balance;
}
.ponte__frase em { color: var(--c-muted); }
.ponte__nota { margin-top: 2rem; margin-left: auto; max-width: 40ch; color: var(--c-muted); font-size: 1.1rem; }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(80px, 12vw, 150px) 0; border-top: 1px solid var(--c-line); }
.seccion--alterna { background: var(--c-surface); }
.cabecera-seccion {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px);
}
.etiqueta-demo {
  display: inline-block; margin-top: 1.1rem;
  font: 600 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-muted);
}

/* ---------- 4 · Antes / Depois ---------- */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ba__lado { margin: 0; container-type: inline-size; }
.ba__lado figcaption {
  font: 600 11px/1 ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 10px; color: var(--c-muted);
}
.ba__controlo, .ba__asa { display: none; }

html.js .ba {
  display: block; position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: 0 50px 90px -50px rgba(0,0,0,.45);
}
html.js .ba__lado { position: absolute; inset: 0; }
html.js .ba__depois { clip-path: inset(0 0 0 var(--pos)); }
html.js .ba__lado figcaption {
  position: absolute; top: 14px; z-index: 3; margin: 0;
  padding: 7px 10px; border-radius: 999px;
  background: rgba(20,20,20,.82); color: #fff;
}
html.js .ba__antes figcaption { left: 14px; }
html.js .ba__depois figcaption { right: 14px; background: #C6F432; color: #15181C; }
html.js .ba__controlo {
  display: block; position: absolute; inset: 0; z-index: 6;
  width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
html.js .ba__asa {
  display: block; position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 5;
  width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 0 24px rgba(0,0,0,.35);
  pointer-events: none;
}
.ba__pomo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #15181C; font-size: 20px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.ba:has(.ba__controlo:focus-visible) .ba__pomo { outline: 3px solid var(--c-sinal); outline-offset: 3px; }

/* Maquetas: todo en "em", escalan con el ancho como una imagen */
.mock {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  font-size: max(5px, calc(100cqi / 62));
  line-height: 1.4;
  position: relative;
}
html:not(.js) .mock { border-radius: 12px; border: 1px solid var(--c-line); }

/* Antes — folleto */
.mock--antes { background: #EDEDED; color: #333; font-family: "Times New Roman", Times, serif; padding: 1.6em 2.4em; }
.ma-cab { text-align: center; padding-top: 1.2em; }
.ma-logo { font-size: 2.6em; font-weight: 700; color: #1d3c8f; text-shadow: 1px 1px 0 #b9c3e0; }
.ma-lema { font-style: italic; color: #777; font-size: 1.05em; }
.ma-menu { text-align: center; margin: 1em 0; font-size: .95em; color: #1d3c8f; word-spacing: .15em; }
.ma-banner {
  height: 9.5em; display: grid; place-items: center; align-content: center; gap: .6em;
  background: linear-gradient(135deg, #c9c9c9, #a9b3c1 60%, #d4d4d4);
  border: 3px double #999; color: #fff; font-size: 1.15em; font-style: italic; text-shadow: 1px 1px 2px #555;
}
.ma-dots { font-size: .7em; letter-spacing: .3em; font-style: normal; }
.ma-corpo { display: grid; grid-template-columns: 2.2fr 1fr; gap: 1.6em; margin-top: 1.2em; font-size: .88em; }
.ma-texto p { margin-bottom: .7em; text-align: justify; }
.ma-noticias { background: #fff; border: 1px solid #bbb; padding: .8em 1em; }
.ma-noticias p { margin-bottom: .5em; color: #1d3c8f; text-decoration: underline; }
.ma-noticias p:first-child { color: #333; text-decoration: none; }
.ma-pie { position: absolute; left: 0; right: 0; bottom: 0; padding: .8em 2.4em; background: #cfcfcf; font-size: .8em; color: #555; text-align: center; }

/* Depois — vendedor digital (dirección Tech Strategic de la clínica) */
.mock--depois {
  background: #F8FAFB; color: #15181C;
  font-family: "DM Sans", system-ui, sans-serif;
  padding: 1.5em 2.6em;
  background-image: linear-gradient(rgba(21,24,28,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(21,24,28,.045) 1px, transparent 1px);
  background-size: 3em 3em;
}
.md-nav { display: flex; align-items: center; gap: 2em; position: relative; }
.md-logo { font-family: "Space Grotesk", sans-serif; font-size: 1.2em; letter-spacing: -.02em; }
.md-logo b { color: #0092A3; }
.md-links { margin-left: auto; color: #5B6470; font-size: .9em; }
.md-btn { display: inline-block; background: #15181C; color: #C6F432; padding: .8em 1.3em; border-radius: .45em; font-weight: 600; font-size: .95em; }
.md-btn--peq { padding: .55em 1em; font-size: .85em; }
.md-btn--sec { background: transparent; color: #15181C; box-shadow: inset 0 0 0 1.5px #15181C; }
.md-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.4em; align-items: center; margin-top: 2.6em; position: relative; }
.md-hero > div:first-child { position: relative; }
.md-kicker { font-family: "Space Grotesk", sans-serif; font-size: .82em; color: #0092A3; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .8em; }
.md-h { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 2.75em; line-height: 1.02; letter-spacing: -.03em; }
.md-p { margin-top: .9em; color: #5B6470; font-size: 1.02em; max-width: 30em; }
.md-acc { display: flex; gap: .8em; margin-top: 1.4em; }
.md-cartao { background: #15181C; color: #F8FAFB; border-radius: .9em; padding: 1.3em; }
.md-cartao__t { font-family: "Space Grotesk", sans-serif; font-size: .9em; color: #9aa3ad; }
.md-curva { width: 100%; height: auto; color: #C6F432; margin: .6em 0; fill: #C6F432; }
.md-etapas { display: flex; justify-content: space-between; font-size: .72em; color: #9aa3ad; }
.md-passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; margin-top: 2.2em; position: relative; }
.md-passos div { background: #fff; border: 1px solid #DDE3E8; border-radius: .6em; padding: .9em 1em; font-size: .92em; }
.md-passos b { font-family: "Space Grotesk", sans-serif; color: #0092A3; margin-right: .4em; }
.md-faq { display: flex; gap: .6em; margin-top: 1.2em; font-size: .8em; }
.md-faq span { border: 1px solid #DDE3E8; border-radius: 999px; padding: .4em .9em; background: #fff; color: #5B6470; }
.pin {
  position: absolute; z-index: 2;
  width: 1.7em; height: 1.7em; border-radius: 50%;
  display: grid; place-items: center;
  background: #C6F432; color: #15181C; font: 700 .85em/1 "Space Grotesk", sans-serif; font-style: normal;
  box-shadow: 0 0 0 .35em rgba(198,244,50,.35);
}
.md-leyenda { position: absolute; left: 2.6em; right: 2.6em; bottom: 1.1em; display: flex; gap: 1.6em; font-size: .78em; color: #5B6470; }
.md-leyenda i {
  display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: .4em; border-radius: 50%;
  background: #C6F432; color: #15181C; font-style: normal; font-weight: 700;
}

.mudancas {
  list-style: none; padding: 0; margin: clamp(36px, 5vw, 56px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--c-line);
}
.mudancas li { padding: 20px 20px 22px 0; border-bottom: 1px solid var(--c-line); font-size: .98rem; }
.mudancas li span {
  display: block; margin-bottom: 6px;
  font: 600 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--c-sinal);
}

/* ---------- 5 · Explorador ---------- */
.explorador { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.explorador__controlos { position: sticky; top: calc(var(--cab-h) + 24px); }
.explorador fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.explorador__controlos { min-width: 0; }
.explorador legend { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 12px; padding: 0; }
.opcion {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid var(--c-line); border-radius: 14px;
  background: var(--c-bg);
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.opcion:hover { transform: translateX(3px); }
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion:has(input:checked) { border-color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--c-sinal); outline-offset: 3px; }
.opcion__aa { font-size: 1.6rem; line-height: 1; text-align: center; }
.opcion__nome { font-weight: 600; font-size: .98rem; }
.opcion__cores { display: inline-flex; }
.opcion__cores i { width: 14px; height: 14px; border-radius: 50%; margin-left: -4px; box-shadow: 0 0 0 2px var(--c-bg); }

.interruptor { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: .92rem; cursor: pointer; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor__pista { width: 38px; height: 22px; border-radius: 999px; background: var(--c-line); position: relative; transition: background .2s; }
.interruptor__pista::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.interruptor:has(input:checked) .interruptor__pista { background: #FF2F7E; }
.interruptor:has(input:checked) .interruptor__pista::after { transform: translateX(16px); }
.interruptor:has(input:focus-visible) .interruptor__pista { outline: 3px solid var(--c-sinal); outline-offset: 3px; }

.vista { container-type: inline-size; min-width: 0; }

.escolha {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--c-line);
}
.escolha__texto { color: var(--c-muted); font-size: .95rem; max-width: 52ch; }
.escolha__texto strong { color: var(--c-ink); }
.det { display: none; }

/* ---------- 10 · Ação ---------- */
.accao { text-align: left; }
.accao__caja { max-width: 980px; }
.accao .entrada { margin-top: 1.4rem; }
.tu-escolha { margin-top: 1.2rem; font-size: .95rem; padding: 10px 14px; border-radius: 10px; background: var(--c-surface); border: 1px solid var(--c-line); display: inline-block; }
.tu-escolha[hidden] { display: none; }

/* ---------- Rodapé ---------- */
.pie { border-top: 1px solid var(--c-line); padding: 56px 0 120px; background: var(--c-bg); }
.pie__rejilla { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.pie__firma { display: flex; gap: 16px; align-items: center; }
.pie__firma img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 1px var(--dg-ouro); }
.pie__nome { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.6rem; line-height: 1; }
.pie__tit { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 10px; }
.pie__peq { font-size: .9rem; color: var(--c-muted); }
.pie__nota { margin-top: 40px; font-size: .78rem; color: var(--c-muted); }
.pie__peq a { color: inherit; }
.pie__peq + .pie__peq { margin-top: 4px; }
.pie__redes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 10px; }
.pie__redes a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line); color: var(--c-ink); transition: border-color .2s, transform .2s; }
.pie__redes a:hover, .pie__redes a:focus-visible { border-color: var(--c-ink); transform: translateY(-2px); }
.pie__redes svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .pie__redes a { transition: none; } .pie__redes a:hover, .pie__redes a:focus-visible { transform: none; } }

/* ---------- G3 · CTA fijo móvil ---------- */
.cta-movil { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__fijo { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .cabecera-seccion { grid-template-columns: 1fr; }
  .explorador { grid-template-columns: 1fr; }
  .explorador__controlos { position: static; }
  .explorador fieldset { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .opcion { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 4px; }
  .opcion:hover { transform: none; }
  .mudancas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pie__rejilla { grid-template-columns: 1fr 1fr; }
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
      .hero { height: auto; }
      .hero__fijo { position: relative; top: 0; }
      /* Un único reloj para todo el escenario: todas las piezas avanzan a la vez */
      .escenario { view-timeline: --escena block; }
      .peca { animation-timeline: --escena; animation-range: cover 20% cover 50%; }
      .peca .t-antes, .estado .t-antes { animation-timeline: --escena; animation-range: cover 28% cover 38%; }
      .peca .t-depois, .estado .t-depois { animation-timeline: --escena; animation-range: cover 36% cover 48%; }
      .peca--cta { animation-timeline: --escena, --escena; animation-range: cover 20% cover 50%, cover 38% cover 48%; }
      .lixo { animation-timeline: --escena; animation-range: cover 18% cover 32%; }
      .progreso__relleno { animation-timeline: --escena; animation-range: cover 20% cover 50%; }
      .etapa--2 { animation-timeline: --escena; animation-range: cover 32% cover 38%; }
      .etapa--3 { animation-timeline: --escena; animation-range: cover 45% cover 50%; }
      .nota, .escenario__fim { animation-timeline: --escena; animation-range: cover 50% cover 56%; }
      .cursor { animation-timeline: --escena; animation-range: cover 42% cover 54%; }
    }
  }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero .titular { font-size: clamp(2.1rem, 9.6vw, 2.7rem); margin-bottom: 1.1rem; }
  .hero .entrada { font-size: 1rem; }
  .hero__fijo { gap: 28px; padding-top: 24px; }
  .pista { display: none; }
  .marca-prov__por { display: none; }
  .nota { font-size: .66rem; }
  .cab__nav, .cab .boton--pequeno, .cab .pendente { display: none; }
  .maqueta-barra { position: relative; inset: auto; margin: 8px; justify-content: center; padding: 6px; }
  .maqueta-barra__etiqueta { font-size: 11px; margin: 0; }
  .escenario__lienzo { min-height: 360px; gap: 8px; }
  .peca { padding: 10px; }
  .peca--nav .t-depois small { display: none; }
  html.js .ba { aspect-ratio: 4 / 3; }
  html.js .mock { aspect-ratio: 4 / 3; }
  .ba { grid-template-columns: 1fr; }
  .mudancas { grid-template-columns: 1fr; }
  .pie__rejilla { grid-template-columns: 1fr; }
  .cta-movil {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,.5);
  }
  .accao .acciones .boton { width: 100%; }
}
