/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0a0a0c;
  --bg-2:      #131316;
  --bg-card:   #16161a;
  --ink:       #f2f2ef;
  --ink-mute:  #a6a6a0;
  --ink-dim:   #6c6c68;
  --accent:    #d9955a;   /* naranja suave — primary */
  --accent-2:  #e0ab7c;   /* naranja claro suave */
  --gradient-1: #12777d;  /* teal */
  --gradient-2: #c97b3a;  /* naranja */
  --gradient-3: #2f5f8a;  /* azul */
  --line:      rgba(242,242,239,0.12);
  --line-strong: rgba(242,242,239,0.22);

  --mono: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: #06110c; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: #06110c;
  z-index: 9999; border-radius: 6px; font-weight: 600; font-family: var(--mono);
}
.skip-link:focus { top: 1rem; }

.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.section-index {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: .8rem;
}

[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* headline hover-invert — max 5 signature-adjacent effects total on this site */
.headline-invert {
  display: inline-block;
  transition: color .35s var(--ease-out);
}

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.section-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.section-title:hover {
  color: var(--bg);
  background: var(--accent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.section-head {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding-inline: 1.5rem;
}

/* =============================================================
   5. Components (buttons, forms, nav)
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.6rem;
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .04em;
  border-radius: 999px;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s;
}
.btn-primary {
  background: var(--accent);
  color: #06110c;
  box-shadow: 0 4px 24px rgba(110, 231, 183, 0.18);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(110, 231, 183, 0.28);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}
.btn-nav {
  padding: .65rem 1.2rem;
  font-size: .78rem;
}

.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding: 1.1rem 0;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), padding .3s;
}
.nav.is-scrolled {
  background: rgba(10,10,12,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
  padding: .8rem 0;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding-inline: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-brand {
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .03em;
}
.nav-brand-dot { color: var(--accent); animation: blink 1.4s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: none; gap: 2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; font-family: var(--mono); font-size: .82rem; color: var(--ink-mute);
  padding: .25rem 0;
  transition: color .3s;
}
.nav-link:hover { color: var(--ink); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-nav { display: none; }
@media (min-width: 720px) { .btn-nav { display: inline-flex; } }

.nav-burger {
  display: grid; gap: 5px; width: 28px; padding: 6px 0;
}
@media (min-width: 720px) { .nav-burger { display: none; } }
.nav-burger span { display: block; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: grid; place-items: center; gap: 1.5rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile-link {
  font-family: var(--mono); font-size: 1.4rem; color: var(--ink);
}

/* CTA inline (enlace directo a la página de suscripción en Systeme.io) */
.cta-inline { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: .5rem; }
.cta-inline-final { align-items: flex-start; }
.contact-note-small { color: var(--ink-dim); font-size: .8rem; }

/* =============================================================
   6. Sections
   ============================================================= */
section { position: relative; padding-block: clamp(4rem, 10vw, 8rem); }

/* --- Hero --- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 7rem 3rem;
  overflow: clip;
}
.hero-gradient {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle 620px at var(--mx, 30%) var(--my, 35%), color-mix(in srgb, var(--gradient-1) 55%, transparent) 0%, transparent 60%),
    radial-gradient(circle 760px at calc(var(--mx, 30%) + 18%) calc(var(--my, 35%) - 12%), color-mix(in srgb, var(--gradient-2) 50%, transparent) 0%, transparent 60%),
    radial-gradient(circle 680px at calc(var(--mx, 30%) - 14%) calc(var(--my, 35%) + 18%), color-mix(in srgb, var(--gradient-3) 55%, transparent) 0%, transparent 60%),
    var(--bg);
  filter: blur(70px) saturate(130%);
}
.hero-inner {
  max-width: 1000px; margin: 0 auto; padding-inline: 1.5rem;
  text-align: center;
}
.avatar-wrap {
  width: 128px; height: 128px; margin: 0 auto 1.75rem;
  border-radius: 50%; overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent);
  will-change: transform;
}
.avatar-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .2s var(--ease-out);
}
.hero-title {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(2.4rem, 8.5vw, 5.6rem);
  line-height: .98;
  max-width: 22ch;
  margin: 0 auto 1.6rem;
}
.hero-title span { display: block; }
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-mute);
  max-width: 46ch; margin: 0 auto 2.4rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center;
  margin-top: 4rem;
  font-family: var(--mono); font-size: .78rem; color: var(--ink-dim);
}
.hero-meta-item { display: inline-flex; align-items: center; gap: .5rem; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* --- Manifesto --- */
.manifesto {
  max-width: 760px; margin: 0 auto; padding-inline: 1.5rem; text-align: center;
}
.manifesto-text {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink);
}

/* --- Services / accordion --- */
.service-list { max-width: 900px; margin: 0 auto; padding-inline: 1.5rem; }

/* Texto y CTA sueltos dentro de .services / .process deben
   quedar en el mismo ancho de columna que el resto del contenido. */
.services > .manifesto-text,
.services > .cta-inline,
.process > .manifesto-text,
.process > .cta-inline {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-inline: 1.5rem;
}
.services > .cta-inline,
.process > .cta-inline {
  margin-top: 1.5rem;
}
.service-row { border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row-head {
  width: 100%; display: grid;
  grid-template-columns: 2.5rem 1fr auto 1.5rem;
  align-items: center; gap: 1rem;
  padding: 1.6rem 0;
  text-align: left;
}
.service-num { font-family: var(--mono); color: var(--accent); font-size: .9rem; }
.service-title {
  font-family: var(--mono); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.35rem);
}
.service-summary { color: var(--ink-dim); font-size: .85rem; display: none; }
@media (min-width: 720px) { .service-summary { display: block; } }
.service-icon {
  font-family: var(--mono); font-size: 1.3rem; color: var(--ink-mute);
  transition: transform .4s var(--ease-soft), color .3s;
}
.service-row-head[aria-expanded="true"] .service-icon { transform: rotate(45deg); color: var(--accent); }
.service-row:hover .service-title { color: var(--accent); }
.service-row-body {
  max-height: 0; overflow: hidden;
  transition: max-height .5s var(--ease-soft);
}
.service-row-body p {
  padding: 0 0 1.8rem 3.5rem;
  color: var(--ink-mute);
  max-width: 62ch;
}

/* --- Process --- */
.process-grid {
  max-width: 1100px; margin: 0 auto; padding-inline: 1.5rem;
  display: grid; gap: 2.5rem;
}
@media (min-width: 720px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
.process-num {
  font-family: var(--mono); font-size: 2.2rem; font-weight: 800; color: var(--line-strong);
  display: block; margin-bottom: .8rem;
}
.process-step h3 { font-family: var(--mono); font-size: 1.05rem; margin-bottom: .6rem; }
.process-step p { color: var(--ink-mute); font-size: .95rem; }

/* --- Stats --- */
.stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(2rem, 6vw, 5rem);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-value {
  display: block;
  font-family: var(--mono); font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--accent);
}
.stat-label {
  font-size: .85rem; color: var(--ink-mute);
}

/* --- Links (DexScreener / Newsletter / Telegram) --- */
.link-grid {
  max-width: 1100px; margin: 0 auto; padding-inline: 1.5rem;
  display: grid; gap: 1.2rem;
}
@media (min-width: 720px) { .link-grid { grid-template-columns: repeat(3, 1fr); } }
.link-card {
  display: flex; flex-direction: column; gap: .6rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .45s var(--ease-soft), border-color .3s, box-shadow .45s var(--ease-soft);
}
.link-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 48px -20px rgba(110, 231, 183, 0.25);
}
.link-kicker {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--ink-dim);
}
.link-title { font-family: var(--mono); font-size: 1.3rem; }
.link-text { color: var(--ink-mute); font-size: .92rem; flex: 1; }
.link-cta {
  font-family: var(--mono); font-size: .85rem; color: var(--accent);
  display: inline-flex; align-items: center; gap: .4rem;
}
.link-card:hover .link-cta span { transform: translateX(3px); }
.link-cta span { display: inline-block; transition: transform .3s var(--ease-out); }

/* --- Contact --- */
.contact-grid {
  max-width: 1000px; margin: 0 auto; padding-inline: 1.5rem;
  display: grid; gap: 3rem;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-email {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  display: inline-block;
  position: relative;
}
.contact-email::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.15em;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.contact-email:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-note { color: var(--ink-mute); margin-top: 1rem; font-size: .95rem; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding-inline: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
}
.footer-brand { font-family: var(--mono); font-weight: 700; }
.footer-legal { color: var(--ink-dim); font-size: .78rem; max-width: 46ch; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { font-family: var(--mono); font-size: .8rem; color: var(--ink-mute); }
.footer-links a:hover { color: var(--accent); }
.footer-legal-links { margin-top: .8rem; }
.footer-legal-links a { font-family: var(--sans); font-size: .75rem; }

/* =============================================================
   7. Reduced-motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .nav-brand-dot { animation: none; }
  /* keep: reveals, hover invert, accordion, count-up, underline, gradient drift */
}
