/* =========================================================
   RratSoft — base: tokens, reset, tipografía, botones
   ========================================================= */

:root {
  /* Colores (paleta RratSoft) */
  --bg: #0a0b0d;
  --bg-2: #101216;
  --surface: #15181d;
  --surface-2: #1b1f25;
  --line: #23272e;
  --text: #e9ece8;
  --muted: #8b929b;
  --accent: #9dff3a;       /* verde neón */
  --accent-ink: #0a0b0d;   /* texto sobre el verde */
  --accent-2: #3af0ff;     /* cian */
  --pink: #ff5c8a;         /* rosa */

  /* Secciones claras */
  --light: #f1f3ef;
  --light-card: #e4e8e1;
  --light-text: #0a0b0d;
  --light-muted: #5d646d;

  /* Tipografía */
  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* Medidas */
  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p  { margin: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Título en dos tonos: la segunda parte va apagada */
.soft { color: var(--muted); }
.light .soft { color: var(--light-muted); }

.lead { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.18rem); max-width: 58ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px var(--accent); }
.btn .ti { font-size: 1.15em; }

.btn--light { background: #fff; color: var(--accent-ink); }
.btn--light:hover { box-shadow: 0 10px 30px -14px rgba(255, 255, 255, .6); }

.btn--dark { background: var(--accent-ink); color: var(--text); }
.btn--dark:hover { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }

.btn--small { padding: 10px 18px; font-size: .95rem; }
.btn--block { width: 100%; }

/* Botón redondo de flecha */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform .2s var(--ease), opacity .2s;
}
.icon-btn:hover { transform: scale(1.06); }
.icon-btn[disabled] { opacity: .35; cursor: default; transform: none; }

/* Etiqueta tipo píldora */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-ink);
  color: var(--text);
  font-size: .85rem;
  font-weight: 500;
}

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
