/* ═══════════════════════════════════════════════════════════════════
   INICIO.CSS - Estilos Premium para LynxNodes
   ═══════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────
   1. VARIABLES PERSONALIZADAS
   ─────────────────────────────────────────────────────────────────── */
:root {
  /* --- Paleta Enterprise Tech LynxNodes --- */
  --color-bg-main: #0f1117;
  --color-bg-elevated: #181c24;
  --color-bg-glass: rgba(18, 18, 27, 0.85);
  --color-bg-glass-strong: rgba(18, 18, 27, 0.95);
  --color-bg-gradient: linear-gradient(120deg, #0a0c12 0%, #181c24 100%);
  --color-surface-glass: rgba(255,255,255,0.03);
  --color-surface-glass-hover: rgba(255,255,255,0.08);

  --color-primary: #6EE7FF;
  --color-secondary: #FF6B81;
  --color-accent-cyan: #00FFA3;
  --color-accent-yellow: #FFD600;
  --color-accent-blue: #7f5af0;
  --color-accent-orange: #ff6a00;
  --color-accent-magenta: #7b3ff2;

  --text-primary: #f9fafb;
  --text-secondary: #e5e7eb;
  --text-muted: #a0a0a0;
  --text-on-accent: #0a0c12;

  --primary-highlight: var(--color-accent-yellow);
  --primary-highlight-rgb: 255, 214, 0;

  --surface-dark: rgba(24, 28, 36, 0.80);
  --surface-dark-hover: rgba(35, 41, 53, 0.88);
  --surface-glass: var(--color-surface-glass);
  --surface-glass-hover: var(--color-surface-glass-hover);

  --border-glass: 1.5px solid rgba(255,255,255,0.09);
  --border-accent: 2px solid var(--color-primary);
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.5rem;
  --border-radius-full: 9999px;

  --radius-sm: var(--border-radius-sm);
  --radius-md: var(--border-radius-md);
  --radius-lg: var(--border-radius-lg);
  --radius-xl: 2rem;
  --radius-full: var(--border-radius-full);

  --shadow-glass: 0 10px 30px rgba(110,231,255,0.10), 0 2px 8px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 32px 0 #6EE7FF44, 0 4px 32px 0 #7b3ff288;
  --shadow-glow-intense: 0 0 48px 0 #6EE7FF99, 0 8px 48px 0 #FF6B81aa;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.26);
  --shadow-lg: 0 6px 18px rgba(0, 0, 0, 0.28);
  --shadow-xl: 0 12px 20px -4px rgba(0, 0, 0, 0.28), 0 6px 10px -3px rgba(0, 0, 0, 0.12);

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

  --font-main: 'Poppins', 'Inter', Arial, sans-serif;
  --font-mono: 'Geist Mono', 'Fira Mono', 'Menlo', 'monospace';

  --glass-blur: blur(18px);
  --glass-blur-strong: blur(32px);

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
}

 .ln-global-bg {
  background: #0f1117;
 }

 .ln-global-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
 }

 .ln-global-bg::before {
  content: none;
  display: none;
 }

.ln-bg {
  position: relative;
  isolation: isolate;
}

.ln-bg::before,
.ln-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ln-bg::before {
  opacity: 0.9;
  background:
    radial-gradient(900px 380px at 12% 18%, rgba(0, 255, 163, 0.12), transparent 60%),
    radial-gradient(780px 340px at 88% 24%, rgba(123, 63, 242, 0.14), transparent 58%),
    radial-gradient(820px 360px at 55% 92%, rgba(255, 214, 0, 0.10), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(1200px 520px at 50% 20%, rgba(0,0,0,0.95), rgba(0,0,0,0.25) 70%, transparent 92%);
  -webkit-mask-image: radial-gradient(1200px 520px at 50% 20%, rgba(0,0,0,0.95), rgba(0,0,0,0.25) 70%, transparent 92%);
}

.ln-bg::after {
  opacity: 0.7;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.10)' stroke-width='1'%3E%3Cpath d='M24 70h84m20 0h54m18 0h36M40 190h66m22 0h92'/%3E%3Cpath d='M70 24v72m0 24v86M190 54v56m0 26v82'/%3E%3Cpath d='M70 96h48m0 94h44m28-112h46'/%3E%3C/g%3E%3Cg fill='rgba(0,255,163,0.22)'%3E%3Ccircle cx='70' cy='96' r='2'/%3E%3Ccircle cx='190' cy='136' r='2'/%3E%3Ccircle cx='128' cy='190' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
  background-repeat: repeat;
  background-position: 0 0;
  mix-blend-mode: overlay;
  filter: blur(0.2px);
}

.ln-bg-hero::before {
  opacity: 1;
  mask-image: radial-gradient(1200px 680px at 50% 22%, rgba(0,0,0,0.98), rgba(0,0,0,0.28) 70%, transparent 92%);
  -webkit-mask-image: radial-gradient(1200px 680px at 50% 22%, rgba(0,0,0,0.98), rgba(0,0,0,0.28) 70%, transparent 92%);
}

.ln-bg-panel::before {
  background:
    radial-gradient(860px 420px at 18% 16%, rgba(0, 255, 163, 0.10), transparent 62%),
    radial-gradient(860px 420px at 86% 72%, rgba(123, 63, 242, 0.10), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 86px);
}

.ln-bg-panel::after {
  background-position: 24px 12px;
}

.ln-bg-reviews::before {
  background:
    radial-gradient(900px 420px at 20% 40%, rgba(255, 214, 0, 0.10), transparent 62%),
    radial-gradient(900px 420px at 88% 30%, rgba(0, 255, 163, 0.10), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 92px);
}

.ln-bg-reviews::after {
  background-position: 120px 40px;
}

.ln-bg-features::before {
  background:
    radial-gradient(860px 420px at 70% 20%, rgba(123, 63, 242, 0.12), transparent 60%),
    radial-gradient(820px 380px at 24% 78%, rgba(0, 255, 163, 0.10), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 88px);
}

.ln-bg-features::after {
  background-position: 64px 96px;
}

.ln-bg-cta::before {
  background:
    radial-gradient(980px 420px at 50% 15%, rgba(255, 214, 0, 0.10), transparent 62%),
    radial-gradient(920px 420px at 20% 80%, rgba(0, 255, 163, 0.10), transparent 62%),
    radial-gradient(920px 420px at 90% 84%, rgba(123, 63, 242, 0.12), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 92px);
  mask-image: radial-gradient(1200px 520px at 50% 30%, rgba(0,0,0,0.98), rgba(0,0,0,0.25) 70%, transparent 92%);
  -webkit-mask-image: radial-gradient(1200px 520px at 50% 30%, rgba(0,0,0,0.98), rgba(0,0,0,0.25) 70%, transparent 92%);
}

.ln-bg-cta::after {
  background-position: 180px 10px;
}

.ln-navbar {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ln-navbar__inner {
  background: transparent;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ln-navbar--scrolled {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.ln-navbar__inner {
  position: relative;
  overflow: hidden;
}

.ln-navbar__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 120px at 20% 0%, rgba(0,255,163,0.14), transparent 60%),
    radial-gradient(600px 120px at 80% 0%, rgba(123,63,242,0.16), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 76px);
  opacity: 0.7;
}

.ln-navlink {
  position: relative;
  color: rgba(229, 231, 235, 0.92);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.ln-navlink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-yellow));
  transition: transform var(--transition-fast);
}

.ln-navlink:hover {
  color: var(--color-accent-yellow);
  transform: translateY(-1px);
}

.ln-navlink:hover::after,
.ln-navlink[aria-current="page"]::after {
  transform: scaleX(1);
}

.ln-navlink[aria-current="page"] {
  color: var(--color-accent-yellow);
}

.ln-navcta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 9999px;
  color: #0a0c12;
  font-weight: 800;
  background: linear-gradient(90deg, var(--color-accent-yellow), var(--color-accent-orange));
  box-shadow: 0 12px 32px rgba(255, 193, 0, 0.16);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.ln-navcta:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 18px 44px rgba(255, 193, 0, 0.22);
  filter: saturate(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .ln-navlink,
  .ln-navcta {
    transition: none !important;
  }
}

/* ───────────────────────────────────────────────────────────────────
   2. CARRUSEL DE RESEÑAS
   ─────────────────────────────────────────────────────────────────── */

/* Contenedor principal del carrusel */
#reviewCarousel {
  display: flex;
  gap: var(--spacing-lg);
  padding: 0 60px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  overflow-y: hidden;
  transition: transform var(--transition-medium);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  perspective: 1200px;
  will-change: transform;
}

#reviewCarousel::-webkit-scrollbar {
  display: none;
}

/* Tarjetas de reseña */
#reviewCarousel > div {
  /* Layout */
  scroll-snap-align: center;
  min-width: 280px;
  max-width: 400px;
  flex: 0 0 auto;
  padding: var(--spacing-lg);
  
  /* Estilo visual */
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface-glass), var(--surface-glass-hover));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  
  /* Tipografía */
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  
  /* Animación */
  transition: all var(--transition-fast);
  transform-style: preserve-3d;
  will-change: transform, box-shadow, border-color;
}

/* Estado hover - Escritorio */
@media (hover: hover) and (pointer: fine) {
  #reviewCarousel > div:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-highlight);
    transform: translateY(-6px) rotateX(3deg) scale(1.03);
  }
}

/* Estado focus - Accesibilidad */
#reviewCarousel > div:focus,
#reviewCarousel > div:focus-visible {
  outline: 2px solid var(--primary-highlight);
  outline-offset: 4px;
  box-shadow: var(--shadow-glow-intense);
  border-color: var(--primary-highlight);
}

/* ───────────────────────────────────────────────────────────────────
   3. BOTONES DE NAVEGACIÓN
   ─────────────────────────────────────────────────────────────────── */

#prevBtn, #nextBtn {
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  
  /* Estilo visual */
  background: var(--surface-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  
  /* Tipografía */
  color: var(--text-primary);
  font-size: 1.5rem;
  
  /* Interacción */
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--transition-fast), 
              background var(--transition-fast), 
              box-shadow var(--transition-fast),
              border-color var(--transition-fast);
  will-change: transform, background, box-shadow;
}

/* Estado hover */
@media (hover: hover) and (pointer: fine) {
  #prevBtn:hover, #nextBtn:hover {
    background: var(--surface-dark-hover);
    border-color: var(--primary-highlight);
    transform: translateY(-50%) scale(1.12);
    box-shadow: var(--shadow-lg);
  }
}

/* Estado active */
#prevBtn:active, #nextBtn:active {
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-sm);
}

/* Estado focus - Accesibilidad */
#prevBtn:focus-visible, #nextBtn:focus-visible {
  outline: 2px solid var(--primary-highlight);
  outline-offset: 3px;
  border-color: var(--primary-highlight);
}

/* Estado disabled */
#prevBtn:disabled, #nextBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ───────────────────────────────────────────────────────────────────
   4. MENÚ DE IDIOMAS
   ─────────────────────────────────────────────────────────────────── */

#languageMenu {
  /* Layout */
  min-width: 180px;
  padding: var(--spacing-sm) 0;
  overflow: hidden;
  z-index: 50;
  
  /* Estilo visual */
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  
  /* Animación */
  transition: all var(--transition-fast);
  animation: slideIn var(--transition-fast);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enlaces del menú */
#languageMenu a {
  display: block;
  padding: 0.65rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color var(--transition-fast), 
              padding-left var(--transition-fast),
              color var(--transition-fast);
  position: relative;
}

/* Indicador lateral */
#languageMenu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-highlight);
  transform: scaleY(0);
  transition: transform var(--transition-fast);
}

/* Estado hover */
@media (hover: hover) and (pointer: fine) {
  #languageMenu a:hover {
    background-color: rgba(var(--primary-highlight-rgb), 0.1);
    padding-left: 1.75rem;
    color: var(--primary-highlight);
  }
  
  #languageMenu a:hover::before {
    transform: scaleY(1);
  }
}

/* Estado focus */
#languageMenu a:focus-visible {
  outline: 2px solid var(--primary-highlight);
  outline-offset: -2px;
  background-color: rgba(var(--primary-highlight-rgb), 0.15);
  color: var(--primary-highlight);
}

/* Estado active */
#languageMenu a:active {
  background-color: rgba(var(--primary-highlight-rgb), 0.2);
}

/* Idioma seleccionado */
#languageMenu a[aria-current="true"],
#languageMenu a.active {
  color: var(--primary-highlight);
  font-weight: 600;
  background-color: rgba(var(--primary-highlight-rgb), 0.08);
}

/* ───────────────────────────────────────────────────────────────────
   5. AJUSTES GENERALES
   ─────────────────────────────────────────────────────────────────── */

body::before {
  display: none !important;
  content: none !important;
}

 #heroWord {
  display: inline-block;
  min-width: 9ch;
  text-align: center;
  white-space: nowrap;
  will-change: transform, opacity, filter;
  transition: opacity 0.3s ease-in-out;
 }

#heroWord.ln-word-anim {
  animation: wordRotate 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes wordRotate {
  0% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  30% { opacity: 0; transform: translateY(-6px) scale(0.98); filter: blur(0.5px); }
  70% { opacity: 0; transform: translateY(6px) scale(0.98); filter: blur(0.5px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.ln-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(18, 18, 27, 0.40);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
  mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, transparent);
 }

 .ln-marquee__track {
  display: flex;
  gap: 18px;
  padding: 12px 16px;
  width: max-content;
  animation: lnMarquee 22s linear infinite;
 }

 .ln-marquee:hover .ln-marquee__track {
  animation-play-state: paused;
 }

 @keyframes lnMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
 }

 .ln-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(229,231,235,0.92);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
 }

 .ln-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--color-accent-yellow);
  box-shadow: 0 0 16px rgba(255, 214, 0, 0.35);
 }

 .ln-footer {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(10, 12, 18, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
 }

 .ln-footer::before {
  content: "";
  position: absolute;
  inset: -2px 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,214,0,0.55), rgba(0,255,163,0.35), transparent);
 }

 .ln-footer__card {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 16px 60px rgba(0,0,0,0.35);
 }

 .ln-footer__link {
  color: rgba(229,231,235,0.86);
  transition: color var(--transition-fast), transform var(--transition-fast);
 }

 .ln-footer__link:hover {
  color: var(--color-accent-yellow);
  transform: translateX(2px);
 }

 @media (prefers-reduced-motion: reduce) {
  .ln-marquee__track {
    animation: none !important;
  }
 }

/* ───────────────────────────────────────────────────────────────────
   6. MEDIA QUERIES - RESPONSIVIDAD
   ─────────────────────────────────────────────────────────────────── */

/* Tablets y dispositivos medianos */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 1rem;
  }
  
  #reviewCarousel {
    padding: 0 40px;
    gap: var(--spacing-md);
  }
  
  #reviewCarousel > div {
    min-width: 240px;
    max-width: 360px;
    padding: var(--spacing-md);
    font-size: 0.9rem;
  }
  
  #prevBtn, #nextBtn {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  
  #languageMenu {
    min-width: 160px;
  }
}

/* Móviles */
@media (max-width: 480px) {
  #reviewCarousel {
    padding: 0 30px;
    gap: var(--spacing-sm);
  }
  
  #reviewCarousel > div {
    min-width: 220px;
    max-width: 320px;
    padding: var(--spacing-md);
    font-size: 0.875rem;
  }
  
  #prevBtn, #nextBtn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

/* ───────────────────────────────────────────────────────────────────
   7. ACCESIBILIDAD - PREFERENCIAS DE MOVIMIENTO
   ─────────────────────────────────────────────────────────────────── */

@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;
  }
  
  #reviewCarousel > div {
    transform: none !important;
  }
  
  #reviewCarousel > div:hover {
    transform: translateY(-2px) !important;
  }
}

/* ───────────────────────────────────────────────────────────────────
   8. MODO DE ALTO CONTRASTE
   ─────────────────────────────────────────────────────────────────── */

@media (prefers-contrast: high) {
  #reviewCarousel > div {
    border: 2px solid var(--text-primary);
  }
  
  #prevBtn, #nextBtn {
    border: 2px solid var(--text-primary);
  }
  
  #languageMenu {
    border: 2px solid var(--text-primary);
  }
  
  #languageMenu a:focus-visible {
    outline-width: 3px;
  }
}
