/* Общий «кит» миров услуг: те же шрифты и краски, что у фильма, чтобы услуги смотрелись его сериями.
   Цвет нити мира (--c) и её свечение (--c2) задаёт kit.js по данным из datos.js. */
/* Шрифты — свои, с этого же сайта (латиница): без лишних походов к Google перед первой картинкой.
   Это вариативные файлы — один файл на все нужные толщины. Кириллица — отдельные файлы (Fontsource, OFL):
   браузер качает их, только если на странице есть русские буквы (unicode-range), испанским гостям они не мешают. */
@font-face { font-family: Unbounded; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/unbounded-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/manrope-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Lora; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/lora-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Lora; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/lora-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Unbounded; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/unbounded-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/manrope-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Lora; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/lora-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Lora; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/lora-italic-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #0b0806; --paper: #f3ead9; --ink: #2a1f18; --gold: #e0a15a; --red: #b3372b;
  --text: #f3ead9; --muted: #b8ab95; --line: rgba(243, 234, 217, .14);
  --c: var(--gold); --c2: #ffd08a;
  --gut: 16px; --col: 680px;
  --disp: Unbounded, system-ui, sans-serif; --serif: Lora, Georgia, serif; --ui: Manrope, system-ui, sans-serif;
}
@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 17px/1.55 var(--ui); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c2); outline-offset: 3px; }

/* ── Верхняя строка: назад к кипу, студия, фильм ── */
.barra { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
         padding: max(14px, env(safe-area-inset-top)) var(--gut) 0; font: 700 12px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.barra a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(243,234,217,.28); border-radius: 999px;
           background: rgba(5,3,3,.55); text-decoration: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.barra .marca { color: var(--gold); letter-spacing: .22em; text-shadow: 0 1px 8px #000; }
.apertura .barra .marca { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(5,3,3,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* Переключатель языка: «ES ▾», по тапу — список ES / EN / RU */
.idiomas { position: relative; flex: none; margin-left: auto; font: 700 12px/1 var(--ui); letter-spacing: .12em; }
.idiomas summary { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px 0 14px; border: 1px solid rgba(243,234,217,.28); border-radius: 999px;
                   background: rgba(5,3,3,.55); list-style: none; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); -webkit-tap-highlight-color: transparent; }
.idiomas summary::-webkit-details-marker { display: none; }
.idiomas summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; opacity: .8; }
.idiomas[open] summary::after { margin-top: 3px; rotate: -135deg; }
.idiomas ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 168px; margin: 0; padding: 6px; border: 1px solid rgba(243,234,217,.2); border-radius: 14px;
              background: #120d0a; box-shadow: 0 14px 34px rgba(0,0,0,.55); list-style: none; }
.barra .idiomas a { display: flex; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none;
                    font: 600 15px/1 var(--ui); letter-spacing: 0; text-transform: none; }
.barra .idiomas a b { color: var(--muted); font: 700 11px/1 var(--ui); letter-spacing: .12em; }
.barra .idiomas a:hover, .barra .idiomas a:focus-visible { background: rgba(255,255,255,.06); }
.barra .idiomas a[aria-current] { color: var(--c2); }
.barra .idiomas a[aria-current] b { color: var(--c2); }

/* ── Заставка мира: кадр во весь экран, на широком — кадр 9:16 по центру и размытый «кинозал» по бокам ── */
.apertura { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: clip; isolation: isolate; }
.apertura-fondo { position: absolute; inset: -40px; z-index: -3; background: var(--img) center / cover no-repeat; filter: blur(30px) brightness(.4) saturate(1.2); }
.apertura-cuadro { position: absolute; z-index: -2; inset: 0; margin: 0 auto; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
                   animation: respira 18s ease-out both; }
.apertura::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(11,8,6,0) 35%, rgba(11,8,6,.75) 62%, var(--bg) 96%); }
@media (min-aspect-ratio: 4/5) {
  .apertura-cuadro { width: min(100vw, calc(100svh * 9 / 16)); object-fit: contain; }
  .apertura::after { background: linear-gradient(180deg, rgba(11,8,6,0) 45%, rgba(11,8,6,.8) 75%, var(--bg) 98%); }
}
@keyframes respira { from { transform: scale(1.08); } to { transform: scale(1); } }
.apertura-texto { width: 100%; max-width: calc(var(--col) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut) max(28px, env(safe-area-inset-bottom)); }
.hilo-nombre { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 700 12px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--c2); text-shadow: 0 1px 8px #000; }
.hilo-nombre i { width: 34px; height: 4px; border-radius: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.apertura h1 { margin: 0; font: 700 clamp(30px, 8.6vw, 58px)/1.05 var(--disp); text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.gancho { margin: 14px 0 0; max-width: 36ch; font: italic 400 clamp(18px, 4.8vw, 22px)/1.45 var(--serif); color: #fff3e0; text-shadow: 0 1px 12px #000; }
.desliza { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 22px; padding: 0 22px; border-radius: 999px;
           background: var(--c); color: #120c08; font: 700 13px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.desliza::after { content: "↓"; font-size: 16px; }

/* ── Нить мира: тянется вдоль страницы слева, у каждого раздела — узелок ── */
.hilo { position: relative; max-width: calc(var(--col) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut) 0 calc(var(--gut) + 26px); }
.hilo::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gut) + 7px); width: 3px; border-radius: 2px;
                background: repeating-linear-gradient(180deg, var(--c) 0 9px, color-mix(in srgb, var(--c) 55%, #000) 9px 12px); opacity: .85; }
.bloque { position: relative; padding: 56px 0 8px; }
.bloque h2 { position: relative; margin: 0 0 14px; font: 700 clamp(22px, 6vw, 32px)/1.15 var(--disp); text-wrap: balance; }
.bloque h2::before { content: ""; position: absolute; left: -26px; top: .3em; width: 17px; height: 13px; margin-left: 0; border-radius: 50%;
                     background: var(--c); box-shadow: 0 0 0 2px var(--bg), 0 0 14px var(--c); }
.lead { margin: 0 0 18px; color: var(--muted); font: italic 400 17px/1.5 var(--serif); }

/* Кнопки «какой у тебя бизнес» */
.negocios { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 1px solid rgba(243,234,217,.3); border-radius: 999px;
        background: rgba(255,255,255,.03); font: 600 14px/1 var(--ui); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s, border-color .2s; }
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #120c08; }
.etiqueta { margin: 0 0 10px; font: 700 12px/1.3 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* Карточки демок */
.demos { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.demo { position: relative; padding: 14px 16px 15px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; background: rgba(255,255,255,.035); }
.demo h3 { margin: 0 0 4px; font: 700 16px/1.3 var(--ui); }
.demo p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.demo .estado { position: absolute; top: 12px; right: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(243,234,217,.08); color: var(--c2);
                font: 700 10px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.demo:has(.estado) h3 { padding-right: 70px; }
.demo.otro { opacity: .62; }
.demos + .etiqueta { margin-top: 22px; }

/* Живая карточка: тап выбирает бизнес и ведёт к демке */
.demo.en-vivo { padding: 0; border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); }
.demo.en-vivo button { display: block; width: 100%; padding: 14px 16px 15px; border: 0; background: none; text-align: left; cursor: pointer; }
.demo.en-vivo .estado { background: var(--c); color: #0d130f; }
.demo.en-vivo .estado::before { content: "● "; }

/* ── Живой чат (мир «Bots») ── */
.demo-vivo { margin: 4px 0 26px; }
/* Живой блок мира: ряд вкладок-демок листается пальцем до края экрана */
.hub-chips { display: flex; gap: 8px; margin: 0 calc(-1 * var(--gut)) 12px 0; padding: 2px var(--gut) 8px 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hub-chips::-webkit-scrollbar { display: none; }
.hub-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 15px; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-radius: 999px;
            background: color-mix(in srgb, var(--c) 8%, transparent); color: var(--text); font: 600 14px/1 var(--ui); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s, color .2s; }
.hub-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 8px var(--c2); }
.hub-chip[aria-selected="true"] { background: var(--c); border-color: var(--c); color: #120c08; }
.hub-chip[aria-selected="true"]::before { background: #120c08; box-shadow: none; }
.hub-panel[hidden] { display: none; }
.hub-panel { animation: sube .3s ease both; }

/* Консьерж: карточка «на тумбочке» с настоящим QR на эту демку */
.chat-qr { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 12px; border: 1px dashed color-mix(in srgb, var(--c) 60%, transparent); border-radius: 16px; background: rgba(255,255,255,.03); }
.chat-qr-cod { width: 92px; height: 92px; flex: none; border-radius: 8px; overflow: hidden; background: #fff; }
.chat-qr-cod svg { display: block; width: 100%; height: 100%; }
.chat-qr p { margin: 0; font-size: 14px; line-height: 1.4; }
.chat-qr b { display: block; font: 700 15px/1.3 var(--ui); color: var(--c2); }
.chat-qr span { color: var(--muted); }

/* «Твой бот»: сначала ссылка на сайт */
.chat-sitio { padding: 12px 12px 4px; border-bottom: 1px solid var(--line); }
.chat-sitio label { display: block; margin: 0 2px 8px; font: italic 400 16px/1.4 var(--serif); color: #fff3e0; }
.chat-sitio-fila { display: flex; gap: 8px; }
.chat-sitio-fila input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid rgba(243,234,217,.24); border-radius: 12px; background: #0b0806; color: var(--text); font: 400 16px var(--ui); }
.chat-sitio-fila button { flex: none; min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--c); color: #07120b; font: 700 14px/1 var(--ui); cursor: pointer; }
.chat-sitio-fila button:disabled { opacity: .6; cursor: progress; }
.chat-sitio-ejemplo { margin: 10px 0 0; padding: 6px 2px; border: 0; background: none; color: var(--c2); font: 600 14px/1.3 var(--ui); text-align: left; cursor: pointer; }
.chat-sitio-estado { min-height: 1.4em; margin: 6px 2px 8px; color: var(--muted); font-size: 13.5px; }
.chat-sitio-estado.error { color: #ff9b8a; }
.chat-sitio.cargado .chat-sitio-fila, .chat-sitio.cargado label { display: none; }
.chat { display: flex; flex-direction: column; height: min(600px, 78svh); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: 22px; overflow: hidden;
        background: linear-gradient(180deg, #0f1411, #0a0d0b); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 18px 50px rgba(0,0,0,.55), 0 0 40px color-mix(in srgb, var(--c) 18%, transparent); }
.chat-cab { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.chat-ava { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c) 25%, #111); font-size: 20px; }
.chat-quien { flex: 1; min-width: 0; line-height: 1.2; }
.chat-quien b { display: block; overflow: hidden; font: 700 14px/1.25 var(--ui); white-space: nowrap; text-overflow: ellipsis; }
.chat-quien small { display: block; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.chat-hora { padding: 4px 8px; border: 1px solid color-mix(in srgb, var(--c2) 50%, transparent); border-radius: 8px; color: var(--c2); font: 700 13px/1 var(--disp); text-shadow: 0 0 10px var(--c); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; font: 400 15.5px/1.45 var(--ui); overflow-wrap: anywhere; animation: sube .25s ease both; }
.msg.bot { align-self: flex-start; background: #1f2622; border-bottom-left-radius: 5px; }
.msg.yo { align-self: flex-end; background: var(--c); color: #07120b; border-bottom-right-radius: 5px; }
.msg.error { background: #3a1916; }
.msg a { color: var(--c2); }
.msg.escribe { display: inline-flex; align-items: center; gap: 4px; }
.msg.escribe .corre { display: inline-block; margin-right: 4px; transform: scaleX(-1); animation: corre .45s ease-in-out infinite alternate; }
.msg.escribe i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: punto 1s ease-in-out infinite; }
.msg.escribe i:nth-of-type(2) { animation-delay: .15s; } .msg.escribe i:nth-of-type(3) { animation-delay: .3s; }
@keyframes sube { from { opacity: 0; transform: translateY(6px); } }
@keyframes corre { from { transform: scaleX(-1) translateY(0); } to { transform: scaleX(-1) translateY(-3px) rotate(6deg); } }
@keyframes punto { 50% { opacity: .25; transform: translateY(-2px); } }
.msg.accion-caja { max-width: 92%; padding: 0; background: none; }
.accion { display: grid; gap: 3px; padding: 10px 12px; border-radius: 14px; border: 1px solid; font-size: 14px; }
.accion b { font: 700 14px/1.3 var(--ui); }
.accion small { color: var(--muted); font-size: 12px; }
.accion--ok { border-color: #3fa66b; background: rgba(63,166,107,.12); }
.accion--dueno { border-color: var(--gold); background: rgba(224,161,90,.1); }
.accion-botones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.accion-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid rgba(243,234,217,.3); border-radius: 999px; background: transparent; color: var(--text); font: 700 13px/1 var(--ui); text-decoration: none; cursor: pointer; }
.accion-btn--wa { border-color: #25d366; background: #25d366; color: #06210f; }
.accion-btn--tg { border-color: #29a9eb; background: #29a9eb; color: #041a26; }
.chat-ideas { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; }
.chat-ideas::-webkit-scrollbar { display: none; }
.chat-ideas[hidden] { display: none; }
.idea { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-radius: 999px; background: transparent; color: var(--c2); font: 600 13px/1 var(--ui); cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(255,255,255,.03); }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #0b0f0c; color: var(--text); font: 400 16px var(--ui); }
.chat-form input:focus { outline: none; border-color: var(--c); }
.chat-form button { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--c); color: #07120b; cursor: pointer; }
.chat-form button svg { width: 20px; height: 20px; }
.chat-pie { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0 0; }
.chat-pie button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--muted); font: 600 12px/1 var(--ui); cursor: pointer; }
.chat-dentro { margin-top: 10px; padding: 12px 14px 14px; border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); border-radius: 14px; background: rgba(0,0,0,.3); font-size: 14px; }
.chat-dentro p { margin: 8px 0 0; color: var(--muted); }
.viaje { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.viaje li::marker { color: var(--c2); font-weight: 700; }
.cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 12px 0 0; }
.cifras dt { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.cifras dd { margin: 2px 0 0; font-weight: 700; }
.chat-aviso { margin: 10px 4px 0; color: var(--muted); font-size: 13px; }

/* ── Проводник: плавающая кнопка и выезжающая снизу панель ── */
.guia-boton { position: fixed; z-index: 20; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
              display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 8px; border: 1px solid rgba(255,220,150,.5); border-radius: 999px;
              background: radial-gradient(circle at 26px 50%, rgba(255,220,150,.95) 0 10px, rgba(214,64,52,.85) 20px, #2a140f 34px); color: #fff3e0;
              font: 700 13px/1 var(--ui); box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 24px rgba(224,161,90,.35); cursor: pointer; transition: opacity .3s, transform .3s, padding .3s; }
.guia-nudo { width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; transform: scaleX(-1); }
.guia-boton.corto { padding-right: 8px; }
.guia-boton.corto .guia-texto { display: none; }
.guia-boton.oculto { opacity: 0; transform: translateY(20px); pointer-events: none; }
.guia-hoja { width: min(100vw, 520px); max-width: 100vw; height: min(88svh, 720px); max-height: 100svh; margin: auto auto 0; padding: 12px; border: 0; border-radius: 22px 22px 0 0;
             background: var(--bg); color: var(--text); --c: var(--gold); --c2: #ffd08a; }
.guia-hoja::backdrop { background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.guia-hoja[open] { display: flex; flex-direction: column; animation: hojaSube .35s cubic-bezier(.2,.8,.2,1); }
@keyframes hojaSube { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) { .guia-hoja { margin: auto; border-radius: 22px; } }
.guia-cerrar { align-self: flex-end; width: 40px; height: 40px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); cursor: pointer; }
.guia-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.guia-chat .chat { flex: 1; height: auto; min-height: 0; }
.chat-form button.graba { background: #d6402f; color: #fff; animation: late 1.2s ease-in-out infinite; }

/* «Как работает»: три шага-узелка */
.pasos { counter-reset: paso; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pasos li { counter-increment: paso; position: relative; padding-left: 48px; }
.pasos li::before { content: counter(paso); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
                    border: 2px solid var(--c); color: var(--c2); font: 700 15px/1 var(--disp); }

/* Музейная табличка — как в фильме: кремовая бумага, засечки */
.dato { margin: 18px 0 0; padding: 14px 16px; border-radius: 2px; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--serif);
        box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(42,31,24,.2); }
.dato b { display: block; margin-bottom: 4px; font: 700 11px/1.2 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.hecho { padding: 16px; border: 1px dashed rgba(243,234,217,.28); border-radius: 12px; font: italic 400 16px/1.5 var(--serif); }
.hecho-enlace { display: inline-flex; align-items: center; min-height: 48px; margin-top: 12px; padding: 0 20px; border-radius: 999px; background: var(--c); color: #0b0806; font: 700 15px/1 var(--ui); text-decoration: none; }
.nota { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.nota::before { content: "⚖️ "; }

/* ── Финал серии: Ян с шарами, как в фильме. Кнопки стоят в шарах в долях картинки ── */
.final { position: relative; min-height: 100svh; margin-top: 64px; overflow: clip; isolation: isolate;
         background: radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--c) 22%, transparent), transparent 62%), #050303; }
.final-head { position: relative; z-index: 2; padding: max(40px, env(safe-area-inset-top)) var(--gut) 0; text-align: center; text-shadow: 0 2px 12px #000; }
.final-head h2 { margin: 0; font: 700 clamp(22px, 6.4vw, 34px)/1.15 var(--disp); }
.final-head h2 span { color: var(--gold); }
.final-head p { margin: 10px auto 0; max-width: 340px; font-size: 15px; opacity: .9; }
.yan { position: relative; width: min(84vw, 46svh, 420px); aspect-ratio: 720 / 1290; margin: 18px auto 0; }
.yan img { width: 100%; height: 100%; filter: drop-shadow(0 0 24px rgba(224,161,90,.3)); pointer-events: none; }
.cta { position: absolute; width: 30%; aspect-ratio: 1; margin: -15% 0 0 -15%; display: grid; place-items: center; border-radius: 50%; color: #fff;
       text-decoration: none; -webkit-tap-highlight-color: transparent; }
.cta--tg { left: 19.3%; top: 30.5%; }
.cta--wa { left: 80.9%; top: 30.4%; }
.cta::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: late 1.6s ease-in-out infinite;
               background: radial-gradient(circle, rgba(255,220,150,.95) 0 30%, rgba(214,64,52,.75) 55%, rgba(214,64,52,0) 72%); box-shadow: 0 0 36px rgba(224,161,90,.7); }
.cta--wa::before { animation-delay: .8s; }
.cta svg { position: relative; width: 46%; height: 46%; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.cta span { position: absolute; top: 100%; margin-top: 2px; font: 700 13px/1 var(--ui); letter-spacing: .06em; white-space: nowrap; text-shadow: 0 1px 6px #000; }
@keyframes late { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.06); } }
.pie { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 26px var(--gut) max(28px, env(safe-area-inset-bottom)); }
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(243,234,217,.35); border-radius: 999px;
         background: rgba(5,3,3,.6); font: 700 12px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ── Кипу услуг (главная) ── */
.kipu-pagina { background: radial-gradient(ellipse at 50% 0%, #1c130c, var(--bg) 70%) fixed; }
/* Дождь лежит над фоном страницы, но под содержимым */
.lluvia { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .95; transition: opacity 1.8s ease; pointer-events: none; }
.kipu-main { position: relative; z-index: 1; }
.lluvia.quieta { opacity: .3; }
.kipu-main { max-width: 760px; margin: 0 auto; padding: calc(max(14px, env(safe-area-inset-top)) + 58px) var(--gut) 0; }
.kipu-intro h1 { margin: 0 0 14px; font: 700 clamp(28px, 7.6vw, 52px)/1.05 var(--disp); text-wrap: balance; text-shadow: 0 2px 18px #000; }
/* На главной кнопки бизнеса — одной строкой с прокруткой, чтобы кипу поместилось на первый экран */
.kipu-intro .negocios { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.kipu-intro .negocios::-webkit-scrollbar { display: none; }
.kipu-intro .chip { white-space: nowrap; }
.kipu-yo p { margin: 8px 0 0; font: italic 400 clamp(17px, 4.6vw, 20px)/1.5 var(--serif); color: #fff3e0; }
.kipu-intro > p:not(.etiqueta) { margin: 0 0 22px; max-width: 40ch; font: italic 400 clamp(17px, 4.6vw, 20px)/1.5 var(--serif); color: #fff3e0; text-shadow: 0 1px 10px #000; }
.kipu-caja { position: relative; aspect-ratio: 400 / 470; margin: 4px -6px 0; }
.kipu-caja svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kipu-hilo { cursor: pointer; -webkit-tap-highlight-color: transparent; transform-box: view-box;
              animation: vaiven var(--dur, 2.6s) ease-in-out 1.8s infinite; }
/* Появление: главная нить протягивается, нити спускаются, узелки завязываются, подписи всплывают — всё на CSS */
.kipu-caja .k-base { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: dibuja .8s cubic-bezier(.2,.7,.2,1) calc(.55s + var(--i, 0) * .09s) forwards; }
.k-principal .k-base { animation-duration: .9s; animation-delay: .3s; }
.k-torsion { opacity: 0; animation: aparece .35s ease calc(1.05s + var(--i, 0) * .09s) forwards; }
.k-principal .k-torsion { animation-delay: 1.1s; }
.k-nudo { transform-box: fill-box; transform-origin: center; scale: 0; animation: anuda .35s cubic-bezier(.3,1.8,.5,1) calc(.9s + var(--i, 0) * .09s + var(--j, 0) * .08s) forwards; }
@keyframes dibuja { to { stroke-dashoffset: 0; } }
@keyframes aparece { to { opacity: 1; } }
@keyframes anuda { to { scale: 1; } }
@keyframes vaiven { 0%, 100% { rotate: 0deg; } 25% { rotate: var(--a, 1.4deg); } 75% { rotate: calc(var(--a, 1.4deg) * -1); } }
@keyframes etiqueta { to { opacity: 1; translate: -50% 0; } }
.kipu-hilo:hover path:first-child { filter: drop-shadow(0 0 6px currentColor); }
.kipu-et { position: absolute; width: 26%; max-width: 132px; padding: 8px 2px 0; translate: -50% 10px; opacity: 0; animation: etiqueta .5s ease-out calc(1.1s + var(--i, 0) * .09s) forwards; border-top: 3px solid var(--c); text-align: center;
           font: 700 clamp(11px, 3.3vw, 14px)/1.2 var(--ui); text-decoration: none; hyphens: auto; -webkit-hyphens: auto; text-shadow: 0 1px 8px #000; }
.kipu-pista { margin: 6px 0 0; text-align: center; color: var(--muted); font: italic 400 16px/1.4 var(--serif); }
.kipu-lista { padding: 40px 0 0; }
.kipu-lista h2 { margin: 0 0 6px; font: 700 clamp(22px, 6vw, 30px)/1.15 var(--disp); }
.kipu-lista ul { margin: 0; padding: 0; list-style: none; }
.hilo-item { display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.hilo-item .nudo { width: 18px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.hilo-item b { font: 700 17px/1.2 var(--disp); }
.hilo-item em { display: block; margin-top: 3px; color: var(--muted); font: italic 400 15px/1.4 var(--serif); }
.hilo-item small { display: block; margin-top: 6px; color: var(--c2); font: 700 13px/1.4 var(--ui); }
.hilo-item .ir { color: var(--c); font: 700 20px/1 var(--ui); }
/* Подпись студии: монета + LEÓN VERDE (Cinzel, только эти буквы — 3 КБ) */
@font-face { font-family: Cinzel; font-weight: 600; font-display: swap; src: url(/fonts/cinzel-600.woff2) format("woff2"); }
.firma { display: flex; align-items: center; justify-content: center; gap: 10px; width: max-content; margin: 28px auto 0; padding: 6px 14px 6px 6px; border-radius: 999px; color: rgba(243,234,217,.9); text-decoration: none; }
.firma img { width: 40px; height: 40px; border-radius: 50%; }
.firma span { display: grid; gap: 3px; text-align: left; }
.firma b { font: 600 13px/1 Cinzel, Georgia, serif; letter-spacing: .16em; }
.firma small { font: 400 11.5px/1.2 var(--ui); opacity: .7; }
.firma:hover b { color: var(--gold); }
.final .firma { position: relative; z-index: 2; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
.kipu-pie { padding: 56px 0 max(36px, env(safe-area-inset-bottom)); text-align: center; }
.kipu-pie h2 { margin: 0; font: 700 clamp(22px, 6.4vw, 34px)/1.15 var(--disp); }
.kipu-pie h2 span { color: var(--gold); }
.kipu-pie .pie { padding-top: 20px; }
.boton svg { width: 18px; height: 18px; margin-right: 8px; }
.boton--wa { background: #1f8f4e; border-color: #1f8f4e; }
.boton--tg { background: #2a7fc0; border-color: #2a7fc0; }

/* Появление при прокрутке */
.revela { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.revela.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kipu-caja *, .kipu-et { animation: none !important; }
  .kipu-caja .k-base { stroke-dashoffset: 0; }
  .k-torsion, .kipu-et { opacity: 1; }
  .kipu-et { translate: -50% 0; }
  .k-nudo { scale: 1; }
  .apertura-cuadro, .cta::before { animation: none; }
  .revela { opacity: 1; transform: none; transition: none; }
}
