/* =========================================
   TENGRUICH - CSS MASTER v6.0
   Arquitectura: Cascade Layers | Dark Premium
   Paleta: Dark Matter + Neon Blue + Copper
   ========================================= */

@layer reset, variables, typography, components, layouts, pages, animations, utilities, responsive;

/* =========================================
   LAYER 1: RESET & BASE
   ========================================= */
@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #030305;
    color: #e2e8f0;
  }

  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  input, button, textarea, select {
    font: inherit;
    color: inherit;
  }

  button {
    cursor: pointer;
    border: none;
    background: none;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  ul, ol {
    list-style: none;
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/* =========================================
   LAYER 2: VARIABLES (Design Tokens)
   ========================================= */
@layer variables {
  :root {
    /* Paleta Dark Premium */
    --clr-bg-body: #030305;
    --clr-bg-surface: rgba(15, 23, 42, 0.6);
    --clr-bg-alt: rgba(30, 41, 59, 0.4);
    --clr-bg-soft: rgba(15, 23, 42, 0.3);
    --clr-bg-dark: #020203;
    --clr-bg-error: rgba(220, 38, 38, 0.1);
    --clr-bg-success: rgba(5, 150, 105, 0.1);

    /* Jerarquía Textual */
    --clr-title: #ffffff;
    --clr-text-main: #e2e8f0;
    --clr-text-muted: #94a3b8;
    --clr-text-inverse: #64748b;
    --clr-error: #ff4444;
    --clr-success: #00ff88;

    /* Acentos Neón */
    --clr-primary: #00d4ff;
    --clr-primary-light: #33ddff;
    --clr-accent: #ff6b35;
    --clr-accent-hover: #ff8c5a;
    --clr-copper: #b87333;

    /* Sombras con glow */
    --shadow-xs: 0 1px 2px rgba(0, 212, 255, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(0, 212, 255, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 212, 255, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(0, 212, 255, 0.2);
    --shadow-xl: 0 25px 50px -12px rgba(0, 212, 255, 0.25);
    --shadow-orange: 0 10px 30px -5px rgba(255, 107, 53, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-glow-orange: 0 0 30px rgba(255, 107, 53, 0.3);

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Transiciones */
    --transition-fast: 150ms var(--ease-smooth);
    --transition-base: 300ms var(--ease-out-expo);
    --transition-slow: 500ms var(--ease-out-expo);

    /* Espaciado fluido */
    --space-xs: clamp(0.5rem, 0.5rem + 0vw, 0.5rem);
    --space-sm: clamp(0.75rem, 0.7rem + 0.25vw, 1rem);
    --space-md: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
    --space-xl: clamp(2rem, 1.8rem + 1vw, 3rem);
    --space-2xl: clamp(3rem, 2.5rem + 2.5vw, 5rem);
    --space-3xl: clamp(4rem, 3rem + 5vw, 8rem);

    /* Tipografía fluida */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
    --text-2xl: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    --text-3xl: clamp(2.5rem, 1.8rem + 3vw, 5rem);
    --text-hero: clamp(3rem, 5vw + 2rem, 8rem);

    /* Layout */
    --container-max: 1400px;
    --container-narrow: 1200px;
    --container-padding: clamp(1rem, 5vw, 3rem);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
  }
}

/* =========================================
   LAYER 3: TYPOGRAPHY
   ========================================= */
@layer typography {
  @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

  body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--text-base);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-body);
    font-feature-settings: "cv11", "ss01", "liga" 1;
  }

  /* Títulos Space Grotesk */
  h1, h2, h3, h4, .display-font {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--clr-title);
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  h4 { font-size: var(--text-lg); }

  .hero-title {
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
  }

  /* Efecto shine en títulos */
  .shine-text {
    position: relative;
    display: inline-block;
  }

  .shine-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
  }

  p {
    color: var(--clr-text-muted);
    max-width: 65ch;
  }

  .text-gradient {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .text-center { text-align: center; }
  .text-left { text-align: left; }
  .text-right { text-align: right; }
  .tabular-nums { font-variant-numeric: tabular-nums; }
  
  .title-accent {
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-sm);
  }

  .title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
    border-radius: 2px;
    transition: width var(--transition-slow);
  }

  .title-accent:hover::after { width: 100px; }

  ::selection {
    background: rgba(0, 212, 255, 0.3);
    color: white;
  }
}

/* =========================================
   LAYER 4: COMPONENTS
   ========================================= */
@layer components {
  /* Botones Base */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(10px);
  }

  /* Botón Primario Neón */
  .btn-primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    color: var(--clr-primary);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
  }

  /* Botón Copper/Accent */
  .btn-accent, .btn-orange-3d, .btn-nav {
    background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-hover) 100%);
    color: white;
    box-shadow: var(--shadow-orange);
    border: none;
  }

  .btn-accent:hover, .btn-orange-3d:hover, .btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
  }

  /* Botón Ghost/Glass */
  .btn-secondary, .btn-outline-blue {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text-main);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
  }

  .btn-secondary:hover, .btn-outline-blue:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
  }

  /* Badges */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(0, 212, 255, 0.1);
    color: var(--clr-primary);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
  }

  .badge-accent {
    background: rgba(255, 107, 53, 0.1);
    color: var(--clr-accent);
    border-color: rgba(255, 107, 53, 0.2);
  }

  .badge-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--clr-success);
    border-color: rgba(0, 255, 136, 0.2);
  }

  /* Cards Glassmorphism */
  .card {
    background: var(--clr-bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
    backdrop-filter: blur(20px);
  }

  .card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.3);
  }

  /* Inputs & Forms */
  .form-group {
    position: relative;
    margin-bottom: var(--space-md);
  }

  .input, .gate-input, .form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    font-family: inherit;
    color: var(--clr-text-main);
    backdrop-filter: blur(10px);
  }

  .input:focus, .gate-input:focus, .form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2), var(--shadow-glow);
  }

  .input::placeholder, .form-group input::placeholder {
    color: var(--clr-text-inverse);
  }

  .input.error, .form-group input.error, .form-group textarea.error {
    border-color: var(--clr-error);
    background-color: var(--clr-bg-error);
  }

  /* Floating Labels Dark */
  .form-group label {
    position: absolute;
    left: var(--space-md);
    top: var(--space-sm);
    color: var(--clr-text-inverse);
    font-size: var(--text-base);
    pointer-events: none;
    transition: var(--transition-base);
    background: transparent;
    padding: 0 4px;
  }

  .form-group input:focus + label,
  .form-group input:not(:placeholder-shown) + label,
  .form-group textarea:focus + label,
  .form-group textarea:not(:placeholder-shown) + label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: var(--text-xs);
    color: var(--clr-primary);
    font-weight: 600;
    background: var(--clr-bg-body);
  }

  /* Status Badges */
  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
  }

  .status-badge.ready {
    background: rgba(0, 255, 136, 0.1);
    color: var(--clr-success);
    border-color: rgba(0, 255, 136, 0.3);
  }

  .status-badge.validating {
    background: rgba(255, 107, 53, 0.1);
    color: var(--clr-accent);
    border-color: rgba(255, 107, 53, 0.3);
  }

  /* Hairlines */
  .hairline {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    margin: var(--space-lg) auto;
  }
}

/* =========================================
   LAYER 5: LAYOUTS
   ========================================= */
@layer layouts {
  /* Fondo Grid Animado */
  .bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
      linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: gridMove 20s linear infinite;
  }

  .bg-gradient {
    position: fixed;
    inset: 0;
    background: 
      radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulseGradient 8s ease-in-out infinite;
  }

  /* Contenedores */
  .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
  }

  .container-1200 {
    width: 100%;
    max-width: var(--container-narrow);
    margin-inline: auto;
    padding-inline: var(--container-padding);
  }

  /* Navbar Glass */
  .navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    padding-inline: var(--container-padding);
    z-index: 1000;
    transition: all var(--transition-base);
  }

  .navbar.scrolled {
    height: 64px;
    background: rgba(3, 3, 5, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--text-xl);
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }

  .nav-links a {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    position: relative;
    padding-block: var(--space-xs);
    transition: color var(--transition-fast);
  }

  .nav-links a:hover {
    color: var(--clr-primary);
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
    transition: width var(--transition-base);
    box-shadow: 0 0 10px var(--clr-primary);
  }

  .nav-links a:hover::after,
  .nav-links a.active::after { width: 100%; }

  .btn-nav::after { display: none !important; }

  .mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--clr-primary);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
  }

  /* Hero Asimétrico Dark */
  .hero-asymmetric {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: var(--space-2xl);
    padding: calc(80px + var(--space-xl)) var(--container-padding) var(--space-3xl);
    overflow: hidden;
  }

  .hero-bg-parallax {
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse at 70% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
    pointer-events: none;
    will-change: transform;
    animation: heroPulse 6s ease-in-out infinite;
  }

  /* Trust Bar Glass */
  .trust-overlap {
    position: relative;
    z-index: 10;
    margin-top: calc(var(--space-3xl) * -1);
    margin-bottom: var(--space-3xl);
  }

  .trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    background: rgba(15, 23, 42, 0.6);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(20px);
  }

  .trust-item {
    text-align: center;
    padding: var(--space-md);
  }

  .trust-item h3 {
    font-size: var(--text-2xl);
    color: var(--clr-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }

  .trust-item p {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--clr-text-muted);
  }

  /* Sección Miedo (Dark) */
  .fear-section {
    background: linear-gradient(180deg, var(--clr-bg-dark) 0%, rgba(0,0,0,0.8) 100%);
    color: white;
    padding: var(--space-3xl) var(--container-padding);
    position: relative;
    isolation: isolate;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  }

  .fear-section h2, .fear-section h3 { color: white; }
  .fear-section p { color: var(--clr-text-muted); }

  /* Zig Zag Process con números neón */
  .zigzag-process { padding: var(--space-3xl) var(--container-padding); }
  
  .zig-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-bottom: var(--space-3xl);
    position: relative;
  }

  .zig-row.reverse { direction: rtl; }
  .zig-row.reverse > * { direction: ltr; }

  .big-number {
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: clamp(6rem, 10vw, 9rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0, 212, 255, 0.2);
    z-index: 0;
    line-height: 1;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
    animation: numberGlow 3s ease-in-out infinite;
  }

  .zig-row.reverse .big-number { left: auto; right: -20px; }

  /* Catálogos Grid */
  .catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
  }

  .catalog-grid.two-cols { grid-template-columns: repeat(2, 1fr); }

  .cat-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all var(--transition-base);
  }

  .cat-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.3);
  }

  .cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
      rgba(3, 3, 5, 0.98) 0%,
      rgba(3, 3, 5, 0.9) 40%,
      rgba(3, 3, 5, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    backdrop-filter: blur(5px);
  }

  /* Modales Glass */
  .modal-overlay, .gate-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 5, 0.9);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--container-padding);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .modal-overlay.active, .gate-modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .modal-content, .gate-modal-content {
    background: rgba(15, 23, 42, 0.8);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-base);
    backdrop-filter: blur(30px);
  }

  .modal-overlay.active .modal-content,
  .gate-modal-overlay.active .gate-modal-content {
    transform: scale(1) translateY(0);
  }

  /* Split Layout */
  .split-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    min-height: 100vh;
    padding-top: 80px;
  }

  .split-visual {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(0, 212, 255, 0.1);
  }

  .split-form {
    padding: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-bg-body);
  }

  /* Footer Dark */
  .corporate-footer {
    background: var(--clr-bg-dark);
    color: var(--clr-text-inverse);
    padding: var(--space-3xl) var(--container-padding) var(--space-lg);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
  }

  .footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--text-lg);
    color: white;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }

  .footer-col h4 {
    color: white;
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
    font-family: 'Space Grotesk', sans-serif;
  }

  .footer-col a {
    color: var(--clr-text-inverse);
    transition: color var(--transition-fast);
  }

  .footer-col a:hover { color: var(--clr-primary); }

  /* Badges Flotantes */
  .live-chat-badge, .live-shanghai-badge {
    position: fixed;
    z-index: 999;
    background: rgba(15, 23, 42, 0.9);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid rgba(0, 212, 255, 0.2);
    font-size: var(--text-xs);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: transform var(--transition-base);
    backdrop-filter: blur(20px);
    color: var(--clr-text-main);
  }

  .live-chat-badge:hover, .live-shanghai-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
  }

  .live-chat-badge {
    bottom: var(--space-lg);
    right: var(--container-padding);
    background: var(--clr-accent);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-orange);
  }

  .live-shanghai-badge {
    top: 100px;
    left: var(--container-padding);
  }

  .pulse-dot, .pulse-dot-orange {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  }

  .live-chat-badge .pulse-dot-orange { 
    background: white; 
    box-shadow: 0 0 10px white;
  }

  .live-shanghai-badge .pulse-dot {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
  }
}

/* =========================================
   LAYER 6: PAGES
   ========================================= */
@layer pages {
  /* Hero de Servicios */
  .hero-services {
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
  }

  .hero-services::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
  }

  .service-highlight {
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 212, 255, 0.1);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    backdrop-filter: blur(20px);
  }

  .service-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
  }

  .service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
  }

  .service-image:hover img { transform: scale(1.05); }

  /* Casos de Éxito */
  .cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .case-card {
    background: rgba(15, 23, 42, 0.6);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 212, 255, 0.1);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
  }

  .case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-out-expo);
    box-shadow: 0 0 20px var(--clr-primary);
  }

  .case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.2);
  }

  .case-card:hover::before { transform: scaleX(1); }

  .case-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-xs);
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Space Grotesk', sans-serif;
  }

  /* Pilares */
  .pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .pillar-card {
    background: rgba(15, 23, 42, 0.6);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all var(--transition-base);
    cursor: pointer;
    backdrop-filter: blur(20px);
  }

  .pillar-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.3);
  }

  .pillar-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--clr-primary);
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 212, 255, 0.2);
  }

  .pillar-card:hover .pillar-icon {
    background: var(--clr-primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-glow);
  }

  /* CTA Banner */
  .guarantee-banner {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.05) 0%, transparent 50%, rgba(255, 107, 53, 0.05) 100%);
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
  }

  .guarantee-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
  }
}

/* =========================================
   LAYER 7: ANIMATIONS
   ========================================= */
@layer animations {
  @keyframes fade-in-up {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slide-in-left {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 currentColor; }
    70% { transform: scale(1); box-shadow: 0 0 0 10px transparent; }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 transparent; }
  }

  @keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  @keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
  }

  @keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
  }

  @keyframes pulseGradient {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }

  @keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
  }

  @keyframes numberGlow {
    0%, 100% { -webkit-text-stroke: 2px rgba(0, 212, 255, 0.2); text-shadow: 0 0 30px rgba(0, 212, 255, 0.1); }
    50% { -webkit-text-stroke: 2px rgba(0, 212, 255, 0.4); text-shadow: 0 0 50px rgba(0, 212, 255, 0.3); }
  }

  /* Clases utilitarias */
  .animate-fade-in { animation: fade-in-up 0.6s var(--ease-out-expo) forwards; }
  .animate-slide-in { animation: slide-in-left 0.6s var(--ease-out-expo) forwards; }
  .animate-pulse { animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; }
  .animate-shine { animation: shine 3s infinite; }

  /* Stagger delays */
  .stagger > *:nth-child(1) { animation-delay: 0.1s; }
  .stagger > *:nth-child(2) { animation-delay: 0.2s; }
  .stagger > *:nth-child(3) { animation-delay: 0.3s; }
  .stagger > *:nth-child(4) { animation-delay: 0.4s; }
  .stagger > *:nth-child(5) { animation-delay: 0.5s; }

  /* Hover effects */
  .hover-lift { transition: transform var(--transition-base); }
  .hover-lift:hover { transform: translateY(-8px); }

  .hover-scale { transition: transform var(--transition-base); }
  .hover-scale:hover { transform: scale(1.02); }

  .hover-glow { transition: box-shadow var(--transition-base); }
  .hover-glow:hover { box-shadow: var(--shadow-glow); }

  /* Reveal on scroll */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Float animation */
  .float {
    animation: float 6s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
  }
}

/* =========================================
   LAYER 8: UTILITIES
   ========================================= */
@layer utilities {
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  .skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--clr-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s;
  }

  .skip-to-content:focus { top: 0; }

  .no-scroll { overflow: hidden; }
  .hidden { display: none !important; }
  .invisible { visibility: hidden; }
  
  .w-full { width: 100%; }
  .h-full { height: 100%; }
  .mx-auto { margin-inline: auto; }
  .my-auto { margin-block: auto; }
  
  .glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.1);
  }

  .glass-strong {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 212, 255, 0.2);
  }

  /* Skeleton loading */
  .skeleton {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.05) 25%, rgba(0, 212, 255, 0.1) 50%, rgba(0, 212, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
  }

  /* Focus visible */
  :focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }

  /* High contrast mode */
  @media (prefers-contrast: high) {
    .btn-accent, .btn-nav {
      border: 2px solid currentColor;
    }
  }

  /* Glow utilities */
  .glow-blue { box-shadow: 0 0 30px rgba(0, 212, 255, 0.3); }
  .glow-orange { box-shadow: 0 0 30px rgba(255, 107, 53, 0.3); }
  .text-glow { text-shadow: 0 0 20px currentColor; }
}

/* =========================================
   LAYER 9: RESPONSIVE
   ========================================= */
@layer responsive {
  /* Tablet */
  @media (max-width: 1024px) {
    :root {
      --container-padding: 1.5rem;
    }

    .hero-asymmetric {
      grid-template-columns: 1fr;
      min-height: auto;
      padding-top: calc(80px + var(--space-lg));
      text-align: center;
    }

    .hero-visual { display: none; }

    .trust-grid { 
      grid-template-columns: 1fr; 
      gap: var(--space-md); 
    }
    
    .zig-row, .zig-row.reverse {
      grid-template-columns: 1fr;
      direction: ltr;
      gap: var(--space-lg);
    }

    .catalog-grid, .catalog-grid.two-cols { grid-template-columns: 1fr; }
    
    .cases-grid, .pillars-grid { grid-template-columns: 1fr; }
    
    .service-highlight {
      grid-template-columns: 1fr;
      padding: var(--space-lg);
    }

    .service-image { order: -1; }
    .service-image img { height: 300px; }

    .split-layout { grid-template-columns: 1fr; }
    .split-visual { display: none; }

    .footer-grid {
      grid-template-columns: 1fr;
      text-align: center;
      gap: var(--space-xl);
    }

    .live-shanghai-badge { display: none; }
  }

  /* Móvil */
  @media (max-width: 768px) {
    :root {
      --space-3xl: 4rem;
    }

    .mobile-menu-btn { display: flex; }

    .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      max-width: 320px;
      height: 100vh;
      background: rgba(3, 3, 5, 0.98);
      flex-direction: column;
      padding: calc(80px + var(--space-lg)) var(--space-lg) var(--space-lg);
      box-shadow: var(--shadow-xl);
      transition: right var(--transition-base);
      align-items: flex-start;
      gap: var(--space-md);
      border-left: 1px solid rgba(0, 212, 255, 0.1);
      backdrop-filter: blur(30px);
    }

    .nav-links.active { right: 0; }

    .nav-links a { 
      font-size: var(--text-lg); 
      width: 100%; 
      padding-block: var(--space-sm); 
      color: var(--clr-text-main);
    }

    .btn-nav { width: 100%; text-align: center; margin-top: var(--space-md); }

    .trust-item h3 { font-size: var(--text-xl); }

    .big-number { top: -20px; left: 0; font-size: 4rem; }
    .zig-row.reverse .big-number { right: 0; }

    .hero-title { font-size: var(--text-2xl); }
  }

  /* Móvil pequeño */
  @media (max-width: 480px) {
    :root {
      --container-padding: 1rem;
    }

    .btn { width: 100%; }

    .trust-overlap { margin-top: -30px; }

    .modal-content, .gate-modal-content { padding: var(--space-md); }

    .live-chat-badge {
      bottom: var(--space-md);
      right: var(--space-md);
      left: var(--space-md);
      justify-content: center;
    }
  }
}
