/* ANDARA, Creative Strategic Studio. CSS sin dependencias. */

/* ---------- Fuentes (servidas desde el sitio, licencia OFL) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Doto";
  src: url("../fonts/doto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Respaldos con métricas ajustadas para que el cambio de fuente no mueva nada */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial"), local("Roboto"), local("Helvetica");
  size-adjust: 105%;
  ascent-override: 88.6%;
  descent-override: 25.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Bricolage Fallback Display";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Arial");
  size-adjust: 69%;
  ascent-override: 134.8%;
  descent-override: 39.1%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --black: #000;
  --red: #e8231a;      /* rojo señal: sobre negro (4.7:1) y como superficie con texto negro */
  --red-ink: #c4121a;  /* rojo para texto sobre crema (5.1:1) */
  --cream: #f1eadb;
  --paper: #e6dcc6;
  --ash: #a39c8e;      /* texto secundario sobre negro (7.7:1) */
  --mute: #57514a;     /* texto secundario sobre crema (6.5:1) */

  --font: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --font-d: "Bricolage Grotesque", "Bricolage Fallback Display", system-ui, sans-serif;
  --font-dot: "Doto", "Bricolage Grotesque", monospace;

  --fs-sm: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-h3: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --fs-h2: clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem);
  --fs-xl: clamp(3rem, 1.4rem + 7vw, 6rem);

  --gut: clamp(16px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 140px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pop: cubic-bezier(0.3, 1.5, 0.5, 1);
  --sombra-stk: 0 6px 14px -4px rgb(0 0 0 / 0.45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  scrollbar-color: var(--red) var(--black);
  background: var(--black);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  color: var(--cream);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #000; }
:focus-visible { outline: 3px solid var(--focus, var(--cream)); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.defs { position: absolute; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--red); color: #000; font-weight: 700; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); }

/* Superficies: cada una define sus propios colores de texto y de foco */
.s-dark  { --bg: var(--black); --fg: var(--cream); --muted: var(--ash);  --acc: var(--red);     --focus: var(--cream); background-color: var(--bg); color: var(--fg); }
.s-light { --bg: var(--cream); --fg: #000;         --muted: var(--mute); --acc: var(--red-ink); --focus: #000;         background-color: var(--bg); color: var(--fg); caret-color: var(--red-ink); }
.s-red   { --bg: var(--red);   --fg: #000;         --muted: #000;        --acc: #000;           --focus: #000;         background-color: var(--bg); color: var(--fg); }
.s-red ::selection { background: #000; color: var(--red); }
.grain { background-image: url("../img/grano.webp"); background-size: 160px 160px; }

/* ---------- Tipografía ---------- */
.h2 {
  font-family: var(--font-d);
  font-size: var(--fs-h2);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 16ch;
}
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.s-red .lead { color: #000; }
.mini { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.nota-mini { font-size: var(--fs-sm); color: var(--muted); margin-top: 16px; max-width: 60ch; }
.sec-cabeza { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) {
  .sec-cabeza { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 48px; }
}

/* ---------- Botones ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-sm { --h: 44px; padding: 0 16px; font-size: var(--fs-sm); }
.btn-full { width: 100%; }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn-red { background: var(--red); color: #000; }
.btn-red:hover { background: var(--cream); }
.btn-black { background: #000; color: var(--cream); }
.btn-black:hover { background: var(--cream); color: #000; }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: var(--fg); color: var(--bg); }
.s-light .btn-red:hover { background: #000; color: var(--cream); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
.link-fuerte { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--acc); text-decoration: underline; }
.link-fuerte .ico { width: 18px; height: 18px; }
.link-fuerte:hover { color: var(--fg); }

/* ---------- Stickers ---------- */
.stk {
  --r: 0deg;
  display: inline-block;
  padding: 8px 16px 9px;
  background: var(--red); color: #000;
  border: 3px solid var(--cream);
  border-radius: 999px;
  font-weight: 800; font-size: 0.95rem; line-height: 1.1; white-space: nowrap;
  box-shadow: var(--sombra-stk);
  transform: rotate(var(--r));
}
.stk-cream { background: var(--cream); color: #000; border-color: #000; }
.stk-black { background: #000; color: var(--cream); border-color: var(--cream); }
.js .stk.rv { opacity: 0; transform: rotate(var(--r)) scale(1.4); }
.js .stk.rv.is-in { opacity: 1; transform: rotate(var(--r)) scale(1); transition: transform 0.55s var(--pop), opacity 0.15s linear; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgb(241 234 219 / 0.12); }
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.nav-logo { display: block; padding: 8px 0; }
.nav-logo svg { width: 104px; height: 34px; color: var(--cream); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); border-radius: 6px; }
.nav-links a:not(.btn):hover { color: var(--red); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }
@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    background: transparent; border: 2px solid var(--cream); border-radius: 999px; font-weight: 700; cursor: pointer;
  }
  .js .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gut) 24px;
    background: #000; border-bottom: 3px solid var(--red);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .js .nav-links.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 0.2s, transform 0.25s var(--ease); }
  .nav-links a:not(.btn) { font-size: 1.375rem; min-height: 52px; padding: 0; border-bottom: 1px solid rgb(241 234 219 / 0.14); }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; --h: 52px; font-size: 1rem; }
  html:not(.js) .nav-links { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 7vw, 88px) 28px; overflow: hidden; }
.hero-marca { position: relative; margin: 0; }
.hero-wm { width: 100%; height: auto; aspect-ratio: 2600 / 860; color: var(--cream); overflow: visible; }
.stk-hero {
  --r: 7deg;
  position: absolute; right: 2%; top: -2%;
  font-size: clamp(0.8rem, 0.55rem + 1.1vw, 1.35rem);
  padding: 0.55em 1.1em 0.6em;
}
.hero-grid { display: grid; gap: 28px; margin-top: clamp(28px, 5vw, 56px); }
.hero-lema {
  font-family: var(--font-d);
  font-size: var(--fs-xl);
  font-weight: 800; font-stretch: 75%;
  line-height: 0.9; letter-spacing: -0.02em;
}
.hero-txt { display: grid; gap: 16px; align-content: end; max-width: 46ch; color: var(--ash); }
.hero-es { color: var(--cream); font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; text-wrap: balance; }
.hero .btn-line { color: var(--cream); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-pie {
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  margin-top: clamp(40px, 7vw, 88px); padding-top: 18px;
  border-top: 1px solid rgb(241 234 219 / 0.2);
  font-weight: 700; font-size: var(--fs-sm); color: var(--cream);
}
.hero-pie li:not(.hero-pie-lugar)::before { content: "/"; color: var(--red); margin-right: 8px; font-weight: 800; }
.hero-pie-lugar { margin-left: auto; color: var(--ash); font-weight: 500; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 48px; }
}
@media (max-width: 520px) {
  .hero-pie-lugar { margin-left: 0; width: 100%; }
  .acciones .btn { flex: 1 1 100%; }
}

/* Momento de entrada: letras que suben, sticker que se pega y trazo que avanza.
   Solo transform y opacity. */
.js .hero-wm .l { transform-box: fill-box; animation: sube 0.8s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.js .hero-trazo { transform-box: fill-box; transform-origin: 0 50%; animation: avanza 0.7s var(--ease) 0.45s both; }
.js .stk-hero { animation: pega 0.5s var(--pop) 0.75s both; }
@keyframes sube { from { opacity: 0; transform: translateY(38%); } to { opacity: 1; transform: none; } }
@keyframes avanza { from { opacity: 0; transform: scaleX(0.05); } to { opacity: 1; transform: none; } }
@keyframes pega { from { opacity: 0; transform: rotate(var(--r)) scale(1.6); } to { opacity: 1; transform: rotate(var(--r)) scale(1); } }

/* ---------- Qué es ---------- */
.manifiesto {
  font-family: var(--font-d);
  font-size: var(--fs-h2);
  font-weight: 800; font-stretch: 75%;
  line-height: 0.98; letter-spacing: -0.015em;
  max-width: 20ch;
  text-wrap: balance;
}
.manifiesto-b { display: block; margin-top: 0.35em; color: var(--red-ink); }
@media (min-width: 900px) {
  .manifiesto { max-width: none; }
  .manifiesto-a { display: block; max-width: 7.4em; }
  .manifiesto-b { max-width: 7.6em; margin-left: 40%; margin-top: 0.4em; }
}
.tachado { position: relative; white-space: nowrap; }
.tachon { position: absolute; left: -3%; width: 106%; top: 32%; height: 42%; overflow: visible; pointer-events: none; }
.js .tachon.rv { transform-origin: 0 50%; transform: scaleX(0); }
.js .tachon.rv.is-in { transform: none; transition: transform 0.7s var(--ease) 0.15s; }
.estudio-grid { display: grid; gap: 40px; margin-top: clamp(40px, 6vw, 80px); }
.estudio-grid .lead { color: #000; font-size: var(--fs-lead); }
.lista-trazo { display: grid; gap: 14px; }
.lista-trazo li { position: relative; padding-left: 34px; font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
.lista-trazo li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 22px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M1 6c5-2 11 0 20-3' fill='none' stroke='%23c4121a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.horizonte { display: grid; gap: 12px; margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 2px solid #000; }
.horizonte p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.horizonte strong { min-width: 7.5em; }
@media (max-width: 600px) { .horizonte strong { width: 100%; } }
.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #000; color: var(--cream); font-weight: 600; font-size: var(--fs-sm); }
.tag-hueco { background: transparent; color: #000; border: 2px dashed #000; padding: 4px 12px; }
@media (min-width: 900px) {
  .estudio-grid { grid-template-columns: 1.3fr 1fr; gap: 72px; }
}

/* ---------- Pilares ---------- */
.pilares { padding-top: 0; }
.pilares > .wrap.sec { padding-bottom: clamp(32px, 4vw, 56px); }
.pilar { border-top: 1px solid rgb(241 234 219 / 0.2); }
.pilar-red, .pilar-cream { border-top: 0; }
.pilar-cream { --bg: var(--paper); }
.pilar-red { background-image: url("../img/grano.webp"); background-size: 160px 160px; }
.pilar-in { position: relative; display: grid; gap: 16px; padding-block: clamp(36px, 5vw, 64px); }
.pilar-nombre {
  font-family: var(--font-d);
  font-size: var(--fs-xl);
  font-weight: 800; font-stretch: 75%;
  line-height: 0.85; letter-spacing: -0.02em;
}
.pilar-sub { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.pilar-txt { max-width: 52ch; }
.pilar-txt p:last-child { color: var(--muted); }
.pilar .stk { justify-self: start; }
@media (min-width: 900px) {
  .pilar-in { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px; }
  .pilar .stk { position: absolute; right: var(--gut); top: 18px; }
}

/* ---------- Servicios ---------- */
.tab-lista { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px -4px 0; }
.tab-lista::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 48px; padding: 0 20px;
  background: transparent; border: 2px solid #000; border-radius: 999px;
  font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.tab:hover { background: var(--paper); }
.tab[aria-selected="true"] { background: #000; color: var(--cream); }
html:not(.js) .tab-lista { display: none; }
.js [data-tabs] .panel:not(.is-active) { display: none; }
.panel:focus-visible { outline-offset: 6px; }
.panel-intro { margin: 28px 0 20px; font-size: var(--fs-lead); color: var(--mute); max-width: 60ch; }
html:not(.js) #servicios .panel { margin-top: 32px; }
.paquetes { display: grid; gap: 12px; }
.paq {
  position: relative;
  display: grid; gap: 14px;
  padding: 26px clamp(20px, 3vw, 36px);
  border: 2px solid #000; border-radius: 16px;
}
.paq p { max-width: 54ch; }
.paq-nombre { font-family: var(--font-d); font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); font-weight: 800; font-stretch: 75%; line-height: 1; letter-spacing: -0.01em; }
.paq-tipo { font-weight: 700; margin: 6px 0 8px; }
.paq-precio { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 800; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.paq-precio::after { content: " COP"; font-size: 0.45em; font-weight: 700; letter-spacing: 0; }
.paq-ahorro { display: block; margin-top: 8px; font-size: 0.42em; font-weight: 700; letter-spacing: 0; color: var(--red-ink); }
.paq s { text-decoration-thickness: 2px; }
.paq-top { background: #000; color: var(--cream); border-color: #000; }
.paq-top .paq-precio { color: var(--cream); }
.paq-top p:not(.paq-precio) { color: var(--ash); }
.paq-top .paq-tipo { color: var(--cream); }
.stk-paq { position: absolute; top: -14px; right: 18px; font-size: 0.85rem; }
@media (min-width: 760px) {
  .paq { grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
  .paq-precio { text-align: right; }
}
.extras { display: grid; gap: 48px; margin-top: clamp(56px, 7vw, 96px); }
.extras .h3 { margin-bottom: 16px; }
.tarifa li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgb(0 0 0 / 0.22);
}
.tarifa li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tarifa-grande li span:first-child { display: grid; gap: 2px; color: var(--mute); }
.tarifa-grande b { color: #000; font-size: 1.25rem; }
.tarifa-grande li span:last-child { font-size: 1.25rem; }
.tarifa small { font-size: 0.75em; font-weight: 600; }
@media (min-width: 900px) { .extras { grid-template-columns: 1fr 1fr; gap: 72px; } }
.aviso-precios { margin-top: 48px; padding: 20px 24px; background: var(--paper); border-radius: 14px; max-width: 80ch; }

/* ---------- Proceso ---------- */
.proceso { display: grid; gap: 0; }
.proceso > * { min-width: 0; }
.fases { display: none; }
.etapas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.etapa {
  display: grid; align-content: start; gap: 6px; text-align: left;
  min-height: 84px; padding: 12px;
  background: transparent; border: 1.5px solid rgb(241 234 219 / 0.28); border-radius: 12px;
  font-weight: 600; font-size: 0.875rem; line-height: 1.2; cursor: pointer;
  hyphens: manual; overflow-wrap: break-word;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.etapa .num { font-family: var(--font-dot); font-weight: 900; font-size: 2rem; line-height: 1; color: var(--red); }
.etapa:hover { border-color: var(--cream); }
.etapa[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #000; }
.etapa[aria-selected="true"] .num { color: #000; }
html:not(.js) .etapas, html:not(.js) .etapa-nav { display: none; }
.etapa-paneles { margin-top: 20px; }
.etapa-panel { display: grid; gap: 8px 40px; padding: clamp(24px, 4vw, 48px); border: 2px solid var(--cream); border-radius: 18px; min-height: 260px; align-content: center; }
html:not(.js) .etapa-panel { margin-bottom: 12px; min-height: 0; }
.etapa-panel .h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-family: var(--font-d); font-weight: 800; font-stretch: 75%; margin-bottom: 12px; }
.etapa-panel p { max-width: 52ch; color: var(--ash); font-size: var(--fs-lead); }
.etapa-panel .recibes { color: var(--cream); margin-top: 16px; font-size: 1rem; }
.etapa-panel .etapa-big { font-family: var(--font-dot); font-weight: 900; font-size: clamp(5rem, 3rem + 9vw, 11rem); line-height: 0.8; color: var(--red); }
.js .etapa-panel.is-active > * { animation: entra 0.45s var(--ease) both; }
.js .etapa-panel.is-active > div { animation-delay: 60ms; }
@keyframes entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.etapa-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: 16px; }
.etapa-nav .btn { padding: 0 14px; }
.etapa-cont { font-weight: 600; color: var(--ash); font-size: var(--fs-sm); text-align: center; white-space: nowrap; }
@media (min-width: 900px) {
  .fases { display: grid; grid-template-columns: 3fr 3fr 3fr; gap: 6px; margin-bottom: 10px; }
  .fases span { padding-bottom: 8px; border-bottom: 3px solid var(--red); font-weight: 700; font-size: var(--fs-sm); color: var(--cream); }
  .etapas { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .etapa { min-height: 104px; font-size: 0.875rem; padding: 12px 10px; }
  .etapa-panel { grid-template-columns: auto 1fr; align-items: center; }
}

/* ---------- Para quién ---------- */
#quien-titulo { max-width: 21ch; }
.perfiles { display: grid; gap: 0; border-top: 2px solid #000; }
.perfil { display: grid; gap: 10px; padding: 28px 0; border-bottom: 2px solid #000; }
.perfil-frase { font-family: var(--font-d); font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem); font-weight: 800; font-stretch: 75%; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
.perfil p:not(.perfil-frase) { max-width: 50ch; }
.perfil-sol { font-weight: 700; }
.perfil-sol a { font-weight: 800; }
@media (min-width: 900px) {
  .perfiles { grid-template-columns: 1fr 1fr; column-gap: 64px; border-top: 0; }
  .perfil { border-top: 2px solid #000; border-bottom: 0; padding: 32px 0 40px; }
}

/* ---------- Demos ---------- */
.demos {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 280px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scroll-padding-inline: var(--gut);
  padding: 20px var(--gut) 12px; margin-inline: calc(var(--gut) * -1);
  scrollbar-color: #000 var(--paper);
}
.demo { position: relative; scroll-snap-align: start; display: grid; align-content: start; gap: 8px; }
.demo-marco {
  border: 6px solid #000; border-radius: 26px; overflow: hidden; background: #000;
  box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.5);
  margin-bottom: 10px;
}
.demo-marco img { width: 100%; aspect-ratio: 390 / 800; object-fit: cover; object-position: top; }
.demo p { color: var(--mute); font-size: var(--fs-sm); }
.stk-demo { position: absolute; top: -4px; left: -6px; font-size: 0.8rem; padding: 6px 12px; }
@media (min-width: 1000px) {
  .demos { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding-inline: 0; margin-inline: 0; }
  .demo:nth-child(even) { margin-top: 48px; }
}

/* ---------- Condiciones ---------- */
.pagos { display: flex; gap: 6px; }
.pago {
  flex: var(--p) 1 0; min-width: 0;
  display: grid; align-content: space-between; gap: 18px;
  min-height: 170px; padding: 16px;
  background: var(--red); color: #000; border-radius: 14px;
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.2;
}
.pago:nth-child(2) { background: var(--cream); }
.pago:nth-child(3) { background: var(--ash); }
.pago-n { font-family: var(--font-d); font-weight: 800; font-stretch: 75%; font-size: clamp(2.25rem, 1.2rem + 4.5vw, 5.5rem); line-height: 0.85; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.reglas { display: grid; gap: 0; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid rgb(241 234 219 / 0.25); }
.reglas li { display: grid; gap: 4px; padding: 22px 0; border-bottom: 1px solid rgb(241 234 219 / 0.25); }
.reglas b { font-family: var(--font-d); font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); font-weight: 800; font-stretch: 75%; line-height: 1; color: var(--red); }
.reglas span { color: var(--ash); font-size: var(--fs-lead); }
@media (min-width: 900px) {
  .reglas { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgb(241 234 219 / 0.25); }
  .reglas li { padding: 28px 28px 32px 0; border-bottom: 0; }
  .reglas li + li { padding-left: 28px; border-left: 1px solid rgb(241 234 219 / 0.25); }
}
@media (max-width: 520px) {
  .pago { min-height: 150px; padding: 10px; font-size: 0.8125rem; }
  .pago-n { font-size: 2rem; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
.faq details { border-bottom: 2px solid #000; }
.faq details:first-child { border-top: 2px solid #000; }
.faq summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 22px 52px 22px 0; font-weight: 700; font-size: 1.1875rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5c.3 5.6-.2 11.4.2 17M3.5 12.2c5.7-.4 11.3.2 17-.3' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red-ink); }
.faq details p { padding: 0 0 24px; max-width: 62ch; color: var(--mute); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; } }

/* ---------- CTA final ---------- */
.cta-final { padding-block: clamp(80px, 10vw, 150px); overflow: hidden; }
.cta-in { position: relative; }
.cta-titulo { font-family: var(--font-d); font-size: var(--fs-xl); font-weight: 800; font-stretch: 75%; line-height: 0.9; letter-spacing: -0.02em; max-width: 14ch; text-wrap: balance; margin-bottom: 32px; }
.stk-cta { position: absolute; right: var(--gut); bottom: 6px; font-size: clamp(0.9rem, 0.7rem + 0.8vw, 1.3rem); }
@media (max-width: 640px) { .stk-cta { position: static; margin-top: 28px; } }

/* ---------- Contacto ---------- */
.contacto-grid { display: grid; gap: 40px; }
.contacto-grid .lead { margin-top: 20px; }
@media (min-width: 960px) { .contacto-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; } }
.form { padding: clamp(22px, 4vw, 40px); border-radius: 22px; display: grid; gap: 18px; }
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 700; }
.campo input, .campo textarea {
  width: 100%; padding: 13px 14px; min-height: 50px;
  font: inherit; font-size: 1rem; color: #000;
  background: #fff9ee; border: 2px solid #000; border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campo textarea { resize: vertical; min-height: 120px; }
.campo input:focus-visible, .campo textarea:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--red-ink) !important; }
.ayuda { font-size: 0.875rem; color: var(--mute); }
.err { font-size: 0.9375rem; font-weight: 700; color: var(--red-ink); }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: var(--fs-sm); line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; border: 2px solid #000; border-radius: 7px; background: #fff9ee; cursor: pointer; display: grid; place-content: center; }
.check input::before { content: ""; width: 14px; height: 14px; transform: scale(0); transition: transform 0.18s var(--pop); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5 6.2 12.4 14 3.6' fill='none' stroke='%23f1eadb' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.check input:checked { background: #000; }
.check input:checked::before { transform: scale(1); }
.check label { cursor: pointer; }
.check a { font-weight: 700; color: var(--red-ink); }
.oblig { color: var(--mute); }
.form-estado { font-weight: 700; font-size: var(--fs-sm); }
.form-estado:empty { display: none; }
.form-estado a { color: var(--red-ink); word-break: break-all; }
.capa { margin-top: 6px; padding-top: 18px; border-top: 2px solid #000; font-size: 0.875rem; line-height: 1.45; }
.capa-tit { font-weight: 800; margin-bottom: 10px; }
.capa dl { display: grid; gap: 4px 14px; }
.capa dt { font-weight: 700; }
.capa dd { color: var(--mute); margin-bottom: 6px; }
.capa a { color: var(--red-ink); font-weight: 700; }
@media (min-width: 560px) { .capa dl { grid-template-columns: 8.5em 1fr; } .capa dd { margin: 0; } }

/* ---------- Pie ---------- */
.pie { padding-block: 64px 40px; border-top: 3px solid var(--red); }
.pie-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.pie-logo svg { width: min(360px, 70vw); height: auto; aspect-ratio: 2600 / 860; color: var(--cream); }
.pie-lema { font-family: var(--font-d); font-weight: 800; font-stretch: 75%; font-size: 1.75rem; line-height: 1; }
.pie-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 40px; }
.pie-nav a, .pie-nav .link-btn { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); font-weight: 600; }
.pie-nav a:hover, .pie-nav .link-btn:hover { color: var(--red); }
.pie-legal { margin-top: 20px; color: var(--ash); font-size: 0.875rem; }

/* ---------- Banner y modal de cookies ---------- */
.cmp-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  max-width: 760px; margin-inline: auto;
  padding: 20px; border-radius: 18px;
  background: var(--cream); color: #000; border: 3px solid #000;
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.6);
  font-size: var(--fs-sm); line-height: 1.45;
  --focus: #000;
}
.cmp-banner h2 { font-size: 1.125rem; font-weight: 800; margin-bottom: 6px; }
.cmp-banner a { font-weight: 700; color: var(--red-ink); }
.cmp-botones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.btn-cmp { --h: 46px; padding: 0 10px; background: #000; color: var(--cream); font-size: 0.9375rem; white-space: normal; text-align: center; }
.btn-cmp:hover { background: var(--red); color: #000; }
@media (max-width: 480px) { .cmp-botones { grid-template-columns: 1fr; } }
.cmp-banner[hidden], .cmp-modal[hidden] { display: none; }
.cmp-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 12px; background: rgb(0 0 0 / 0.72); }
.cmp-caja {
  position: relative; width: 100%; max-width: 640px; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(20px, 4vw, 32px); border-radius: 20px;
  background: var(--cream); color: #000; border: 3px solid #000;
  --focus: #000; --fg: #000; --muted: var(--mute);
}
.cmp-caja h2 { font-family: var(--font-d); font-weight: 800; font-stretch: 75%; font-size: 2.25rem; line-height: 1; margin-bottom: 10px; padding-right: 48px; }
.cmp-caja > p { font-size: var(--fs-sm); color: var(--mute); }
.cmp-caja a { color: var(--red-ink); font-weight: 700; }
.cmp-cerrar { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 2px solid #000; border-radius: 999px; cursor: pointer; }
.cmp-cerrar svg { width: 18px; height: 18px; }
.cmp-cats { margin-top: 18px; border-top: 2px solid #000; }
.cmp-cat { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgb(0 0 0 / 0.2); }
.cmp-cat label, .cmp-cat .cmp-nombre { font-weight: 800; }
.cmp-cat p { grid-column: 1 / -1; font-size: 0.875rem; color: var(--mute); }
.cmp-fijo { font-size: 0.8125rem; font-weight: 700; color: var(--mute); }
.switch { appearance: none; -webkit-appearance: none; position: relative; width: 52px; height: 30px; margin: 0; border-radius: 999px; background: #8d867a; border: 2px solid #000; cursor: pointer; transition: background-color 0.2s; }
.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); transition: transform 0.25s var(--ease); }
.switch:checked { background: var(--red-ink); }
.switch:checked::before { transform: translateX(22px); }
.cmp-caja .cmp-botones { margin-top: 20px; }

/* ---------- Páginas legales ---------- */
.legal-top { border-bottom: 1px solid rgb(241 234 219 / 0.12); }
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal-doc { max-width: 72ch; }
.legal-doc h1 { font-family: var(--font-d); font-weight: 800; font-stretch: 75%; font-size: var(--fs-h2); line-height: 0.95; margin-bottom: 16px; }
.legal-doc h2 { font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin: 44px 0 12px; }
.legal-doc h3 { font-size: 1.125rem; font-weight: 700; margin: 24px 0 8px; }
.legal-doc p, .legal-doc li { margin-bottom: 12px; }
.legal-doc ul { list-style: disc; padding-left: 1.3em; }
.legal-doc ol { list-style: decimal; padding-left: 1.3em; }
.legal-doc a { color: var(--red-ink); font-weight: 600; }
.legal-meta { color: var(--mute); font-size: var(--fs-sm); }
.legal-aviso { margin-top: 48px; padding: 18px 20px; background: var(--paper); border-radius: 12px; font-weight: 700; }
.tabla-wrap { overflow-x: auto; margin: 16px 0 24px; }
.legal-doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgb(0 0 0 / 0.2); }
.legal-doc th { background: #000; color: var(--cream); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .stk.rv, .js .tachon.rv { opacity: 1; transform: rotate(var(--r, 0deg)); }
  .js .tachon.rv { transform: none; }
}
