/* ---------- Tipografías (servidas desde nuestro dominio) ---------- */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-tight.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/jetbrains-mono.woff2) format("woff2"); }

:root {
  --bg: #f4f1ea;
  --bg-2: #ebe6db;
  --ink: #15130f;
  --ink-2: #4a453c;
  --muted: #7d766a;
  --line: rgba(21, 19, 15, 0.12);
  --card: #fbf9f4;
  --accent: #ff5a1f;
  --accent-ink: #fff;
  --ok: #1f9d55;
  --err: #d92d20;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e0c;
    --bg-2: #1a1815;
    --ink: #f1ece2;
    --ink-2: #c4bdb0;
    --muted: #8f887b;
    --line: rgba(241, 236, 226, 0.12);
    --card: #171511;
    --accent: #ff6a33;
    --err: #ff6b5e;
    color-scheme: dark;
  }
}

/* Transiciones suaves entre páginas (navegadores compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
.nav { view-transition-name: nav; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.muted { color: var(--muted); font-size: 14px; }
.muted a { color: var(--ink-2); }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

mark.pending { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); padding: 1px 6px; border-radius: 4px; font: 500 13px var(--mono); }

/* ---------- Progreso, cursor y confeti ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); z-index: 120; pointer-events: none; }
.cursor {
  position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; z-index: 150;
  border: 1.5px solid var(--accent); border-radius: 50%; pointer-events: none; opacity: 0;
  transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s;
}
.cursor.is-on { opacity: .9; }
.cursor.is-hot { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.confetti { position: fixed; width: 8px; height: 12px; border-radius: 2px; z-index: 160; pointer-events: none; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, transform .45s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand .logo { height: 26px; width: auto; overflow: visible; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { position: relative; text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--ink); background: var(--bg-2); }

/* Logo: letras que caen en cascada y saltan al pasar el ratón */
.logo .l { transform-box: fill-box; transform-origin: 50% 100%; }
.logo:not(.is-in) .l { transform: translateY(40%) scaleY(.6); opacity: 0; }
.logo.is-in .l { animation: letter-in .7s calc(var(--li) * 45ms) var(--ease) both; }
.brand:hover .logo .l { animation: letter-hop .5s calc(var(--li) * 35ms) var(--ease); }
@keyframes letter-in { from { transform: translateY(60%) scaleY(.5); opacity: 0; } 60% { transform: translateY(-8%) scaleY(1.06); opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes letter-hop { 40% { transform: translateY(-18%) rotate(-4deg); } }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.menu-open .burger span:first-child { transform: rotate(45deg); }
.menu-open .burger span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 72px 0 0; z-index: 90; background: var(--bg);
  clip-path: circle(0% at calc(100% - 38px) 0); transition: clip-path .55s var(--ease);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 38px) 0); }
.menu__inner { display: grid; padding-top: 24px; }
.menu a {
  display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(34px, 10vw, 54px); font-weight: 600; letter-spacing: -0.04em; text-decoration: none;
  opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease);
}
.menu a .mono { color: var(--accent); }
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-child(2) { transition-delay: .05s; } .menu.is-open a:nth-child(3) { transition-delay: .1s; }
.menu.is-open a:nth-child(4) { transition-delay: .15s; } .menu.is-open a:nth-child(5) { transition-delay: .2s; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--bg);
  font: 600 15px/1 var(--sans); text-decoration: none;
  border: 1px solid var(--ink); cursor: pointer;
  transition: transform .35s var(--ease), color .3s, border-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  border-radius: inherit; transform: translateY(101%); transition: transform .4s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn > span { transition: transform .25s var(--ease); }
.btn:hover > span[aria-hidden] { transform: translateX(4px); }
.btn--small { padding: 10px 18px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); border-color: var(--ink); }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--dark { background: #140b06; color: #fff; border-color: #140b06; }
.btn--dark::before { background: #fff; }
.btn--dark:hover { color: #140b06; border-color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }

/* ---------- Titulares partidos en palabras ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span, .split .w-solo { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--wi) * 55ms + var(--d, 0s)); }
.split .w-solo { transform: translateY(30%); opacity: 0; transition-property: transform, opacity; }
.split.is-in .w > span, .split.is-in .w-solo { transform: none; opacity: 1; }
.split.reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 8vw, 100px); overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  opacity: .7;
}
.hero__glow {
  position: absolute; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  pointer-events: none; transform: translate(70vw, 200px); transition: transform 1.2s var(--ease); filter: blur(10px);
}
.hero__inner { position: relative; z-index: 2; }
.hero__title {
  margin-top: 22px;
  font-size: clamp(50px, 9vw, 124px);
  line-height: 0.95; letter-spacing: -0.045em; font-weight: 600;
  max-width: 11ch;
}
.hero__title em { color: var(--accent); }
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: 0; right: 0; bottom: -0.08em; width: 100%; height: 0.22em; color: var(--accent); overflow: visible; }
.scribble path { stroke-dasharray: 340; stroke-dashoffset: 340; }
.is-in .scribble path { animation: draw 1.1s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__lead { margin-top: 28px; max-width: 580px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__words { list-style: none; padding: 24px 0 0; margin: clamp(40px, 6vw, 72px) 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; border-top: 1px solid var(--line); max-width: 760px; }
.hero__words a { font: 400 clamp(22px, 2.4vw, 30px)/1 var(--serif); text-decoration: none; color: var(--ink-2); position: relative; transition: color .2s; }
.hero__words a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.hero__words a:hover { color: var(--ink); }
.hero__words a:hover::after { transform: scaleX(1); transform-origin: left; }

.hero__specimen { position: absolute; right: max(16px, calc((100vw - 1180px) / 2)); top: 110px; width: 340px; height: 460px; z-index: 1; }
.card-float {
  position: absolute; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 20px 50px -20px rgba(40, 30, 10, .25);
  animation: float 7s ease-in-out infinite, pop-in .9s var(--ease) both;
  transition: translate .6s var(--ease);
}
.card-float .mono { color: var(--muted); }
.card-float strong { font-size: 21px; letter-spacing: -0.02em; }
.card-float small { color: var(--muted); font-size: 13px; }
.card-float .ok { color: var(--ok); font-size: 16px; }
.card-float--a { top: 0; right: 0; width: 230px; rotate: 3deg; animation-delay: 0s, .3s; }
.card-float--b { top: 180px; left: 0; width: 240px; rotate: -4deg; animation-delay: -2.5s, .45s; }
.card-float--c { top: 320px; right: 10px; width: 220px; rotate: 2deg; animation-delay: -4.5s, .6s; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-top: 10px; }
.bars i { flex: 1; height: var(--h); border-radius: 4px; background: var(--accent); opacity: .85; transform-origin: bottom; animation: grow 1.2s var(--ease) both, breathe 3s ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-delay: .08s, .3s } .bars i:nth-child(3) { animation-delay: .16s, .6s }
.bars i:nth-child(4) { animation-delay: .24s, .9s } .bars i:nth-child(5) { animation-delay: .32s, 1.2s } .bars i:nth-child(6) { animation-delay: .4s, 1.5s }
.stitch { margin-top: 12px; height: 34px; border-radius: 10px; background: #8a4b2a; position: relative; overflow: hidden; }
.stitch::after { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(255, 236, 210, .75); border-radius: 6px; clip-path: inset(0 100% 0 0); animation: sew 3s 1s var(--ease) infinite; }
.track { height: 6px; border-radius: 6px; background: var(--bg-2); margin: 8px 0 4px; overflow: hidden; }
.track i { display: block; height: 100%; width: 70%; border-radius: inherit; background: var(--ok); animation: deliver 4s var(--ease) infinite; }
@keyframes sew { 0% { clip-path: inset(0 100% 0 0); } 60%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes deliver { 0% { width: 8%; } 70%, 100% { width: 92%; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes breathe { to { transform: scaleY(.75); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pop-in { from { opacity: 0; scale: .85; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; transform-origin: center; }
.marquee__track span { font: 400 clamp(26px, 3vw, 36px)/1 var(--serif); padding: 0 28px; white-space: nowrap; color: var(--ink-2); display: inline-block; transform: skewX(var(--skew, 0deg)); transition: transform .4s var(--ease); }
.marquee__track span::after { content: "✳"; font-family: var(--sans); font-size: .5em; color: var(--accent); margin-left: 56px; vertical-align: middle; display: inline-block; animation: spin 6s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.section__head { display: grid; gap: 18px; justify-items: start; margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.section h2, .notfound h1, .legal h1, .contact-page h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.section h2 em, .notfound h1 em, .legal h1 em, .contact-page h1 em { color: var(--accent); }
.section__lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.bignum {
  position: absolute; right: -0.04em; top: 0.1em; z-index: 0; pointer-events: none;
  font: 400 clamp(180px, 30vw, 420px)/1 var(--serif); font-style: italic; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--line);
}
.section > .wrap { position: relative; z-index: 1; }

/* Áreas */
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area a {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  text-decoration: none; overflow: hidden;
}
.area a::before { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.area a:hover { border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.area a:hover::before { transform: scaleX(1); }
.area__num { color: var(--muted); }
.area__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); margin: 10px 0 6px; transition: transform .5s var(--ease), background .3s, color .3s; }
.area a:hover .area__icon { transform: rotate(-8deg) scale(1.08); background: var(--c); color: #fff; }
.area__icon svg { width: 34px; height: 34px; }
.area h3 { font-size: 22px; line-height: 1.15; }
.area p { color: var(--ink-2); font-size: 15px; flex: 1; }
.area__go { font-weight: 600; font-size: 14px; color: var(--c); }
.area__go span { display: inline-block; transition: transform .2s; }
.area a:hover .area__go span { transform: translateX(4px); }

/* Inclinación 3D genérica con brillo */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease), box-shadow .4s, border-color .3s; will-change: transform; }
.tilt.is-tilting { transition: transform .1s linear, box-shadow .4s, border-color .3s; box-shadow: 0 30px 60px -30px rgba(40, 30, 10, .4); }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 45%); opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light; }
.tilt.is-tilting::after { opacity: 1; }

/* Split layout */
.split-layout, .wrap.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.wrap.split .section__head { margin-bottom: 0; position: sticky; top: 110px; }
.feature-list { display: grid; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 26px 0; border-bottom: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); transition: padding .4s var(--ease); }
.feature:hover { padding-left: 10px; }
.feature:first-child { border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); }
.feature .mono { color: var(--accent); padding-top: 6px; }
.feature h3 { font-size: 22px; margin-bottom: 6px; }
.feature p { color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }

/* Ruta de envío animada */
.route { position: relative; margin-bottom: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 16px; overflow: hidden; }
.route svg { width: 100%; height: auto; overflow: visible; }
.route__line { fill: none; stroke: var(--line); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.route__line--done { stroke: var(--accent); stroke-dasharray: 700; stroke-dashoffset: 700; }
.route.is-in .route__line--done { animation: route 4.5s var(--ease) infinite; }
.route circle { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.route__pkg {
  position: absolute; left: 0; top: 0; width: 26px; height: 22px; border-radius: 5px; background: #a16207; box-shadow: 0 6px 14px -4px rgba(0,0,0,.35);
  offset-path: path("M30 170 C 140 40, 260 40, 300 110 S 440 190, 490 60"); offset-rotate: 0deg; offset-distance: 0%;
}
.route__pkg::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: rgba(255,255,255,.5); }
.route.is-in .route__pkg { animation: pkg 4.5s var(--ease) infinite; }
.route__tag { position: absolute; padding: 5px 9px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); }
.route__tag--a { left: 16px; bottom: 14px; }
.route__tag--b { right: 16px; top: 14px; background: var(--accent); color: #fff; }
@keyframes route { 0% { stroke-dashoffset: 700; } 75%, 100% { stroke-dashoffset: 0; } }
@keyframes pkg { 0% { offset-distance: 0%; opacity: 0; } 5% { opacity: 1; } 75% { offset-distance: 100%; opacity: 1; } 85%, 100% { offset-distance: 100%; opacity: 0; } }

.channels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.channels li { position: relative; padding: 24px 22px; border-radius: var(--radius); background: var(--bg-2); display: grid; gap: 8px; align-content: end; min-height: 160px; }
.channels strong { font: 400 28px/1.05 var(--serif); letter-spacing: -0.01em; }
.channels span { color: var(--muted); font-size: 14px; }

.section--soft { background: var(--bg-2); }
.section--tight { padding: 0 0 clamp(80px, 10vw, 120px); }
.note { margin-top: 32px; color: var(--ink-2); }
.note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.note a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Productos */
.products__label { margin: clamp(56px, 8vw, 88px) 0 20px; }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
}
.product__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--c); color: #fff; font-size: 22px; font-weight: 600; margin-bottom: 8px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); transition: transform .5s var(--ease);
}
.product:hover .product__icon { transform: rotate(-10deg) scale(1.1); }
.product__icon:empty::before { content: ""; width: 20px; height: 20px; border-radius: 6px; border: 2.5px solid #fff; }
.product h3 { font-size: 21px; }
.product p { color: var(--ink-2); font-size: 15px; flex: 1; }
.tag { align-self: flex-start; margin-top: 8px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 9px; border-radius: 6px; background: var(--bg-2); color: var(--muted); }

/* Bloque oscuro */
.section--ink { background: var(--ink); color: var(--bg); }
.section--ink .eyebrow, .section--ink .section__lead { color: color-mix(in srgb, var(--bg) 65%, var(--ink)); }
.section--ink .bignum { -webkit-text-stroke-color: color-mix(in srgb, var(--bg) 14%, transparent); }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.service { position: relative; padding: 40px 40px 44px 0; border-bottom: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.service:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.service::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.service:hover::before { transform: scaleX(1); }
.service__num { color: var(--accent); }
.service h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; transition: transform .4s var(--ease); }
.service:hover h3 { transform: translateX(6px); }
.service p { color: var(--ink-2); }

/* Principios */
.principles { padding: 32px clamp(24px, 4vw, 48px); border-radius: var(--radius); background: var(--bg-2); }
.principles p { font: 400 clamp(22px, 2.6vw, 30px)/1.3 var(--serif); color: var(--ink-2); max-width: 900px; }
.principles strong { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: .8em; letter-spacing: -0.02em; }

/* Contacto (portada) */
.contact { background: var(--accent); color: #140b06; }
.contact::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(20,11,6,.18) 1.2px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, transparent, #000); -webkit-mask-image: linear-gradient(to bottom, transparent, #000); }
.contact__inner { position: relative; display: grid; justify-items: start; gap: 24px; }
.contact .eyebrow, .contact .section__lead { color: rgba(20, 11, 6, .72); }
.section .contact__title { font-size: clamp(50px, 9vw, 128px); line-height: .92; max-width: 10ch; }
.section .contact__title em { color: #fff; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { font: 500 14px/1 var(--sans); padding: 11px 16px; border-radius: 999px; text-decoration: none; color: #140b06; border: 1px solid rgba(20,11,6,.3); transition: all .25s var(--ease); }
.topic:hover { background: #140b06; color: var(--accent); border-color: #140b06; transform: translateY(-2px); }

/* ---------- Pie ---------- */
.footer { padding: clamp(56px, 8vw, 96px) 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__intro { display: grid; gap: 22px; justify-items: start; align-content: start; }
.footer__claim { font: 400 clamp(26px, 3vw, 36px)/1.15 var(--serif); max-width: 16ch; }
.footer__claim em { color: var(--accent); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col .mono { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.footer__col a { color: var(--ink-2); text-decoration: none; font-size: 15px; width: fit-content; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.footer__col a:hover, .footer__col a[aria-current] { color: var(--ink); background-size: 100% 1.5px; }
.footer__mark { margin: clamp(48px, 8vw, 96px) 0 24px; color: var(--ink); }
.footer__mark .logo { width: 100%; height: auto; }
.footer__mark .logo .l { transition: transform .5s var(--ease), color .3s; }
.footer__mark .logo:hover .l { animation: letter-hop .6s calc(var(--li) * 45ms) var(--ease); }
.footer__mark .logo .l:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }

/* ---------- Aparición ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.tilt.reveal.is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ---------- Páginas legales ---------- */
.legal { position: relative; padding: clamp(48px, 7vw, 88px) 0 clamp(80px, 10vw, 120px); }
.legal > .hero__grid { height: 520px; }
.legal__hero { position: relative; display: grid; gap: 16px; justify-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
.legal h1 { font-size: clamp(44px, 7vw, 92px); }
.legal__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.legal__tabs a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; color: var(--ink-2); transition: all .25s var(--ease); }
.legal__tabs a:hover { border-color: var(--ink-2); color: var(--ink); transform: translateY(-2px); }
.legal__tabs a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.legal__grid { position: relative; display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 14px; }
.toc .mono { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: 14px; line-height: 1.35; transition: color .2s, border-color .3s, padding .3s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); padding-left: 20px; font-weight: 500; }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.03em; margin: 56px 0 16px; padding-top: 8px; }
.legal__body h2:first-child, .legal__body .summary + p + h2 { margin-top: 0; }
.legal__body h3 { font-size: 19px; margin: 28px 0 10px; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body p + p { margin-top: 12px; }
.legal__body ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 14px 0; }
.legal__body ul li { position: relative; padding-left: 22px; }
.legal__body ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.legal__body a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal__body a:hover { color: var(--accent); }
.datasheet { display: grid; grid-template-columns: max-content 1fr; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.datasheet dt, .datasheet dd { padding: 12px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.datasheet dt { font-weight: 600; background: var(--bg-2); }
.datasheet dd { color: var(--ink-2); }
.datasheet dt:last-of-type, .datasheet dd:last-of-type { border-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-2); }
tbody tr { transition: background .2s; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 500; }
.summary { padding: 24px 28px; border-radius: var(--radius); background: var(--ink); color: var(--bg); margin-bottom: 32px; }
.summary .mono { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.legal__body .summary li { color: color-mix(in srgb, var(--bg) 85%, var(--ink)); }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 500 12px var(--mono); }
.pill--no { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.rights { grid-template-columns: 1fr 1fr; }
.browsers { grid-template-columns: 1fr 1fr; }

.cookie-check { display: flex; gap: 22px; align-items: center; padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); margin-bottom: 40px; }
.cookie-check .mono { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cookie-check__count { font-size: 20px; margin: 4px 0; }
.cookie-check__count strong { font: 400 44px/1 var(--serif); color: var(--accent); vertical-align: -6px; margin-right: 4px; }
.cookie-check.is-clean .cookie-check__count strong { color: var(--ok); }
.cookie-check__jar { flex: none; width: 72px; height: 72px; }
.cookie-check__jar svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.cookie-check__jar circle { fill: #c98b4b; }
.cookie-check__jar .crumb { fill: #5b3416; }
.cookie-check.is-clean .cookie-check__jar svg { animation: crumble 2.4s 1s var(--ease) forwards; }
@keyframes crumble { to { opacity: .18; transform: rotate(200deg) scale(.7); filter: grayscale(1); } }

/* ---------- Página de contacto ---------- */
.contact-page { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 120px); }
.contact-page > .hero__grid { height: 600px; }
.contact-page__grid { position: relative; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-page__aside { position: sticky; top: 100px; display: grid; gap: 22px; justify-items: start; }
.contact-page h1 { font-size: clamp(44px, 6vw, 80px); }
.meter { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.meter li { display: flex; align-items: center; gap: 8px; transition: color .3s; }
.meter span { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font: 500 12px var(--mono); transition: all .4s var(--ease); }
.meter li.is-active { color: var(--ink); }
.meter li.is-active span { border-color: var(--accent); color: var(--accent); transform: scale(1.12); }
.meter li.is-done span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.meter__bar { width: 100%; max-width: 360px; height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.meter__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(.1); transition: transform .6s var(--ease); }
.contact-facts { display: grid; gap: 14px; margin: 18px 0 0; padding-top: 22px; border-top: 1px solid var(--line); width: 100%; }
.contact-facts dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-facts dd { margin: 4px 0 0; font: 400 24px/1.2 var(--serif); }
.contact-facts a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.contact-facts a:hover { background-size: 100% 2px; }

.contact-page__form { padding: clamp(22px, 3.5vw, 40px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(40, 30, 10, .35); }
.subjects { border: 0; padding: 0; margin: 0; }
.subjects legend { margin-bottom: 14px; }
.subjects__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.subject {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--bg); transition: border-color .25s, background .25s, transform .3s var(--ease), box-shadow .3s;
  animation: rise .6s calc(var(--i) * 50ms + .2s) var(--ease) both;
}
.subject:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.subject input { position: absolute; opacity: 0; pointer-events: none; }
.subject:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.subject:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); box-shadow: 0 10px 30px -18px var(--accent); }
.subject__icon { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); transition: all .35s var(--ease); }
.subject__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.subject:has(input:checked) .subject__icon { background: var(--accent); color: #fff; transform: rotate(-8deg); }
.subject__text { display: grid; gap: 2px; min-width: 0; }
.subject__text strong { font-size: 15px; line-height: 1.2; }
.subject__text small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.subject__check { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); transition: all .3s var(--ease); }
.subject:has(input:checked) .subject__check { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; transform: scale(1.1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; transition: opacity .22s, transform .22s; }
.fields:not(:empty) { margin-top: 32px; padding-top: 28px; border-top: 1px dashed var(--line); }
.fields.is-leaving { opacity: 0; transform: translateY(-8px); }
.fields__head { grid-column: 1 / -1; display: grid; gap: 4px; }
.fields__head .mono { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.fields__head h2 { font-size: 26px; letter-spacing: -0.03em; }
.fields.is-entering .field, .fields.is-entering .fields__head { opacity: 0; transform: translateY(16px); }
.field, .fields__head { grid-column: 1 / -1; transition: opacity .5s var(--ease), transform .5s var(--ease), max-height .4s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); min-width: 0; }
.field--half { grid-column: span 1; }
.field.is-hidden { opacity: 0; transform: translateY(-6px) scale(.98); transition-delay: 0s; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field__label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field__hint { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.req { color: var(--accent); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="date"], .field textarea, .select select {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; outline: none;
  transition: border-color .2s, box-shadow .25s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field textarea:hover, .select select:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.field input:focus, .field textarea:focus, .select select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); background: var(--card); }
.field.is-valid input, .field.is-valid textarea, .field.is-valid select { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--err); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field__count { display: block; text-align: right; color: var(--muted); margin-top: 6px; }
.field__error { color: var(--err); font-size: 13px; min-height: 0; margin-top: 6px; }
.field__error:empty { display: none; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-size: 14px; transition: all .25s var(--ease); user-select: none; }
.field--radio .option span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--muted); transition: all .25s var(--ease); }
.field--chips .option span::before { content: "+"; font-weight: 600; color: var(--muted); transition: transform .3s var(--ease); }
.option:hover span { border-color: var(--ink-2); }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.option input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.field--radio .option input:checked + span::before { border-color: var(--accent); border-width: 4px; background: var(--bg); }
.field--chips .option input:checked + span::before { content: "✓"; color: var(--accent); transform: rotate(360deg); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14.5px; color: var(--ink-2); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--muted); margin-top: 1px; transition: all .25s var(--ease); }
.check input:checked + .check__box { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--accent); transform: scale(1.08); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.has-error .check__box { border-color: var(--err); }
.check a { color: var(--ink); }
.field--consent + .field--consent { margin-top: -8px; }
.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 28px; display: grid; gap: 18px; justify-items: start; }
.form-foot .muted { font-size: 12.5px; line-height: 1.5; }
.btn--submit { padding: 17px 28px; font-size: 16px; }
.btn--submit:disabled { cursor: wait; }
.btn__spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn--submit.is-loading .btn__spinner { display: inline-block; }
.btn--submit.is-loading .btn__arrow { display: none; }
.form-status { font-size: 14px; }
.form-status.is-error { color: var(--err); }

.success { text-align: center; display: grid; justify-items: center; gap: 18px; padding: 40px 0; outline: none; }
.success h2 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; }
.success h2 em { color: var(--accent); }
.success__check { width: 96px; height: 96px; }
.success__check circle { fill: none; stroke: var(--ok); stroke-width: 4; stroke-dasharray: 230; stroke-dashoffset: 230; animation: dash .8s var(--ease) forwards; }
.success__check path { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: dash .5s .6s var(--ease) forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }

/* ---------- 404 ---------- */
.notfound { position: relative; min-height: 70vh; display: grid; align-items: center; padding: 80px 0; overflow: hidden; }
.notfound__inner { position: relative; display: grid; gap: 22px; justify-items: start; }
.notfound__code { display: flex; font: 400 clamp(120px, 24vw, 300px)/0.85 var(--serif); font-style: italic; color: var(--accent); letter-spacing: -0.05em; }
.notfound__code span { display: inline-block; animation: wobble 3.2s ease-in-out infinite; }
.notfound__code span:nth-child(2) { animation-delay: .2s; color: var(--ink); }
.notfound__code span:nth-child(3) { animation-delay: .4s; }
@keyframes wobble { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-4deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__specimen { display: none; }
  .areas { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__intro { grid-column: 1 / -1; }
  .contact-page__grid { grid-template-columns: 1fr; }
  .contact-page__aside { position: static; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .wrap.split, .channels, .products { grid-template-columns: 1fr; }
  .wrap.split .section__head { position: static; }
  .channels li { min-height: 0; }
  .legal__grid { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .areas, .services, .subjects__grid, .fields { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .service, .service:nth-child(even) { padding: 32px 0; border-left: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .datasheet { grid-template-columns: 1fr; }
  .datasheet dt { border-bottom: 0; padding-bottom: 4px; }
  .rights, .browsers { grid-template-columns: 1fr; }
  .cookie-check { flex-direction: column; align-items: flex-start; }
  .meter { gap: 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .split .w > span, .split .w-solo { opacity: 1; transform: none; }
  .scribble path { stroke-dashoffset: 0; }
  .cursor { display: none; }
}
.subject:last-child:nth-child(odd) { grid-column: 1 / -1; }
.legal__body em { font-family: inherit; font-style: italic; letter-spacing: 0; }
.menu a .mono { width: 22px; flex: none; }

/* ---------- Banner y panel de cookies ---------- */
.cc {
  position: fixed; left: 16px; bottom: 16px; z-index: 140; width: min(560px, calc(100% - 32px));
  display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; padding: 20px 22px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px -30px rgba(20, 15, 5, .45);
  opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.cc.is-in { opacity: 1; transform: none; }
.cc__icon { width: 44px; height: 44px; }
.cc__icon svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.cc__icon circle, .cookie-check__jar circle { fill: #c98b4b; }
.cc__icon .crumb { fill: #5b3416; }
.cc__title { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 4px; }
.cc__text { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cc__text a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.cc__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cc__btn { flex: 1 1 140px; justify-content: center; }
.cc__link {
  background: none; border: 0; padding: 10px 8px; cursor: pointer; font: 600 14px var(--sans); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.cc__link:hover { color: var(--accent); }

.ccm { position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; padding: 16px; }
.ccm__backdrop { position: absolute; inset: 0; background: rgba(15, 12, 8, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.ccm.is-in .ccm__backdrop { opacity: 1; }
.ccm__panel {
  position: relative; width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--card); color: var(--ink); border-radius: 24px; border: 1px solid var(--line); padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.ccm.is-in .ccm__panel { opacity: 1; transform: none; }
body.ccm-open { overflow: hidden; }
.ccm__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ccm__head h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.03em; }
.ccm__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; transition: transform .3s var(--ease), background .2s; }
.ccm__close:hover { transform: rotate(90deg); background: var(--bg-2); }
.ccm__intro { color: var(--ink-2); font-size: 15px; margin: 10px 0 22px; }
.ccm__cats { display: grid; gap: 10px; }
.ccm__cat { padding: 16px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.ccm__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 6px; }
.ccm__cat h3 { font-size: 16px; }
.ccm__cat h3 label { cursor: pointer; }
.ccm__cat p { font-size: 14px; color: var(--ink-2); }
.ccm__always { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); padding: 5px 9px; border-radius: 999px; }
.ccm__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 22px; }
.ccm__actions .cc__link { margin-right: auto; }

.switch { position: relative; flex: none; width: 46px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); border: 1px solid var(--line); transition: background .3s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .35s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.footer__btn {
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; border: 0; padding: 0; cursor: pointer;
  font: 400 15px var(--sans); color: var(--ink-2); text-align: left; width: fit-content; transition: background-size .35s var(--ease), color .2s;
}
.footer__btn:hover { color: var(--ink); background-size: 100% 1.5px; }

@media (max-width: 640px) {
  .cc { left: 8px; right: 8px; bottom: 8px; width: auto; grid-template-columns: 1fr; padding: 18px; }
  .cc__icon { display: none; }
  .ccm__actions { justify-content: stretch; }
  .ccm__actions .btn { flex: 1; justify-content: center; }
  .ccm__actions .cc__link { width: 100%; text-align: center; }
}
.pill--yes { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.legal__body code { font: 500 13px var(--mono); padding: 2px 6px; border-radius: 5px; background: var(--bg-2); white-space: nowrap; }
