/* HighKeep · dirección editorial «castillo»
   Fondo = #15110e, el mismo del vídeo, para que el torreón no tenga borde.
   Acento único: azul cobalto de azulejo (complementario del ladrillo), solo en grande: menú, contacto y pie. */

@font-face { font-family: "Clash Display"; src: url("fonts/clash-display-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("fonts/clash-display-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #15110e;
  --ink: #e8e5e1;
  --mute: #a69f96;
  --line: rgba(235, 231, 225, .16);
  --cobalt: #1f3cf0;
  --on-cobalt: #ffffff;
  --s1: #121833;          /* card: noche cobalto */
  --s2: #172045;          /* card destacada */
  --s3: #1c2752;          /* card al pasar el ratón */
  --edge: rgba(235, 231, 225, .07);
  --r: 6px;
  --m: 40px;              /* margen de página */
  --g: 24px;              /* medianil */
  --bar: 52px;
  --display: "Clash Display", "Arial Narrow", sans-serif;
  --text: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--text); font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: normal; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { top: 8px; }

/* enlaces: subrayado de 1 px que se desliza */
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .24em; transition: text-decoration-color .35s var(--ease); }
.link:hover { text-decoration-color: transparent; }
/* con ratón: el subrayado se va por la derecha y vuelve a crecer desde la izquierda */
@media (hover: hover) and (min-width: 701px) {
  .link:not(.cta) { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
  .link:not(.cta):hover { animation: hk-line .8s var(--ease); }
}
@keyframes hk-line { 0% { background-size: 100% 1px; background-position: 100% 100%; } 45% { background-size: 0 1px; background-position: 100% 100%; }
  55% { background-size: 0 1px; background-position: 0 100%; } 100% { background-size: 100% 1px; background-position: 0 100%; } }

/* control único: rectángulo 0 px; al pasar, el relleno se desliza de izquierda a derecha */
.btn { display: inline-block; font: 500 15px/1 var(--text); padding: 16px 22px; background: var(--ink); color: var(--bg); border: 0; border-radius: 0; cursor: pointer;
  position: relative; isolation: isolate; overflow: hidden; --fill: var(--cobalt); transition: color .35s var(--ease), translate .45s var(--ease); }
.btn:hover { color: #fff; }
.btn-inv { background: #fff; color: var(--cobalt); --fill: var(--bg); }
.btn-inv:hover { color: #fff; }
.btn::before, .cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease); }
.btn:hover::before, .cta:hover::before { transform: scaleX(1); transform-origin: left; }

/* ---------- cabecera en una línea fina ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--bar);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: center;
  padding: 0 var(--m); background: var(--bg); border-bottom: 1px solid var(--line);
  font-size: 13px; letter-spacing: .02em;
}
.bar-name { grid-column: 1 / 3; font: 600 19px/1 var(--display); letter-spacing: .01em; }
.bar-role { grid-column: 3 / 6; color: var(--mute); }
.bar-nav { grid-column: 6 / 12; display: flex; gap: 28px; justify-content: flex-end; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.bar-nav a { position: relative; }
.bar-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.bar-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.bar-lang { grid-column: 12 / 13; justify-self: end; color: var(--mute); }
.bar-lang a[aria-current] { color: var(--ink); }
.bar-menu { display: none; }

.sheet { position: fixed; inset: 0; z-index: 25; background: var(--cobalt); color: var(--on-cobalt); padding: calc(var(--bar) + 32px) 20px 28px; display: flex; flex-direction: column; justify-content: space-between; }
.sheet[hidden] { display: none; }
.sheet nav { display: flex; flex-direction: column; }
.sheet nav a { font: 600 44px/1.15 var(--display); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.28); }
.sheet-foot { font-size: 15px; }

/* ---------- portada: el torreón en el centro ---------- */
.hero {
  --H: calc(100svh - var(--bar) - 16px);
  position: relative; min-height: max(100svh, 640px); padding: var(--bar) var(--m) 0;
  overflow: hidden;
}
.stage {
  position: absolute; left: 50%; top: calc(var(--bar) + 8px); height: var(--H); aspect-ratio: 540 / 676; transform: translateX(-50%);
  background: var(--bg);
  /* funde los bordes del vídeo con el fondo aunque el códec mueva el tono */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 90%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 90%, transparent);
}
.stage-video, .stage-still { width: 100%; height: 100%; object-fit: contain; background: var(--bg); }
.stage-still { display: none; }

.hero-title {
  --gap: calc(var(--H) * .44);
  position: absolute; left: var(--m); right: var(--m); top: 31%; z-index: 2;
  font: 600 clamp(56px, calc((100vw - 80px - var(--gap)) / 11.4), 160px)/.92 var(--display);
  letter-spacing: -.02em;
}
.hl { display: grid; grid-template-columns: 1fr var(--gap) 1fr; }
.hl + .hl { margin-top: .18em; }
.hl > .m:first-child { grid-column: 1; justify-self: end; }
.hl > .m:last-child { grid-column: 3; justify-self: start; }
.m { display: block; overflow: hidden; padding-bottom: .08em; white-space: nowrap; }
.m > span { display: block; }

.hero-lead { position: absolute; left: var(--m); bottom: 40px; width: min(380px, 30vw); z-index: 2; }
.hero-lead p:first-child { font-size: 17px; }
.actions { margin-top: 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.hero-facts { position: absolute; right: var(--m); bottom: 40px; z-index: 2; text-align: right; font-size: 15px; color: var(--mute); line-height: 1.8; }

/* ---------- comunes ---------- */
.sec { padding: 136px var(--m) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); }
.h2 { font: 600 clamp(34px, 3.4vw, 52px)/1.02 var(--display); letter-spacing: -.01em; }
.rv > span, .m > span { display: block; }
.rv { overflow: hidden; padding-bottom: .06em; }
.side { font: 500 15px/1.4 var(--text); color: var(--mute); }
.lead { font-size: 19px; line-height: 1.5; max-width: 46ch; color: var(--ink); }
.note { color: var(--mute); font-size: 15px; max-width: 70ch; }
.sec-head { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; margin-bottom: 56px; }
.sec-head .h2 { grid-column: 1 / 7; }
.sec-head .lead { grid-column: 8 / 13; }

/* sillar: la card. Un paso de tono sobre el fondo, esquina pequeña, una almena (muesca) en el borde superior */
.blk { position: relative; background: var(--s1); border-radius: var(--r); }
.blk::after { content: ""; position: absolute; top: 0; right: 28px; width: 22px; height: 8px; background: var(--bg); border-radius: 0 0 2px 2px; pointer-events: none; }
/* corona: merlones en cobalto encima de la card, como la corona del castillo */
.crown { border-top-left-radius: 0; border-top-right-radius: 0; }
.crown::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; background: repeating-linear-gradient(90deg, var(--cobalt) 0 26px, transparent 26px 52px); pointer-events: none; }
.crown::after { display: none; }

/* logos: una hilera de sillares */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.logos { padding: 96px var(--m) 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.logo-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.logo-row li { display: grid; }
.logo-row a { display: grid; place-items: center; padding: 20px; border-radius: var(--r); }
/* alto fijo por logo: contain evita que se aplasten si la celda es más estrecha */
.logo-row img { width: auto; max-width: 100%; object-fit: contain; filter: invert(1); opacity: .82; transition: opacity .3s; }
.logo-row a:hover img { opacity: 1; }
@media (hover: hover) { .logo-row img { transition: opacity .3s, translate .5s var(--ease); } .logo-row a:hover img { translate: 0 -3px; } }

/* qué recibes: bento */
.recibes .h2 { grid-column: 1 / -1; margin-bottom: 40px; }
.bento { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(210px, auto); gap: 8px; }
.bento > div { grid-column: span 3; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 30px 32px 32px; }
.bento > .tall { grid-row: span 2; background: var(--s2); }
.bento > .wide { grid-column: span 4; }
.bento > .stone { grid-column: span 2; background: var(--ink); color: var(--bg); border-color: transparent; }
.bento dt { font: 500 30px/1.08 var(--display); letter-spacing: -.005em; }
.bento .tall dt { font-size: clamp(40px, 4vw, 60px); line-height: 1; max-width: 9ch; letter-spacing: -.015em; }
.bento dd { max-width: 40ch; color: #cdc7c0; }
.bento .tall dd { font-size: 19px; color: var(--ink); max-width: 30ch; }
.bento .stone dd { color: #4a423a; }

/* paquetes: Crecimiento en cobalto con corona */
.packs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; align-items: stretch; }
.pack { display: flex; flex-direction: column; padding: 32px 32px 32px; }
.pack-name h3 { font: 600 32px/1 var(--display); margin-bottom: 12px; }
.pack-name p { color: var(--mute); font-size: 16px; max-width: 32ch; min-height: 3em; }
.pack-price { font: 600 clamp(60px, 5.8vw, 92px)/.9 var(--display); letter-spacing: -.03em; white-space: nowrap; margin: 36px 0 36px; }
.pack-price small { display: block; font: 500 .24em/1.2 var(--display); letter-spacing: 0; color: var(--mute); margin-bottom: .3em; }
.pack-body { flex: 1; display: flex; flex-direction: column; }
.pack-body li { padding: 0 0 10px 18px; text-indent: -18px; font-size: 16px; }
.pack-body li::before { content: "—"; display: inline-block; width: 18px; text-indent: 0; color: var(--mute); }
.pack-body .no { color: var(--mute); font-size: 15px; margin: 14px 0 28px; }
.cta { margin-top: auto; display: block; padding: 17px 20px; background: var(--s3); border-radius: 4px; text-decoration: none; font-weight: 500;
  position: relative; isolation: isolate; overflow: hidden; --fill: var(--cobalt); transition: color .35s var(--ease); }
.cta::after { content: "→"; float: right; transition: translate .45s var(--ease); }
.cta:hover { color: #fff; }
.cta:hover::after { translate: 4px 0; }
.feat { background: var(--cobalt); color: var(--on-cobalt); border-color: var(--cobalt); }
.feat .pack-name p, .feat .pack-body .no, .feat .pack-body li::before { color: rgba(255, 255, 255, .82); }
.feat .cta { background: #fff; color: var(--cobalt); --fill: var(--bg); }
.feat .cta:hover { color: #fff; }
.feat ::selection { background: var(--bg); }

.loose { grid-column: 1 / -1; padding-top: 56px; }
.loose .side { font: 600 26px/1.1 var(--display); color: var(--ink); margin-bottom: 20px; }
.loose-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.loose-list > div { display: flex; flex-direction: column; padding: 22px 24px 24px; }
.loose-list dt { font: 500 24px/1.1 var(--display); }
.loose-list dt { margin-bottom: 10px; }
.loose-list dd:last-child { color: var(--mute); font-size: 15px; }

/* mantenimiento: tres sillares, el del medio con corona */
.plans { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; }
.plan { padding: 30px 32px 28px; }
.plan h3 { font: 500 24px/1.1 var(--display); }
.plan-price { font: 600 clamp(56px, 5vw, 80px)/1 var(--display); letter-spacing: -.03em; margin: 16px 0 26px; }
.plan-price small { font: 500 .28em/1 var(--display); letter-spacing: 0; color: var(--mute); margin-left: 6px; }
.plan li { padding: 0 0 10px; font-size: 16px; }
.mid { background: var(--s2); box-shadow: inset 0 0 0 1px var(--cobalt); }
.mant .note { grid-column: 1 / 8; margin-top: 28px; }

/* proceso: siete plantas que suben como la torre */
.phases { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; padding-top: 12px; }
.phases li { min-height: calc(330px + var(--i) * 40px); display: flex; flex-direction: column; padding: 20px 18px 20px; }
.phases .ph-meta { color: var(--mute); font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; margin-bottom: 22px; }
.phases h3 { font: 500 22px/1.08 var(--display); margin-bottom: 12px; }
.phases li > p:not(.ph-meta) { font-size: 15px; line-height: 1.45; }
.phases .ph-you { margin-top: auto; color: var(--mute); }
.phases li > p:nth-of-type(2) { margin-bottom: 20px; }
.phases .top { background: var(--s2); box-shadow: inset 0 0 0 1px var(--cobalt); }
.proceso > .note { grid-column: 1 / 9; padding-top: 20px; }
.kinds { grid-column: 1 / -1; margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kinds > div { padding: 22px 24px 24px; }
.kinds dt { font: 500 22px/1.1 var(--display); margin-bottom: 8px; }
.kinds dd { color: var(--mute); font-size: 15px; }

/* casos: captura a sangre arriba, texto debajo */
.casos .h2 { grid-column: 1 / -1; margin-bottom: 40px; }
.cases { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 8px; }
.case { overflow: hidden; display: flex; flex-direction: column; transition: transform .6s var(--ease), background-color .4s; }
.case:nth-child(1) { grid-column: 1 / 8; }
.case:nth-child(2) { grid-column: 8 / 13; }
.case:nth-child(3) { grid-column: 1 / -1; }
.case:nth-child(3) .case-text { display: grid; grid-template-columns: 5fr 7fr; column-gap: 48px; align-items: start; }
.case:nth-child(3) .case-line { grid-row: 1 / 3; }
.case::after { z-index: 2; }
.case-pic { display: block; height: clamp(240px, 25vw, 380px); overflow: hidden; background: #221c17; }
.case-pic:focus-visible { outline-offset: -4px; outline-color: #fff; }
.case-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform-origin: center top; transition: transform .9s var(--ease); }
.case:hover { transform: translateY(-6px); background: var(--s2); }
.case:hover .case-pic img { transform: scale(1.04); }
.case-text { padding: 26px 30px 30px; }
.case-line { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 6px; margin-bottom: 18px; color: var(--mute); font-size: 15px; font-variant-numeric: tabular-nums; }
.case-name { grid-column: 1 / -1; font: 600 clamp(30px, 2.8vw, 44px)/1 var(--display); color: var(--ink); letter-spacing: -.01em; margin-bottom: 6px; }
.case-text > p:not(.case-line) { max-width: 52ch; }
.case-foot { margin-top: 16px; color: var(--mute); font-size: 15px; }
.casos > .note { grid-column: 1 / -1; margin-top: 8px; max-width: none; padding: 24px 30px; font: 500 20px/1.35 var(--display); color: var(--ink); background: var(--s2); }

/* quién está detrás: un sillar grande */
.quien-card { grid-column: 1 / -1; padding: 56px 56px 48px; }
.quien-t { font: 600 clamp(40px, 4.8vw, 80px)/1 var(--display); letter-spacing: -.02em; margin-bottom: 48px; }
.quien-cols { columns: 3 220px; column-gap: 40px; }
.quien-cols p { break-inside: avoid; margin-bottom: 1em; }

/* preguntas: acordeón dentro de un sillar */
.faq .h2 { grid-column: 1 / 5; align-self: start; position: sticky; top: calc(var(--bar) + 32px); }
.faq-list { grid-column: 5 / 13; padding: 4px 32px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font: 500 23px/1.2 var(--display); border-radius: 2px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--text); font-weight: 400; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 60ch; color: var(--mute); }

/* contacto: un sillar grande en cobalto con corona */
.contacto { padding: 148px var(--m) 0; }
.cont-card { position: relative; background: var(--cobalt); color: var(--on-cobalt); border-radius: 0 0 var(--r) var(--r); padding: 88px 64px 72px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); }
.contacto ::selection { background: var(--bg); }
.cont-head { grid-column: 1 / 6; }
.cont-t { font: 600 clamp(48px, 5.2vw, 88px)/.95 var(--display); letter-spacing: -.02em; margin-bottom: 28px; }
.contacto .lead { color: var(--on-cobalt); font-size: 18px; max-width: 38ch; }
.form { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--g); row-gap: 28px; align-content: start; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.f input { font: 400 20px/1.3 var(--text); color: #fff; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.6); border-radius: 0; padding: 8px 0 10px; }
.f input::placeholder { color: rgba(255,255,255,.72); }
.f input:focus { outline: none; border-bottom-color: #fff; box-shadow: inset 0 -1px 0 #fff; }
.f input:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; margin-top: 8px; }
.hp { position: absolute; left: -9999px; }

.foot { padding: 0 var(--m); overflow: hidden; margin-top: 96px; }
.foot-line { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.foot-line a { color: var(--ink); }
.foot-line span:last-child { display: flex; gap: 22px; }
.foot-word { font: 600 19.6vw/.74 var(--display); letter-spacing: -.035em; margin: 2vw 0 0 -.06em; white-space: nowrap; padding-bottom: 1.2vw; color: var(--s2); }

/* ---------- movimiento: texto con máscara ---------- */
.js .rv > span, .js .m > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .rv.in > span, .js .hero-title.in .m > span { transform: none; }
.js .hero-title .hl:nth-child(2) .m > span { transition-delay: .12s; }
.js .hero-title .m:nth-child(2) > span { transition-delay: .06s; }
.js .rv-f { transform: translateY(28px); transition: transform 1s var(--ease); }
.js .rv-f.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .stage-video { display: none; }
  .stage-still { display: block; }
  .js .rv > span, .js .m > span, .js .rv-f { transform: none; opacity: 1; transition: none; }
  .case, .case-pic img, .link, .bar-nav a::after, .cta, .cta::after, .btn, .btn::before, .cta::before, .logo-row img { transition: none; }
  .link:not(.cta):hover { animation: none; }
  .js .hero-lead, .js .hero-facts { animation: none; }
}

/* ---------- tableta ---------- */
@media (max-width: 1180px) {
  .bar-role { display: none; }
  .bar-nav { grid-column: 3 / 12; gap: 20px; }
  .packs, .plans { grid-template-columns: 1fr; gap: 28px; }
  .pack-name p { min-height: 0; }
  .phases { grid-template-columns: 1fr; gap: 8px; }
  .phases li { min-height: 0; display: grid; grid-template-columns: 140px 1fr 1fr; column-gap: var(--g); padding: 22px 24px; }
  .phases .ph-meta { grid-row: 1 / 3; margin: 0; }
  .phases h3 { grid-column: 2 / -1; }
  .phases li > p:nth-of-type(2) { margin: 0; }
  .phases .ph-you { margin: 0; padding: 0; border: 0; }
  .phases .top { margin-top: 12px; }
  .case:nth-child(1), .case:nth-child(2) { grid-column: 1 / -1; }
  .bento .tall dt { font-size: 40px; }
}

/* ---------- móvil: se quita interfaz, menú en hoja ---------- */
@media (max-width: 900px) {
  :root { --m: 20px; --g: 16px; --bar: 56px; }
  body { font-size: 16px; }
  .bar { display: flex; justify-content: space-between; }
  .bar-role, .bar-nav, .bar-lang { display: none; }
  .bar-menu { display: block; font: 500 15px/1 var(--text); color: var(--ink); background: none; border: 0; padding: 12px 0 12px 16px; cursor: pointer; }
  .menu-open .bar { background: var(--cobalt); border-color: rgba(255,255,255,.28); color: #fff; }
  .menu-open .bar-menu { color: #fff; }

  .hero { --H: 58svh; min-height: auto; padding: calc(var(--bar) + 20px) var(--m) 40px; display: flex; flex-direction: column; }
  .hero-title { position: static; order: 1; font-size: calc((100vw - 40px) / 9); line-height: .98; }
  .hl { display: flex; gap: .24em; }
  .hl + .hl { margin-top: .04em; }
  .stage { position: relative; order: 2; left: auto; top: auto; transform: none; height: var(--H); margin: 0 auto; }
  .hero-lead { position: static; order: 3; width: auto; margin-top: 4px; }
  .hero-facts { position: static; order: 4; text-align: left; margin-top: 28px; }

  .sec { padding-top: 96px; display: block; }
  .h2 { font-size: 36px; }
  .sec-head { display: block; margin-bottom: 36px; }
  .sec-head .lead { margin-top: 16px; font-size: 18px; }
  .blk::after { right: 20px; width: 18px; }

  .logos { padding-top: 56px; grid-template-columns: 1fr 1fr; }
  .logos .side { grid-column: 1 / -1; min-height: 0; padding: 18px 20px; }
  .logo-row { grid-column: 1 / -1; }
  .logo-row li { min-height: 96px; }
  .logo-row li:last-child { grid-column: 1 / -1; }
  .logo-row a { padding: 14px; }
  .logo-row img { transform: scale(.78); }

  .recibes .h2 { margin-bottom: 28px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento > div, .bento > .wide, .bento > .stone { grid-column: auto; grid-row: auto; padding: 24px 22px 26px; gap: 20px; }
  .bento > .tall { min-height: 300px; }
  .bento dt { font-size: 26px; }
  .bento .tall dt { font-size: 40px; }
  .bento .tall dd { font-size: 17px; }

  .pack { padding: 26px 22px 24px; }
  .pack-price { font-size: 60px; margin: 24px 0 24px; padding-bottom: 24px; }
  .loose { padding-top: 48px; }
  .loose-list { grid-template-columns: 1fr; }

  .plan { padding: 24px 22px 20px; }
  .plan-price { font-size: 56px; }

  .phases li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 20px 22px; }
  .phases .ph-meta { grid-column: 2; grid-row: 1; text-align: right; margin: 4px 0 0; }
  .phases h3 { grid-column: 1; grid-row: 1; }
  .phases li > p:not(.ph-meta) { grid-column: 1 / -1; }
  .phases h3 { font-size: 26px; }
  .phases li > p:nth-of-type(2) { margin-bottom: 14px; }
  .kinds { grid-template-columns: 1fr; margin-top: 36px; }

  .casos .h2 { margin-bottom: 28px; }
  .cases { display: flex; flex-direction: column; gap: 8px; }
  .case-pic { height: auto; aspect-ratio: 16 / 10; }
  .case-text { padding: 22px 22px 26px; }
  .case-line { grid-template-columns: 1fr; }
  .casos > .note { font-size: 18px; padding: 22px; }
  .case:nth-child(3) .case-text { display: block; }

  .quien-card { padding: 32px 22px 24px; }
  .quien-t { font-size: 34px; margin-bottom: 28px; }

  .faq .h2 { position: static; margin-bottom: 24px; }
  .faq-list { padding: 0 20px; }
  .faq summary { font-size: 19px; padding: 18px 0; }

  .contacto { padding-top: 104px; }
  .cont-card { display: block; padding: 48px 22px 40px; }
  .cont-t { font-size: 44px; }
  .form { grid-template-columns: 1fr; margin-top: 40px; }
  .foot { margin-top: 64px; }
  .foot-line span:last-child { flex-wrap: wrap; gap: 8px 20px; }
}

/* scroll-linked 3D tower (prototype) */
.gl3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; transition: opacity .4s; }
.stage { -webkit-mask-image: none; mask-image: none; background: none; }
.gl3d { z-index: -1; }
html { background: var(--bg); }
body { background: transparent !important; }

/* the hero stays while the castle is built and the camera moves: 300vh of scroll (160vh on phones) */
.pin { height: 400vh; position: relative; }
.pin > .hero { position: sticky; top: 0; }
@media (prefers-reduced-motion: reduce) { .pin { height: auto; } .pin > .hero { position: relative; } }


/* cases 4–5: Greenik and the one under construction */
.case:nth-child(4) { grid-column: 1 / 7; }
.case:nth-child(5) { grid-column: 7 / 13; }
.wip-pic { position: relative; display: grid !important; place-items: center; background: var(--s2); }
.wip-pic img { width: auto !important; height: 46% !important; object-fit: contain !important; filter: invert(1); opacity: .9; }
.wip-tag { position: absolute; left: 20px; top: 20px; font: 500 13px/1 var(--text); letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--cobalt); padding: 8px 12px; border-radius: 4px; }
@media (max-width: 900px) { .case:nth-child(4), .case:nth-child(5) { grid-column: 1 / -1; } }

/* B+D: night-cobalt cards with a fine edge */
.blk { box-shadow: inset 0 0 0 1px #34407a; }
.blk.feat, .contacto .blk, .blk.light { box-shadow: none; }
.pack .g, .plan .g { display: flex; align-items: flex-end; height: 92px; margin-bottom: 18px; }
.pack .g .iso, .plan .g .iso { height: 100%; width: auto; }
.blk.stone { box-shadow: none; }
.blk.mid, .phases .blk.top { box-shadow: inset 0 0 0 1px var(--cobalt); }

/* ---------- Mobile (≤700px): one screen, one idea. Built with mobile.js ---------- */
@media (max-width: 700px) {
  html { scroll-padding-bottom: 80px; }
  .pin { height: 260vh; }
  .hero-facts, .note, .mant .lead, .proceso .lead, .pack .no, .kinds, .bento dd,
  .phases li > p:not(.ph-meta), .case-text > p:not(.case-line):not(.case-foot), .quien-cols p:not(:first-child) { display: none; }

  /* hero: big title on top, castle in the elastic middle, line + actions at the thumb */
  .hero { height: 100svh; min-height: 560px; padding: calc(var(--bar) + 14px) var(--m) 24px; }
  .hero-title { font-size: calc((100vw - 40px) / 5.6); line-height: .9; letter-spacing: -.025em; }
  .hl { display: block; } .hl + .hl { margin-top: 0; }
  .stage { flex: 1 1 auto; height: auto; min-height: 0; width: 100%; aspect-ratio: auto; }
  .hero-lead { margin-top: 0; }
  .hero-lead p:first-child { font-size: 16px; line-height: 1.45; max-width: 30ch; }
  .actions { margin-top: 16px; gap: 4px 20px; }
  .actions .btn, .actions .link { min-height: 48px; display: inline-flex; align-items: center; }

  /* rhythm */
  .sec { padding-top: 72px; }
  .h2 { font-size: 30px; line-height: 1.04; }
  .sec-head { margin-bottom: 20px; }
  .sec-head .lead { margin-top: 10px; font-size: 16px; }
  .recibes .h2, .casos .h2, .faq .h2 { margin-bottom: 20px; }

  /* logos: just the logos, drifting */
  .logos { display: block; padding: 40px 0 0; overflow: hidden; }
  .logo-row.drift { display: flex; width: max-content; animation: drift 36s linear infinite; }
  /* la separación va dentro de cada li: con gap, el -50 % del bucle daría un salto */
  .logo-row.drift > li { flex: none; min-height: 88px; padding-right: 36px; background: none; box-shadow: none; }
  .logo-row.drift img { max-width: none; transform: none; opacity: 1; }
  .logo-row.drift img[src*="verto"] { height: 38px !important; }
  .logo-row.drift img[src*="milfshakes"] { height: 26px !important; }
  .logo-row.drift img[src*="greenik"] { height: 36px !important; }
  .logo-row li::after { display: none; }
  .logo-row a { padding: 8px; }
  @keyframes drift { to { transform: translateX(-50%); } }

  /* velo a todo el ancho: el castillo sigue detrás pero el texto suelto se lee */
  .logos, .sec-head, .sec > .h2, .phases, .foot-line {
    border-image: linear-gradient(transparent, rgb(21 17 14 / .8) 18px, rgb(21 17 14 / .8) calc(100% - 18px), transparent) fill 0 / 0 / 18px 100vw;
  }
  .phases .ph-meta, .foot-line { color: #c9c2b9; }

  /* key figures */
  .figs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 32px var(--m) 0; }
  .figs .blk { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
  .figs b { font: 600 30px/1 var(--display); letter-spacing: -.02em; }
  .figs .blk:nth-child(2) b { color: #8ea0ff; }
  .figs span { font-size: 14px; color: var(--mute); line-height: 1.3; }

  /* what you get: a small bento, all in view */
  .bento { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bento > div, .bento > .wide, .bento > .stone { grid-column: auto; padding: 16px; gap: 14px; min-height: 0; justify-content: space-between; }
  .bento > .tall { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: flex-end; }
  .bento dt { font-size: 19px; line-height: 1.1; }
  .bento .tall dt { font-size: 30px; }
  .bento .g { display: flex; align-items: flex-end; height: 52px; }
  .bento .tall .g { order: 2; height: 76px; }
  .g .iso { height: 100%; width: auto; }

  /* packages and plans: one card at a time, chosen with chips */
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
  .tabs button { min-height: 60px; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 5px; text-align: left;
    font: 500 13px/1.15 var(--text); color: var(--ink); background: none; border: 0; border-radius: var(--r); box-shadow: inset 0 0 0 1px #34407a; cursor: pointer; }
  .tabs button b { font: 600 17px/1 var(--display); white-space: nowrap; }
  .tabs button b small { font: 500 11px/1 var(--text); margin-right: 3px; }
  .tabs button[aria-selected="true"] { background: var(--cobalt); color: #fff; box-shadow: none; }
  .packs, .plans { display: block; padding-top: 0; }
  .packs > [hidden], .plans > [hidden] { display: none !important; }
  .pack, .plan { padding: 20px; }
  .packs .crown, .plans .crown { border-radius: var(--r); }
  .packs .crown::before, .plans .crown::before { display: none; }
  .blk.feat { background: var(--s1); color: var(--ink); box-shadow: inset 0 0 0 1px #34407a; }
  .feat .pack-name p, .feat .pack-body li::before { color: var(--mute); }
  .feat .cta { background: var(--s3); color: var(--ink); }
  .blk.mid { background: var(--s1); }
  .tag { display: inline-block; margin-bottom: 12px; padding: 7px 10px; border-radius: 4px; background: var(--cobalt); color: #fff;
    font: 500 12px/1 var(--text); letter-spacing: .04em; text-transform: uppercase; }
  .pack .g, .plan .g { height: 60px; margin-bottom: 14px; }
  .pack-name h3 { font-size: 28px; margin-bottom: 6px; }
  .pack-name p { min-height: 0; font-size: 15px; }
  .pack-price { font-size: 52px; margin: 18px 0; padding-bottom: 0; }
  .pack-body li, .plan li { font-size: 15px; padding-bottom: 8px; }
  .pack-body li:nth-child(n+4), .plan li:nth-child(n+4) { display: none; }
  .cta { margin-top: 10px; min-height: 52px; }
  .plan-price { font-size: 48px; margin: 10px 0 14px; }

  .loose { padding-top: 32px; }
  .loose .side { font-size: 22px; margin-bottom: 12px; }
  .loose-list > div { padding: 16px 16px 18px; }
  .loose-list dt { font-size: 19px; margin-bottom: 6px; }

  /* phases: a staircase, the tower grows a block per phase */
  .phases { display: grid; gap: 2px; padding-top: 0; }
  .phases li { display: grid; grid-template-columns: 32px 1fr auto; column-gap: 14px; align-items: end; padding: 6px 0;
    min-height: 0; background: none; box-shadow: none !important; }
  .phases li::after, .phases li::before { display: none; }
  .phases .g { grid-column: 1; grid-row: 1; display: flex; justify-content: center; height: auto; margin: 0; }
  .phases .g .iso { width: 28px; height: auto; }
  .phases h3 { grid-column: 2; grid-row: 1; font-size: 20px; margin: 0; }
  .phases .ph-meta { grid-column: 3; grid-row: 1; text-align: right; margin: 0; font-size: 13px; }
  .phases .top h3 { color: #8ea0ff; }
  .phases .top { margin-inline: -10px; padding: 8px 10px; }

  /* cases: the only swipe row, pictures earn it */
  .cases { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--m) * -1); padding: 0 var(--m) 4px; scroll-padding-inline: var(--m); scrollbar-width: none; }
  .cases::-webkit-scrollbar { display: none; }
  .cases > * { flex: 0 0 84%; scroll-snap-align: start; transform: none !important; }
  .case-text { padding: 16px 18px 18px; }
  .case-name { font-size: 24px; }
  .case-line { margin-bottom: 8px; font-size: 14px; }
  .case-foot { margin-top: 8px; font-size: 14px; }
  .dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
  .dots i { width: 6px; height: 6px; border-radius: 3px; background: #4a423a; transition: width .25s, background-color .25s; }
  .dots i.on { width: 18px; background: var(--cobalt); }

  .faq-list { padding: 0 18px; }
  .faq summary { font-size: 17px; padding: 14px 0; min-height: 52px; align-items: center; }

  /* contact: short and quick */
  .contacto { padding-top: 72px; }
  .cont-card { padding: 32px 20px 28px; }
  .cont-t { font-size: 36px; margin-bottom: 12px; }
  .contacto .lead { font-size: 16px; }
  .form { margin-top: 20px; row-gap: 16px; }
  .f input { font-size: 17px; padding: 6px 0 8px; min-height: 44px; }
  .form-foot { gap: 12px; }
  .form-foot .btn { width: 100%; min-height: 52px; }

  /* the button at hand: hides going down, back going up */
  .mcta { position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; text-align: center;
    background: var(--cobalt); color: #fff; font: 500 15px/1 var(--text); padding: 17px; border-radius: var(--r);
    transform: translateY(160%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .mcta.on { transform: none; }
  /* thumb-size targets for inline links */
  .case-foot .link, .foot-line a, .form-foot .link, .bar-name { display: inline-block; padding-block: 13px; }
  .bar-menu { padding-block: 16px; }
  .case-foot, .form-foot span { line-height: 1.2; }
  .foot { margin-top: 48px; padding-bottom: 88px; }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) { .logo-row.drift { animation: none; } .logos { overflow-x: auto; } }

/* mobile: packages and plans stacked, compact, open one at a time */
@media (max-width: 700px) {
  .tabs { display: none !important; }
  .stack { display: flex !important; flex-direction: column !important; gap: 12px; overflow: visible !important; margin: 0 !important; padding: 0 !important; }
  .stack > * { flex: none !important; width: auto !important; }
  .stack > [hidden] { display: block !important; }
  .stack > .shut .pack-body ul, .stack > .shut .pack-body .no, .stack > .shut .pack-body .cta, .stack > .shut > ul, .stack > .shut .pack-name p:not(.tag) { display: none !important; }
  .stack .g { height: 60px !important; margin-bottom: 10px !important; }
  .stack .pack-price small { font-size: 14px; }
  .stack .pack-price, .stack .plan-price { font-size: 44px !important; margin: 6px 0 2px !important; }
  .open-more { display: block; width: 100%; margin-top: 12px; padding: 13px 0 2px; min-height: 44px; background: none; border: 0; border-top: 1px solid #34407a;
    color: var(--ink); font: 500 15px/1 var(--text); text-align: left; cursor: pointer; }
}

/* ---------- movimiento de toda la página ----------
   Los estados de partida cuelgan de html.motion, que main.js pone solo si no hay movimiento reducido:
   sin JS, o con «reduce», todo se ve terminado. Solo transform, opacity y clip-path. */
@keyframes hk-in { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-lead, .js .hero-facts { animation: hk-in 1.1s var(--ease) .7s both; }   /* solo opacidad: tower3d.js mide sus cajas */
}
/* títulos: palabra a palabra, suben desde detrás de la línea */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; }
.motion .rv.split > span { transform: none; transition: none; }
.motion .rv.split .w > span { transform: translateY(120%); transition: transform 1s var(--ease) calc(var(--i) * 70ms); }
.motion .rv.split.in .w > span { transform: none; }
/* cards y piezas: suben 20 px con opacidad, 75 ms entre una y otra */
.motion .rise { transition: opacity .6s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 75ms); }
.motion .rise:not(.up) { opacity: 0; transform: translateY(20px); }
/* casos: la captura se descubre de abajo arriba */
.motion .case.rise .case-pic { transition: clip-path .7s var(--ease) calc(var(--d, 0) * 75ms); }
.motion .case.rise:not(.up) .case-pic { clip-path: inset(100% 0 0 0); }
.motion .case.rise.up .case-pic { clip-path: inset(0 0 0 0); }
.plx .case-pic:not(.wip-pic) img { height: 108%; }   /* margen para el parallax, solo por abajo: no recorta los lados */
/* bloques isométricos: caen a su sitio, planta a planta */
.iso { overflow: visible; }
.motion .iso > g { transition: opacity .45s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--b) * 90ms); }
.motion .iso:not(.in) > g { opacity: 0; transform: translateY(-12px); }
/* fases: se encienden en orden con el scroll */
/* the card stays solid (the castle behind must not show through), only its contents dim */
.motion .phases > li > * { transition: opacity .7s var(--ease); }
.motion .phases > li:not(.lit) > * { opacity: .3; }
/* preguntas: el «+» vuelve en cuanto empieza a cerrarse */
.faq details.shutting summary::after { transform: none; }

/* ---------- escenas ligadas al scroll (main.js · scenes, GSAP ScrollTrigger) ----------
   Sin GSAP o con «reduce» nada de esto se activa: el manifiesto se lee entero, los casos quedan en rejilla. */
.manif { padding: 18vh var(--m) 4vh; }
.manif-t { font: 600 clamp(48px, 6.6vw, 112px)/.98 var(--display); letter-spacing: -.025em; max-width: 13ch; }
.mw { display: inline-block; }
.prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.iso.sc > g { transition: none; }
@media (max-width: 700px) { .manif { padding: 64px var(--m) 0; } .manif-t { font-size: 42px; line-height: 1.02; } }

/* proceso: la escalera de bloques sobre cada fase; tableta la omite */
@media (min-width: 701px) and (max-width: 1180px) { .phases .g { display: none; } }
@media (min-width: 1181px) {
  .phases .g { display: flex; align-items: flex-end; height: 100px; margin-bottom: 18px; }
  .phases .g .iso { width: 34px; height: auto; }
  .ph-scrub .phases > li { transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .5s; }
  .ph-scrub .phases > li.now { background: var(--s2); box-shadow: inset 0 0 0 1px var(--cobalt); transform: translateY(-14px); }
  .ph-scrub .phases > li.now h3 { color: #fff; }
  .ph-scrub .phases > li:not(.now) .ph-you { opacity: .55; transition: opacity .5s; }

  /* casos: una fila que avanza de lado mientras la sección está fija */
  .hscroll .casos { display: block; overflow: clip; }
.hscroll .cs-stick { position: sticky; top: calc(var(--bar) + 32px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); }
  .hscroll .cases { display: flex; gap: 8px; width: max-content; }
  .hscroll .case { width: min(46vw, 700px); flex: none; }
  .hscroll .case:nth-child(3) .case-text { display: block; }
  .hscroll .case-pic img { transition: none; }
}

/* care: no price list, two cards */
.plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .plans.two { grid-template-columns: 1fr; } }

/* ---------- cards: entrada y hover (main.js · cards) ----------
   Entrada: la card se levanta por hiladas, de abajo arriba (clip-path en pasos), su contenido asienta después y la
   almena encaja la última. Hover (puntero fino): sube 4 px, se enciende un filo cobalto y una luz suave sigue al puntero.
   Todo transform/opacity/clip-path; la luz es un disco que se mueve, no un gradiente que se repinta. */
.cd-edge, .cd-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); }
.cd-edge { padding: 1px; background: var(--edge, var(--cobalt)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cd-glow { overflow: hidden; }
.cd-glow::before { content: ""; position: absolute; left: 0; top: 0; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow, rgba(120, 145, 255, .16)), transparent);
  transform: translate3d(calc(var(--mx, 0px) - 280px), calc(var(--my, 0px) - 280px), 0); }
.feat > .cd-edge { --edge: #fff; }
.feat > .cd-glow { --glow: rgba(255, 255, 255, .18); }
.figs b { font-variant-numeric: tabular-nums; }   /* los contadores no bailan de ancho */
@media (prefers-reduced-motion: no-preference) {
  .motion .cd { clip-path: inset(-20px -2px -2px -2px); transition: clip-path .9s cubic-bezier(.65, 0, .25, 1) calc(var(--d, 0) * 110ms); }
  .motion .cd:not(.cd-in) { clip-path: inset(100% -2px -2px -2px); }
  .motion .cd .cdc { transition: opacity .55s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 520ms + var(--c, 0) * 40ms); }
  .motion .cd:not(.cd-in) .cdc { opacity: 0; transform: translateY(14px); }
  .motion .cd::after { transition: transform .5s var(--ease), opacity .3s; transition-delay: calc(var(--d, 0) * 110ms + 760ms); }
  .motion .cd:not(.cd-in)::after { opacity: 0; transform: translateY(-10px); }
  /* landed: no clip (the hover lift and the crown are free), no delays */
  .motion .cd.cd-done { clip-path: none; transition: transform .45s var(--ease); }
  .motion .cd.cd-done .cdc, .motion .cd.cd-done::after { transition-delay: 0s; }
  .motion .cd.hov { transform: translateY(-4px); }
  @media (max-width: 700px) { .motion .cd { transition-duration: .6s; } }
}
.cd.hov > .cd-edge, .cd.hov > .cd-glow, .cd:focus-within > .cd-edge { opacity: 1; }

/* iteración: mortero, odómetro, bloque que salta */
/* mortero: una línea cobalto sube con las hiladas y se apaga al coronar */
.cd-line { position: absolute; left: -1px; right: -1px; bottom: -2px; height: 2px; background: var(--cobalt); box-shadow: 0 0 14px 1px var(--cobalt); opacity: 0; pointer-events: none; }
.feat > .cd-line { background: #fff; box-shadow: 0 0 14px 1px #fff; }
/* odómetro: cada cifra es una columna 0–9 (dos vueltas) que rueda hasta su número */
.od { position: relative; display: inline-block; height: 1em; line-height: 1em; overflow: hidden; vertical-align: top; }
.od > i { font-style: normal; visibility: hidden; }   /* the final digit gives the column its own width: a 1 stays narrow */
.od > span { position: absolute; left: 50%; top: 0; text-align: center; translate: -50% 0; transform: translateY(calc((10 + var(--n)) * -1em)); }
@media (prefers-reduced-motion: no-preference) {
  .motion .cd-in > .cd-line { animation: hk-mortar .9s cubic-bezier(.65, 0, .25, 1) calc(var(--d, 0) * 110ms) both, hk-out .5s var(--ease) calc(var(--d, 0) * 110ms + .85s) both; }
  @keyframes hk-mortar { from { transform: translateY(0); } to { transform: translateY(calc(-1 * var(--h, 300px))); } }
  @keyframes hk-out { from { opacity: 1; } to { opacity: 0; } }
  .motion .cd:not(.cd-in) .od > span { transform: translateY(0); }
  .motion .cd .od > span { transition: transform 1.1s cubic-bezier(.2, .8, .15, 1); transition-delay: calc(var(--d, 0) * 110ms + 560ms + var(--o) * 70ms); }
  /* hover: la pieza de arriba del icono salta y vuelve a encajar */
  .motion .cd.cd-done .iso > g { transition: transform .45s cubic-bezier(.3, 1.7, .5, 1); transition-delay: 0s; }
  .motion .cd.hov .iso > g:last-child { transform: translateY(-9px); }
}
/* móvil: la card se hunde un poco al pulsarla */
@media (hover: none) { .cd { transition: scale .25s var(--ease); } .cd:active { scale: .985; } }
