/* ===================================================================
   MINDEVS.TECH — INDUSTRIAL MINIMALIST / TECHNICAL BRUTALIST
   Palette: Monochromatic High-Tech (#050505 / #EDEDED / #888888)
   Zero WebGL / Zero GPU overhead. Pure CSS Nanometric Grid.
   Frosted Glassmorphism (blur: 12px) & Zero-G Anti-Gravity.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #050505;
  --text-primary: #ededed;
  --text-secondary: #888888;
  --text-dim: #555555;
  --text-pure-white: #ffffff;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.14);
  --border-card-hover: rgba(255, 255, 255, 0.38);

  /* Glassmorphism semitransparente con blur óptico */
  --surface-card: rgba(14, 14, 18, 0.65);
  --surface-card-hover: rgba(22, 22, 28, 0.82);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --ease-technical: cubic-bezier(0.16, 1, 0.3, 1);

  /* Variables dinámicas para spotlight de cursor (actualizadas por app.js) */
  --mouse-x: 50vw;
  --mouse-y: 35vh;
}

/* Reset y estructura global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-color);
}

/* ===================================================================
   FONDO TÉCNICO & SPOTLIGHT DINÁMICO DE ALTO IMPACTO
   =================================================================== */
body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background-image:
    /* Núcleo de luz intenso centrado en el cursor */
    radial-gradient(450px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.035) 45%, transparent 75%),
    /* Halo periférico ambiental amplio */
    radial-gradient(1000px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.045) 0%, transparent 70%),
    /* Cuadrícula técnica primaria de 48px */
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    /* Cuadrícula secundaria de 192px (subdivisión arquitectónica) */
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px, 192px 192px, 192px 192px;
  background-attachment: fixed;
}

/* Flashlight ambiental fijo que ilumina dinámicamente cualquier elemento */
.cursor-flashlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  background: 
    radial-gradient(500px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 75%),
    radial-gradient(1000px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.03) 0%, transparent 65%);
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

/* Retículo HUD Circular que persigue al cursor con inercia suave */
.cursor-reticle {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(calc(var(--mouse-x) - 19px), calc(var(--mouse-y) - 19px), 0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
  transition: 
    width 0.24s var(--ease-technical),
    height 0.24s var(--ease-technical),
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease,
    opacity 0.25s ease;
}

/* Marcas de mira / Crosshair ticks del retículo */
.cursor-reticle::before,
.cursor-reticle::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  pointer-events: none;
  transition: background 0.24s ease;
}

.cursor-reticle::before {
  width: 10px;
  height: 1px;
}

.cursor-reticle::after {
  width: 1px;
  height: 10px;
}

/* Punto central láser con 0ms de latencia (física instantánea) */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.95);
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(calc(var(--raw-mouse-x, var(--mouse-x)) - 3px), calc(var(--raw-mouse-y, var(--mouse-y)) - 3px), 0);
  transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
}

/* Expansión del HUD al sobrevolar elementos interactivos */
.cursor-reticle.active {
  width: 54px;
  height: 54px;
  transform: translate3d(calc(var(--mouse-x) - 27px), calc(var(--mouse-y) - 27px), 0);
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.cursor-reticle.active::before,
.cursor-reticle.active::after {
  background: #00FF66;
}

.cursor-dot.active {
  background: #00FF66;
  box-shadow: 0 0 12px #00FF66;
}

/* Ocultar retículo/mira del cursor al sobrevolar botones, navbar, bloques del portafolio o con modales abiertos */
body.modal-open .cursor-reticle,
body.modal-open .cursor-dot,
body.modal-open .cursor-flashlight,
body.cursor-nav-hidden .cursor-reticle,
body.cursor-nav-hidden .cursor-dot,
body.cursor-portfolio-hidden .cursor-reticle,
body.cursor-portfolio-hidden .cursor-dot,
.cursor-reticle.nav-hidden,
.cursor-dot.nav-hidden,
#portafolio:hover ~ .cursor-reticle,
#portafolio:hover ~ .cursor-dot,
body:has(#portafolio:hover) .cursor-reticle,
body:has(#portafolio:hover) .cursor-dot,
body:has(.portfolio-marquee-wrapper:hover) .cursor-reticle,
body:has(.portfolio-marquee-wrapper:hover) .cursor-dot,
body:has(.portfolio-marquee-stage:hover) .cursor-reticle,
body:has(.portfolio-marquee-stage:hover) .cursor-dot,
body:has(.marquee-card:hover) .cursor-reticle,
body:has(.marquee-card:hover) .cursor-dot,
body:has(.showcase-card:hover) .cursor-reticle,
body:has(.showcase-card:hover) .cursor-dot,
body:has(.portfolio-matrix-drawer:hover) .cursor-reticle,
body:has(.portfolio-matrix-drawer:hover) .cursor-dot,
body:has(.header-nav a:hover) .cursor-reticle,
body:has(.header-nav a:hover) .cursor-dot,
body:has(.header-nav button:hover) .cursor-reticle,
body:has(.header-nav button:hover) .cursor-dot,
body:has(.header-nav .logo:hover) .cursor-reticle,
body:has(.header-nav .logo:hover) .cursor-dot,
body:has(.header-nav:hover) .cursor-reticle,
body:has(.header-nav:hover) .cursor-dot {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

/* Cursores nativos limpios y fluidos dentro del portafolio */
#portafolio,
.portfolio-marquee-wrapper,
.portfolio-marquee-stage,
.marquee-card,
.showcase-card,
.portfolio-matrix-drawer {
  cursor: default;
}

#portafolio a,
#portafolio button,
.marquee-link,
.showcase-link,
.filter-btn,
.btn-toggle-all-nodes {
  cursor: pointer;
}

@media (hover: none), (max-width: 768px) {
  .cursor-reticle,
  .cursor-dot,
  .cursor-flashlight {
    display: none !important;
  }
}

/* Contenedor principal */
.app-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===================================================================
   TOP STATUS BAR & NAVIGATION
   =================================================================== */
.status-bar {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 60;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 5px;
  height: 5px;
  background: #EDEDED;
  border-radius: 50%;
  opacity: 0.8;
}

.header-nav {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 33px;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 32px;
}

/* ===================================================================
   LOGO & MARCA PRINCIPAL (ALTO IMPACTO VISUAL)
   =================================================================== */
.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.28s var(--ease-technical);
}

/* Chasis / Badge tecnológico del isotipo */
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: 
    transform 0.28s var(--ease-technical),
    border-color 0.28s var(--ease-technical),
    box-shadow 0.28s var(--ease-technical),
    background 0.28s var(--ease-technical);
}

/* Reflejo biselado superior */
.logo-mark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

/* Isotipo SVG de MINDEVS (Cabello + Lentes) */
.logo-icon {
  width: 34px;
  height: 34px;
  color: #FFFFFF;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85));
  transition: transform 0.28s var(--ease-technical), filter 0.28s var(--ease-technical);
}

/* Tipografía de Marca MINDEVS de Gran Impacto */
.logo-text {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #FFFFFF;
  text-transform: uppercase;
  display: inline-block;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.95);
  transition: 
    letter-spacing 0.28s var(--ease-technical),
    text-shadow 0.28s var(--ease-technical),
    transform 0.28s var(--ease-technical);
}

/* Hover de Alto Impacto para Logo y Texto */
.logo:hover .logo-mark {
  transform: translateY(-1px) scale(1.06);
  border-color: rgba(255, 255, 255, 0.65);
  background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 
    0 6px 22px rgba(0, 0, 0, 0.8),
    0 0 22px rgba(255, 255, 255, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.logo:hover .logo-mark::before {
  opacity: 1;
}

.logo:hover .logo-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.75));
}

.logo:hover .logo-text {
  text-shadow: 
    0 0 32px rgba(255, 255, 255, 0.9),
    0 0 12px rgba(255, 255, 255, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.95);
  letter-spacing: 0.2em;
  transform: translateX(1px);
}

.logo:active .logo-mark {
  transform: scale(0.97);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.nav-link,
.nav-menu a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: 
    color 0.22s var(--ease-technical),
    background 0.22s var(--ease-technical),
    border-color 0.22s var(--ease-technical),
    transform 0.22s var(--ease-technical),
    box-shadow 0.22s var(--ease-technical);
}

/* Indicador luminoso de estado interactivo */
.nav-link::before,
.nav-menu a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

/* Número indexado [01], [02], etc. */
.nav-link .nav-num {
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.22s ease;
}

/* Etiqueta de texto */
.nav-link .nav-text {
  font-weight: 500;
  transition: color 0.22s ease;
}

/* Haz de luz inferior interactivo */
.nav-link::after,
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  transition: width 0.25s var(--ease-technical), left 0.25s var(--ease-technical);
}

/* Hover: Elevación, iluminación y resplandor */
.nav-link:hover,
.nav-menu a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 255, 255, 0.08);
}

.nav-link:hover::before,
.nav-menu a:hover::before {
  background: #00FF66;
  box-shadow: 0 0 8px #00FF66;
  transform: scale(1.25);
}

.nav-link:hover .nav-num {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.nav-link:hover::after,
.nav-menu a:hover::after {
  width: 100%;
  left: 0;
}

/* Active: Respuesta táctil de pulsación */
.nav-link:active,
.nav-menu a:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Estado activo según sección en scroll (Scrollspy) */
.nav-link.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.24);
}

.nav-link.active .nav-num {
  color: #FFFFFF;
}

.nav-link.active::after {
  width: 50%;
  left: 25%;
  opacity: 0.8;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  background: rgba(14, 14, 18, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: all 0.25s var(--ease-technical);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  background: #EDEDED;
  color: #050505;
  border-color: #EDEDED;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-mobile-toggle {
  display: none;
}

/* ===================================================================
   MAIN ASYMMETRICAL LAYOUT (Split Screen)
   Left: Hero Section (Strictly Left-Aligned)
   Right: Asymmetrical Floating Project Cards Grid
   =================================================================== */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 52px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 32px 100px;
  align-items: start;
}

/* Left Column: Fixed / Sticky Hero */
.hero-column {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-right: 20px;
}

.hero-meta-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #22c55e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-left: 2px solid #22c55e;
  padding-left: 12px;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

/* H1: Tipografía Geométrica Ultra-Limpia */
.hero-heading {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* Párrafo Técnico */
.hero-paragraph {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
}

/* Botones Técnicos Industriales */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-industrial {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border: 1px solid var(--border-card);
  background: rgba(14, 14, 18, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s var(--ease-technical);
}

.btn-industrial:hover {
  background: #EDEDED;
  color: #050505;
  border-color: #EDEDED;
  transform: translateY(-2px);
}

.btn-industrial-secondary {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 12px 20px;
  border: 1px solid var(--border-subtle);
  background: rgba(14, 14, 18, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s var(--ease-technical);
}

.btn-industrial-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-card-hover);
}

/* Telemetría y Métricas en Monospace */
.telemetry-panel {
  width: 100%;
  max-width: 520px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.telemetry-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===================================================================
   RIGHT COLUMN: STREAM VERTICAL HÍBRIDO DE PROYECTOS DESTACADOS
   Semitransparent + backdrop-filter: blur(12px) + Auto-Scroll interactivo
   =================================================================== */
.projects-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
  position: relative;
}

.column-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stream-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 3px 8px;
  border-radius: 2px;
}

.stream-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: streamLivePulse 2s ease-in-out infinite;
}

@keyframes streamLivePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

/* ===================================================================
   TARJETAS INTERACTIVAS: SPOTLIGHT REACTIVO & BORDES LUMINOSOS
   =================================================================== */
.card-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    480px circle at var(--card-x, -999px) var(--card-y, -999px),
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.04) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.card-spotlight-border {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--card-x, -999px) var(--card-y, -999px),
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.3) 35%,
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.project-card:hover .card-spotlight,
.service-card:hover .card-spotlight,
.showcase-card:hover .card-spotlight,
.manifest-card:hover .card-spotlight,
.contact-card-main:hover .card-spotlight,
.telemetry-panel:hover .card-spotlight,
.benefit-item:hover .card-spotlight,
.project-card:hover .card-spotlight-border,
.service-card:hover .card-spotlight-border,
.showcase-card:hover .card-spotlight-border,
.manifest-card:hover .card-spotlight-border,
.contact-card-main:hover .card-spotlight-border,
.telemetry-panel:hover .card-spotlight-border,
.benefit-item:hover .card-spotlight-border {
  opacity: 1;
}

.project-card > *:not(.card-spotlight):not(.card-spotlight-border),
.service-card > *:not(.card-spotlight):not(.card-spotlight-border),
.showcase-card > *:not(.card-spotlight):not(.card-spotlight-border),
.manifest-card > *:not(.card-spotlight):not(.card-spotlight-border),
.contact-card-main > *:not(.card-spotlight):not(.card-spotlight-border),
.telemetry-panel > *:not(.card-spotlight):not(.card-spotlight-border),
.benefit-item > *:not(.card-spotlight):not(.card-spotlight-border) {
  position: relative;
  z-index: 3;
}

/* Tarjeta Técnica de Proyecto: Glassmorphism Puro Semitransparente */
.project-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Detalles mecánicos / esquinas técnicas en tarjetas */
.project-card::before {
  content: '+';
  position: absolute;
  top: -7px;
  left: -5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--border-card-hover);
  line-height: 1;
}

.project-card::after {
  content: '+';
  position: absolute;
  bottom: -7px;
  right: -5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--border-card-hover);
  line-height: 1;
}

.project-card:hover {
  border-color: var(--border-card-hover);
  background: var(--surface-card-hover);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.65);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* Tags Estrictamente Monospace */
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  padding: 5px 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.card-content {
  margin-bottom: 24px;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.project-text {
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.card-status {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-status::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--text-primary);
  border-radius: 50%;
}

.card-action {
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}

.card-action:hover {
  opacity: 0.7;
}

/* ===================================================================
   ANIMACIÓN ANTI-GRAVEDAD (CSS FLOATING EN EJE Y)
   Desfases asíncronos para dar ilusión de gravedad cero
   =================================================================== */
@keyframes floating {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(0.6deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.antigravity-item {
  animation-name: floating;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
}

/* Ruptura asimétrica y desfases temporales (Zero Gravity) */
.card-offset-1 {
  animation-duration: 5.4s;
  animation-delay: 0s;
  margin-left: 0;
}

.card-offset-2 {
  animation-duration: 6.6s;
  animation-delay: 1.3s;
  margin-left: 32px; /* Asimetría balanceada */
}

.card-offset-3 {
  animation-duration: 5.0s;
  animation-delay: 2.5s;
  margin-left: 10px;
}

.card-offset-4 {
  animation-duration: 6.2s;
  animation-delay: 3.8s;
  margin-left: 38px; /* Asimetría balanceada */
}

/* ===================================================================
   STREAM VIEWPORT & HYBRID AUTO-SCROLL (PROYECTOS DESTACADOS)
   =================================================================== */
.featured-stream-viewport {
  position: relative;
  height: 640px;
  max-height: 72vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scroll-behavior: auto;
  padding: 16px 14px 28px 4px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  cursor: grab;
}

.featured-stream-viewport:active {
  cursor: grabbing;
}

.featured-stream-viewport::-webkit-scrollbar {
  width: 4px;
}

.featured-stream-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.featured-stream-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}

.featured-stream-viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.featured-stream-track {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Barra de Telemetría e Interacción del Stream */
.stream-telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.stream-hint {
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.stream-view-all-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stream-view-all-link:hover {
  color: #10B981;
  transform: translateY(1px);
}

/* ===================================================================
   SYSTEM MANIFEST / SECONDARY SECTION
   =================================================================== */
.manifest-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 48px;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
}

.manifest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.manifest-item {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
}

.manifest-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.manifest-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.manifest-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===================================================================
   FOOTER (Industrial Monospace)
   =================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #050505;
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-origin {
  color: var(--text-secondary);
}

.footer-origin strong {
  color: var(--text-primary);
}

.footer-telemetry {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-dim);
}

.telemetry-item-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fps-monitor {
  color: var(--text-primary);
}

/* ===================================================================
   SECCIONES COMUNES TÉCNICAS (Servicios, Portafolio, Contacto)
   =================================================================== */
.tech-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 48px;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
}

.section-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-tag {
  color: var(--text-secondary);
}

.section-telemetry {
  color: var(--text-dim);
}

.section-title-wrap {
  margin-bottom: 56px;
}

.section-main-heading {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-subheading {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.6;
}

/* ===================================================================
   GRID DE SERVICIOS (06 TARJETAS TÉCNICAS)
   =================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-tech-card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  position: relative;
}

.service-tech-card:hover {
  border-color: var(--border-card-hover);
  background-color: var(--surface-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.03);
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.service-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.service-name {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.service-description {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  flex-grow: 1;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
}

.service-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-action-btn {
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.service-action-btn span:first-child {
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.service-action-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.service-tech-card:hover .service-action-arrow,
.service-action-btn:hover .service-action-arrow {
  transform: translateX(5px);
  color: #FFFFFF;
}

.service-action {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.service-tech-card:hover .service-action {
  transform: translateX(4px);
}

/* ===================================================================
   PORTAFOLIO DE PRODUCCIÓN: CARRUSEL DOBLE INCLINADO + MATRIZ COMPLETA
   =================================================================== */

/* Contenedor Exterior que rompe el ancho para sangrado horizontal */
.portfolio-marquee-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  padding: 36px 0 44px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Escenario Inclinado Asimétrico */
.portfolio-marquee-stage {
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: rotate(-1.5deg) scale(1.02);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.marquee-row {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.marquee-track-left {
  animation: marquee-left 65s linear infinite;
}

.marquee-track-right {
  animation: marquee-right 60s linear infinite;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

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

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

/* Tarjetas Compactas de Alta Densidad para el Marquee */
.marquee-card {
  width: 350px;
  flex-shrink: 0;
  background: #0e0e14;
  border: 1px solid var(--border-card);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.marquee-card:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background-color: #161622;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 16px rgba(255, 255, 255, 0.08);
  /* Sin transform en la tarjeta para evitar desajustes en el hit-test del carrusel */
  transform: translate3d(0, 0, 0);
}

.marquee-img-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #0d0d12;
  border-bottom: 1px solid var(--border-subtle);
  transform: translate3d(0, 0, 0);
}

.marquee-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: grayscale(15%) contrast(105%);
}

.marquee-card:hover .marquee-img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(110%);
}

.marquee-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 3px 7px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.marquee-info {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
}

.marquee-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.marquee-tag {
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.marquee-ref {
  color: var(--text-dim);
}

.marquee-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.marquee-desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.marquee-link-bar {
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
}

.marquee-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.marquee-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Barra de Controles y Botón Expandir */
.portfolio-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.marquee-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s infinite ease-in-out;
}

.btn-toggle-all-nodes {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border: 1px solid var(--border-card);
  background: rgba(14, 14, 18, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s var(--ease-technical);
}

.btn-toggle-all-nodes:hover {
  background: #EDEDED;
  color: #050505;
  border-color: #EDEDED;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.btn-toggle-all-nodes .toggle-chevron {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-toggle-all-nodes.is-active .toggle-chevron {
  transform: rotate(180deg);
}

/* Cajón Expandible de la Matriz Completa */
.portfolio-matrix-drawer {
  display: none;
  margin-top: 40px;
}

.portfolio-matrix-drawer.is-open {
  display: block;
  animation: fadeInMatrix 0.4s ease forwards;
}

@keyframes fadeInMatrix {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Filtros por Categoría en el Drawer */
.portfolio-filter-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.active {
  color: #050505;
  background: #EDEDED;
  border-color: #EDEDED;
  font-weight: 600;
}

/* Grid Completo de Tarjetas en Drawer */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.showcase-card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease, opacity 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.showcase-card.is-filtered-out {
  display: none;
}

.showcase-card:hover {
  border-color: var(--border-card-hover);
  background-color: var(--surface-card-hover);
  transform: translateY(-4px);
}

.showcase-img-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #0d0d12;
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: grayscale(20%) contrast(105%);
}

.showcase-card:hover .showcase-img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(110%);
}

.showcase-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 8px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.showcase-info {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 16px;
}

.showcase-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.showcase-tag {
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.showcase-ref {
  color: var(--text-dim);
}

.showcase-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.showcase-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  flex-grow: 1;
}

.showcase-link-bar {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.showcase-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.link-arrow {
  font-size: 1rem;
  margin-left: 6px;
}

/* ===================================================================
   CONTACTO DIRECTO TÉCNICO & WHATSAPP
   =================================================================== */
.contact-section {
  padding-bottom: 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-card-main {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #22c55e;
  letter-spacing: 0.05em;
}

.contact-badge-live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.contact-telemetry {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.contact-main-title {
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.contact-main-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-top: 10px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-primary);
  color: #050505;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-subcard {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.subcard-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.subcard-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.subcard-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.social-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.social-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #EDEDED;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
  transition: all 0.22s var(--ease-technical);
}

/* Facebook: Borde y Tinte Azul Oficial (#1877F2) */
.social-pill-facebook {
  border: 1px solid rgba(24, 119, 242, 0.5);
  background: rgba(24, 119, 242, 0.07);
}

.social-pill-facebook:hover {
  border-color: #1877F2;
  color: #FFFFFF;
  background-color: rgba(24, 119, 242, 0.18);
  box-shadow: 0 0 18px rgba(24, 119, 242, 0.45);
  transform: translateY(-2px);
}

/* WhatsApp: Borde y Tinte Verde Oficial (#25D366) */
.social-pill-whatsapp {
  border: 1px solid rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.07);
}

.social-pill-whatsapp:hover {
  border-color: #25D366;
  color: #FFFFFF;
  background-color: rgba(37, 211, 102, 0.18);
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}

/* Portal Web: Borde y Tinte Verde Esmeralda Mindevs (#10B981) */
.social-pill-web {
  border: 1px solid rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.07);
}

.social-pill-web:hover {
  border-color: #10B981;
  color: #FFFFFF;
  background-color: rgba(16, 185, 129, 0.18);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

/* ===================================================================
   RESPONSIVE (Mobile & Tablet Adaptation)
   =================================================================== */
@media (max-width: 1200px) {
  .services-grid,
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 40px 24px;
  }

  .hero-column {
    position: static;
    top: auto;
    padding-right: 0;
  }

  .featured-stream-viewport {
    height: auto;
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
    overscroll-behavior: auto;
    cursor: default;
    padding: 0;
  }

  .stream-clone-card {
    display: none !important;
  }

  .stream-telemetry-bar {
    justify-content: flex-end;
    padding-top: 14px;
  }

  .stream-hint {
    display: none;
  }

  .card-offset-1,
  .card-offset-2,
  .card-offset-3,
  .card-offset-4 {
    margin-left: 0;
  }

  .manifest-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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

  .portfolio-marquee-stage {
    transform: rotate(-1deg) scale(1.01);
    gap: 16px;
  }

  .marquee-card {
    width: 290px;
  }

  .marquee-img-container {
    height: 155px;
  }

  .portfolio-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

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

  .tech-section {
    padding: 70px 24px;
  }

  .contact-card-main {
    padding: 32px 24px;
  }
}

@media (max-width: 860px) {
  .status-bar, .nav-menu {
    display: none;
  }

  /* Header Flotante en Móvil: Cápsula flotante con Blur y Sombra Marcada */
  .header-nav {
    position: sticky;
    top: 10px;
    margin: 10px 14px 14px;
    border-radius: 12px;
    background: rgba(8, 8, 12, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 
      0 12px 36px rgba(0, 0, 0, 0.8),
      0 0 1px rgba(255, 255, 255, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
    z-index: 100;
  }

  .nav-inner {
    padding: 0 14px;
    height: 56px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-cta {
    display: none !important;
  }

  /* Botón de Menú en Header Móvil */
  .nav-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 7px 11px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .nav-mobile-toggle:active {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(0.96);
  }

  .toggle-bars {
    display: flex;
    flex-direction: column;
    gap: 3.5px;
  }

  .toggle-bars span {
    display: block;
    width: 14px;
    height: 1.5px;
    background: #FFFFFF;
    border-radius: 1px;
  }

  .logo-text {
    font-size: 1.15rem;
    letter-spacing: 0.14em;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .split-layout {
    padding: 32px 20px 60px;
  }

  .hero-meta-tag {
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    padding-left: 10px;
    line-height: 1.35;
  }

  .hero-heading {
    font-size: 2.1rem;
    margin-bottom: 16px;
  }

  .hero-paragraph {
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .hero-actions {
    margin-bottom: 24px;
    gap: 10px;
  }

  /* Telemetría Técnica en una sola línea compacta en móvil */
  .telemetry-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .telemetry-item {
    gap: 2px;
  }

  .telemetry-value {
    font-size: 1.15rem;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }

  .telemetry-label {
    font-size: 0.58rem;
    line-height: 1.25;
    letter-spacing: 0.03em;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===================================================================
   ACCIONES FLOTANTES & BOTÓN DE WHATSAPP AL ESTILO DEL SITIO
   =================================================================== */
.mobile-floating-bar {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.drawer-open .mobile-floating-bar {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.fab-btn {
  pointer-events: auto;
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 24px;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s var(--ease-technical), box-shadow 0.2s ease, border-color 0.2s ease;
}

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

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

/* Botón de WhatsApp (Estilo Cyber / Brutalist de MINDEVS) */
.fab-whatsapp-btn {
  background: rgba(12, 12, 16, 0.92);
  border: 1px solid rgba(37, 211, 102, 0.55);
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 18px rgba(37, 211, 102, 0.2);
}

.fab-whatsapp-btn:hover {
  border-color: rgba(37, 211, 102, 0.9);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9), 0 0 25px rgba(37, 211, 102, 0.4);
}

.fab-wa-icon {
  color: #25D366;
  filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.8));
  flex-shrink: 0;
}

.fab-wa-label {
  color: #FFFFFF;
}

/* Anillo de pulso continuo de radar para WhatsApp */
.fab-pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 26px;
  border: 1.5px solid rgba(37, 211, 102, 0.65);
  animation: wa-pulse 2.4s infinite cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

@keyframes wa-pulse {
  0% { transform: scale(0.96); opacity: 0.9; }
  65% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* En Móvil y Tablet: botón flotante en esquina inferior derecha */
@media (max-width: 860px) {
  .mobile-floating-bar {
    left: auto;
    right: 16px;
    bottom: 20px;
    padding: 0;
    justify-content: flex-end;
  }
}

/* ===================================================================
   MODAL / DRAWER DE NAVEGACIÓN MÓVIL (SÓLIDO Y NÍTIDO)
   =================================================================== */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.mobile-nav-content {
  position: relative;
  z-index: 10;
  background-color: #09090D !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 36px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.mobile-nav-drawer.open .mobile-nav-content {
  transform: translateY(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mobile-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background-color: #121218 !important;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.mobile-link-item:active {
  background-color: #1a1a24 !important;
  border-color: rgba(255, 255, 255, 0.35);
}

.mobile-link-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
}

.mobile-link-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mobile-link-title {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
}

.mobile-link-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.mobile-link-arrow {
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.mobile-link-item:active .mobile-link-arrow {
  transform: translateX(4px);
  color: #FFFFFF;
}

.mobile-nav-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-sys-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.mobile-nav-cta {
  display: block;
  text-align: center;
  background: #FFFFFF;
  color: #050505;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* ===================================================================
   MODAL DE ESPECIFICACIÓN TÉCNICA & COMERCIAL (TECHNICAL BRUTALIST)
   =================================================================== */
.modal-card-trigger {
  cursor: pointer;
}

.modal-action-btn {
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-technical);
}

.project-modal.open {
  opacity: 1;
  pointer-events: auto;
}

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

.modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: #09090E;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 1px rgba(255, 255, 255, 0.35);
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.open .modal-card {
  transform: scale(1) translateY(0);
}

/* Header del Modal */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.modal-meta-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.modal-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  letter-spacing: 0.04em;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.02);
}

/* Cuerpo del Modal con Scroll */
.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 0;
}

.modal-subtitle {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.modal-badge-live {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  letter-spacing: 0.06em;
}

/* ===================================================================
   VISTA EN MINIATURA (BROWSER MOCKUP INTERACTIVO)
   =================================================================== */
.modal-preview-wrapper {
  background: #0D0D12;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.modal-preview-toolbar {
  background: #14141B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.browser-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.b-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.b-dot.red { background: #ff5f56; }
.b-dot.yellow { background: #ffbd2e; }
.b-dot.green { background: #27c93f; }

.browser-address {
  background: #09090E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 380px;
}

.address-lock-svg {
  color: var(--text-dim);
  flex-shrink: 0;
}

.address-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #A1A1AA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-switchers {
  display: flex;
  gap: 4px;
  background: #09090E;
  padding: 2px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-switch {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-switch.active {
  background: #FFFFFF;
  color: #050505;
}

.modal-preview-screen {
  position: relative;
  display: block;
  width: 100%;
  height: 230px;
  background: #000000;
  overflow: hidden;
  text-decoration: none;
}

.modal-preview-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  display: block;
}

.modal-preview-screen:hover img {
  transform: scale(1.03);
  filter: brightness(0.9);
}

.preview-hover-cta {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}

.modal-preview-screen:hover .preview-hover-cta {
  opacity: 1;
}

.hover-cta-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  background: #FFFFFF;
  color: #050505;
  padding: 8px 18px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.04em;
  transform: translateY(4px);
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-preview-screen:hover .hover-cta-badge {
  transform: translateY(0);
}

/* ===================================================================
   RESUMEN COMERCIAL & BENEFICIOS
   =================================================================== */
.modal-commercial-box {
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid rgba(255, 255, 255, 0.35);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.commercial-headline {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.4;
}

.commercial-lead {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #D1D5DB;
  margin: 0;
}

.commercial-lead strong {
  color: #FFFFFF;
}

/* Secciones Internas */
.modal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-section-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Grid de Capacidades Comerciales */
.modal-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-value-item {
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.val-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.val-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #181822;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E4E4E7;
  flex-shrink: 0;
}

.val-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

.val-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.val-desc em {
  color: #FFFFFF;
  font-style: normal;
  font-weight: 600;
}

/* ===================================================================
   MODAL AI VIDEO SHOWCASE & TIKTOK MULTIPLATFORM (PEDIDOCLARO)
   =================================================================== */
.modal-video-ads-section {
  margin-top: 4px;
}

.modal-ai-video-box {
  background: linear-gradient(145deg, rgba(20, 20, 28, 0.85) 0%, rgba(10, 10, 15, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.modal-ai-video-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(254, 44, 85, 0.08) 0%, rgba(37, 244, 238, 0.04) 50%, transparent 70%);
  pointer-events: none;
}

.ai-video-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-video-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #00F0FF;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.06em;
}

.ai-video-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.ai-video-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.ai-video-desc {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #D1D5DB;
  margin: 0;
}

.ai-video-desc strong {
  color: #FFFFFF;
}

.ai-video-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ai-video-card {
  background: rgba(14, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.22s var(--ease-technical);
}

.ai-video-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(20, 20, 30, 0.95);
  transform: translateY(-2px);
}

.video-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.video-platform-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
}

.video-platform-tag.tiktok {
  color: #25F4EE;
}

.video-platform-tag.meta {
  color: #1877F2;
}

.video-format-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

.video-card-heading {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.video-card-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.video-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.v-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #A1A1AA;
}

/* Banner de Canal TikTok Oficial */
.tiktok-channel-banner {
  background: rgba(8, 8, 12, 0.9);
  border: 1px solid rgba(254, 44, 85, 0.35);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(254, 44, 85, 0.08);
}

.tiktok-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tiktok-avatar-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FE2C55 0%, #25F4EE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(254, 44, 85, 0.4);
}

.tiktok-channel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tiktok-channel-handle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

.tiktok-verified-tag {
  font-size: 0.65rem;
  color: #25F4EE;
  letter-spacing: 0.04em;
}

.tiktok-channel-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}

.btn-tiktok-channel {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.25) 0%, rgba(37, 244, 238, 0.25) 100%);
  border: 1px solid rgba(254, 44, 85, 0.6);
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s var(--ease-technical);
  box-shadow: 0 0 16px rgba(254, 44, 85, 0.2);
}

.btn-tiktok-channel:hover {
  background: linear-gradient(135deg, #FE2C55 0%, #25F4EE 100%);
  color: #050505;
  border-color: #FFFFFF;
  box-shadow: 0 0 24px rgba(254, 44, 85, 0.5);
  transform: translateY(-2px);
}

/* ===================================================================
   HERO BOX DE DEMO & CREDENCIALES RÁPIDAS
   =================================================================== */
.modal-demo-hero-box {
  background: #0E0E14;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-hero-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.demo-badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  margin-top: 6px;
  flex-shrink: 0;
}

.demo-hero-title {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 2px 0;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.demo-hero-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Quick Creds con 1-click copy */
.demo-quick-creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-cred-card {
  background: #09090E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quick-cred-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-cred-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 700;
}

.btn-copy-cred {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-cred:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-copy-cred.copied {
  background: #FFFFFF;
  color: #050505;
  border-color: #FFFFFF;
}

.quick-cred-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #FFFFFF;
  font-weight: 600;
  word-break: break-all;
}

/* Enlaces de Acción */
.modal-links-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.modal-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-mono);
  transition: all 0.22s var(--ease-technical);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-inline-svg {
  flex-shrink: 0;
}

.cta-url {
  font-size: 0.68rem;
  opacity: 0.8;
}

.cta-arrow {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.modal-cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

.modal-cta-admin {
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  color: #050505;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.12);
}

.modal-cta-admin:hover {
  background: #E4E4E7;
  border-color: #E4E4E7;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.modal-cta-public {
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.modal-cta-public:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* Footer del Modal */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 8, 0.9);
  flex-shrink: 0;
}

.modal-footer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.modal-btn-dismiss {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* Responsividad del Modal */
@media (max-width: 680px) {
  .modal-container {
    padding: 10px;
    align-items: flex-end;
  }

  .modal-card {
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
  }

  .modal-header {
    padding: 12px 16px;
  }

  .modal-body {
    padding: 16px;
    gap: 16px;
  }

  .modal-preview-screen {
    height: 170px;
  }

  .modal-preview-toolbar {
    padding: 6px 10px;
  }

  .browser-address {
    max-width: 160px;
  }

  .preview-switch {
    padding: 3px 6px;
    font-size: 0.62rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-value-grid {
    grid-template-columns: 1fr;
  }

  .demo-quick-creds {
    grid-template-columns: 1fr;
  }

  .modal-links-grid {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .modal-btn-dismiss {
    text-align: center;
    padding: 8px 14px;
  }
}

/* ===================================================================
   ESPECIFICACIONES TÉCNICAS & DIAGRAMAS DE FLUJO DE ENTREGA (SERVICIOS)
   =================================================================== */

/* Contenedor del Diagrama de Flujo (Pipeline de 5 Fases) */
.service-pipeline-wrapper {
  background: rgba(8, 8, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.service-pipeline-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pipeline-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.pipeline-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

/* Grid de Pasos del Pipeline */
.pipeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
}

.pipeline-step-item {
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.22s ease;
}

.pipeline-step-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: #12121c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.step-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-number-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.step-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.step-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}

.step-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.step-pill-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 6px;
  border-radius: 2px;
  align-self: flex-start;
  margin-top: auto;
}

/* Sección de Entregables y Garantías */
.service-guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.guarantee-card {
  background: #09090E;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease;
}

.guarantee-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.guarantee-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFFFFF;
}

.guarantee-icon {
  color: #22c55e;
  flex-shrink: 0;
}

.guarantee-card-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Responsividad de los Diagramas */
@media (max-width: 1024px) {
  .pipeline-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .service-guarantee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .pipeline-steps-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .service-guarantee-grid {
    grid-template-columns: 1fr;
  }
  .service-pipeline-wrapper {
    padding: 14px;
  }
  .pipeline-step-item {
    padding: 12px;
  }
}


