:root {
  --honey: #F7B500;
  --honey-deep: #C98600;
  --honey-glow: #FFE9A0;
  --amber: #A86400;
  --ink: #1B1206;
  --ink-soft: #2B1D0A;
  --wax: #FFEBA8;
  --on-ink: #F6EBD0;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --ease-spring: cubic-bezier(.5, 1.6, .4, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--honey);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.crafts :focus-visible, .foot :focus-visible, .nav.is-scrolled :focus-visible { outline-color: var(--honey); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 2 * var(--gutter), 74rem); margin-inline: auto; }

/* ================= Intro ================= */
.intro { display: none; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--ink);
  animation: iris .95s var(--ease-io) 1.3s forwards;
}
@keyframes iris {
  from { clip-path: polygon(50% calc(50% - 120vmax), calc(50% + 103.9vmax) calc(50% - 60vmax), calc(50% + 103.9vmax) calc(50% + 60vmax), 50% calc(50% + 120vmax), calc(50% - 103.9vmax) calc(50% + 60vmax), calc(50% - 103.9vmax) calc(50% - 60vmax)); }
  to   { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%); visibility: hidden; }
}
.intro-svg { overflow: visible; --mark-bg: var(--honey); --mark-fg: var(--ink); }
.intro-outline {
  fill: none; stroke: var(--honey); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw .8s var(--ease-io) .1s forwards;
}
.intro-mark { width: 64px; height: 64px; opacity: 0; transform-origin: 32px 32px; animation: pop .7s var(--ease-spring) .65s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.55) rotate(-24deg); } to { opacity: 1; transform: none; } }

/* ================= Cursor ================= */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; will-change: transform; --cur: var(--ink); }
.cursor-in { display: block; transition: transform .35s var(--ease-spring), opacity .3s; opacity: .85; }
.cursor svg { display: block; overflow: visible; }
.cursor polygon { fill: transparent; stroke: var(--cur); stroke-width: 2; stroke-linejoin: round; transition: fill .3s, stroke .3s; }
.cursor.on-dark { --cur: var(--honey); }
.cursor.is-link .cursor-in { transform: scale(1.7); }
.cursor.is-link polygon { fill: color-mix(in srgb, var(--cur) 22%, transparent); }
.cursor.is-down .cursor-in { transform: scale(.7); }

/* ================= Nav ================= */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: .9rem var(--gutter); pointer-events: none; --nav-fg: var(--ink); --mark-bg: var(--ink); --mark-fg: var(--honey); }
.nav-bar {
  pointer-events: auto;
  width: min(100%, 74rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .35rem 0;
  border-radius: 999px;
  color: var(--nav-fg);
  transition: background-color .4s, padding .4s var(--ease-out), box-shadow .4s, width .5s var(--ease-out), backdrop-filter .4s;
}
.nav.is-scrolled { --nav-fg: var(--on-ink); --mark-bg: var(--honey); --mark-fg: var(--ink); }
.nav.is-scrolled .nav-bar {
  width: min(100%, 52rem);
  padding: .4rem .5rem .4rem 1rem;
  background: rgba(27, 18, 6, .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 40px -12px rgba(27, 18, 6, .5), inset 0 0 0 1px rgba(247, 181, 0, .18);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; --mark-bg: var(--ink); --mark-fg: var(--honey); }
.nav .brand { --mark-bg: inherit; --mark-fg: inherit; }
.brand-mark { transition: transform .6s var(--ease-spring); filter: drop-shadow(0 6px 10px rgba(27, 18, 6, .3)); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav.is-scrolled .brand-mark { width: 46px; height: 46px; }

.nav-tools { display: flex; align-items: center; gap: 1.4rem; }
.nav-link { text-decoration: none; font-weight: 500; }

.lang { position: relative; display: inline-grid; grid-auto-columns: 1fr; grid-auto-flow: column; border: 2px solid currentColor; border-radius: 999px; padding: 2px; }
.lang .thumb { position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: 999px; background: var(--nav-fg); transition: transform .45s var(--ease-spring); }
.lang[data-active="en"] .thumb { transform: translateX(100%); }
.lang button { position: relative; z-index: 1; font: 600 .78rem/1 var(--font-body); letter-spacing: .04em; background: transparent; border: 0; border-radius: 999px; padding: .5rem .8rem; cursor: pointer; color: inherit; transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--nav-active, var(--honey)); }
.nav.is-scrolled { --nav-active: var(--ink); }

/* Texto que rueda al pasar el cursor */
.roll { display: inline-block; overflow: hidden; height: 1.5em; line-height: 1.5; vertical-align: bottom; }
.roll > span { display: block; transition: transform .5s var(--ease-io); }
.roll > span::after { content: attr(data-text); display: block; }
a:hover > .roll > span, a:focus-visible > .roll > span, button:hover > .roll > span { transform: translateY(-50%); }

/* ================= Reveal helpers ================= */
.js:not(.force-show) [data-reveal]:not(.in) { opacity: 0; transform: translateY(22px); filter: blur(6px); }
[data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0s); }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.w > span { display: inline-block; transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.js:not(.force-show) [data-split]:not(.in) .w > span { transform: translateY(112%) rotate(4deg); }

/* ================= Hero ================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 7rem var(--gutter) clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(circle 340px at var(--mx, 72%) var(--my, 36%), rgba(255, 233, 160, .75), transparent 70%);
}
.comb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { width: min(100%, 74rem); margin-inline: auto; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 4.75rem); line-height: 1.06; max-width: 17ch; hyphens: none; text-wrap: balance; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 48ch; line-height: 1.5; }
.hero .lead { margin-top: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }

.btn {
  display: inline-block; background: var(--ink); color: var(--honey);
  font-weight: 600; text-decoration: none; padding: 1rem 2.6rem;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
  transition: background-color .25s, transform .5s var(--ease-out);
}
.btn:hover { background: #3A2710; }
.btn:focus-visible { outline: none; background: #3A2710; box-shadow: inset 0 0 0 3px var(--honey); }
.btn-quiet { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; transition: text-decoration-thickness .2s; }
.btn-quiet:hover { text-decoration-thickness: 5px; }

.cue {
  position: absolute; right: var(--gutter); bottom: clamp(1.5rem, 4vw, 3rem); z-index: 2;
  width: 56px; height: 64px; display: grid; place-items: center;
  background: var(--ink); color: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background-color .3s;
}
.cue:hover { background: #3A2710; }
.cue svg { animation: bob 1.8s var(--ease-io) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* ----- Abeja de malla (low-poly), de perfil ----- */
.poly { fill: none; stroke: var(--line); stroke-width: var(--sw); stroke-linejoin: round; stroke-linecap: round; }
.accent { fill: var(--accent); stroke: none; }
.bodyfill { fill: var(--fill); stroke: none; }
.wingfill { fill: var(--wing); }
.mark-bee { --line: #F6EBD0; --accent: #F7B500; --fill: transparent; --wing: transparent; --sw: 2.7; }
.bee, .bee-sm { --line: var(--ink); --accent: var(--ink); --fill: #FFD65C; --wing: rgba(255, 255, 255, .45); --sw: 1.7; }
.bee { position: absolute; left: 0; top: 0; z-index: 3; width: 230px; height: 192px; pointer-events: none; will-change: transform; opacity: 0; transition: opacity .6s; filter: drop-shadow(0 28px 12px rgba(27, 18, 6, .22)); }
.bee.is-on { opacity: 1; }
.bee-svg, .bee-sm { display: block; overflow: visible; }
.bee-flip { transform-origin: 60px 50px; transform: scaleX(var(--f, 1)); transition: transform .4s var(--ease-spring); }
.bee .wf, .bee-sm .wf { transform-origin: 58px 28px; animation: wing-f .075s linear infinite alternate; }
.bee .wb, .bee-sm .wb { transform-origin: 64px 33px; animation: wing-b .075s linear infinite alternate; }
@keyframes wing-f { from { transform: rotate(-10deg); } to { transform: rotate(8deg) scaleY(.8); } }
@keyframes wing-b { from { transform: rotate(8deg); } to { transform: rotate(-8deg) scaleY(.85); } }

.bzz { position: absolute; z-index: 4; pointer-events: none; font: 600 .95rem var(--font-body); background: var(--ink); color: var(--honey); padding: .3rem .7rem; border-radius: 999px; animation: bzz 1.1s var(--ease-out) forwards; }
@keyframes bzz { 0% { opacity: 0; transform: translate(0, 6px) scale(.6); } 20% { opacity: 1; transform: translate(0, -6px) scale(1); } 100% { opacity: 0; transform: translate(0, -46px) scale(1); } }

/* ================= Marquee ================= */
.marquee { background: var(--ink); color: var(--honey); overflow: hidden; padding: 1.5rem 0; border-block: 1px solid rgba(247, 181, 0, .25); }
.m-skew { transform: skewX(var(--skew, 0deg)); will-change: transform; }
.m-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .m-track { animation-play-state: paused; }
.m-group { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding-right: clamp(1.5rem, 3vw, 3rem); }
.m-word { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5.5vw, 4.25rem); letter-spacing: -0.02em; white-space: nowrap; line-height: 1.2; }
.m-outline { color: transparent; -webkit-text-stroke: 1.5px var(--honey); }
.m-hex { width: clamp(1rem, 2vw, 1.6rem); flex: none; }
.m-hex polygon { fill: var(--honey); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= Oficios (pinned) ================= */
.crafts {
  position: relative; height: 340svh;
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='55.43' height='96' viewBox='0 0 55.43 96'%3E%3Cpath d='M27.71 0 55.43 16V48L27.71 64 0 48V16ZM27.71 64V96' fill='none' stroke='%23F7B500' stroke-opacity='.08' stroke-width='1.5'/%3E%3C/svg%3E");
  color: var(--on-ink);
}
.stage {
  position: sticky; top: 0; height: 100svh;
  width: min(100% - 2 * var(--gutter), 74rem); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem);
  align-items: center; padding-block: 4.5rem 2rem;
}

.art { position: relative; justify-self: center; height: min(72svh, 600px); aspect-ratio: 400 / 462; }
.ring { position: absolute; inset: -7%; transition: transform 1.3s var(--ease-io); transform: rotate(calc(var(--step, 0) * 60deg)); }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring polygon { fill: none; stroke: var(--honey); stroke-opacity: .35; stroke-width: 1.2; stroke-dasharray: 3 9; stroke-linejoin: round; }

.scenes { position: absolute; inset: 0; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transform: scale(.86) rotate(-8deg); filter: blur(8px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), filter .7s var(--ease-out); pointer-events: none; }
.scene.is-active { opacity: 1; transform: none; filter: none; }
.scene .frame { fill: url(#frame-grad); stroke: var(--honey); stroke-width: 2.5; stroke-linejoin: round; }
.crafts:not(.live) .scene *, .scene:not(.is-active) * { animation-play-state: paused !important; }

/* Escena 1: código */
.win { fill: #120C04; stroke: var(--honey); stroke-opacity: .4; }
.dot { fill: var(--honey); } .d1 { opacity: .9; } .d2 { opacity: .55; } .d3 { opacity: .3; }
.win-line { stroke: var(--honey); stroke-opacity: .2; }
.line { transform-box: fill-box; transform-origin: left center; animation: type 8s var(--ease-io) infinite; }
.line:nth-of-type(1) { animation-delay: 0s; } .line:nth-of-type(2) { animation-delay: .35s; } .line:nth-of-type(3) { animation-delay: .7s; }
.line:nth-of-type(4) { animation-delay: 1.05s; } .line:nth-of-type(5) { animation-delay: 1.4s; } .line:nth-of-type(6) { animation-delay: 1.75s; } .line:nth-of-type(7) { animation-delay: 2.1s; }
.line .c1 { fill: var(--honey); } .line .c2 { fill: var(--on-ink); fill-opacity: .85; } .line .c3 { fill: var(--honey-deep); }
@keyframes type { 0% { transform: scaleX(0); } 14% { transform: scaleX(1); } 86% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
.caret { fill: var(--honey); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.token { fill: var(--honey); font: 600 22px var(--font-display); opacity: .55; animation: float 5s ease-in-out infinite; }
.token.t2 { animation-delay: -2.2s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.bar-track { fill: var(--honey); fill-opacity: .18; }
.bar-fill { fill: var(--honey); transform-box: fill-box; transform-origin: left center; animation: fill 8s var(--ease-io) infinite; }
@keyframes fill { 0% { transform: scaleX(0); } 70%, 92% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* Escena 2: brazo robótico */
.ground { stroke: var(--honey); stroke-opacity: .5; stroke-width: 2; stroke-linecap: round; }
.reach { fill: none; stroke: var(--honey); stroke-opacity: .25; stroke-dasharray: 4 8; stroke-width: 1.5; }
.target { fill: none; stroke: var(--honey); stroke-width: 2; stroke-linejoin: round; stroke-opacity: .7; }
.arm { fill: url(#bodyG); stroke: #7A3F08; stroke-width: 1.5; }
.base { fill: var(--honey-deep); stroke: var(--honey); stroke-width: 2; stroke-linejoin: round; }
.joint { fill: var(--ink); stroke: var(--honey); stroke-width: 3; }
.joint-dot { fill: var(--honey); }
.led { fill: #fff; animation: blink 1.4s steps(2) infinite; }
.finger { fill: var(--honey); transform-box: fill-box; transform-origin: center bottom; }
.fl { animation: gripL 6s ease-in-out infinite; } .fr { animation: gripR 6s ease-in-out infinite; }
@keyframes gripL { 0%, 100% { transform: rotate(-14deg); } 40%, 60% { transform: rotate(3deg); } }
@keyframes gripR { 0%, 100% { transform: rotate(14deg); } 40%, 60% { transform: rotate(-3deg); } }
.payload { fill: var(--ink); stroke: var(--honey); stroke-width: 2.5; stroke-linejoin: round; }
.shoulder { transform-origin: 200px 334px; animation: shoulder 6s ease-in-out infinite; }
.elbow { transform-origin: 200px 252px; animation: elbow 6s ease-in-out infinite; }
.wrist { transform-origin: 200px 178px; animation: wrist 6s ease-in-out infinite; }
@keyframes shoulder { 0%, 100% { transform: rotate(-34deg); } 50% { transform: rotate(32deg); } }
@keyframes elbow { 0%, 100% { transform: rotate(40deg); } 50% { transform: rotate(-46deg); } }
@keyframes wrist { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(14deg); } }

/* Escena 3: red neuronal */
.orbit { fill: none; stroke: var(--honey); stroke-opacity: .2; stroke-dasharray: 2 10; stroke-width: 1.5; transform-origin: 200px 231px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.net-lines line { stroke: var(--honey); stroke-opacity: .22; stroke-width: 1.4; }
.net-lines .pulse { stroke-opacity: 1; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 9 91; animation: travel 2.6s linear infinite; }
@keyframes travel { from { stroke-dashoffset: 9; } to { stroke-dashoffset: -91; } }
.net-nodes circle { fill: var(--ink); stroke: var(--honey); stroke-width: 2.2; transform-box: fill-box; transform-origin: center; animation: node 3s ease-in-out infinite; }
.net-nodes .out { fill: var(--honey); }
.net-nodes .halo { fill: none; stroke: var(--honey); stroke-opacity: .5; animation: halo 2.4s ease-out infinite; }
@keyframes node { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes halo { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }

/* Texto del escenario */
.copy { min-width: 0; }
.crafts h2 { font-size: clamp(1.7rem, 3.3vw, 2.7rem); line-height: 1.12; color: var(--honey); max-width: 16ch; }
.intro { margin-top: 1.1rem; max-width: 52ch; font-size: 1.1rem; }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: 1.75rem; }
.tab { display: inline-flex; align-items: center; gap: .55rem; padding: .3rem 1rem .3rem .3rem; border: 1.5px solid rgba(247, 181, 0, .3); border-radius: 999px; background: transparent; color: var(--on-ink); font-weight: 600; font-size: .95rem; cursor: pointer; transition: border-color .3s, background-color .3s, color .3s, transform .4s var(--ease-spring); }
.tab:hover { border-color: var(--honey); transform: translateY(-2px); }
.tab-hex { width: 34px; height: 39px; flex: none; color: var(--honey); }
.tab-hex polygon { fill: transparent; stroke: var(--honey); stroke-width: 1.6; stroke-linejoin: round; transition: fill .35s; }
.tab-hex use { transition: color .3s; }
.tab.is-active { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.tab.is-active .tab-hex { color: var(--ink); }
.tab.is-active .tab-hex polygon { stroke: var(--ink); fill: rgba(27, 18, 6, .08); }
.tab-hex { transition: transform .8s var(--ease-spring); }
.tab.is-active .tab-hex { transform: rotate(60deg); }
.tab.is-active .tab-hex use { transform: rotate(-60deg); transform-box: fill-box; transform-origin: center; }

.panels { display: grid; margin-top: 2rem; }
.panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(26px); filter: blur(6px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), filter .6s var(--ease-out), visibility 0s .6s; }
.panel.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: .15s, .15s, .15s, 0s; }
.panel h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; }
.panel p { margin-top: .8rem; max-width: 50ch; }
.chips { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .35rem .95rem; border-radius: 999px; background: rgba(247, 181, 0, .12); color: var(--honey); font-weight: 500; font-size: .92rem; transition: background-color .25s, color .25s, transform .4s var(--ease-spring); }
.chips li:hover { background: var(--honey); color: var(--ink); transform: translateY(-3px) rotate(-2deg); }

/* ================= Método ================= */
.method { background: var(--wax); padding-block: var(--section-y); position: relative; }
.method h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.12; }

.steps { --p: 0; position: relative; list-style: none; margin: 3.25rem 0 0; padding: 0; display: grid; gap: 2.75rem; }
.steps::before, .steps::after { content: ""; position: absolute; background: var(--ink); }
.steps::before { opacity: .16; }
.steps::after { transform-origin: top; transform: scaleY(var(--p)); }
.steps::before, .steps::after { left: 1.875rem; top: 1.9rem; bottom: 2rem; width: 3px; margin-left: -1.5px; }
.steps li { position: relative; z-index: 1; display: grid; grid-template-columns: 3.75rem 1fr; column-gap: 1.25rem; align-items: start; }
.step-hex { grid-row: span 2; width: 3.75rem; height: auto; overflow: visible; }
.step-hex polygon { fill: var(--wax); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; transition: fill .5s, transform .9s var(--ease-spring); }
.step-hex text { fill: var(--ink); font: 600 22px var(--font-display); text-anchor: middle; transition: fill .5s; }
.steps h3 { font-size: 1.15rem; align-self: end; }
.steps p { margin-top: .4rem; max-width: 40ch; }
.steps h3, .steps p { opacity: .32; transition: opacity .7s var(--ease-out); }
.steps li.on h3, .steps li.on p { opacity: 1; }
.steps li.on .step-hex polygon { fill: var(--ink); transform: rotate(60deg); }
.steps li.on .step-hex text { fill: var(--honey); }

/* ================= Contacto ================= */
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--honey); padding-block: var(--section-y); }
.contact .comb { z-index: -1; }
.contact-inner { position: relative; }
.contact h2 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.08; max-width: 16ch; text-wrap: balance; }
.contact .lead { margin-top: 1.5rem; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2.25rem; }
.mail { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; will-change: transform; }
.mail-text { position: relative; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 3.4vw, 1.9rem); letter-spacing: -0.02em; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 3px no-repeat; padding-bottom: .15em; transition: background-size .4s var(--ease-out); }
.mail:hover .mail-text { background-size: 100% 100%; color: var(--honey); background-image: linear-gradient(var(--ink), var(--ink)); }
.bee-sm { flex: none; transition: transform .6s var(--ease-spring); }

.mail:hover .bee-sm { transform: translate(6px, -10px) rotate(14deg); }
@keyframes hover { 50% { translate: 0 -5px; } }

.copy-btn { position: relative; display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; padding: .7rem 1.2rem .7rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; overflow: hidden; transition: background-color .3s, color .3s, transform .4s var(--ease-spring); }
.copy-btn:hover { background: var(--ink); color: var(--honey); transform: translateY(-2px); }
.copy-btn .done-ic { display: none; }
.copy-btn .done-ic path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.copy-btn.is-done { background: var(--ink); color: var(--honey); }
.copy-btn.is-done .copy-ic { display: none; }
.copy-btn.is-done .done-ic { display: block; }
.copy-btn.is-done .done-ic path { animation: draw-check .5s var(--ease-out) forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.lbl { display: grid; }
.lbl > span { grid-area: 1 / 1; transition: transform .45s var(--ease-io), opacity .3s; }
.lbl-b { transform: translateY(120%); opacity: 0; }
.copy-btn.is-done .lbl-a { transform: translateY(-120%); opacity: 0; }
.copy-btn.is-done .lbl-b { transform: none; opacity: 1; }

/* ================= Footer ================= */
.foot { background: var(--ink); color: var(--on-ink); padding-block: 4rem 2rem; overflow: hidden; }
.wordmark { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: min(13.2vw, 12rem); line-height: 1; letter-spacing: -0.03em; user-select: none; margin-bottom: 2.5rem; }
.wordmark span { display: inline-block; color: transparent; -webkit-text-stroke: 1.5px rgba(247, 181, 0, .5); transition: color .35s, transform .6s var(--ease-spring), -webkit-text-stroke-color .35s; cursor: default; }
.wordmark span:hover { color: var(--honey); -webkit-text-stroke-color: var(--honey); transform: translateY(-.1em) rotate(-4deg); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.foot .brand { --mark-bg: var(--honey); --mark-fg: var(--ink); }
.foot .brand-name { font-size: 1rem; }
.foot p { font-size: .9rem; opacity: .8; }

/* ================= Responsive ================= */
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .steps::before, .steps::after { left: 2.125rem; right: 0; top: 2.125rem; bottom: auto; width: auto; height: 3px; margin: -1.5px 0 0; }
  .steps::after { transform-origin: left; transform: scaleX(var(--p)); }
  .steps li { grid-template-columns: 1fr; row-gap: .5rem; align-content: start; }
  .step-hex { grid-row: auto; width: 4.25rem; margin-bottom: .75rem; }
  .steps h3 { align-self: start; }
}

@media (max-width: 56rem) {
  .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 1rem; padding-block: 5rem 1.25rem; align-items: start; }
  .art { height: min(34svh, 290px); }
  .intro { display: none; }
  .tabs { margin-top: 1rem; }
  .panels { margin-top: 1.25rem; }
  .crafts h2 { font-size: 1.5rem; max-width: none; }
  .chips { margin-top: .9rem; }
}

@media (max-width: 30rem) {
  .nav-link { display: none; }
  .brand-name { font-size: 1rem; }
  .nav.is-scrolled .nav-bar { padding-left: .75rem; }
  .tab { padding-right: .8rem; font-size: .9rem; }
}

@media (hover: none) { .cursor { display: none !important; } }

/* Reducir movimiento: la clase .rm la pone boot.js según el sistema */
.rm { scroll-behavior: auto; }
.rm *, .rm *::before, .rm *::after { animation: none !important; transition: none !important; }
.rm.js:not(.force-show) [data-reveal]:not(.in) { opacity: 1; transform: none; filter: none; }
.rm.js:not(.force-show) [data-split]:not(.in) .w > span { transform: none; }
.rm .crafts { height: auto; }
.rm .stage { position: static; height: auto; padding-block: 5rem; }
.rm .bee, .rm .cue svg { display: none; }
