/* ═══════════════════════════════════════════════════════════
   TAIGA · ESTUDIO — landing de venta (diseño bespoke)
   Chrome ink/marfil · color en el trabajo · acento por rubro
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink:        #0a0a0b;
  --ink-2:      #101012;
  --ink-3:      #16161a;
  --paper:      #f4f2ec;
  --paper-dim:  #b6b4ad;
  --muted:      #7c7c83;
  --line:       rgba(244, 242, 236, 0.12);
  --line-2:     rgba(244, 242, 236, 0.22);

  /* acento dinamico (lo cambia el JS segun el rubro activo) */
  --accent:     #c9a87c;

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans:  "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono:  "Space Mono", ui-monospace, monospace;

  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.76, 0, 0.24, 1);
  --pad:    clamp(1.25rem, 4.5vw, 3rem);
  --maxw:   1320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: italic; }
button { font: inherit; color: inherit; background: none; border: none; cursor: none; }
::selection { background: var(--accent); color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(5rem, 13vw, 11rem); position: relative; z-index: 2; }

/* ── meta / mono labels ── */
.mono { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 0.7rem; transition: color 0.6s var(--ease); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }

/* ═══ FONDO REACTIVO (grid blueprint + spotlight + grano) ═══ */
.bg-grid, .bg-spot, .grain { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.35;
  -webkit-mask-image: radial-gradient(900px 700px at var(--mx, 50%) var(--my, 30%), #000 0%, rgba(0,0,0,0.15) 55%, transparent 80%);
          mask-image: radial-gradient(900px 700px at var(--mx, 50%) var(--my, 30%), #000 0%, rgba(0,0,0,0.15) 55%, transparent 80%);
}
.bg-spot {
  background: radial-gradient(600px 600px at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  opacity: 0.6; transition: background 1.2s var(--ease); z-index: 0;
}
.grain {
  z-index: 9; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══ CURSOR ═══ */
.cursor { position: fixed; top: 0; left: 0; width: 34px; height: 34px; border: 1px solid var(--accent); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 9999; transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, border-color 0.6s; mix-blend-mode: difference; }
.cursor-dot { position: fixed; top: 0; left: 0; width: 4px; height: 4px; background: var(--paper); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 9999; }
body.cursor-hover .cursor { width: 64px; height: 64px; background: color-mix(in srgb, var(--accent) 20%, transparent); }
body.cursor-view .cursor { width: 92px; height: 92px; }
.cursor__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); opacity: 0; transition: opacity 0.3s; }
body.cursor-view .cursor__label { opacity: 1; }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ═══ PRELOADER ═══ */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; }
.preloader__mark { width: 56px; animation: breathe 1.5s var(--ease-2) infinite; }
.preloader__bar { width: min(220px, 50vw); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.preloader__bar::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: var(--accent); transition: width 0.2s linear; }
.preloader__count { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--muted); }
@keyframes breathe { 50% { opacity: 0.35; } }
body.is-loaded .preloader { opacity: 0; visibility: hidden; transition: opacity 0.8s var(--ease), visibility 0.8s; }

/* ═══ NAV ═══ */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 800; padding-block: 1.1rem; transition: background 0.5s var(--ease), padding 0.5s, border-color 0.5s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: color-mix(in srgb, var(--ink) 80%, transparent); backdrop-filter: blur(14px); padding-block: 0.7rem; border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 0.65rem; }
.nav__logo img { height: 26px; width: auto; }
.nav__logo span { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.32em; text-transform: uppercase; padding-top: 2px; }
.nav__menu { display: none; gap: 2rem; }
.nav__menu a { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-dim); position: relative; transition: color 0.3s; }
.nav__menu a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--accent); transition: width 0.4s var(--ease); }
.nav__menu a:hover { color: var(--paper); }
.nav__menu a:hover::after { width: 100%; }
.nav__cta { display: none; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.85rem 1.4rem; border: 1px solid var(--line-2); border-radius: 2px; overflow: hidden; transition: color 0.4s, border-color 0.4s; will-change: transform; }
.btn span.t { position: relative; z-index: 2; }
.btn .arrow { position: relative; z-index: 2; transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--solid::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform 0.5s var(--ease); z-index: 1; }
.btn--solid:hover::before { transform: translateY(0); }
.btn--solid:hover { color: var(--ink); border-color: var(--accent); }
.btn--ghost::before { content: ""; position: absolute; inset: 0; background: var(--paper); transform: translateY(101%); transition: transform 0.5s var(--ease); z-index: 1; }
.btn--ghost:hover::before { transform: translateY(0); }
.btn--ghost:hover { color: var(--ink); }
.btn--lg { padding: 1.1rem 1.8rem; font-size: 0.8rem; }
.nav__burger { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 26px; height: 1.5px; background: var(--paper); transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav.is-open .nav__burger span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══ HERO ═══ */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 7rem; padding-bottom: 3rem; position: relative; }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.7rem, 8.5vw, 6.2rem); line-height: 0.98; letter-spacing: -0.02em; }
.hero__title em { font-weight: 300; color: var(--accent); transition: color 0.6s var(--ease); }
.hero__title .ln { display: block; overflow: hidden; }
.hero__title .ln > span { display: block; transform: translateY(110%); }
.hero__sub { margin-top: 1.8rem; max-width: 46ch; color: var(--paper-dim); font-size: 1.05rem; }
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__tag { margin-top: 2.2rem; display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--paper-dim); }
.hero__tag .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; transition: background 0.6s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ── MOCKUP (la mecanica estrella) ── */
.showcase { position: relative; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.chip { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 100px; color: var(--paper-dim); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.chip[aria-selected="true"] { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.browser { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--ink-2); box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8); transform-style: preserve-3d; }
.browser__bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.9rem; background: var(--ink-3); border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser__url { flex: 1; font-family: var(--font-mono); font-size: 0.68rem; color: var(--paper-dim); background: var(--ink); border: 1px solid var(--line); border-radius: 100px; padding: 0.3rem 0.8rem; text-align: center; white-space: nowrap; overflow: hidden; }
.browser__url b { color: var(--accent); font-weight: 400; transition: color 0.5s; }
.browser__screen { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.demo { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease); display: flex; flex-direction: column; }
.demo.is-active { opacity: 1; visibility: visible; }
.demo__img { position: absolute; inset: 0; }
.demo__img img { width: 100%; height: 100%; object-fit: cover; }
.demo__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55)); }
.demo__nav { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.1rem; z-index: 2; }
.demo__brand { font-family: var(--font-serif); font-size: 0.95rem; letter-spacing: 0.02em; color: #fff; }
.demo__links { display: flex; gap: 0.8rem; }
.demo__links span { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.demo__body { position: relative; z-index: 2; margin-top: auto; padding: 1.1rem; }
.demo__kicker { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dac, #fff); }
.demo__head { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.3rem, 3.4vw, 2.1rem); line-height: 1.04; color: #fff; margin-top: 0.4rem; max-width: 14ch; }
.demo__btn { display: inline-block; margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; color: #111; background: var(--dac, #fff); padding: 0.5rem 0.9rem; border-radius: 100px; }
/* scanline de "build" */
.browser__scan { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 35%, transparent), transparent); opacity: 0; }
.browser.is-building .browser__scan { animation: scan 0.6s var(--ease); }
@keyframes scan { 0% { opacity: 1; transform: translateY(-100%); } 100% { opacity: 0; transform: translateY(100%); } }

/* ═══ MARQUEE ═══ */
.marquee { border-block: 1px solid var(--line); padding-block: 1.3rem; overflow: hidden; white-space: nowrap; position: relative; z-index: 2; background: var(--ink); }
.marquee__track { display: inline-flex; align-items: center; gap: 2.5rem; will-change: transform; }
.marquee__track span { font-family: var(--font-serif); font-size: clamp(1.4rem, 4vw, 2.4rem); color: var(--paper-dim); }
.marquee__track .dot { color: var(--accent); font-size: 1rem; transition: color 0.6s; }

/* ═══ STATEMENT ═══ */
.statement { text-align: center; }
.statement__text { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.7rem, 5vw, 3.4rem); line-height: 1.18; letter-spacing: -0.01em; max-width: 22ch; margin-inline: auto; }
.statement__text em { color: var(--accent); transition: color 0.6s; }
.statement__text .w { display: inline-block; opacity: 0.16; transition: opacity 0.5s var(--ease); }

/* ═══ Encabezados de sección ═══ */
.section__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; }
.section__title em { color: var(--accent); transition: color 0.6s; }
.section__lead { color: var(--paper-dim); max-width: 42ch; margin-top: 1rem; }
.section__head--center { text-align: center; }
.section__head--center .section__lead { margin-inline: auto; }

/* ═══ SERVICIOS (index list) ═══ */
.svc { border-top: 1px solid var(--line); }
.svc__row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; padding: clamp(1.6rem, 4vw, 2.6rem) 0; border-bottom: 1px solid var(--line); position: relative; transition: padding 0.5s var(--ease); }
.svc__row::before { content: ""; position: absolute; left: -100vw; right: -100vw; top: 0; bottom: 0; background: var(--ink-2); opacity: 0; transition: opacity 0.4s; z-index: -1; }
.svc__row:hover::before { opacity: 1; }
.svc__row:hover { padding-left: 1.2rem; }
.svc__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); transition: color 0.6s; }
.svc__title { font-family: var(--font-serif); font-size: clamp(1.4rem, 3.4vw, 2.2rem); }
.svc__desc { max-width: 40ch; color: var(--paper-dim); font-size: 0.95rem; justify-self: end; text-align: right; }
@media (max-width: 760px) { .svc__row { grid-template-columns: auto 1fr; } .svc__desc { display: none; } }

/* ═══ PROCESO ═══ */
.proc__grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proc__step { background: var(--ink); padding: clamp(1.6rem, 4vw, 2.6rem); transition: background 0.5s; }
.proc__step:hover { background: var(--ink-2); }
.proc__num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); }
.proc__title { font-family: var(--font-serif); font-size: 1.5rem; margin: 0.8rem 0 0.5rem; }
.proc__desc { color: var(--paper-dim); font-size: 0.92rem; }

/* ═══ RIESGO CERO ═══ */
.risk { text-align: center; }
.risk__check { width: 84px; height: 84px; margin: 0 auto 1.8rem; }
.risk__check circle, .risk__check path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.6s; }
.risk__check circle { stroke-dasharray: 326; stroke-dashoffset: 326; }
.risk__check path { stroke-dasharray: 80; stroke-dashoffset: 80; }
.risk.is-in .risk__check circle { animation: draw 0.9s var(--ease) forwards; }
.risk.is-in .risk__check path { animation: draw 0.5s var(--ease) 0.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.risk__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 18ch; margin-inline: auto; }
.risk__title em { color: var(--accent); transition: color 0.6s; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(2.5rem, 6vw, 4rem); }
.stat { background: var(--ink); padding: 2rem 1rem; text-align: center; }
.stat__num { font-family: var(--font-serif); font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; }
.stat__num .u { color: var(--accent); transition: color 0.6s; }
.stat__label { display: block; margin-top: 0.7rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ═══ CTA ═══ */
.cta { text-align: center; position: relative; }
.cta__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; }
.cta__title em { color: var(--accent); transition: color 0.6s; }
.cta__sub { margin: 1.4rem auto 0; max-width: 44ch; color: var(--paper-dim); }
.cta__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta__contacts { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--paper-dim); }
.cta__contacts .sep { color: var(--accent); }

/* ═══ FOOTER ═══ */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 5rem) 2rem; position: relative; z-index: 2; }
.footer__grid { display: grid; gap: 2rem; align-items: start; }
.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__brand img { height: 34px; }
.footer__brand p { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--paper-dim); line-height: 1.5; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-dim); }
.footer__nav a:hover { color: var(--paper); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; color: var(--muted); }

/* ═══ WHATSAPP FLOAT ═══ */
.wa-float { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 700; width: 54px; height: 54px; border-radius: 50%; background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,0.6); transition: transform 0.4s var(--ease), background 0.4s; }
.wa-float:hover { transform: scale(1.08); background: var(--accent); }

/* ═══ REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ═══ RESPONSIVE ═══ */
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr auto; }
  .proc__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .nav__menu { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .proc__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══ MOBILE MENU ═══ */
.mobile-menu { position: fixed; inset: 0; z-index: 750; background: var(--ink-2); display: flex; flex-direction: column; justify-content: center; padding: var(--pad); transform: translateY(-100%); transition: transform 0.6s var(--ease-2); }
.mobile-menu.is-open { transform: none; }
.mobile-menu a { font-family: var(--font-serif); font-size: clamp(2rem, 9vw, 3.4rem); padding-block: 0.4rem; display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); }
.mobile-menu a span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal, .hero__title .ln > span, .statement__text .w { opacity: 1; transform: none; }
}
