/* ============================================================
   FabriCTD — style.css global compartido
   Paleta: Dark Cosmos Dev (violeta #6366f1 + esmeralda #10b981)
   ============================================================ */

/* ===== Variables ===== */
:root {
  --bg-base: #060912;
  --bg-surface: #0d1121;
  --bg-elevated: #121828;
  --accent-v: #6366f1;
  --accent-e: #10b981;
  --accent-v-glow: rgba(99, 102, 241, 0.35);
  --accent-e-glow: rgba(16, 185, 129, 0.25);
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255, 255, 255, 0.07);
}

/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
  position: relative;
}

.display-font {
  font-family: 'Orbitron', sans-serif;
}

.mono-font {
  font-family: 'JetBrains Mono', monospace;
}

/* ===== Cursor personalizado ===== */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-v);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.3s, transform 0.1s;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(99, 102, 241, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.3s;
}

/* ===== Canvas de partículas ===== */
/* z-index: 0 para que quede visible sobre el background del body */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ===== Noise overlay ===== */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ===== Glows de fondo ===== */
.bg-glow-1 {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent-v-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: float-glow 20s ease-in-out infinite alternate;
}

.bg-glow-2 {
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, var(--accent-e-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: float-glow 25s ease-in-out infinite alternate-reverse;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(4%, 4%) scale(1.06);
  }
}

/* ===== Header ===== */
#main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 9, 18, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.35s ease;
}

#main-header.scrolled {
  background: rgba(6, 9, 18, 0.95);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

#main-header.scrolled nav {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

/* Nav links */
.nav-link {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-v), var(--accent-e));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(6, 9, 18, 0.97);
}

#mobile-menu.open {
  display: flex;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

#hamburger.open .bar1 {
  transform: translateY(8px) rotate(45deg);
}

#hamburger.open .bar2 {
  opacity: 0;
}

#hamburger.open .bar3 {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Botones ===== */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--accent-v), #818cf8);
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 12px;
  cursor: none;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  box-shadow: 0 4px 20px var(--accent-v-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px var(--accent-v-glow);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: none;
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.08);
}

.btn-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent-e);
  color: #020617;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 12px;
  cursor: none;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.btn-emerald:hover {
  background: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.btn-emerald:active {
  transform: scale(0.97);
}

/* Ripple */
.ripple-container {
  position: relative;
  overflow: hidden;
}

.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== Hero ===== */
#inicio {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(99, 102, 241, 0.18) 0%, rgba(6, 9, 18, 0.85) 60%, var(--bg-base) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Availability badge */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 1.5rem;
}

.availability-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
}

/* Typewriter */
.typewriter-text::after {
  content: '|';
  color: var(--accent-e);
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 5.0rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fade-float 3s ease-in-out infinite;
  z-index: 1;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.scroll-wheel {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--accent-v);
  border-radius: 3px;
  animation: scroll-anim 2s ease infinite;
}

@keyframes scroll-anim {
  0% {
    opacity: 1;
    top: 4px;
  }

  80% {
    opacity: 0;
    top: 18px;
  }

  100% {
    opacity: 0;
    top: 4px;
  }
}

@keyframes fade-float {

  0%,
  100% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===== Stats ===== */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-v), var(--accent-e));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Glass card ===== */
.glass-card {
  background: rgba(13, 17, 33, 0.75);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== Skill tags ===== */
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}

.skill-tag:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  transform: translateY(-2px);
}

/* ===== Service cards ===== */
.service-card {
  padding: 1.75rem;
  background: rgba(13, 17, 33, 0.6);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s, background 0.35s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ===== Pricing cards ===== */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  /* Transición suave para glow, borde y escala */
  transition: box-shadow 0.5s ease, border-color 0.5s ease, transform 0.4s ease;
}

/* Start y Pro: glow violeta suave + escala leve */
.pricing-card:not(.featured):hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.18), 0 10px 35px rgba(0, 0, 0, 0.28);
  transform: scale(1.012);
}

/* Growth (featured): solo escala, sin cambios de glow */
.pricing-card.featured {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.22), 0 0 80px rgba(99, 102, 241, 0.08);
  background: rgba(17, 20, 45, 0.95);
}

.pricing-card.featured:hover {
  transform: scale(1.022);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 1.2rem;
  background: linear-gradient(90deg, var(--accent-v), #818cf8);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  white-space: nowrap;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  padding: 0.3rem 0;
}

.plan-check {
  color: #10b981;
  flex-shrink: 0;
  font-size: 0.85rem;
  margin-top: 2px;
}

.plan-cross {
  color: #f87171;
  flex-shrink: 0;
  font-size: 0.85rem;
  margin-top: 2px;
}

/* Tabla comparativa */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.compare-table th {
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  font-size: 0.8rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.compare-table th:first-child {
  text-align: left;
}

.compare-table td {
  padding: 0.875rem 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.compare-table td:first-child {
  text-align: left;
  color: #cbd5e1;
  font-weight: 500;
}

.compare-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.td-ok {
  color: #34d399;
  font-weight: 600;
}

.td-no {
  color: #f87171;
}

/* ===== Portfolio cards ===== */
.portfolio-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(99, 102, 241, 0.3);
}

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  transition: transform 0.5s, filter 0.5s;
  filter: brightness(0.8);
}

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.06);
  filter: brightness(1);
}

/* ===== Process / Cómo funciona ===== */
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: rgba(13, 17, 33, 0.5);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  transition: transform 0.35s, border-color 0.35s;
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
}

.process-num {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent-v);
}

/* ===== Why FabriCTD ("Por qué yo") ===== */
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: background 0.3s, border-color 0.3s;
}

.why-item:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}

.why-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.1rem;
}

/* ===== FAQs ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(13, 17, 33, 0.6);
  transition: border-color 0.3s;
}

.faq-item.open {
  border-color: rgba(99, 102, 241, 0.35);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: none;
  text-align: left;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-v);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(99, 102, 241, 0.25);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-body-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== CTA final ===== */
.cta-section {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.08), rgba(99, 102, 241, 0.12));
  background-size: 300% 100%;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.cta-section>* {
  position: relative;
  z-index: 1;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Modal de contacto ===== */
#contactModal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#contactModal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: rgba(13, 17, 33, 0.97);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(24px);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

#contactModal.open .modal-content {
  transform: scale(1) translateY(0);
}

.contact-btn {
  display: inline-flex;
  width: 100%;
  max-width: 280px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: none;
  transition: transform 0.3s, filter 0.3s;
}

.contact-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
}

.contact-btn:active {
  transform: scale(0.96);
}

/* ===== Matrix easter egg ===== */
#matrix-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: none;
  background: rgba(0, 0, 0, 0.93);
}

#matrix-overlay.active {
  display: block;
}

#matrix-canvas {
  width: 100%;
  height: 100%;
}

/* ===== Helpers de sección ===== */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-e);
  margin-bottom: 0.75rem;
  display: block;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-v), var(--accent-e));
  border-radius: 3px;
  margin: 1rem auto 0;
}

/* ===== Clientes — Stats ===== */
.client-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s, border-color 0.3s;
}

.client-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.3);
}

.client-stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-v), var(--accent-e));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Clientes — Cards ===== */
.client-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.client-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.client-banner-wrap {
  position: relative;
  overflow: hidden;
  height: 9rem;
  background: #0a0f1f;
}

.client-banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.5s, opacity 0.5s;
}

.client-card:hover .client-banner-wrap img {
  transform: scale(1.06);
  opacity: 0.75;
}

.status-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.badge-delivered {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tech-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem;
  border-radius: 12px;
  background: #5865F2;
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: none;
  transition: transform 0.3s, filter 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.25);
}

.discord-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
}

.details-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-v);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.details-summary:hover {
  color: #818cf8;
}

.details-summary::-webkit-details-marker {
  display: none;
}

.details-icon {
  transition: transform 0.3s;
  font-size: 0.9rem;
}

details[open] .details-icon {
  transform: rotate(45deg);
}

.details-content {
  margin-top: 0.6rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Términos ===== */
.terms-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: 90px;
  background: rgba(13, 17, 33, 0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.toc-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 0.25rem;
}

.toc-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.toc-link.active {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
}

.toc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent-v);
  min-width: 24px;
}

.terms-article {
  background: rgba(13, 17, 33, 0.75);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.term-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.term-section:first-child {
  padding-top: 0;
}

.term-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.term-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.term-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-v);
  flex-shrink: 0;
}

.term-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: white;
}

.term-text {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.8;
}

.term-text strong {
  color: #e2e8f0;
  font-weight: 700;
}

.term-text a {
  color: var(--accent-v);
  text-decoration: none;
  transition: color 0.2s;
}

.term-text a:hover {
  color: #818cf8;
  text-decoration: underline;
}

.term-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.term-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.7;
}

.term-list-icon {
  color: var(--accent-e);
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 0.8rem;
}

.highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-left: 3px solid var(--accent-v);
  border-radius: 10px;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.7;
}

.highlight-box-icon {
  color: var(--accent-v);
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-box.emerald {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
  border-left-color: var(--accent-e);
}

.highlight-box.emerald .highlight-box-icon {
  color: var(--accent-e);
}

.highlight-box.warning {
  background: rgba(251, 146, 60, 0.06);
  border-color: rgba(251, 146, 60, 0.15);
  border-left-color: #fb923c;
}

.highlight-box.warning .highlight-box-icon {
  color: #fb923c;
}

/* ===== Footer brand gigante (estilo Discord) ===== */
.footer-brand-bg {
  width: 100%;
  padding: 1.5rem 1.5rem 0;
  overflow: hidden;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.footer-brand-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 12vw, 10rem);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.08));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-align: center;
}

/* ===== Sticky Showcase ===== */
@media (max-width: 900px) {
  .sticky-showcase-grid {
    grid-template-columns: 1fr !important;
  }

  .sticky-left {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 3rem;
  }

  .sticky-right {
    gap: 2rem !important;
    padding-bottom: 0 !important;
  }
}

.showcase-card {
  background: rgba(13, 17, 33, 0.6);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transform: translateY(30px) scale(0.95);
  opacity: 0.4;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s, border-color 0.4s, box-shadow 0.4s;
}

.showcase-card.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.1) inset;
}

.showcase-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) inset;
}

.showcase-content h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.6rem;
}

.showcase-content p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

.showcase-code {
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 1.25rem;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #abb2bf;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.showcase-code::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-v), var(--accent-e));
  border-radius: 4px 0 0 4px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-v), var(--accent-e));
  border-radius: 5px;
}

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: white;
}

/* ===== Responsive helpers ===== */
.hidden-mobile {
  display: flex !important;
}

.show-mobile {
  display: none !important;
}

@media (max-width: 768px) {

  #cursor-dot,
  #cursor-ring {
    display: none;
  }

  body {
    cursor: auto;
  }

  .hidden-mobile {
    display: none !important;
  }

  .show-mobile {
    display: flex !important;
  }

  .btn-primary,
  .btn-secondary,
  .btn-emerald,
  .faq-trigger,
  .contact-btn,
  .discord-btn {
    cursor: pointer;
  }

  #features-showcase,
  #compare-table-container {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .terms-layout {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    display: none;
  }
}