/* Kitora: papel impreso en risografía. Un solo acento (azul riso), puntos de trama y hojas imprimibles. */
:root {
  --paper: #F3F3EE;
  --sheet: #FFFFFF;
  --ink: #141A2B;
  --muted: #5B6072;
  --line: #DCDCD3;
  --blue: #2B47D9;
  --blue-soft: #DCE2FB;
  --on-blue: #F3F3EE;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: var(--on-blue); }

.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

/* ---------- cabecera (también en las páginas legales) ---------- */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.logo {
  font: 700 26px/1 var(--f-display); letter-spacing: -.04em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: baseline;
}
.logo span {
  display: inline-block; width: 7px; height: 7px; margin-left: 2px; position: relative; top: -1px; background: var(--blue);
  border-radius: 2px; transform: rotate(-8deg); font-size: 0; color: transparent;
}
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--blue);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
nav a:hover { color: var(--ink); }
nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 640px) { nav .opt { display: none; } }

/* ---------- portada ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(32px, 7vw, 88px) clamp(56px, 8vw, 104px); }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  font: 500 12.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 { font-size: clamp(40px, 5.9vw, 76px); line-height: .98; margin: 0; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .ln > span { display: inline-block; max-width: 100%; }
.mark { position: relative; white-space: nowrap; }
.mark::before {
  content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; top: .5em; bottom: .02em;
  background: var(--blue-soft); border-radius: .12em; transform-origin: left;
}
.hero h1 .ln > span { position: relative; z-index: 0; }
.lede { max-width: 50ch; margin: 28px 0 0; font-size: 19px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 999px;
  font: 600 16px/1 var(--f-body); text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink);
  transition: color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn.solid { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.btn.solid::before { background: var(--ink); }
.btn .arr { transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* hojas imprimibles */
.sheets { position: relative; aspect-ratio: 1 / 1.02; width: min(100%, 470px); justify-self: center; perspective: 1200px; }
.sheets-in { position: absolute; inset: 0; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .8s var(--ease); transform-style: preserve-3d; }
.sheet {
  position: absolute; left: 50%; top: 50%; width: 64%; aspect-ratio: 1 / 1.414; margin: -45% 0 0 -32%;
  background: var(--sheet); border-radius: 6px; padding: 7% 8%;
  box-shadow: 0 1px 0 rgba(20, 26, 43, .06), 0 24px 48px -24px rgba(20, 26, 43, .35);
  display: flex; flex-direction: column; gap: 6%;
  transition: transform .7s var(--ease);
}
.sheet.s1 { transform: translate(-30%, 4%) rotate(-11deg); }
.sheet.s2 { transform: translate(28%, 8%) rotate(9deg); }
.sheet.s3 { transform: translate(0, -4%) rotate(-1.5deg); }
.sheets:hover .s1 { transform: translate(-38%, 5%) rotate(-15deg); }
.sheets:hover .s2 { transform: translate(36%, 10%) rotate(13deg); }
.sheets:hover .s3 { transform: translate(0, -7%) rotate(-1deg); }
.sheet .lab { font: 500 clamp(8px, 1.6vw, 10.5px)/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); display: flex; justify-content: space-between; gap: 8px; }
.sheet .ttl { font: 600 clamp(14px, 2.6vw, 21px)/1.05 var(--f-display); letter-spacing: -.03em; color: var(--ink); }
.dots {
  border-radius: 4px; flex: 0 0 auto; height: 22%;
  background-image: radial-gradient(var(--blue) 32%, transparent 34%);
  background-size: 7px 7px; opacity: .9;
}
.bars { display: grid; gap: 7%; flex: 1; align-content: start; }
.bars i { display: block; height: 5px; border-radius: 3px; background: #E7E8EE; }
.bars i:nth-child(2) { width: 86%; } .bars i:nth-child(3) { width: 92%; } .bars i:nth-child(4) { width: 64%; }
.checks { display: grid; gap: 9%; flex: 1; align-content: start; }
.checks i { display: flex; align-items: center; gap: 8%; }
.checks i::before { content: ""; flex: none; width: 11px; height: 11px; border: 1.5px solid var(--blue); border-radius: 3px; }
.checks i::after { content: ""; height: 5px; flex: 1; border-radius: 3px; background: #E7E8EE; }
.checks i:first-child::before { background: var(--blue); }
.steps-mini { display: grid; grid-template-columns: auto 1fr; gap: 8% 8%; flex: 1; align-content: start; font: 500 10px/1 var(--f-mono); color: var(--blue); }
.steps-mini b { font-weight: 500; }
.steps-mini i { height: 5px; border-radius: 3px; background: #E7E8EE; align-self: center; }
.sheet .foot { font: 500 clamp(7px, 1.4vw, 9px)/1 var(--f-mono); color: var(--muted); display: flex; justify-content: space-between; }

/* cinta */
.tape-wrap { overflow: hidden; padding-block: 14px; }
.tape { background: var(--blue); color: var(--on-blue); overflow: hidden; padding-block: 22px; transform: rotate(-1.2deg); margin-inline: -2%; }
.tape-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.tape span { font: 600 clamp(26px, 4vw, 44px)/1 var(--f-display); letter-spacing: -.03em; white-space: nowrap; padding-right: 34px; display: inline-flex; align-items: center; gap: 34px; }
.tape span::after { content: ""; width: .32em; height: .32em; background: var(--on-blue); border-radius: 2px; transform: rotate(-8deg); }
.tape span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--on-blue); }
@keyframes slide { to { transform: translateX(-50%); } }

/* secciones */
.sec { padding-block: clamp(80px, 11vw, 140px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 48px; margin-bottom: 48px; align-items: end; }
@media (min-width: 900px) { .sec-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.sec-head h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1; margin: 0; }
.sec-head p { margin: 0; color: var(--muted); max-width: 46ch; font-size: 18px; }

.kits { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .kits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kit {
  background: var(--sheet); border-radius: 18px; padding: 26px; display: grid; gap: 14px; align-content: start;
  border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.kit:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(20, 26, 43, .4); }
.kit .ico { width: 54px; height: 54px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; transition: transform .6s var(--spring); }
.kit:hover .ico { transform: rotate(-8deg) scale(1.06); }
.kit .ico svg { width: 28px; height: 28px; }
.kit h3 { font-size: 24px; margin: 6px 0 0; line-height: 1.1; }
.kit p { margin: 0; color: var(--muted); }
.note {
  margin-top: 16px; padding: 18px 22px; border-radius: 14px; border: 1.5px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15.5px; color: var(--muted);
}
.note b { color: var(--ink); font-weight: 600; }

/* cómo funciona */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; position: relative; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.how::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1.5px; background: var(--ink);
  transform: scaleX(var(--p, 1)); transform-origin: left; transition: transform 1.2s var(--ease);
}
@media (max-width: 899px) { .how::before { display: none; } }
.how li { display: grid; gap: 12px; align-content: start; position: relative; }
.how .n {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper);
  border: 1.5px solid var(--ink); font: 500 14px/1 var(--f-mono);
}
.how li:last-child .n { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.how h3 { margin: 8px 0 0; font-size: 26px; line-height: 1.1; }
.how p { margin: 0; color: var(--muted); max-width: 34ch; }

/* garantía */
.guarantee {
  background: var(--ink); color: var(--paper); border-radius: 28px; overflow: hidden; position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: clamp(32px, 6vw, 72px); align-items: center;
}
@media (min-width: 900px) { .guarantee { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.guarantee h2 { font-size: clamp(56px, 10vw, 132px); line-height: .9; margin: 0; letter-spacing: -.05em; }
.guarantee h2 small { display: block; font-size: .3em; letter-spacing: -.02em; margin-top: .3em; color: #AEB4C8; font-weight: 500; }
.guarantee p { margin: 18px 0 0; color: #C9CDDA; max-width: 46ch; font-size: 18px; }
.guarantee a { color: #AFC0FF; }
.stamp { width: min(60%, 240px); aspect-ratio: 1; justify-self: center; position: relative; }
.stamp svg { width: 100%; height: 100%; transform: rotate(var(--rot, 0deg)); }
.stamp text { font: 500 13.5px var(--f-mono); letter-spacing: .22em; text-transform: uppercase; fill: var(--paper); }
.stamp .core {
  position: absolute; inset: 30%; border-radius: 50%; background: var(--blue); display: grid; place-items: center;
  font: 700 clamp(22px, 3.4vw, 34px)/1 var(--f-display); letter-spacing: -.04em; color: var(--on-blue);
}

/* contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.contact h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1; margin: 0; }
.mail {
  font: 600 clamp(22px, 4.2vw, 50px)/1.1 var(--f-display); letter-spacing: -.035em; color: var(--ink);
  text-decoration: none; overflow-wrap: anywhere; position: relative; justify-self: start;
  background: linear-gradient(var(--blue), var(--blue)) left bottom / 0 3px no-repeat; transition: background-size .6s var(--ease), color .3s;
}
.mail:hover { background-size: 100% 3px; color: var(--blue); }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; color: var(--muted); }
.copy {
  font: 500 13px/1 var(--f-mono); border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 10px 14px; cursor: pointer; transition: background .3s, color .3s;
}
.copy:hover, .copy.ok { background: var(--ink); color: var(--paper); }

/* ---------- páginas legales ---------- */
.legal {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 5vw, 56px); margin: 16px 0 64px; max-width: 820px;
}
.legal h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1; margin: 0 0 10px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; letter-spacing: -.02em; }
.legal p, .legal li { color: #3D4256; }
.legal .updated { font: 500 13px/1 var(--f-mono); color: var(--muted); margin: 0 0 24px; }

/* ---------- pie ---------- */
footer {
  border-top: 1px solid var(--line); margin-top: clamp(80px, 10vw, 120px);
  padding-block: 28px 44px; color: var(--muted); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}
.legal + footer { margin-top: 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* ---------- animaciones ---------- */
/* entrada de la portada */
.hero h1 .ln > span { animation: rise 1s var(--ease) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .07s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: .14s; }
.mark::before { animation: swipe .7s .75s var(--ease) both; }
.hero .lede, .hero .actions, .hero .eyebrow { animation: fade .8s var(--ease) both; }
.hero .eyebrow { animation-delay: 0s; }
.hero .lede { animation-delay: .3s; }
.hero .actions { animation-delay: .42s; }
.sheet { animation: deal 1s var(--spring) backwards; }
.sheet.s1 { animation-delay: .35s; } .sheet.s2 { animation-delay: .5s; } .sheet.s3 { animation-delay: .65s; }
@keyframes rise { from { transform: translateY(108%); } }
@keyframes swipe { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
@keyframes deal { from { transform: translate(0, 40%) rotate(0deg) scale(.9); opacity: 0; } }

/* aparición al scrollear: solo con JS, y lo que ya está a la vista aparece de inmediato */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .how::before { --p: 0; }
.js .how.in::before { --p: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .js .how::before { --p: 1; }
}
