@import url('/fonts/figtree/figtree.css');
@import url('/fonts/inter/inter.css');

/* Rumbo — coaching y capacitación para empresas.
   Titulares en Figtree 800–900 en mayúsculas, texto en Figtree e Inter. Azul acero + naranja.
   Los diseños de escritorio con capas fijas viven bajo `html.dsk` (script.js lo pone solo en la web publicada y la vista previa,
   a partir de 861 px); el editor y el celular usan el diseño plano de arriba (html.is-ed = editor). */

:root {
  --ink: #0B1B2B;
  --acc: #F26522;
  --pale: #EEF2F8;
  --gray: #4A5563;
  --line: #D5DCE6;
  --navy: #12304D;
  --steel: #5C829E;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --u: calc(100vh / 900);
  --grad: radial-gradient(60% 55% at 56% 34%, rgba(196, 214, 228, .5), transparent 72%),
          radial-gradient(42% 42% at 0% 100%, rgba(255, 156, 80, .42), transparent 72%),
          radial-gradient(40% 50% at 100% 100%, rgba(8, 24, 42, .55), transparent 70%),
          linear-gradient(165deg, #6C93AE 0%, #3A6486 52%, #1A3F5F 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body, button, input, select, textarea { font-family: 'Figtree', 'Inter', system-ui, sans-serif; }
body { margin: 0; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
hr { border: 0; border-top: 1px solid var(--acc); margin: 0; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 99px; }
.skip-link:focus { left: 8px; }
.acc { color: var(--acc); }

/* Botones */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 26px; border: 0; border-radius: 99px;
  font: 800 12px/1 'Figtree', sans-serif; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s var(--ease); }
.btn-t { display: inline-flex; align-items: center; }
/* Al pasar el mouse aparece un punto de 4 px a la izquierda del texto (opacidad 0 → 1 en ~300 ms, medido en el original) */
.btn-t::before { content: ''; flex: none; width: 0; height: 4px; margin-right: 0; border-radius: 50%; background: currentColor; opacity: 0; transition: width .3s var(--ease), margin .3s var(--ease), opacity .3s ease-out; }
.btn:hover .btn-t::before, .btn:focus-visible .btn-t::before { width: 4px; margin-right: 8px; opacity: 1; }
button.btn .btn-t::before { content: none; }
.btn-acc { background: var(--acc); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }

/* Etiqueta y titulares */
.pill { display: inline-block; padding: 9px 20px; border-radius: 99px; background: var(--pale); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.dark .pill { background: rgba(11, 33, 56, .45); color: #fff; }
.sec-h, .what-h, .sv-h, .ct-h, .prob, .hero-h, .word-t { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.sec-h { font-size: clamp(30px, 4vw, 58px); text-align: center; max-width: 17ch; margin-inline: auto; }
.ln { display: block; }
.hl { display: inline-block; background: var(--acc); color: #fff; padding: .02em .16em .06em; margin: 0 .04em; transform: rotate(-1.6deg); }
.hl > span { display: inline; }

/* ─── Cabecera fija ─── */
.hd { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 76px; pointer-events: none; color: #fff; transition: color .3s; }
.hd-in { height: 100%; display: flex; align-items: center; gap: 24px; padding: 0 28px; }
.hd a, .hd button { pointer-events: auto; }
.logo-box { display: flex; align-items: flex-start; gap: 8px; margin-right: auto; pointer-events: auto; }
.logo-mark { width: 16px; height: 16px; margin-top: 8px; background: var(--acc); transform: rotate(14deg); flex: none; border-radius: 2px; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.1; }
.logo { font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.logo-tag { font-size: 13px; font-weight: 500; opacity: .85; margin-top: 2px; }
.menu { display: flex; align-items: center; gap: 34px; }
.menu a { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 10px 2px; transition: opacity .2s; }
.menu a:hover { opacity: .65; }
.btn-head { background: #fff; color: var(--ink); }
.hd[data-hd-state="light"] { color: var(--ink); }
.hd[data-hd-state="light"] .btn-head { background: var(--acc); color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ─── Portada y capas (diseño plano) ─── */
.top { position: relative; background: var(--grad); color: #fff; overflow: hidden; }
.layer { position: static; }
.l-stage { position: absolute; top: 0; left: 0; right: 0; height: min(100svh, 940px); z-index: 0; }
.l-stage .pin { position: relative; height: 100%; overflow: hidden; }
.stage-photo { position: absolute; top: 0; right: 0; width: 76%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.stage-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, rgba(255, 255, 255, .2) 1px, transparent 1px), linear-gradient(180deg, rgba(255, 255, 255, .2) 1px, transparent 1px); background-size: 20% 100%, 100% 25%; }
.stage-tiles { position: absolute; inset: 0; pointer-events: none; }
.hero-copy { position: relative; z-index: 3; min-height: min(100svh, 940px); display: flex; }
.hero-in { width: 100%; max-width: 1440px; margin: 0 auto; padding: 150px 80px 90px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-kick { font-size: clamp(26px, 3.5vw, 50px); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.hero-kick .hl { font-weight: 500; }
.hero-h { margin-top: clamp(30px, 5vw, 76px); font-size: clamp(60px, 11.1vw, 230px); line-height: .8; letter-spacing: -.035em; }
.hero-h span { display: block; }
.hero-p { margin-top: clamp(30px, 4.4vw, 70px); max-width: 480px; font-size: 17px; line-height: 1.6; font-weight: 500; }
.hero-in .btn { margin-top: 28px; }
.hero-hint { display: none; position: absolute; right: 52px; bottom: 36px; width: 180px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .9); }

/* Problema */
.l-prob { position: relative; z-index: 3; }
.l-prob .pin { padding: 40px 20px 20px; }
.prob { font-size: clamp(34px, 7.2vw, 104px); text-align: center; line-height: .98; }
.prob .hl { margin-right: .1em; }

/* Tarjetas */
.cards { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 30px 20px 90px; }
.card { width: min(500px, 100%); background: #fff; color: var(--ink); padding: 40px 44px 36px; box-shadow: 0 0 64px rgba(0, 0, 0, .07); position: relative; }
.card:nth-child(odd) { transform: rotate(-2deg); }
.card:nth-child(even) { transform: rotate(2deg); }
.card .q { position: absolute; right: 30px; top: 6px; font-size: 130px; line-height: 1; font-weight: 900; color: var(--pale); font-family: 'Figtree', sans-serif; }
.card-t { position: relative; font-size: clamp(30px, 3.5vw, 50px); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; }
.card-t span { display: block; }
.card-d { position: relative; margin-top: 18px; font-size: 15px; line-height: 1.55; color: var(--gray); max-width: 38ch; }

/* Lo que trabajamos */
.l-curt, .l-digit { display: none; }
.what { position: relative; z-index: 6; background: #fff; color: var(--ink); padding: 90px 20px 100px; }
.what-head { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.what-h { font-size: clamp(26px, 4vw, 58px); font-weight: 800; max-width: 22ch; }
.words { display: flex; flex-direction: column; gap: 70px; padding: 70px 0 30px; }
.word { display: flex; justify-content: center; }
.word-in { width: max-content; max-width: 100%; text-align: center; position: relative; }
.word-in::before { content: counter(w); counter-increment: w; position: absolute; left: 50%; top: -60px; transform: translateX(-50%); font-size: 120px; font-weight: 900; line-height: 1; color: var(--pale); z-index: -1; }
.words { counter-reset: w; }
.word-t { font-size: clamp(36px, 7.2vw, 104px); letter-spacing: -.03em; }
.word-in hr { margin: 8px 0 22px; }
.word-d { font-size: 15px; color: var(--gray); line-height: 1.55; max-width: 300px; margin: 0 auto; }
.bens { position: relative; max-width: 1152px; margin: 60px auto 0; }
.ghost { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: clamp(80px, 13vw, 191px); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--pale); z-index: 0; pointer-events: none; white-space: nowrap; overflow: hidden; }
.bens-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 30px; }
.ben { border-left: 1px solid var(--acc); padding: 24px 24px 24px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 250px; background: transparent; }
.ben svg { color: var(--ink); }
.ben-t { font-size: clamp(26px, 2.7vw, 38px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; font-family: 'Inter', 'Figtree', sans-serif; }
.ben-t span { display: block; }
.ben-d { margin-top: auto; font-size: 15px; color: var(--gray); line-height: 1.5; }
.next { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 60px 0 0; }
.next-t { font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.next-p { max-width: 520px; font-size: 15px; color: var(--gray); }

/* ─── Fondos azules (historias, servicios, contacto) ─── */
.dark { position: relative; background: var(--grad); color: #fff; }
.dark::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, rgba(255, 255, 255, .17) 1px, transparent 1px); background-size: 20% 100%; }
.dark > * { position: relative; }

/* Historias */
.story { padding: 120px 20px 100px; }
.story-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.story-text { order: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding-top: 20px; }
.story-photo { order: 2; }
.story-photo img { width: 100%; max-height: 640px; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border-radius: 99px; background: rgba(11, 33, 56, .45); font-size: 12px; font-weight: 500; }
.quote-box { position: relative; padding-left: 0; }
.quote-box::before { content: ''; position: absolute; left: -40px; top: 6px; bottom: 6px; width: 10px; background: var(--acc); }
.quote { font-size: clamp(26px, 3.6vw, 52px); font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: -.02em; }
.quote .w { transition: opacity .25s linear; }
.who { font-size: 14px; opacity: .85; }

/* Servicios */
.services { padding: 40px 20px 130px; }
.sv-head { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; padding: 50px 0 60px; }
.sv-h { font-size: clamp(28px, 4vw, 58px); max-width: 20ch; }
.sv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.svc { min-height: 480px; padding: 32px 30px 34px; display: flex; flex-direction: column; align-items: flex-start; background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(11, 33, 56, .38)); will-change: transform; }
.svc-tag { padding: 6px 12px; border-radius: 99px; background: rgba(11, 33, 56, .5); font-size: 12px; font-weight: 500; }
.svc-t { margin-top: 62px; font-size: 24px; font-weight: 900; line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; }
.svc-d { margin-top: 16px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.svc-p { margin-top: auto; padding-top: 28px; font-size: 17px; font-weight: 700; }
.svc .btn { margin-top: 18px; }

/* Proceso */
.proc { padding: 130px 20px 110px; }
.proc-head { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.proc-wrap { position: relative; max-width: 1152px; margin: 90px auto 0; }
.proc-ghost { top: 0; transform: none; text-align: left; }
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); counter-reset: st; gap: 0 4px; padding-top: 74px; }
.step { counter-increment: st; border-left: 1px solid var(--acc); padding: 20px 24px 24px; min-height: 340px; display: flex; flex-direction: column; background: transparent; }
.step::before { content: counter(st, decimal-leading-zero); color: var(--acc); font-size: 14px; font-weight: 800; }
.step-t { margin-top: 22px; font-size: 28px; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; font-family: 'Inter', 'Figtree', sans-serif; }
.step-t span { display: block; }
.step-d { margin-top: auto; padding-top: 30px; font-size: 15px; color: var(--gray); line-height: 1.5; max-width: 26ch; }

/* Nosotros */
.about { padding: 60px 20px 100px; }
.about-grid { overflow-x: clip; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.about-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ab-h { font-size: clamp(28px, 3.5vw, 50px); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; max-width: 14ch; }
.ab-p { font-size: 15px; color: var(--gray); max-width: 38ch; }
.about-photos { position: relative; aspect-ratio: 4 / 5; max-width: 420px; margin: 0 auto; width: calc(100% - 32px); }
.ph { position: absolute; inset: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-back { transform: rotate(7deg) translate(22px, 8px); opacity: .55; }
.ph-front { transform: rotate(-3deg); box-shadow: 0 30px 60px -30px rgba(11, 27, 43, .5); }
.stats { max-width: 1152px; margin: 90px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 24px; }
.stat { border-bottom: 1px solid var(--acc); padding-bottom: 14px; text-align: center; }
.stat-n { font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.stat-l { font-size: 14px; color: var(--gray); }
.rate { margin-top: 70px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.faces { display: flex; }
.faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -8px; }
.faces img:first-child { margin-left: 0; }
.rate-stars { color: var(--acc); letter-spacing: 3px; font-size: 18px; }
.rate-l { font-size: 14px; font-weight: 700; }
.rate-t { font-size: 13px; color: var(--gray); }
.ab-contact { text-align: center; max-width: 560px; margin: 60px auto 0; font-size: 14px; color: var(--gray); }
.ab-contact a { color: var(--acc); font-weight: 700; }
.social { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-size: 14px; font-weight: 700; }

/* Ideas */
.ideas { padding: 80px 20px 120px; }
.id-head { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.arts { max-width: 1060px; margin: 80px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 80px; align-items: start; }
.art { display: flex; flex-direction: column; gap: 22px; }
.art-1 { margin-top: 90px; }
.art-1 .art-img { order: 2; max-width: 290px; }
.art-img img { width: 100%; object-fit: cover; }
.art-1 .art-img img { aspect-ratio: 3 / 4; }
.art-2 .art-img img { aspect-ratio: 11 / 10; }
.art-body { display: flex; flex-direction: column; gap: 10px; }
.art-date { font-size: 12px; color: var(--gray); }
.art-t { font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; max-width: 24ch; }
.art-x { font-size: 14px; color: var(--gray); max-width: 44ch; }
.id-more { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; margin-top: 70px; }
.id-p { max-width: 460px; font-size: 15px; color: var(--gray); }

/* Contacto */
.contact { padding: 120px 20px 110px; }
.ct-head { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; padding-bottom: 50px; }
.ct-h { font-size: clamp(30px, 4vw, 58px); }
.ct-p { max-width: 520px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.cf { max-width: 864px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.cf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-col { display: flex; flex-direction: column; gap: 10px; }
.fld { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fld-l { font-size: 13px; color: rgba(255, 255, 255, .85); }
.fld input, .fld textarea { width: 100%; border: 0; border-radius: 0; background: rgba(11, 33, 56, .35); color: #fff; padding: 14px 16px; font: 500 15px/1.4 'Figtree', sans-serif; resize: vertical; }
.fld textarea { min-height: 150px; flex: 1; }
.fld input:focus, .fld textarea:focus { outline: 2px solid #fff; outline-offset: 0; }
.opts { border: 0; padding: 0; margin: 0; }
.opts legend { font-size: 16px; font-weight: 600; padding: 0 0 14px; }
.opts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px 20px; }
.opt { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.opt input { appearance: none; width: 18px; height: 18px; flex: none; margin: 0; background: rgba(11, 33, 56, .45); border: 1px solid rgba(255, 255, 255, .4); display: grid; place-items: center; cursor: pointer; }
.opt input:checked { background: var(--acc); border-color: var(--acc); }
.opt input:checked::after { content: ''; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.cf-send { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cf-note { font-size: 12px; opacity: .85; }

/* Preguntas */
.faq { padding: 120px 20px 100px; }
.faq-head { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.faq-list { max-width: 1060px; margin: 70px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 80px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; display: block; padding: 24px 44px 24px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 400; color: var(--acc); transition: transform .3s var(--ease); line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 44px 24px 0; font-size: 14px; color: var(--gray); line-height: 1.6; }
.faq-more { text-align: center; margin-top: 60px; font-size: 14px; color: var(--gray); }
.faq-more a { color: var(--acc); font-weight: 700; }

/* Pie */
.foot { position: relative; padding: 70px 20px 0; overflow: hidden; border-top: 1px solid var(--line); }
.foot-in { max-width: 1060px; margin: 0 auto; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 50px; }
.fcol-t { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8A97A8; margin-bottom: 16px; }
.fcol ul { display: flex; flex-direction: column; gap: 12px; font-size: 14px; font-weight: 600; }
.fgrid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px !important; max-width: 520px; }
.fcol a:hover { color: var(--acc); }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 70px; font-size: 12px; color: var(--gray); }
.foot-ghost { font-size: min(25vw, 380px); font-weight: 900; letter-spacing: -.045em; line-height: .78; color: var(--pale); text-align: center; white-space: nowrap; margin: 40px 0 -.12em; user-select: none; }

/* Aparecer al desplazarte (solo en la web publicada) */
.fx [data-rv] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.fx [data-rv].rv-in { opacity: 1; transform: none; }

/* ─── Escritorio con capas fijas (html.dsk): medidas con el sitio de referencia, en unidades u = 100vh / 900 ─── */
html.dsk .top { height: calc(var(--u) * 7359); background: #fff; color: var(--ink); overflow: visible; }
html.dsk .layer { position: absolute; left: 0; right: 0; top: calc(var(--u) * var(--y, 0)); bottom: 0; }
html.dsk .layer .pin { position: sticky; top: 0; height: 100vh; }
html.dsk .l-stage { height: auto; z-index: 1; }
html.dsk .l-stage .pin { background: var(--grad); }
html.dsk .l-prob { --y: 1000; z-index: 3; color: #fff; }
html.dsk .l-prob .pin { padding: 0 20px; }
html.dsk .pin-c { display: grid; place-items: center; }
html.dsk .l-curt { display: block; z-index: 6; }
html.dsk .curt-cols { position: absolute; inset: 0; }
html.dsk .cc { position: absolute; top: 0; bottom: 0; background: #fff; width: 0; }
html.dsk .l-digit { display: block; --y: 3233; z-index: 7; }
html.dsk .digits { position: relative; width: 100%; height: 100%; }
html.dsk .dg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 560px; font-weight: 900; line-height: 1; color: var(--pale); opacity: 0; will-change: transform, opacity; letter-spacing: -.04em; }
html.dsk .hero-copy { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--u) * 900); min-height: 0; z-index: 4; color: #fff; }
html.dsk .hero-in { padding-top: calc(var(--u) * 150); padding-bottom: 0; height: 100%; }
html.dsk .cards { position: absolute; inset: 0; z-index: 5; display: block; padding: 0; pointer-events: none; }
html.dsk .card { position: absolute; left: 50%; top: calc(var(--u) * var(--cy)); width: 500px; height: 311px; transform: translate(-50%, -50%); will-change: transform; }
html.dsk .card:nth-child(1) { --cy: 2056; }
html.dsk .card:nth-child(2) { --cy: 2567; }
html.dsk .card:nth-child(3) { --cy: 3078; }
html.dsk .what { position: absolute; inset: 0; z-index: 8; background: none; padding: 0; pointer-events: none; }
html.dsk .what > * { pointer-events: auto; }
html.dsk .what-head { position: absolute; left: 0; right: 0; top: calc(var(--u) * 3485); }
html.dsk .words { position: absolute; left: 0; right: 0; top: calc(var(--u) * 4083); display: block; padding: 0; gap: 0; }
html.dsk .word { height: calc(var(--u) * 589); }
html.dsk .word-in::before { display: none; }
html.dsk .bens { position: absolute; left: 50%; width: min(1152px, 100% - 40px); transform: translateX(-50%); top: calc(var(--u) * 6400); margin: 0; }
html.dsk .bens .ghost { display: none; }
html.dsk .next { position: absolute; left: 0; right: 0; top: calc(var(--u) * 6900); padding: 0; }
html.dsk .what-h .ln { overflow: hidden; padding-bottom: .08em; }
html.dsk .what-h .ln > * { display: inline-block; will-change: transform; }
html.dsk .story-photo { position: sticky; top: 0; height: 100vh; align-self: start; display: flex; align-items: center; }
html.dsk .story { padding-top: 0; padding-bottom: 0; }
html.dsk .story-grid { min-height: 160vh; }
html.dsk .story-text { padding-top: 22vh; padding-bottom: 20vh; }

/* ─── Editor: todo plano y editable ─── */
html.is-ed .hd { position: absolute; }
html.is-ed .word-in::before { display: none; }
html.is-ed .sv-list > .tm-add-btn, html.is-ed .steps > .tm-add-btn, html.is-ed .stats > .tm-add-btn { min-height: 120px !important; }
html.is-ed .opts-list > .tm-add-btn { min-height: 44px !important; }

/* ─── Móvil: una columna ─── */
@media (max-width: 860px) {
  .hd-in { padding: 0 14px; gap: 10px; }
  .menu { display: none; }
  .nav-toggle { display: block; position: relative; z-index: 6; }
  .menu.is-open { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; background: var(--navy); color: #fff; }
  .menu.is-open a { font-size: 9vw; font-weight: 900; padding: 6px 10px; }
  .logo-tag { display: none; }
  .logo { font-size: 22px; }
  .btn-head { min-height: 40px; padding: 0 18px; }
  .hero-in { padding: 110px 20px 70px; }
  .hero-h { font-size: 17vw; }
  .hero-hint { display: none; }
  .stage-photo { width: 100%; opacity: .55; }
  .prob { font-size: 11vw; }
  .word-t { font-size: 12vw; }
  .story-grid { grid-template-columns: 1fr; }
  .story-photo { order: 0; }
  .story-photo img { max-height: 420px; }
  .quote-box::before { left: -12px; width: 6px; }
  .quote-box { padding-left: 6px; }
  .about-grid { grid-template-columns: 1fr; }
  .arts { grid-template-columns: 1fr; gap: 50px; }
  .art-1 { margin-top: 0; }
  .art-1 .art-img { order: 0; max-width: none; }
  .cf-fields { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-list { grid-template-columns: 1fr; max-width: 520px; }
  .svc { min-height: 0; }
  .svc-t { margin-top: 36px; }
  .step { min-height: 0; }
  .step-d { padding-top: 16px; }
  .ghost { font-size: 22vw; }
}
@media (prefers-reduced-motion: reduce) {
  .fx [data-rv] { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* Fichas de la portada (se arman al cargar y se pueden mover) */
.tile { pointer-events: auto; position: absolute; overflow: hidden; opacity: 0; transform: scale(.86); transition: opacity .7s var(--ease), transform .9s var(--ease), box-shadow .3s; cursor: grab; touch-action: none; }
.tile.is-in { opacity: 1; transform: none; }
.tile.is-drag { z-index: 5; cursor: grabbing; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .55); }
.tile-ph { position: absolute; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
.tile-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; user-select: none; -webkit-user-drag: none; }
html.tiles-wait .hero-photo { opacity: 0; }
html.dsk .hero-hint, html.is-ed .hero-hint { display: flex; }
/* Las capas que tapan la foto de la portada no capturan el clic: así el editor puede cambiarla (y en la web se pueden mover las fichas) */
.hero-copy, .l-prob .pin, .cards { pointer-events: none; }
.hero-copy a, .hero-copy [data-edit], .hero-copy button, .prob [data-edit], .card { pointer-events: auto; }
/* Las capas absolutas cubren toda la pieza: ninguna captura el clic (las fichas y los textos sí) */
html.dsk .layer, html.dsk .layer .pin, html.dsk .what { pointer-events: none; }
html.dsk .what > * { pointer-events: auto; }
html.dsk .hero-hint { right: 52px; bottom: calc(var(--u) * 36); top: auto; }

/* Ícono de WhatsApp estándar del kit (el glifo original, relleno, del color del texto del botón).
   Para botones .btn de WhatsApp que no llevan ícono propio. Plantillas con ícono en el marcado: svg con este mismo path. */
.btn[data-whatsapp-btn]::after { content: ''; order: -1; flex: none; width: 1.55em; height: 1.55em; margin: -.1em 10px -.1em -2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center / contain no-repeat; }
