/* ============================================================
   BASE.CSS — ADRIANCALLEJA.COM NEW SYSTEM
============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #05070b;
  --bg-soft: #0b1118;
  --surface: #101722;
  --surface-soft: #151f2d;

  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #7f8ea3;

  --accent: #38bdf8;
  --accent-2: #8b5cf6;
  --accent-3: #22c55e;
  --accent-soft: rgba(56, 189, 248, 0.14);

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --glow: 0 0 70px rgba(56, 189, 248, 0.18);

  --container: 1180px;
  --transition: 0.25s ease;
}

body.light {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;

  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;

  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);

  --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  --glow: 0 0 70px rgba(14, 165, 233, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.12), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.16), transparent 34rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

p {
  color: var(--text-soft);
  line-height: 1.7;
}

::selection {
  background: var(--accent);
  color: #020617;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
}

.section {
  padding: 7rem 1.25rem;
}

.section-sm {
  padding: 4rem 1.25rem;
}

.center {
  text-align: center;
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

h1,
.h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  margin-bottom: 1.5rem;
}

h2,
.h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 1rem;
}

h3,
.h3 {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: var(--text-soft);
  max-width: 760px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--text), var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-muted {
  color: var(--muted);
}

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

body.light .glass {
  background: rgba(255, 255, 255, 0.86);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .section {
    padding: 5rem 1.1rem;
  }

  h1,
  .h1 {
    letter-spacing: -0.06em;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 1rem;
  }

  h1,
  .h1 {
    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }

  .lead {
    font-size: 1rem;
  }
}