/* ═══════════════════════════════════════════════════════════════
   NEXUM DESIGN TOKENS
   Fuente única de verdad — no usar valores hardcoded en otros archivos
   Sincronizado con Elementor Global Colors (ver plan/19-elementor-design-system.md)
═══════════════════════════════════════════════════════════════ */

:root {

  /* ── COLORES BASE ─────────────────────────────────────────── */
  --deep-night:       #0A0F1A;
  --midnight:         #0F1724;
  --midnight-mid:     #142038;
  --midnight-light:   #1C2D4A;
  --gold:             #C9A96E;
  --gold-dark:        #A88B55;
  --gold-bg:          rgba(201, 169, 110, 0.08);
  --warm-white:       #F5F3EF;
  --warm-white-70:    rgba(245, 243, 239, 0.70);
  --warm-white-40:    rgba(245, 243, 239, 0.40);
  --steel:            #5A6978;

  /* ── COLORES SEMÁNTICOS ───────────────────────────────────── */
  --color-success:    #2ECC8A;
  --color-warning:    #F5A623;
  --color-error:      #E74C3C;
  --color-info:       #3D8EE8;

  /* ── BORDES Y LÍNEAS ──────────────────────────────────────── */
  --line:             rgba(255, 255, 255, 0.08);
  --line-gold:        rgba(201, 169, 110, 0.20);
  --line-gold-strong: rgba(201, 169, 110, 0.45);

  /* ── TIPOGRAFÍAS ──────────────────────────────────────────── */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-ui:       'Manrope', system-ui, sans-serif;

  /* ── ESCALA TIPOGRÁFICA ───────────────────────────────────── */
  --text-xs:    11px;
  --text-sm:    13px;
  --text-base:  15px;
  --text-md:    17px;
  --text-lg:    20px;
  --text-xl:    24px;
  --text-2xl:   clamp(28px, 3.5vw, 40px);
  --text-3xl:   clamp(36px, 4.5vw, 56px);
  --text-hero:  clamp(44px, 6vw, 82px);

  /* ── FONT WEIGHTS ─────────────────────────────────────────── */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  /* ── LINE HEIGHT ──────────────────────────────────────────── */
  --lh-tight:   1.15;
  --lh-snug:    1.35;
  --lh-normal:  1.6;
  --lh-relaxed: 1.75;

  /* ── LETTER SPACING ───────────────────────────────────────── */
  --ls-tight:   -0.02em;
  --ls-normal:   0;
  --ls-wide:     0.04em;
  --ls-wider:    0.10em;
  --ls-widest:   0.22em;

  /* ── LAYOUT ───────────────────────────────────────────────── */
  --container:  1280px;
  --gutter:     clamp(20px, 4vw, 64px);
  --section-py: clamp(64px, 8vw, 120px);

  /* ── BORDER RADIUS ────────────────────────────────────────── */
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* ── SOMBRAS ──────────────────────────────────────────────── */
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg:   0 20px 60px rgba(0, 0, 0, 0.50);
  --shadow-gold: 0 12px 32px rgba(201, 169, 110, 0.25);

  /* ── TRANSICIONES ─────────────────────────────────────────── */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --dur-fast:   150ms;
  --dur-base:   250ms;
  --dur-slow:   400ms;

  /* ── Z-INDEX SCALE ────────────────────────────────────────── */
  --z-base:     0;
  --z-raised:   10;
  --z-dropdown: 20;
  --z-sticky:   100;
  --z-overlay:  200;
  --z-modal:    300;
  --z-toast:    400;

  /* ── HEADER ───────────────────────────────────────────────── */
  --header-h:     72px;
  --banner-h:     36px;
  --header-total: 108px;
}

/* ── RESET BASE ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  color: var(--warm-white);
  background-color: var(--deep-night);
  line-height: var(--lh-normal);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease);
}

ul, ol { list-style: none; }

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

/* ── CONTENEDOR ───────────────────────────────────────────────── */
.nx-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── SECCIONES ────────────────────────────────────────────────── */
.nx-section {
  padding: var(--section-py) 0;
  position: relative;
}

/* ── EYEBROW ──────────────────────────────────────────────────── */
.nx-eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ── SECTION HEAD ─────────────────────────────────────────────── */
.nx-section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.nx-section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: 16px;
}
.nx-section-head p {
  font-size: var(--text-md);
  color: var(--warm-white-70);
  line-height: var(--lh-relaxed);
}

/* ── BOTONES ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
  min-height: 44px;
  border: none;
}

.btn-primary { background: var(--gold); color: var(--deep-night); }
.btn-primary:hover {
  background: var(--warm-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--warm-white);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold-outline {
  background: transparent;
  border: 1px solid var(--line-gold-strong);
  color: var(--gold);
}
.btn-gold-outline:hover { background: var(--gold); color: var(--deep-night); }

.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover {
  background: #1DB954;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.30);
}

.btn-sm { padding: 9px 18px; font-size: var(--text-xs); min-height: 36px; }

.btn__icon {
  width: 18px; height: 18px; flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease);
}
.btn:hover .btn__icon--arrow { transform: translateX(3px); }

/* ── BADGES ───────────────────────────────────────────────────── */
.nx-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--gold-bg);
  border: 1px solid var(--line-gold);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--gold);
  letter-spacing: var(--ls-wider);
}
.nx-badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
  animation: nx-pulse 2s infinite;
}

@keyframes nx-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* ── CARDS BASE ───────────────────────────────────────────────── */
.nx-card {
  background: var(--midnight);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color var(--dur-base) var(--ease),
    transform    var(--dur-slow) var(--ease),
    box-shadow   var(--dur-slow) var(--ease);
}
.nx-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ── ÍCONOS CONTENEDOR ────────────────────────────────────────── */
.nx-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gold-bg);
  border: 1px solid var(--line-gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: background var(--dur-base) var(--ease);
}
.nx-icon-wrap svg { width: 24px; height: 24px; }
.nx-card:hover .nx-icon-wrap { background: rgba(201, 169, 110, 0.16); }

/* ── SEPARADOR ────────────────────────────────────────────────── */
.nx-divider {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 20px auto;
  border-radius: 1px;
}

/* ── GRID ANIMADO (fondo secciones CTA) ───────────────────────── */
.nx-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}

/* ── ACCESIBILIDAD ────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── RESPONSIVE BASE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: clamp(48px, 6vw, 80px); }
}
@media (max-width: 768px) {
  :root { --section-py: 56px; --header-h: 64px; }
  .nx-section-head { margin-bottom: 40px; }
}
@media (max-width: 375px) {
  :root { --gutter: 16px; }
}
