/* =========================================================
   Base: variables de color, reset, botones, títulos de sección y animación reveal
   ========================================================= */

/* =========================================================
   Denar — Paleta
   ========================================================= */
:root {
  --bg: #03151a;
  --bg-2: #062831;
  --bg-3: #083744;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(124, 224, 242, 0.14);
  --border-strong: rgba(124, 224, 242, 0.3);
  --text: #ffffff;
  --text-muted: #c6c6c6;
  --text-soft: rgb(255, 255, 255);
  --cyan: #51cee0;
  --cyan-light: #7ce0f2;
  --sky: #38bdf8;
  --teal: #2dd4bf;
  --teal-dark: #0d9488;
  --gradient: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 50%, #ffffff 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--cyan);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Botones
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 42px;
  padding: 0 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.btn svg {
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--lg {
  height: 54px;
  padding: 0 1.8rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
  color: #02161b;
  box-shadow: 0 8px 30px -8px rgba(81, 206, 224, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(81, 206, 224, 0.75);
}

.btn--outline {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.btn--outline:hover {
  background: var(--surface-2);
  border-color: var(--cyan);
}

.btn--ghost {
  color: var(--text-soft);
  font-family: var(--mono);
  font-weight: 500;
}

.btn--ghost:hover {
  color: var(--text);
}

/* =========================================================
   Secciones
   ========================================================= */
.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

.section__head {
  max-width: 760px;
  margin-bottom: 3.5rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cyan);
}

.section__head--center .eyebrow::before {
  display: none;
}

.section__title {
  margin-top: 1rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section__lead {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  color: #c9c6c6;
  max-width: 40rem;
}

.section__head--center .section__lead {
  margin-inline: auto;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}