/* ═══════════════════════════════════════════════════════════════
   ARIM WEBKIT — GLOBAL CSS
   Versión: 1.0.0
   Compatibilidad: Elementor Pro 3.x | WP 6.4+ | Chrome/FF/Safari/Edge
   Fuentes: Orbitron (display) + DM Sans (body)
   Licencia: GPL-2.0
═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --clr-teal:        #4ec3a5;
  --clr-teal-light:  #72d4bb;
  --clr-teal-dark:   #38a88c;
  --clr-purple:      #7d3bcb;
  --clr-purple-light:#9b5de5;
  --clr-purple-dark: #5c2490;

  /* Gradient */
  --grad-brand:        linear-gradient(135deg, var(--clr-teal) 0%, var(--clr-purple) 100%);
  --grad-brand-rev:    linear-gradient(135deg, var(--clr-purple) 0%, var(--clr-teal) 100%);
  --grad-brand-text:   linear-gradient(90deg, var(--clr-teal) 0%, var(--clr-purple) 100%);
  --grad-glow:         linear-gradient(135deg, rgba(78,195,165,.25) 0%, rgba(125,59,203,.25) 100%);

  /* Backgrounds */
  --bg-base:       #080b14;
  --bg-surface:    #0d1120;
  --bg-surface2:   #111827;
  --bg-card:       rgba(255,255,255,.04);
  --bg-card-hover: rgba(255,255,255,.07);

  /* Text */
  --txt-primary:   #f0f4ff;
  --txt-secondary: #9ba3bb;
  --txt-muted:     #5d6580;

  /* Borders */
  --border-color:  rgba(255,255,255,.08);
  --border-hover:  rgba(78,195,165,.4);

  /* Glows */
  --glow-teal:     0 0 32px rgba(78,195,165,.25);
  --glow-purple:   0 0 32px rgba(125,59,203,.25);
  --glow-card:     0 0 60px rgba(78,195,165,.12);

  /* Typography */
  --font-display: 'Orbitron', 'Courier New', monospace;
  --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Type Scale (fluid) */
  --text-xs:   clamp(0.75rem,  1.5vw, 0.8rem);
  --text-sm:   clamp(0.875rem, 1.8vw, 1rem);
  --text-base: clamp(1rem,     2vw,   1.1rem);
  --text-lg:   clamp(1.1rem,   2.2vw, 1.25rem);
  --text-xl:   clamp(1.25rem,  2.5vw, 1.5rem);
  --text-2xl:  clamp(1.5rem,   3vw,   2rem);
  --text-3xl:  clamp(2rem,     4vw,   2.75rem);
  --text-4xl:  clamp(2.5rem,   5vw,   3.5rem);
  --text-hero: clamp(2.8rem,   6vw,   4.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(.4,0,.2,1);
  --transition-base:   250ms cubic-bezier(.4,0,.2,1);
  --transition-slow:   400ms cubic-bezier(.4,0,.2,1);
  --transition-spring: 500ms cubic-bezier(.34,1.56,.64,1);

  /* Z-Index */
  --z-header:    100;
  --z-modal:     200;
  --z-toast:     300;
  --z-overlay:   50;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--txt-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─── FOCUS STYLES (WCAG 2.1 AA) ────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--clr-teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── SKIP LINK ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: var(--grad-brand);
  color: var(--bg-base);
  font-weight: 700;
  border-radius: var(--radius-md);
  z-index: calc(var(--z-header) + 10);
  transition: top var(--transition-base);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─── TYPOGRAPHY UTILITIES ───────────────────────────────────── */
.gradient-text {
  background: var(--grad-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-teal);
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(78,195,165,.3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: var(--space-6);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--txt-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section-header .section-subtitle {
  margin-inline: auto;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--radius-full);
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    color var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-gradient {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 24px rgba(78,195,165,.3);
}
.btn-gradient:hover {
  box-shadow: 0 8px 40px rgba(78,195,165,.5), 0 0 0 1px rgba(78,195,165,.4);
}

.btn-outline {
  color: var(--clr-teal);
  border: 1.5px solid rgba(78,195,165,.5);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(78,195,165,.08);
  border-color: var(--clr-teal);
  box-shadow: var(--glow-teal);
}

.btn-ghost {
  color: var(--txt-secondary);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-color);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.09);
  color: var(--txt-primary);
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
}

.w-full { width: 100%; }
