:root {
  --ink: #0b0b0d;
  --ink-soft: #17171b;
  --paper: #f4f2ea;
  --card: #ffffff;
  --violet: #6d3bff;
  --violet-deep: #4c22cc;
  --violet-bright: #8a63ff;
  --lime: #d6ff3f;
  --coral: #ff4d6d;
  --line: #232227;
  --line-light: #e2dfd3;
  --muted: #8f8d92;
  --ink-on-paper-soft: #55545c;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--paper); background: var(--ink); -webkit-font-smoothing: antialiased; cursor: none; }
@media (pointer: coarse) { body { cursor: auto; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; line-height: 0.98; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--lime); }

/* ── Cursor a medida ─────────────────────────── */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 8px; height: 8px; background: var(--lime); mix-blend-mode: difference; }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid var(--lime); mix-blend-mode: difference; transition: width .25s var(--ease), height .25s var(--ease); }
.cursor-ring.active { width: 70px; height: 70px; background: rgba(214,255,63,0.15); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

.demo-badge { position: fixed; bottom: 18px; right: 18px; z-index: 250; background: var(--card); color: var(--ink); font-size: 13px; padding: 10px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .2s ease; }
.demo-badge:hover { transform: translateY(-2px); }
.demo-badge span.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }

/* ── Ticker superior ──────────────────────────── */
.announce { background: var(--lime); color: var(--ink); overflow: hidden; padding: 9px 0; }
.announce .track { display: inline-flex; gap: 60px; white-space: nowrap; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; animation: marquee 20s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Header ───────────────────────────────────── */
header.site { position: sticky; top: 0; z-index: 100; background: rgba(11,11,13,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s ease; }
header.site.scrolled { box-shadow: 0 12px 30px rgba(0,0,0,.35); }
header.site .bar { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { position: relative; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; color: var(--paper); }
.brand span { color: var(--lime); }
.brand.glitch { transition: transform .15s ease; }
.brand.glitch::before, .brand.glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; opacity: 0; }
.brand.glitch:hover::before { opacity: .7; color: var(--violet-bright); transform: translate(2px, -2px); clip-path: inset(0 0 55% 0); }
.brand.glitch:hover::after { opacity: .7; color: var(--coral); transform: translate(-2px, 2px); clip-path: inset(55% 0 0 0); }
nav.main { display: flex; align-items: center; gap: 32px; }
nav.main a { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #c9c8ce; transition: color .2s; }
nav.main a:hover { color: var(--paper); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background: var(--ink-soft); color: var(--paper); cursor: pointer; }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; background: var(--lime); color: var(--ink); font-size: 10px; font-weight: 800; width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: badgePulse 2.4s ease-in-out .6s infinite; }
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.menu-toggle { display: none; background: none; border: none; color: var(--paper); font-size: 26px; cursor: pointer; }

/* ── Botones ──────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 2px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; border: 1.5px solid transparent; cursor: pointer; transition: all .3s var(--ease); position: relative; overflow: hidden; }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--violet-bright); color: #fff; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.btn-primary:hover::after { left: 130%; }
.btn-outline { border-color: var(--paper); color: var(--paper); }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }
.btn.magnetic { will-change: transform; }

/* ── Hero ─────────────────────────────────────── */
.hero { padding: 90px 0 0; position: relative; overflow: hidden; }
.hero-bg-word { position: absolute; top: 8%; left: 0; width: 100%; z-index: 0; opacity: .07; pointer-events: none; }
.hero-bg-word .track { display: inline-flex; white-space: nowrap; animation: marqueeSlow 32s linear infinite; }
.hero-bg-word span { font-size: clamp(6rem, 22vw, 16rem); font-weight: 800; letter-spacing: -0.04em; padding: 0 30px; color: var(--paper); }
@keyframes marqueeSlow { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-bottom: 70px; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); }
.hero h1 .hl { color: var(--lime); -webkit-text-stroke: 0; }
.hero p.lead { margin-top: 22px; max-width: 42ch; font-size: 16px; line-height: 1.7; color: #b8b6bd; text-transform: none; }
.hero .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .stats { margin-top: 48px; display: flex; gap: 34px; flex-wrap: wrap; }
.hero .stats strong { display: block; font-size: 22px; color: var(--paper); }
.hero .stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.hero-visual { position: relative; aspect-ratio: 4/5; transform: rotate(3deg); transition: transform .5s var(--ease); }
.hero-visual:hover { transform: rotate(0deg) scale(1.02); }
.hero-visual .panel { position: absolute; inset: 0; border-radius: 4px; overflow: hidden; background: linear-gradient(155deg, var(--violet), #2a1680); }
.hero-visual .panel::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px); }
.hero-visual .tag { position: absolute; top: 20px; left: 20px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 12px; border-radius: 999px; animation: pulseTag 2.4s ease-in-out infinite; z-index: 2; }
@keyframes pulseTag { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.hero-visual .price-float { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(11,11,13,0.85); backdrop-filter: blur(6px); color: #fff; padding: 16px 18px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; z-index: 2; animation: bob 5s ease-in-out infinite; }
.hero-visual .price-float strong { font-size: 15px; text-transform: none; font-weight: 700; }
.hero-visual .price-float span { color: var(--lime); font-weight: 800; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-visual .chip { position: absolute; z-index: 2; background: var(--card); color: var(--ink); font-size: 11px; font-weight: 700; padding: 8px 12px; border-radius: 999px; display: flex; align-items: center; gap: 6px; animation: floatChip 6s ease-in-out infinite; }
.hero-visual .chip.c1 { top: 45%; right: -10%; animation-delay: -1s; }
.hero-visual .chip.c2 { top: 62%; left: -8%; animation-delay: -3s; }
@keyframes floatChip { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

/* ── Section shell ────────────────────────────── */
section { padding: 100px 0; }
.on-paper { background: var(--paper); color: var(--ink); }
.on-paper h1, .on-paper h2, .on-paper h3, .on-paper .eyebrow::before { color: var(--ink); }
.section-head { max-width: 640px; margin-bottom: 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.on-paper .section-head h2 { color: var(--ink); }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 15px; text-transform: none; max-width: 46ch; }

/* ── Animación: scroll-reveal ─────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-group > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group > *:nth-child(2) { transition-delay: 90ms; }
.reveal-group > *:nth-child(3) { transition-delay: 180ms; }
.reveal-group > *:nth-child(4) { transition-delay: 270ms; }
.reveal-group > *:nth-child(5) { transition-delay: 360ms; }

/* ── Categorías: bento asimétrico ─────────────── */
.cat-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 160px); gap: 14px; }
.cat-card { position: relative; border-radius: 4px; overflow: hidden; display: flex; align-items: flex-end; padding: 20px; color: #fff; transition: transform .5s var(--ease); }
.cat-card:hover { transform: translateY(-6px); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent 60%); }
.cat-card > div { position: relative; z-index: 1; transition: transform .4s var(--ease); }
.cat-card:hover > div { transform: translateY(-4px); }
.cat-card h3 { font-size: 16px; }
.cat-card span { display: block; font-size: 12px; text-transform: none; font-weight: 500; opacity: .85; margin-top: 4px; }
.cat-card.big { grid-column: span 2; grid-row: span 2; }
.cat-card.tall { grid-row: span 2; }
.cat-card.c1 { background: linear-gradient(160deg, var(--violet), #2a1680); }
.cat-card.c2 { background: linear-gradient(160deg, #2c2c31, var(--ink)); }
.cat-card.c3 { background: linear-gradient(160deg, #b9a6ff, var(--violet)); }
.cat-card.c4 { background: linear-gradient(160deg, var(--coral), #8f1f3c); }

/* ── Colección: carril horizontal con drag ────── */
.prod-rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; cursor: grab; scrollbar-width: none; }
.prod-rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.prod-rail::-webkit-scrollbar { display: none; }
.prod-card { flex: 0 0 260px; scroll-snap-align: start; display: flex; flex-direction: column; user-select: none; }
.prod-visual { aspect-ratio: 1/1.15; border-radius: 4px; position: relative; margin-bottom: 14px; overflow: hidden; transition: transform .4s var(--ease); }
.prod-card:hover .prod-visual { transform: translateY(-6px); }
.prod-visual .badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.prod-visual.p1 { background: linear-gradient(155deg, #dad7ff, #8c7bff); }
.prod-visual.p2 { background: linear-gradient(155deg, #f0efe9, #cfcdc3); }
.prod-visual.p3 { background: linear-gradient(155deg, #201f24, #46444f); }
.prod-visual.p4 { background: linear-gradient(155deg, var(--lime), #a7c92f); }
.prod-visual.p5 { background: linear-gradient(155deg, var(--coral), #8f1f3c); }
.prod-card h3 { font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); transition: color .25s ease; }
.prod-card:hover h3 { color: var(--violet); }
.prod-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.prod-card .price { font-weight: 800; font-size: 14px; color: var(--ink); }
.prod-card .price .old { color: var(--muted); text-decoration: line-through; font-weight: 500; margin-right: 6px; font-size: 12px; }
.rail-hint { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); text-transform: none; margin-top: 18px; }
.rail-hint svg { animation: railHintMove 1.6s ease-in-out infinite; }
@keyframes railHintMove { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* ── Por qué comprar aquí ─────────────────────── */
.porque-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.porque-item { text-align: left; padding: 34px 28px; background: var(--ink); transition: background-color .3s ease; }
.porque-item:hover { background: var(--ink-soft); }
.porque-item .num { font-size: 13px; font-weight: 800; color: var(--lime); letter-spacing: .05em; }
.porque-item .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--ink-soft); color: var(--lime); display: flex; align-items: center; justify-content: center; margin: 14px 0 18px; transition: transform .4s var(--ease), background-color .3s ease; }
.porque-item:hover .ic { transform: scale(1.12) rotate(-6deg); background: var(--violet); color: #fff; }
.porque-item h4 { font-size: 14px; text-transform: uppercase; margin-bottom: 6px; color: var(--paper); }
.porque-item p { margin: 0; font-size: 13px; color: var(--muted); text-transform: none; line-height: 1.6; }

/* ── Newsletter ───────────────────────────────── */
.newsletter { position: relative; overflow: hidden; text-align: center; background: linear-gradient(160deg, var(--violet-deep), var(--ink) 60%); }
.newsletter::before { content: ''; position: absolute; inset: -20%; background: radial-gradient(circle at 30% 30%, rgba(214,255,63,0.18), transparent 55%), radial-gradient(circle at 75% 70%, rgba(109,59,255,0.35), transparent 55%); animation: meshShift 14s ease-in-out infinite; }
@keyframes meshShift { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-3%, 3%) scale(1.08); } }
.newsletter .wrap { position: relative; z-index: 1; }
.newsletter h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 20ch; margin: 0 auto; }
.newsletter p { margin-top: 14px; color: #cfcdd6; text-transform: none; font-size: 15px; }
.newsletter form { margin: 32px auto 0; display: flex; max-width: 420px; gap: 10px; }
.newsletter input { flex: 1; padding: 14px 16px; border-radius: 2px; border: 1px solid #3a3a45; background: rgba(255,255,255,0.06); color: #fff; font-size: 14px; transition: border-color .25s ease, box-shadow .25s ease; }
.newsletter input::placeholder { color: #8f8d92; }
.newsletter input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(214,255,63,0.15); }
.newsletter .form-note { margin-top: 12px; font-size: 12px; color: #8f8d92; }

/* ── Footer ───────────────────────────────────── */
footer.site { padding: 70px 0 28px; position: relative; overflow: hidden; }
.footer-bg-word { position: absolute; bottom: -6%; left: 50%; transform: translateX(-50%); font-size: clamp(4rem, 18vw, 13rem); font-weight: 800; letter-spacing: -0.04em; color: var(--ink-soft); z-index: 0; white-space: nowrap; pointer-events: none; }
footer.site .top { position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 36px; }
footer.site .cols { display: flex; gap: 56px; flex-wrap: wrap; }
footer.site h5 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; color: var(--paper); }
footer.site ul li { margin-bottom: 10px; font-size: 14px; color: var(--muted); text-transform: none; }
footer.site ul a:hover { color: var(--paper); }
.bottom-bar { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px; text-transform: none; }
.bottom-bar a { color: var(--lime); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .announce .track, .hero-bg-word .track, .hero-visual .price-float, .hero-visual .chip, .hero-visual .tag, .icon-btn .badge, .newsletter::before, .rail-hint svg { animation: none !important; }
  .reveal { transition: opacity .3s ease; transform: none !important; }
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

@media (max-width: 960px) {
  .cat-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .cat-card.big { grid-column: span 2; grid-row: span 1; }
  .cat-card.tall { grid-row: span 1; }
}
@media (max-width: 900px) {
  nav.main, .header-actions .icon-btn:first-child { display: none; }
  .menu-toggle { display: block; }
  .hero .grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto 20px; transform: none; }
  .porque-grid { grid-template-columns: 1fr 1fr; }
  .newsletter form { flex-direction: column; }
  section { padding: 68px 0; }
}
@media (max-width: 560px) {
  .cat-bento { grid-template-columns: 1fr; grid-template-rows: repeat(4, 160px); }
  .cat-card.big, .cat-card.tall { grid-column: span 1; grid-row: span 1; }
  .porque-grid { grid-template-columns: 1fr; }
}
