/* ==========================================================================
   GIGSTACK DESIGN SYSTEM v2.0
   Basado en: Index, API, SOMA AI, Enterprise
   Actualizado: Enero 2026
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES / DESIGN TOKENS
   ========================================================================== */

:root {
  /* -------------------------------------------------------------------------
     1.1 PALETA DE COLORES PRINCIPAL
     ------------------------------------------------------------------------- */

  /* Negro - Color primario de la marca */
  --color-black: #141414;
  --color-black-pure: #0a0a0a;
  --color-black-soft: #1a1a1a;
  --color-black-hover: #2a2a2a;

  /* Blanco */
  --color-white: #ffffff;
  --color-white-off: #fafafa;

  /* Verde Lime - Color de acento (SOMA AI, badges) */
  --color-lime: #cef17b;
  --color-lime-hover: #c4e96e;
  --color-lime-dark: #a3e635;
  --color-lime-light: #dcff79;

  /* Verde Institucional */
  --color-green: #044737;
  --color-green-hover: #033528;
  --color-green-light: #065f49;
  --color-green-soft: #f0fdf4;
  --color-green-accent: #ceedb2;

  /* -------------------------------------------------------------------------
     1.2 ESCALA DE GRISES
     ------------------------------------------------------------------------- */

  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  /* -------------------------------------------------------------------------
     1.3 COLORES SEMANTICOS
     ------------------------------------------------------------------------- */

  --color-success: #22c55e;
  --color-success-bg: #dcfce7;
  --color-warning: #f59e0b;
  --color-warning-bg: #fef3c7;
  --color-error: #ef4444;
  --color-error-bg: #fee2e2;
  --color-info: #3b82f6;
  --color-info-bg: #dbeafe;

  /* -------------------------------------------------------------------------
     1.4 COLORES DE FONDO
     ------------------------------------------------------------------------- */

  --bg-white: #ffffff;
  --bg-light: #fafafa;
  --bg-gray: #f5f5f5;
  --bg-dark: #141414;
  --bg-darker: #0a0a0a;

  /* -------------------------------------------------------------------------
     1.5 COLORES DE TEXTO
     ------------------------------------------------------------------------- */

  --text-primary: #141414;
  --text-secondary: #525252;
  --text-tertiary: #737373;
  --text-muted: #a3a3a3;
  --text-inverse: #ffffff;
  --text-inverse-muted: rgba(255, 255, 255, 0.7);

  /* -------------------------------------------------------------------------
     1.6 COLORES DE BORDE
     ------------------------------------------------------------------------- */

  --border-light: #e5e5e5;
  --border-medium: #d4d4d4;
  --border-dark: #a3a3a3;
  --border-inverse: rgba(255, 255, 255, 0.1);
  --border-inverse-hover: rgba(255, 255, 255, 0.2);

  /* -------------------------------------------------------------------------
     2. TIPOGRAFIA
     ------------------------------------------------------------------------- */

  /* Familias tipograficas */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Geist', 'Inter', sans-serif;
  --font-logo: 'Russo One', sans-serif;
  --font-mono: 'Geist Mono', 'Inconsolata', 'SF Mono', 'Fira Code', monospace;

  /* Escala tipografica */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 2rem;        /* 32px */
  --text-4xl: 2.5rem;      /* 40px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.5rem;      /* 56px */
  --text-7xl: 4rem;        /* 64px */

  /* Pesos tipograficos */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Alturas de linea */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.75;

  /* Espaciado entre letras */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* -------------------------------------------------------------------------
     3. ESPACIADO
     ------------------------------------------------------------------------- */

  --space-0: 0;
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-14: 3.5rem;      /* 56px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  --space-24: 6rem;        /* 96px */
  --space-32: 8rem;        /* 128px */

  /* -------------------------------------------------------------------------
     4. BORDES Y RADIOS
     ------------------------------------------------------------------------- */

  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-full: 9999px;

  /* -------------------------------------------------------------------------
     5. SOMBRAS
     ------------------------------------------------------------------------- */

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-glow-lime: 0 6px 20px rgba(206, 241, 123, 0.6);

  /* -------------------------------------------------------------------------
     6. TRANSICIONES
     ------------------------------------------------------------------------- */

  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;
  --transition-bounce: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* -------------------------------------------------------------------------
     7. Z-INDEX
     ------------------------------------------------------------------------- */

  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;

  /* -------------------------------------------------------------------------
     8. CONTENEDORES
     ------------------------------------------------------------------------- */

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1440px;
}


/* ==========================================================================
   2. RESET Y BASE
   ========================================================================== */

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

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

/* Modo oscuro (SOMA AI) */
body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
}


/* ==========================================================================
   3. TIPOGRAFIA
   ========================================================================== */

/* Logo */
.logo,
.text-block-100 {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  font-weight: var(--font-regular);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.dark-mode .logo,
.dark-mode .text-block-100 {
  color: var(--text-inverse);
}

/* Headings */
h1, .h1,
.heading-style-h1,
.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

h2, .h2,
.h2-heading-33 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h3, .h3,
.h3-heading-17 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

h4, .h4 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

h5, .h5 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

/* Parrafos */
p {
  margin-bottom: var(--space-4);
}

.text-large,
.text-size-medium-3 {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.text-small,
.paragraph-small-90 {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.text-xs,
.paragraph-x-small-17 {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: var(--text-tertiary);
}

/* Colores de texto */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-inverse { color: var(--text-inverse) !important; }
.text-color-tertiary { color: var(--text-tertiary) !important; }
.text-strong { font-weight: var(--font-semibold) !important; }

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-black);
}


/* ==========================================================================
   4. BOTONES
   ========================================================================== */

/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-normal);
}

/* Primario - Negro */
.btn-primary,
.button-primary-12 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-black);
  color: var(--text-inverse);
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover,
.button-primary-12:hover {
  background-color: #1a1a1a;
  color: var(--text-inverse);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.btn-primary:active,
.button-primary-12:active {
  color: var(--text-inverse);
  transform: translateY(0) scale(1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Primario - Blanco (para fondos oscuros) */
.btn-primary-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-white);
  color: var(--color-black);
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-white:hover {
  background-color: var(--gray-100);
  color: var(--color-black);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-primary-white:active {
  color: var(--color-black);
  transform: translateY(0) scale(1);
}

/* Secundario - Outline */
.btn-secondary,
.button-outline-9,
.button-secondary-13 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover,
.button-outline-9:hover,
.button-secondary-13:hover {
  background-color: var(--bg-gray);
  color: var(--text-primary);
  border-color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active,
.button-outline-9:active,
.button-secondary-13:active {
  color: var(--text-primary);
  transform: translateY(0);
  box-shadow: none;
}

/* Accent - Verde Lime (SOMA AI style) */
.btn-accent,
.fiscal-ai-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: var(--color-lime);
  color: var(--color-black) !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-bounce);
}

.btn-accent::before,
.fiscal-ai-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left var(--transition-slower);
}

.btn-accent:hover,
.fiscal-ai-link:hover {
  background: var(--color-lime-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow-lime);
}

.btn-accent:hover::before,
.fiscal-ai-link:hover::before {
  left: 100%;
}

/* Ghost */
.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
}

.btn-ghost:hover {
  background-color: var(--bg-gray);
}

/* Pill / CTA redondeado */
.btn-pill,
.cta-button-white {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-black);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-pill:hover,
.cta-button-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

/* Tamanos */
.btn-sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
}

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

.btn-full {
  width: 100%;
}

/* -------------------------------------------------------------------------
   GS-BTN - Sistema de botones optimizado
   ------------------------------------------------------------------------- */

/* Base Button */
.gs-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
}

/* Primary Button - Dark */
.gs-btn-primary {
  color: #fff;
  background: #1a1a1a;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gs-btn-primary:hover {
  background: #333;
  color: #fff;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.gs-btn-primary:active {
  background: #111;
  color: #fff;
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Secondary Button - Light with border */
.gs-btn-secondary {
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gs-btn-secondary:hover {
  background: #fafafa;
  color: #1a1a1a;
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.gs-btn-secondary:active {
  background: #f5f5f5;
  color: #1a1a1a;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* White Button - Solid white for dark backgrounds */
.gs-btn-white {
  color: #1a1a1a;
  background: #fff;
  border: none;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.gs-btn-white:hover {
  background: #f5f5f5;
  color: #1a1a1a;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.gs-btn-white:active {
  background: #ebebeb;
  color: #1a1a1a;
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Secondary White Button - Outline for dark backgrounds */
.gs-btn-secondary-white {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.gs-btn-secondary-white:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.gs-btn-secondary-white:active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(0);
  box-shadow: none;
}

/* Outline Button */
.gs-btn-outline {
  color: #1a1a1a;
  background: transparent;
  border: 1.5px solid #1a1a1a;
}

.gs-btn-outline:hover {
  background: #1a1a1a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gs-btn-outline:active {
  background: #333;
  color: #fff;
  transform: translateY(0);
}

/* Ghost Button */
.gs-btn-ghost {
  color: #666;
  background: transparent;
  padding: 12px 16px;
}

.gs-btn-ghost:hover {
  color: #1a1a1a;
  background: #f5f5f5;
}

/* Button Sizes */
.gs-btn-sm {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 6px;
}

.gs-btn-lg {
  height: 48px;
  padding: 0 28px;
  font-size: 15px;
  border-radius: 10px;
}

/* Button with Icon */
.gs-btn svg {
  width: 18px;
  height: 18px;
}

.gs-btn-sm svg {
  width: 16px;
  height: 16px;
}

.gs-btn-lg svg {
  width: 20px;
  height: 20px;
}

/* Full Width */
.gs-btn-block {
  width: 100%;
}

/* Icono en boton */
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

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


/* ==========================================================================
   5. BADGES Y TAGS
   ========================================================================== */

/* Hero Tag - Estilo principal (igual que index/custom-gigstack) */
.hero-tag,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  background: #fff;
  color: #1a1a1a;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 400;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hero-tag svg,
.section-tag svg {
  width: 14px;
  height: 14px;
}

/* Hero Tag - Dark mode (igual que index/custom-gigstack) */
.hero-tag-dark,
.section-tag-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  background: #2a2a2a;
  color: #fff;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
}

.badge-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.badge-warning {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge-error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
}

.badge-info {
  background-color: var(--color-info-bg);
  color: var(--color-info);
}

/* Pill grande */
.pill,
.heading_pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background-color: rgba(206, 237, 178, 0.4);
  color: var(--color-green);
  border: 1px solid var(--color-green-accent);
}


/* ==========================================================================
   6. CARDS
   ========================================================================== */

/* Card base */
.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: var(--space-6);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card);
}

/* Card elevada */
.card-elevated {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  border: none;
}

.card-elevated:hover {
  box-shadow: var(--shadow-card-hover);
}

/* Card oscura */
.card-dark,
.benefit-card-dark {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  color: var(--text-inverse);
}

.card-dark h4,
.benefit-card-dark h4 {
  font-size: 17px;
  font-weight: var(--font-semibold);
  color: var(--text-inverse);
  margin-bottom: var(--space-2);
}

.card-dark p,
.benefit-card-dark p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: var(--leading-relaxed);
}

/* Feature card (nav dropdown) */
.nav-feature,
.nav-feature-2 {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.nav-feature:hover,
.nav-feature-2:hover {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}

.nav-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.nav-feature-icon svg {
  width: 20px;
  height: 20px;
}


/* ==========================================================================
   7. ICONOS
   ========================================================================== */

/* Icon wrapper */
.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-gray);
}

.icon-wrapper-sm { width: 32px; height: 32px; border-radius: var(--radius-md); }
.icon-wrapper-lg { width: 48px; height: 48px; border-radius: var(--radius-xl); }

/* Icon wrapper dark */
.icon-wrapper-dark,
.benefit-icon-dark {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
}

.icon-wrapper-dark svg,
.benefit-icon-dark svg {
  width: 24px;
  height: 24px;
}

/* Check icon (feature lists) */
.check-icon,
.check-black {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-black);
}

.check-icon svg,
.check-black svg {
  width: 20px;
  height: 20px;
}


/* ==========================================================================
   8. FORMULARIOS
   ========================================================================== */

.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background-color: var(--bg-white);
  color: var(--text-primary);
  width: 100%;
  transition: all var(--transition-fast);
}

.input:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-black);
  box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.1);
}

.input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}


/* ==========================================================================
   9. LISTAS
   ========================================================================== */

/* Features list */
.features-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-100);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}


/* ==========================================================================
   10. SECCIONES
   ========================================================================== */

/* Section base */
.section,
.mexico-section {
  padding: var(--space-20) 0;
}

.section-sm { padding: var(--space-12) 0; }
.section-lg { padding: var(--space-24) 0; }

/* Section backgrounds */
.section-white { background-color: var(--bg-white); }
.section-light,
.gray-bg { background: var(--bg-light); }
.section-gray { background: var(--bg-gray); }

.section-dark,
.dark-bg {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.section-darker { background: var(--bg-darker); }

/* Dark section text overrides */
.dark-bg h1, .dark-bg h2, .dark-bg h3, .dark-bg h4,
.dark-bg .h3-heading-17 { color: var(--text-inverse); }
.dark-bg p, .dark-bg .text-size-medium-3 { color: var(--text-inverse-muted); }

/* Container */
.container,
.mexico-container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }

/* Section header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.section-header.left {
  text-align: left;
  max-width: none;
}


/* ==========================================================================
   11. GRIDS
   ========================================================================== */

/* Benefits grid (dark sections) */
.benefits-grid-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  margin-top: var(--space-16);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .benefits-grid-dark { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .benefits-grid-dark { grid-template-columns: 1fr; }
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   12. FAQ
   ========================================================================== */

.faq-container {
  max-width: 800px;
  margin: var(--space-12) auto 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item,
.faq-item-new {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.faq-item:hover,
.faq-item-new:hover {
  border-color: var(--border-medium);
}

.faq-item.active,
.faq-item-new.active {
  border-color: var(--color-black);
}

.faq-question,
.faq-question-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.faq-icon-new {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform var(--transition-slow), color var(--transition-normal);
}

.faq-item-new.active .faq-icon-new {
  transform: rotate(45deg);
  color: var(--color-black);
}

.faq-answer,
.faq-answer-new {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item-new.active .faq-answer-new {
  max-height: 200px;
}

.faq-answer p,
.faq-answer-new p {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: var(--leading-relaxed);
  margin: 0;
}


/* ==========================================================================
   13. CTA SECTIONS
   ========================================================================== */

.cta-section,
.cta-section-new {
  background: var(--bg-white);
  padding: var(--space-20) 0 var(--space-24);
}

.cta-card-dark {
  background: var(--bg-dark);
  border-radius: var(--radius-3xl);
  padding: 100px var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card-dark h2,
.cta-card-dark h3 {
  color: var(--text-inverse);
}

.cta-card-dark p {
  color: var(--text-inverse-muted);
}


/* ==========================================================================
   14. NAVEGACION
   ========================================================================== */

.nav,
.navigation-5 {
  position: sticky;
  top: 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  z-index: var(--z-sticky);
  padding: var(--space-3) 0;
}

/* Dark mode nav (SOMA) */
.nav-dark,
.landio-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--space-4) 0;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-inverse);
}

.nav-container,
.navigation-container-3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-link,
.nav-link-7 {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link-7:hover {
  color: var(--text-primary);
}

/* Country selector */
.country-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-3);
}

.country-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-light);
  background: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition-normal);
}

.country-btn:hover {
  border-color: var(--color-black);
}

.country-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: var(--z-dropdown);
}

.country-dropdown-inner {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  overflow: hidden;
}

.country-selector:hover .country-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.country-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: background var(--transition-fast);
}

.country-option:hover {
  background: var(--bg-gray);
}

.country-option.active {
  background: var(--gray-100);
}


/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.footer {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  padding: var(--space-16) var(--space-6);
}

.footer-link {
  color: var(--text-inverse-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-inverse);
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
}


/* ==========================================================================
   16. ANIMACIONES
   ========================================================================== */

/* Fade up on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }
.fade-up-delay-6 { transition-delay: 0.6s; }

/* Fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Fade in up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease both;
}

/* Float */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Pulse */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Slide up */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}


/* ==========================================================================
   17. UTILIDADES
   ========================================================================== */

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }

/* Flexbox */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Gap */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text align */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Margin */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Padding */
.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }

/* Border radius */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }


/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .hide-tablet { display: none !important; }
}

@media (max-width: 768px) {
  h1, .h1, .heading-style-h1 { font-size: 2.75rem; }
  h2, .h2, .h2-heading-33 { font-size: 2.25rem; }

  .section, .mexico-section { padding: var(--space-12) 0; }

  .container, .mexico-container { padding: 0 var(--space-4); }

  .hero-tag,
  .section-tag {
    font-size: 12px !important;
    padding: 6px 14px !important;
  }

  .hide-mobile { display: none !important; }
  .hide-mobile-4 { display: none !important; }
}

@media (max-width: 480px) {
  h1, .h1, .heading-style-h1 { font-size: 2.25rem; }

  .hero-tag,
  .section-tag {
    font-size: 11px !important;
    padding: 5px 12px !important;
  }

  .btn { width: 100%; justify-content: center; }
}
