/* ==========================================================================
   ACTIVE THEORY & MATRIX ENGINE — BEN MARTÍNEZ PORTFOLIO DESIGN SYSTEM
   ========================================================================== */

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

:root {
  --bg-black: #08080a;
  --bg-obsidian: #0c0c10;
  --bg-card-at: rgba(16, 16, 24, 0.5);
  --border-at: rgba(255, 255, 255, 0.12);
  --border-at-glow: rgba(26, 255, 117, 0.5);
  
  --color-neon-green: #1aff75;
  --color-red-accent: #ff2d55;
  --color-radar-yellow: #ffcc00;
  --color-whatsapp: #25D366;
  --color-white: #ffffff;
  --color-text-muted: #888899;
  --color-text-subtle: #555566;
  
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif-italic: 'Instrument Serif', Georgia, serif;
  --font-roboto: 'Roboto', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --btn-radius: 4px;
  --card-radius: 16px;
  --container-max-width: 1150px;
}

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

/* OCULTAR EL PUNTERO POR DEFECTO DEL NAVEGADOR PARA REEMPLAZARLO POR EL CROSSHAIR RPG */
html, body, a, button, input, textarea, select, .at-project-card, .inventory-slot-card, .pain-card, .photo-item-marquee, .accordion-header, .dossier-card, #backToTopBtn, #floatingWhatsappBtn, .whatsapp-avatar-badge, .at-hamburger-btn, .software-tool-card {
  cursor: none !important;
}

html {
  font-size: 16px;
  background-color: var(--bg-black);
  color: var(--color-white);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  line-height: 1.5;
  background-color: var(--bg-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* SECCIONES Y CONTENEDORES CON ANCHO UNIFICADO Y EXACTO DE 1150PX */
.bg-obsidian {
  background-color: transparent !important;
}

.at-section {
  width: 100%;
  padding: 90px 24px;
  border-bottom: 1px solid var(--border-at);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: transparent !important;
  box-sizing: border-box;
}

.at-container {
  max-width: var(--container-max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.section-tag-neon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--color-neon-green);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: inline-block;
}

/* ETIQUETA AMARILLO RADAR (#FFCC00) */
.section-tag-yellow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--color-radar-yellow);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: inline-block;
  text-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
}

.framer-section-desc {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 820px;
  margin: 14px auto 0 auto;
}

.framer-section-desc-question {
  font-family: var(--font-roboto);
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  font-weight: 800;
  color: var(--color-neon-green);
  line-height: 1.4;
  margin-top: 18px;
  letter-spacing: -0.3px;
  text-shadow: 0 0 25px rgba(26, 255, 117, 0.35);
}

/* ==========================================================================
   CYBERPUNK / VIDEO GAME CUSTOM CROSSHAIR CURSOR SYSTEM (0MS LAG / INSTANTÁNEO)
   ========================================================================== */

#customGameCursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 999999;
  will-change: transform;
  transform: translate3d(-50%, -50%, 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-neon-green), 0 0 20px var(--color-neon-green);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.cursor-crosshair-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(26, 255, 117, 0.6);
  border-radius: 50%;
  animation: cursorRingRotate 6s linear infinite;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cursor-corner-mark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--color-neon-green);
  border-style: solid;
  transition: all 0.2s ease;
}

.mark-tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.mark-tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.mark-bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.mark-br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

@keyframes cursorRingRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* TARGET LOCK-ON HOVER STATE */
#customGameCursor.hover-lock .cursor-dot {
  background-color: #ffffff;
  transform: scale(1.5);
  box-shadow: 0 0 15px #ffffff, 0 0 25px #1aff75;
}

#customGameCursor.hover-lock .cursor-crosshair-ring {
  border-color: rgba(255, 255, 255, 0.9);
  border-style: solid;
  animation: cursorRingRotate 2s linear infinite;
}

/* ==========================================================================
   1. MATRIX DIGITAL RAIN FULLSCREEN PRELOADER
   ========================================================================== */

#matrixPreloader {
  position: fixed;
  inset: 0;
  background-color: #040406;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

#matrixPreloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#matrixCanvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  opacity: 0.7;
}

.matrix-loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 40px;
  background: rgba(8, 8, 12, 0.88);
  border: 1px solid rgba(26, 255, 117, 0.4);
  backdrop-filter: blur(24px);
  border-radius: var(--card-radius);
  box-shadow: 0 0 60px rgba(26, 255, 117, 0.3);
  max-width: 780px;
  width: 90%;
}

.matrix-loader-title {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--color-neon-green);
  letter-spacing: 2.5px;
  margin-bottom: 20px;
  text-shadow: 0 0 25px rgba(26, 255, 117, 0.8);
  line-height: 1.1;
  text-transform: uppercase;
}

.matrix-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(26, 255, 117, 0.3);
}

.matrix-progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--color-neon-green);
  box-shadow: 0 0 15px var(--color-neon-green);
  transition: width 0.05s linear;
}

.matrix-telemetry-status {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffffff;
  letter-spacing: 1.5px;
}

/* FULLSCREEN INTERACTIVE HTML5 CANVAS BACKGROUND */
#at-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* FULLSCREEN MATRIX CYBERNETIC UMBILICAL CABLES 3D SPINE CANVAS */
#matrixSpineCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

/* ==========================================================================
   2. FUTURISTIC SHOOTING STAR COMET TRAIL CURSOR
   ========================================================================== */

#cometCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Texture Grain Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
  opacity: 0.03;
  mix-blend-mode: overlay;
}

/* ACTIVE THEORY HUD TELEMETRY BRACKETS & CORNER BADGES */
.hud-corner {
  position: fixed;
  z-index: 90;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-subtle);
  letter-spacing: 1px;
  pointer-events: none;
  text-transform: uppercase;
}

.hud-top-left-fixed { top: 76px; left: 24px; }
.hud-bottom-left-fixed { bottom: 16px; left: 24px; }
.hud-bottom-right-fixed { bottom: 16px; right: 85px; }

.hud-bracket {
  color: var(--color-neon-green);
  font-weight: 700;
}

/* ULTRA-SLEEK SUBTLE FLOATING BACK TO TOP & WHATSAPP BUTTONS WITH CYBER AVATAR GLITCH BADGE */
#backToTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  background: rgba(12, 12, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-muted);
  border-radius: 50%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-decoration: none;
  box-sizing: border-box;
}

#backToTopBtn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#backToTopBtn:hover {
  background: rgba(26, 255, 117, 0.15);
  border-color: var(--color-neon-green);
  color: var(--color-neon-green);
  box-shadow: 0 0 25px rgba(26, 255, 117, 0.4);
  transform: translateY(-4px);
}

#backToTopBtn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

#backToTopBtn:hover svg {
  transform: translateY(-2px);
}

/* CONTENEDOR FLOTANTE UNIFICADO DE WHATSAPP CON AVATAR CIBERNÉTICO GLITCH Y EN LÍNEA */
.whatsapp-avatar-badge {
  position: fixed;
  bottom: 84px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 24, 14, 0.92);
  border: 1px solid rgba(37, 211, 102, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 6px 14px 6px 8px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.whatsapp-avatar-badge:hover {
  background: var(--color-whatsapp);
  border-color: var(--color-whatsapp);
  box-shadow: 0 0 35px rgba(37, 211, 102, 0.7);
  transform: translateY(-4px) scale(1.06);
}

.badge-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--color-whatsapp);
  flex-shrink: 0;
}

.badge-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: cyberGlitchAvatar 5s infinite;
}

.whatsapp-avatar-badge:hover .badge-avatar-wrap {
  border-color: #ffffff;
}

/* EFECTO GLITCH EN EL AVATAR CIBERNÉTICO */
@keyframes cyberGlitchAvatar {
  0%, 92%, 100% { transform: translate(0, 0); filter: none; }
  93% { transform: translate(-2px, 1px); filter: hue-rotate(90deg) contrast(150%); }
  95% { transform: translate(2px, -1px); filter: hue-rotate(-90deg) drop-shadow(0 0 8px #25D366); }
  97% { transform: translate(-1px, 2px); filter: invert(20%); }
}

.badge-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  box-shadow: 0 0 8px var(--color-whatsapp);
  border: 1px solid #000000;
}

.whatsapp-avatar-badge:hover .badge-online-dot {
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

.badge-sub-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--color-whatsapp);
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.whatsapp-avatar-badge:hover .badge-sub-text {
  color: #ffffff;
}

.whatsapp-badge-icon {
  width: 20px;
  height: 20px;
  fill: var(--color-whatsapp);
  flex-shrink: 0;
  transition: fill 0.3s ease;
}

.whatsapp-avatar-badge:hover .whatsapp-badge-icon {
  fill: #ffffff;
}

/* Framer Instrument Serif Italic Accent Class & Shimmer Animation */
.serif-italic {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
  font-size: 1.08em;
  letter-spacing: 0;
  display: inline-block;
  transition: text-shadow 0.3s ease;
}

.shimmer-effect {
  animation: textShimmerGlow 4s ease-in-out infinite alternate;
}

@keyframes textShimmerGlow {
  0% {
    color: #ffffff;
    text-shadow: 0 0 0px rgba(255, 255, 255, 0);
  }
  50% {
    color: #ffffff;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.4), 0 0 30px rgba(26, 255, 117, 0.2);
  }
  100% {
    color: #ffffff;
    text-shadow: 0 0 0px rgba(255, 255, 255, 0);
  }
}

/* ==========================================================================
   FULL-WIDTH GLASSMORPHISM HEADER BAR & HAMBURGER MENU SYSTEM
   ========================================================================== */

.at-nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(8, 8, 12, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-at);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.at-nav-header.scrolled {
  background: rgba(6, 6, 9, 0.94);
  border-bottom-color: rgba(26, 255, 117, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

.at-nav-bar-inner {
  max-width: 1280px;
  width: 100%;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-start;
}

.brand-logo {
  font-family: var(--font-roboto);
  font-weight: 900;
  font-size: 15px;
  color: #FFFFFF;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo-subtext {
  color: var(--color-neon-green);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

/* BOTÓN DE HAMBURGUESA SCI-FI EN EL CENTRO EXACTO DE LA CABECERA */
.at-hamburger-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-at);
  color: var(--color-neon-green);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.nav-right-group {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--btn-radius);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.at-hamburger-btn:hover, .at-hamburger-btn.active {
  background: rgba(26, 255, 117, 0.12);
  border-color: var(--color-neon-green);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(26, 255, 117, 0.3);
}

.at-hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.at-hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-neon-green);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.at-hamburger-btn.active .at-hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.at-hamburger-btn.active .at-hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.at-hamburger-btn.active .at-hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-right-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* BOTÓN DEL HEADER NUNCA CORTADO NI RECORTADO */
.at-btn-cyber {
  background: transparent;
  border: 1px solid var(--color-neon-green);
  color: var(--color-neon-green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s ease;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.at-btn-cyber:hover {
  background: var(--color-neon-green);
  color: #000000;
  box-shadow: 0 0 20px rgba(26, 255, 117, 0.5);
}

/* FULLSCREEN HAMBURGER NAV OVERLAY MODAL — 70% TRANSPARENTE CON EFECTO GLASS */
#hamburgerMenuOverlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(8, 8, 14, 0.70);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

#hamburgerMenuOverlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hamburger-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.hamburger-nav-link {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: #dddde8;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
  padding: 6px 14px;
}

.hamburger-nav-link:hover {
  color: var(--color-neon-green);
  transform: scale(1.06);
  text-shadow: 0 0 15px rgba(26, 255, 117, 0.6);
}

/* ==========================================================================
   HERO SECTION & TERMINATOR SCANNER
   ========================================================================== */

.at-hero-section {
  width: 100vw;
  min-height: 100vh;
  position: relative;
  padding: 160px 24px 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  background: transparent !important;
}

.at-hero-container {
  max-width: var(--container-max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.at-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-at);
  border-radius: var(--btn-radius);
  padding: 6px 18px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-neon-green);
  letter-spacing: 1.5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-neon-green);
  box-shadow: 0 0 12px var(--color-neon-green);
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.2); }
}

.at-hero-title {
  font-family: var(--font-roboto);
  font-weight: 900;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: -1.5px;
}

.at-hero-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 820px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* HERO BUTTON DIMENSIONS */
.at-hero-cta-row {
  display: flex;
  gap: 18px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.at-btn-primary {
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--color-neon-green);
  color: #000000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  padding: 0 32px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s ease;
  box-shadow: 0 0 25px rgba(26, 255, 117, 0.3);
  border: 1px solid var(--color-neon-green);
  white-space: nowrap;
}

.at-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(26, 255, 117, 0.6);
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

/* HERO SECONDARY BUTTON: ROJO Y SIN TELÉFONO */
.at-btn-secondary-red {
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 45, 85, 0.12);
  border: 1px solid var(--color-red-accent);
  color: var(--color-red-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  padding: 0 32px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(255, 45, 85, 0.3);
  white-space: nowrap;
}

.at-btn-secondary-red:hover {
  background: var(--color-red-accent);
  color: #ffffff;
  box-shadow: 0 0 35px rgba(255, 45, 85, 0.6);
  transform: translateY(-3px);
}

.at-portrait-container {
  position: relative;
  width: 100%;
  max-width: var(--container-max-width);
  display: flex;
  align-items: center;
  justify-content: center;
}

.at-portrait-card {
  position: relative;
  width: 100%;
  height: 540px;
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, rgba(14, 14, 20, 0.9) 0%, rgba(6, 6, 8, 0.95) 100%);
  border: 1px solid var(--border-at);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  box-shadow: 0 30px 80px rgba(0,0,0,0.95);
}

/* TERMINATOR CYBERNETIC HUD CROSSHAIR RETICLES */
.terminator-hud-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: 
    radial-gradient(circle at 50% 40%, rgba(26, 255, 117, 0.05) 0%, transparent 70%),
    linear-gradient(rgba(26, 255, 117, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 255, 117, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px, 30px 30px;
}

.terminator-reticle {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--color-neon-green);
  letter-spacing: 1px;
  opacity: 0.75;
}

.reticle-top-left { top: 20px; left: 24px; }
.reticle-top-right { top: 20px; right: 24px; text-align: right; }

.laser-scan-beam-single {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, transparent 0%, #1aff75 50%, transparent 100%);
  box-shadow: 0 0 30px #1aff75, 0 0 60px #1aff75;
  z-index: 6;
  opacity: 0;
}

.start-scan .laser-scan-beam-single {
  animation: terminatorScan6s 5.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) 0.2s 1 forwards;
}

@keyframes terminatorScan6s {
  0% { top: -5%; opacity: 1; }
  30% { top: 102%; opacity: 1; }
  60% { top: -5%; opacity: 1; }
  90% { top: 102%; opacity: 1; }
  100% { top: 105%; opacity: 0; }
}

.portrait-cutout-img, .video-hero-elem {
  height: 100%;
  max-height: 540px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.9));
}

.hud-overlay-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 5;
  text-align: left;
  background: rgba(8, 8, 12, 0.88);
  border: 1px solid var(--border-at);
  backdrop-filter: blur(16px);
  padding: 12px 20px;
  border-radius: var(--btn-radius);
  font-family: var(--font-mono);
}

.hud-tag-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--color-neon-green);
  display: block;
}

.hud-tag-sub {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* TERMINATOR SKILL BADGES DENTRO DEL RECUADRO DE LA IMAGEN */
.terminator-skill-box {
  position: absolute;
  z-index: 5;
  background: rgba(8, 8, 14, 0.85);
  border: 1px solid rgba(26, 255, 117, 0.4);
  backdrop-filter: blur(14px);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(26, 255, 117, 0.15);
  max-width: 280px;
  opacity: 0;
  transform: translateY(15px);
}

.skill-box-left { top: 70px; left: 30px; }
.skill-box-right { top: 210px; right: 30px; }

.start-scan .skill-box-left { animation: terminatorLockOn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards; }
.start-scan .skill-box-right { animation: terminatorLockOn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards; }

@keyframes terminatorLockOn {
  0% { opacity: 0; transform: translateY(15px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.terminator-badge-header {
  font-size: 10px;
  font-weight: 800;
  color: var(--color-neon-green);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.terminator-skill-list { display: flex; flex-direction: column; gap: 4px; }
.terminator-skill-item { font-size: 11px; color: #ffffff; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.terminator-skill-item::before { content: '>'; color: var(--color-neon-green); font-weight: 900; }

/* ==========================================================================
   SECCIÓN 2: PAIN SECTION, OPERATIVOS Y SERVICIOS — ANCHO UNIFICADO EXACTO (1150PX)
   ========================================================================== */

.pain-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  max-width: var(--container-max-width);
  margin-top: 20px;
}

.pain-card {
  position: relative;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.worm-border-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  border-radius: var(--card-radius);
}

.worm-line {
  fill: none;
  stroke: var(--color-neon-green);
  stroke-width: 2.2px;
  stroke-dasharray: 450 650;
  stroke-dashoffset: 650;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pain-card:hover .worm-line {
  opacity: 1;
  filter: drop-shadow(0 0 6px #1aff75);
  animation: singlePassBeam 1.3s cubic-bezier(0.25, 1, 0.5, 1) 1 forwards;
}

@keyframes singlePassBeam {
  0% { stroke-dashoffset: 650; }
  100% { stroke-dashoffset: 0; }
}

/* EFECTO GLASS AL 50% AL HACER HOVER SOBRE LAS TARJETAS */
.pain-card:hover {
  background: rgba(16, 16, 24, 0.5) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(26, 255, 117, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(26, 255, 117, 0.15);
}

.pain-card-inner { position: relative; z-index: 2; }
.pain-tag-red { font-family: var(--font-mono); font-size: 12px; font-weight: 800; color: var(--color-neon-green); letter-spacing: 1.5px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pain-card h3 { font-family: var(--font-roboto); font-size: 24px; font-weight: 900; color: #ffffff; margin-bottom: 20px; text-transform: uppercase; letter-spacing: -0.5px; }
.pain-bullet-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.pain-bullet-list li { font-size: 15px; color: #e2e2ec; line-height: 1.6; position: relative; padding-left: 24px; font-weight: 400; }
.pain-bullet-list li::before { content: '✕'; position: absolute; left: 0; color: #ff5555; font-weight: 900; font-size: 13px; }

/* RADARES HUD */
.no-signal-radar, .weak-signal-radar, .hazard-random-radar {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 10px 14px; border-radius: 8px;
}
.no-signal-radar { background: rgba(255, 50, 50, 0.04); border: 1px dashed rgba(255, 80, 80, 0.35); }
.weak-signal-radar { background: rgba(255, 204, 0, 0.04); border: 1px dashed rgba(255, 204, 0, 0.4); }
.hazard-random-radar { background: rgba(180, 70, 255, 0.05); border: 1px dashed rgba(180, 70, 255, 0.4); }

.radar-circle-grid {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 80, 80, 0.4);
  background: radial-gradient(circle, rgba(255,50,50,0.08) 0%, transparent 70%); flex-shrink: 0; overflow: hidden;
}
.radar-yellow { border-color: rgba(255, 204, 0, 0.5); background: radial-gradient(circle, rgba(255, 204, 0, 0.1) 0%, transparent 70%); }
.radar-purple { border-color: rgba(180, 70, 255, 0.5); background: radial-gradient(circle, rgba(180, 70, 255, 0.12) 0%, transparent 70%); display: flex; align-items: center; justify-content: center; }

.radar-sweep-beam { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(255, 80, 80, 0.6) 0deg, transparent 55deg); border-radius: 50%; animation: radarRotateSweep 2.2s linear infinite; }
.beam-yellow { background: conic-gradient(from 0deg, rgba(255, 204, 0, 0.7) 0deg, transparent 55deg); }
.beam-purple { background: conic-gradient(from 0deg, rgba(180, 70, 255, 0.75) 0deg, transparent 60deg); }

.dice-hud-icon { font-size: 14px; z-index: 2; opacity: 0.85; animation: dicePulse 1.8s ease-in-out infinite alternate; }
@keyframes dicePulse { 0% { transform: scale(0.85) rotate(-10deg); opacity: 0.6; } 100% { transform: scale(1.1) rotate(10deg); opacity: 1; } }
@keyframes radarRotateSweep { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.pulse-red-dot, .pulse-yellow-dot, .pulse-purple-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; }
.pulse-red-dot { background: #ff5555; box-shadow: 0 0 8px #ff5555; animation: pulseGlowRed 1.5s infinite alternate; }
.pulse-yellow-dot { background: #ffcc00; box-shadow: 0 0 8px #ffcc00; animation: pulseGlowYellow 1.5s infinite alternate; }
.pulse-purple-dot { background: #b446ff; box-shadow: 0 0 8px #b446ff; animation: pulseGlowPurple 1.5s infinite alternate; }
@keyframes pulseGlowRed { 0% { opacity: 0.3; } 100% { opacity: 1; } }
@keyframes pulseGlowYellow { 0% { opacity: 0.3; } 100% { opacity: 1; } }
@keyframes pulseGlowPurple { 0% { opacity: 0.3; } 100% { opacity: 1; } }

.radar-telemetry-text { font-family: var(--font-mono); font-size: 10px; color: var(--color-text-muted); line-height: 1.4; }
.no-signal-status { color: #ff6666; font-weight: 800; letter-spacing: 0.5px; display: block; margin-top: 2px; }
.weak-signal-status { color: #ffcc00; font-weight: 800; letter-spacing: 0.5px; display: block; margin-top: 2px; }
.hazard-random-status { color: #c875ff; font-weight: 800; letter-spacing: 0.5px; display: block; margin-top: 2px; }

/* ==========================================================================
   SECCIÓN 3: PANTALLA HOLOGRÁFICA (ANCHO UNIFICADO DE 1150PX)
   ========================================================================== */

.revelation-holo-command-center {
  position: relative; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px;
  background: transparent !important; border: 1px solid rgba(26, 255, 117, 0.3); border-radius: var(--card-radius);
  padding: 48px; box-shadow: 0 0 40px rgba(26, 255, 117, 0.08), inset 0 0 25px rgba(26, 255, 117, 0.03);
  overflow: hidden; opacity: 0; transition: opacity 0.5s ease, border-color 0.8s ease, box-shadow 0.8s ease;
  max-width: var(--container-max-width); width: 100%; margin: 0 auto; box-sizing: border-box;
}

.revelation-holo-command-center.holo-revealed {
  opacity: 1; border-color: rgba(26, 255, 117, 0.45); box-shadow: 0 0 60px rgba(26, 255, 117, 0.16), inset 0 0 35px rgba(26, 255, 117, 0.05); animation: holoFlicker 6s infinite alternate 1.2s;
}

.revelation-holo-command-center::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(0deg, rgba(26, 255, 117, 0.03) 0px, rgba(26, 255, 117, 0.03) 1px, transparent 1px, transparent 4px);
}

.holo-corner-bracket {
  position: absolute; width: 24px; height: 24px; border-color: var(--color-neon-green); border-style: solid;
  pointer-events: none; z-index: 5; opacity: 0; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.2);
  transition: all 0.85s cubic-bezier(0.16, 1, 0.3, 1); filter: drop-shadow(0 0 10px #1aff75);
}

.corner-tl { border-width: 2px 0 0 2px; }
.corner-tr { border-width: 2px 2px 0 0; }
.corner-bl { border-width: 0 0 2px 2px; }
.corner-br { border-width: 0 2px 2px 0; }

.revelation-holo-command-center.holo-revealed .corner-tl { top: 14px; left: 14px; transform: translate(0, 0) scale(1); opacity: 1; }
.revelation-holo-command-center.holo-revealed .corner-tr { top: 14px; left: calc(100% - 38px); transform: translate(0, 0) scale(1); opacity: 1; }
.revelation-holo-command-center.holo-revealed .corner-bl { top: calc(100% - 38px); left: 14px; transform: translate(0, 0) scale(1); opacity: 1; }
.revelation-holo-command-center.holo-revealed .corner-br { top: calc(100% - 38px); left: calc(100% - 38px); transform: translate(0, 0) scale(1); opacity: 1; }

@keyframes holoFlicker {
  0% { box-shadow: 0 0 50px rgba(26, 255, 117, 0.08), inset 0 0 30px rgba(26, 255, 117, 0.03); }
  50% { box-shadow: 0 0 70px rgba(26, 255, 117, 0.18), inset 0 0 45px rgba(26, 255, 117, 0.07); }
  100% { box-shadow: 0 0 50px rgba(26, 255, 117, 0.08), inset 0 0 30px rgba(26, 255, 117, 0.03); }
}

.revelation-left-content, .revelation-right-card {
  opacity: 0; transform: translateY(20px); filter: blur(6px); transition: opacity 0.7s ease 0.45s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, filter 0.7s ease 0.45s;
}

.revelation-holo-command-center.holo-revealed .revelation-left-content,
.revelation-holo-command-center.holo-revealed .revelation-right-card { opacity: 1; transform: translateY(0); filter: blur(0); }

.revelation-left-content { position: relative; z-index: 2; }
.revelation-lead-text { font-size: 18px; color: #ffffff; line-height: 1.7; margin-bottom: 20px; font-weight: 500; }
.text-neon-highlight { color: var(--color-neon-green); font-weight: 700; }
.revelation-sub-text { font-size: 15px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 32px; }

.pillars-clean-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
.pillar-clean-item { display: flex; align-items: flex-start; gap: 16px; }
.pillar-icon-wrap { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.neon-svg-icon { width: 38px; height: 38px; filter: drop-shadow(0 0 8px rgba(26, 255, 117, 0.6)); }

/* ANIMACIÓN DE ENTRADA ÚNICA DE 1 SOLA VEZ PARA LOS ICONOS (SIN BUCLE INFINITO) */
.neon-stroke-anim {
  stroke-dasharray: 80;
  stroke-dashoffset: 160;
  animation: neonEntranceStroke 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1 forwards;
}

.neon-stroke-anim-fast {
  stroke-dasharray: 60;
  stroke-dashoffset: 120;
  animation: neonEntranceStroke 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1 forwards;
}

@keyframes neonEntranceStroke {
  0% { stroke-dashoffset: 160; }
  100% { stroke-dashoffset: 0; }
}

.pillar-clean-title { font-family: var(--font-roboto); font-size: 16px; font-weight: 800; color: #ffffff; margin-bottom: 4px; letter-spacing: -0.3px; }
.pillar-clean-desc { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }

.revelation-right-card {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center;
  background: rgba(8, 20, 14, 0.15) !important; border: 1px solid rgba(26, 255, 117, 0.35); border-radius: var(--card-radius);
  padding: 32px; text-align: left; box-shadow: inset 0 0 20px rgba(26, 255, 117, 0.05);
}

.hud-mono-tag { font-family: var(--font-mono); font-size: 11px; color: var(--color-neon-green); font-weight: 700; display: block; margin-bottom: 12px; }
.revelation-card-title { font-family: var(--font-roboto); font-size: 22px; font-weight: 900; color: #ffffff; margin-bottom: 14px; text-transform: uppercase; }
.revelation-card-text { font-size: 13px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 24px; }

/* ==========================================================================
   SECCIÓN HERRAMIENTAS: EQUIPMENT & RPG CHARACTER STATS INVENTORY HUD (ANCHO UNIFICADO DE 1150PX)
   ========================================================================== */

.tools-inventory-screen {
  position: relative; width: 100%; max-width: var(--container-max-width); margin: 0 auto; box-sizing: border-box; display: grid; grid-template-columns: 290px 1fr 400px; gap: 24px;
  background: transparent !important; border: 1px solid rgba(26, 255, 117, 0.3); border-radius: var(--card-radius); padding: 32px 28px;
  box-shadow: 0 0 40px rgba(26, 255, 117, 0.08), inset 0 0 25px rgba(26, 255, 117, 0.03); overflow: hidden; opacity: 0;
  transition: opacity 0.5s ease, border-color 0.8s ease, box-shadow 0.8s ease;
}

.tools-inventory-screen.inventory-revealed {
  opacity: 1; border-color: rgba(26, 255, 117, 0.45); box-shadow: 0 0 60px rgba(26, 255, 117, 0.16), inset 0 0 35px rgba(26, 255, 117, 0.05); animation: holoFlicker 6s infinite alternate 1.2s;
}

.tools-inventory-screen.inventory-revealed .corner-tl { top: 14px; left: 14px; transform: translate(0, 0) scale(1); opacity: 1; }
.tools-inventory-screen.inventory-revealed .corner-tr { top: 14px; left: calc(100% - 38px); transform: translate(0, 0) scale(1); opacity: 1; }
.tools-inventory-screen.inventory-revealed .corner-bl { top: calc(100% - 38px); left: 14px; transform: translate(0, 0) scale(1); opacity: 1; }
.tools-inventory-screen.inventory-revealed .corner-br { top: calc(100% - 38px); left: calc(100% - 38px); transform: translate(0, 0) scale(1); opacity: 1; }

.tools-inventory-screen.inventory-revealed .inventory-sidebar,
.tools-inventory-screen.inventory-revealed .inventory-center-hero,
.tools-inventory-screen.inventory-revealed .inventory-grid-column {
  opacity: 1; transform: translateY(0); filter: blur(0);
}

.inventory-sidebar, .inventory-center-hero, .inventory-grid-column {
  opacity: 0; transform: translateY(20px); filter: blur(6px); transition: opacity 0.7s ease 0.45s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, filter 0.7s ease 0.45s;
}

.inventory-sidebar { display: flex; flex-direction: column; gap: 14px; border-right: 1px solid rgba(26, 255, 117, 0.2); padding-right: 20px; }
.operator-badge-header { font-family: var(--font-mono); font-size: 11px; color: var(--color-neon-green); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; margin-bottom: 8px; }
.operator-title-name { font-family: var(--font-roboto); font-size: 22px; font-weight: 900; color: #ffffff; letter-spacing: -0.5px; text-align: center; }

.rpg-class-box {
  background: rgba(255, 204, 0, 0.05);
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: var(--btn-radius);
  padding: 10px 12px;
  font-family: var(--font-mono);
}

.rpg-class-label { font-size: 9px; color: var(--color-radar-yellow); font-weight: 800; letter-spacing: 1px; }
.rpg-class-val { font-size: 12px; font-weight: 900; color: #ffffff; margin-top: 2px; }
.rpg-class-sub { font-size: 10px; color: var(--color-text-muted); line-height: 1.3; margin-top: 4px; }

.stat-item-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: rgba(26, 255, 117, 0.04); border: 1px solid rgba(26, 255, 117, 0.2); border-radius: var(--btn-radius); font-family: var(--font-mono); }
.stat-label { font-size: 10px; color: var(--color-text-muted); }
.stat-val { font-size: 11px; font-weight: 800; color: var(--color-neon-green); }

.inventory-center-hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.cyber-character-avatar-wrap { position: relative; width: 100%; height: 350px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; }
.cyber-avatar-video, .cyber-avatar-img { height: 100%; max-height: 350px; width: 100%; object-fit: cover; object-position: center; border-radius: 12px; filter: drop-shadow(0 0 25px rgba(26, 255, 117, 0.3)); }
.avatar-laser-scan-circle { position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 1px dashed rgba(26, 255, 117, 0.35); animation: radarRotateSweep 8s linear infinite; pointer-events: none; }

/* NUEVO BANNER DE LEVEL UP Y PODER DE COMBATE DEBAJO DEL AVATAR */
.rpg-lvlup-combat-banner {
  width: 100%;
  margin-top: 14px;
  background: rgba(8, 20, 14, 0.45);
  border: 1px solid rgba(26, 255, 117, 0.4);
  border-radius: var(--card-radius);
  padding: 14px 16px;
  box-shadow: 0 0 25px rgba(26, 255, 117, 0.12), inset 0 0 15px rgba(26, 255, 117, 0.04);
  box-sizing: border-box;
}

.lvlup-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.lvlup-title {
  font-family: var(--font-mono);
  font-size: clamp(9px, 2.8vw, 11px);
  font-weight: 800;
  color: var(--color-neon-green);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.lvlup-badge-senior {
  font-family: var(--font-mono);
  font-size: clamp(8px, 2.5vw, 10px);
  font-weight: 900;
  color: #ffffff;
  background: rgba(26, 255, 117, 0.2);
  border: 1px solid var(--color-neon-green);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.lvlup-exp-desc {
  font-family: var(--font-roboto);
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}

.inventory-grid-column { display: flex; flex-direction: column; gap: 10px; width: 100%; box-sizing: border-box; }

/* TARJETAS DE DESTREZAS CON MARGEN Y ESPACIADO PERFECTO EN ANDROID Y APPLE */
.rpg-skill-allocation-card {
  position: relative; background: rgba(8, 20, 14, 0.35); border: 1px solid rgba(26, 255, 117, 0.25); border-radius: 10px;
  padding: 10px 14px; display: flex; flex-direction: column; gap: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; box-sizing: border-box; width: 100%;
}

.rpg-skill-allocation-card:hover {
  background: rgba(26, 255, 117, 0.08); border-color: var(--color-neon-green); transform: translateX(3px); box-shadow: 0 0 20px rgba(26, 255, 117, 0.25);
}

.rpg-skill-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.rpg-skill-title-wrap { display: flex; align-items: center; gap: 8px; flex-grow: 1; min-width: 0; }
.rpg-skill-code { font-family: var(--font-mono); font-size: 10px; font-weight: 900; color: var(--color-neon-green); background: rgba(26, 255, 117, 0.1); padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.rpg-skill-name { font-family: var(--font-roboto); font-size: clamp(11px, 2.5vw, 13px); font-weight: 800; color: #ffffff; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rpg-points-allocated {
  font-family: var(--font-mono); font-size: 10px; font-weight: 900; color: var(--color-neon-green);
  background: rgba(26, 255, 117, 0.12); border: 1px solid rgba(26, 255, 117, 0.4); padding: 2px 6px; border-radius: 4px; flex-shrink: 0;
}

.rpg-skill-bar-track { width: 100%; height: 5px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; overflow: hidden; margin-top: 2px; }
.rpg-skill-bar-fill { width: 100%; height: 100%; background: var(--color-neon-green); box-shadow: 0 0 10px var(--color-neon-green); }

/* ==========================================================================
   SLIDER MARQUEE INFINITO DE HERRAMIENTAS ESTILO MARCAS QUE CONFIAN / MARCA DE AGUA
   ========================================================================== */

.software-marquee-section {
  width: 100vw;
  padding: 42px 0;
  background: transparent !important;
  border-top: 1px solid var(--border-at);
  border-bottom: 1px solid var(--border-at);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.software-marquee-track-wrapper {
  position: relative;
  overflow: hidden;
  width: 100vw;
  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%);
}

.software-marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: scrollLeftTrack 35s linear infinite;
}

.software-marquee-track-wrapper:hover .software-marquee-track {
  animation-play-state: paused !important;
}

.software-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(16, 16, 24, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--card-radius);
  padding: 16px 24px;
  min-width: 130px;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.software-tool-card:hover {
  background: rgba(26, 255, 117, 0.12);
  border-color: var(--color-neon-green);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 25px rgba(26, 255, 117, 0.3);
}

.tool-watermark-svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  opacity: 0.6;
  filter: grayscale(30%);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.software-tool-card:hover .tool-watermark-svg {
  opacity: 1;
  filter: grayscale(0%) drop-shadow(0 0 10px rgba(26, 255, 117, 0.6));
  transform: scale(1.1);
}

.tool-name {
  font-family: var(--font-roboto);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  transition: color 0.3s ease;
}

.software-tool-card:hover .tool-name {
  color: #ffffff;
}

/* ==========================================================================
   SECCIÓN DE OPERATIVOS / RED DE AGENTES (ANCHO UNIFICADO DE 1150PX)
   ========================================================================== */

.operatives-single-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: 100%;
  max-width: var(--container-max-width);
  margin-top: 10px;
}

.operative-realidad-card {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.op-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.op-avatar-wrap {
  position: relative;
  width: 100%;
  height: 175px;
  overflow: hidden;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  background: #09090d;
}

.op-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.pain-card:hover .op-avatar-img {
  transform: scale(1.08);
}

.op-status-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(8, 8, 12, 0.88);
  border: 1px solid rgba(26, 255, 117, 0.4);
  backdrop-filter: blur(8px);
  border-radius: var(--btn-radius);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.op-card-body {
  padding: 16px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.op-name {
  font-family: var(--font-roboto);
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.op-role-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-neon-green);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.op-function-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  font-family: var(--font-body);
}

/* ==========================================================================
   SECCIÓN 5: CAROUSEL PROJECT CARDS & MATRIX SENTINEL TENTACLES CANVAS
   ========================================================================== */

.at-carousel-section {
  width: 100vw; background: transparent !important; padding: 60px 0 80px; border-bottom: 1px solid var(--border-at); position: relative; z-index: 2; overflow: hidden;
}

#sentinelArmsCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

.at-section-header { max-width: var(--container-max-width); margin: 0 auto 30px auto; padding: 0 24px; text-align: center; position: relative; z-index: 2; width: 100%; }
.at-section-title { font-family: var(--font-roboto); font-size: clamp(1.8rem, 3.8vw, 3.4rem); font-weight: 900; color: #ffffff; line-height: 1.05; text-transform: uppercase; }

.carousel-track-wrapper {
  position: relative; z-index: 2; overflow: hidden; width: 100vw; padding: 24px 0; margin-top: -10px; margin-bottom: 10px;
  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%);
}

.carousel-track { display: flex; gap: 28px; width: max-content; }
.track-left { animation: scrollLeftTrack 36s linear infinite; }
.track-right { animation: scrollRightTrack 36s linear infinite; }

.hover-pause-container:hover .carousel-track { animation-play-state: paused !important; }

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

.at-project-card {
  position: relative; width: 320px; height: 340px; border-radius: var(--card-radius); overflow: hidden;
  background: rgba(16, 16, 24, 0.4); border: 1px solid var(--border-at); backdrop-filter: blur(12px); flex-shrink: 0; cursor: pointer;
  text-decoration: none; display: block; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.at-project-card:hover { transform: translateY(-6px) scale(1.03); border-color: var(--color-neon-green); box-shadow: 0 18px 45px rgba(26, 255, 117, 0.3); }
.at-project-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.5s ease, filter 0.5s ease; }
.at-project-card:hover img { transform: scale(1.08); filter: brightness(0.7); }

.at-card-hud-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(8,8,14,0.92) 100%);
  padding: 22px 20px; display: flex; flex-direction: column; justify-content: flex-end; color: #ffffff; font-family: var(--font-mono); transition: background 0.35s ease;
}

.at-project-card:hover .at-card-hud-overlay { background: linear-gradient(180deg, rgba(4,4,6,0.35) 0%, rgba(6,6,12,0.96) 100%); }

.at-project-card .project-title { font-family: var(--font-roboto); font-size: 20px; font-weight: 900; color: #ffffff; margin-bottom: 2px; text-transform: uppercase; letter-spacing: -0.5px; }
.at-project-card .project-subtitle { font-family: var(--font-mono); font-size: 11px; color: var(--color-neon-green); font-weight: 700; letter-spacing: 0.5px; }

.project-hover-details { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin-top 0.35s ease; margin-top: 0; }
.at-project-card:hover .project-hover-details { max-height: 140px; opacity: 1; margin-top: 10px; }
.project-full-desc { font-size: 11px; color: #d8d8e6; line-height: 1.45; margin-bottom: 12px; font-family: var(--font-body); }

.btn-glass-view {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px 16px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(26, 255, 117, 0.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--btn-radius); color: var(--color-neon-green); font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px; transition: all 0.25s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.4), inset 0 0 10px rgba(26, 255, 117, 0.1);
}

.btn-glass-view:hover { background: rgba(26, 255, 117, 0.25); border-color: var(--color-neon-green); color: #ffffff; box-shadow: 0 0 22px rgba(26, 255, 117, 0.6), inset 0 0 15px rgba(26, 255, 117, 0.2); }

/* ==========================================================================
   SECCIÓN 6: SERVICIOS CON ESTILO DE TARJETAS DE LA SECCIÓN REALIDAD Y SVG ICONOS NEÓN
   ========================================================================== */

.servicios-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
  max-width: var(--container-max-width);
  margin-top: 20px;
}

.service-card-realidad {
  height: 100%;
}

.service-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.service-target-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--color-neon-green);
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-desc-text {
  font-size: 14px;
  color: #c0c0d0;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-bullet-list li {
  font-size: 14px;
  color: #e2e2ec;
  position: relative;
  padding-left: 22px;
  font-family: var(--font-body);
}

.service-bullet-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--color-neon-green);
  font-weight: 900;
  font-family: var(--font-mono);
}

.service-guarantee-full {
  grid-column: span 2;
  margin-top: 10px;
}

.guarantees-flex-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.guarantee-item-pill {
  background: rgba(26, 255, 117, 0.04);
  border: 1px solid rgba(26, 255, 117, 0.25);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
  color: #ffffff;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s ease;
}

.guarantee-item-pill:hover {
  background: rgba(26, 255, 117, 0.08);
  border-color: var(--color-neon-green);
  transform: translateY(-3px);
}

.guarantee-item-pill .g-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  color: var(--color-neon-green);
}

/* ==========================================================================
   DOSSIER & TRAYECTORIA: SLIDER CON TARJETAS GLASS DE 50% TRANSPARENCIA AL HOVER / 50% GLASS
   ========================================================================== */

.dossier-slider-wrapper {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100vw;
  padding: 20px 0 10px;
  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%);
}

.dossier-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollLeftTrack 42s linear infinite;
}

.dossier-slider-wrapper:hover .dossier-track {
  animation-play-state: paused !important;
}

.dossier-card {
  position: relative;
  width: 320px;
  background: rgba(16, 16, 24, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--card-radius);
  padding: 28px 24px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.dossier-card:hover {
  background: rgba(26, 255, 117, 0.12) !important;
  border-color: var(--color-neon-green);
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(26, 255, 117, 0.25);
}

.dossier-time-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  color: var(--color-neon-green);
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: inline-block;
}

.dossier-card h4 {
  font-family: var(--font-roboto);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.dossier-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  font-family: var(--font-body);
}

/* ==========================================================================
   TERMINAL FAQ & CONSOLE GLASS STYLES (ANCHO UNIFICADO DE 1150PX)
   ========================================================================== */

.at-accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: var(--container-max-width);
}

.accordion-item {
  background: rgba(16, 16, 24, 0.35);
  border: 1px solid var(--border-at);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.accordion-item.active, .accordion-item:hover {
  background: rgba(16, 16, 24, 0.65);
  border-color: var(--border-at-glow);
}

.accordion-header { width: 100%; padding: 24px 30px; background: none; border: none; display: flex; justify-content: space-between; align-items: center; color: #FFFFFF; font-family: var(--font-mono); font-size: 16px; font-weight: 700; text-align: left; }
.acc-title-wrap { display: flex; align-items: center; gap: 16px; }
.acc-num { color: var(--color-neon-green); font-weight: 900; }
.acc-icon { font-size: 22px; color: var(--color-white); transition: transform 0.3s ease; }
.accordion-item.active .acc-icon { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-item.active .accordion-content { max-height: 500px; }
.acc-inner-body { padding: 0 30px 24px 30px; color: var(--color-text-muted); font-size: 14px; line-height: 1.6; border-top: 1px solid var(--border-at); padding-top: 16px; }

.at-contact-console {
  background: rgba(16, 16, 24, 0.5) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-at);
  border-radius: var(--card-radius);
  padding: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  width: 100%;
  max-width: var(--container-max-width);
}

.contact-banner-title { font-family: var(--font-roboto); font-size: 36px; font-weight: 900; color: #ffffff; margin-bottom: 12px; text-transform: uppercase; }
.contact-banner-desc { font-size: 15px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 28px; }
.btn-whatsapp-large { display: inline-flex; align-items: center; gap: 12px; background: #25D366; color: #FFFFFF; font-family: var(--font-mono); font-size: 13px; font-weight: 700; padding: 14px 28px; border-radius: var(--btn-radius); text-decoration: none; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3); }
.contact-right-form form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--color-neon-green); }
.form-group input, .form-group textarea { background: rgba(8, 8, 12, 0.8); border: 1px solid var(--border-at); border-radius: var(--btn-radius); padding: 12px; color: #fff; font-family: var(--font-mono); font-size: 13px; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-neon-green); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   FOOTER CON MARCA DE AGUA PERFECTA: SIN OVERFLOW, EFECTO DE RUIDO POROSO Y SIN SOMBRA VERDE
   ========================================================================== */

.at-footer {
  width: 100%;
  max-width: 100vw;
  background: transparent !important;
  border-top: 1px solid var(--border-at);
  padding: 60px 0 36px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
  box-sizing: border-box;
}

.footer-watermark-wrapper {
  width: 100%;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 0 16px;
  box-sizing: border-box;
}

.footer-watermark-text {
  font-family: var(--font-roboto);
  font-weight: 900;
  font-size: clamp(2.2rem, 8.8vw, 7.8rem);
  color: rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: 3px;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  line-height: 0.9;
  margin-bottom: 24px;
  text-align: center;
  text-shadow: none !important;
  /* EFECTO DE RUIDO Y POROSIDAD SUTIL DE TEXTURA */
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: contrast(150%) brightness(90%);
  opacity: 0.85;
}

.footer-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
}

.footer-logo { font-family: var(--font-roboto); font-weight: 900; font-size: 16px; color: #fff; text-transform: uppercase; }
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-subtle); }

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (1920PX FULL HD, TABLET & MÓVIL PERFECTO ANDROID / APPLE)
   ========================================================================== */

@media (min-width: 1920px) {
  .at-container, .at-nav-bar-inner, .at-hero-container, .revelation-holo-command-center, .tools-inventory-screen, .operatives-single-row, .servicios-grid-2x2, .at-accordion-wrap, .at-contact-console, .footer-inner {
    max-width: 1280px !important;
  }
}

@media (max-width: 1200px) {
  .operatives-single-row { grid-template-columns: repeat(3, 1fr); }
  .tools-inventory-screen { grid-template-columns: 260px 1fr 340px; gap: 16px; padding: 24px 18px; }
}

@media (max-width: 1024px) {
  .servicios-grid-2x2 { grid-template-columns: 1fr; }
  .service-guarantee-full { grid-column: span 1; }
  .guarantees-flex-row { grid-template-columns: 1fr; }
  .tools-inventory-screen { grid-template-columns: 1fr; padding: 24px 18px; width: 100%; }
  .revelation-holo-command-center { grid-template-columns: 1fr; padding: 28px 20px; }
  .inventory-sidebar { border-right: none; border-bottom: 1px solid rgba(26, 255, 117, 0.2); padding-right: 0; padding-bottom: 20px; }
  .inventory-grid-column { width: 100%; }
  .rpg-skill-name { font-size: 12px; white-space: normal; }
  .pain-grid-3 { grid-template-columns: 1fr; }
  .pillars-clean-grid { grid-template-columns: 1fr; }
  .at-contact-console { grid-template-columns: 1fr; }
  .at-project-card { width: 270px; height: 310px; }
  .terminator-skill-box { display: none; }
}

@media (max-width: 768px) {
  .nav-right-action { display: none !important; }
  .at-nav-bar-inner { padding: 12px 18px; }
  .operatives-single-row { grid-template-columns: repeat(2, 1fr); }
  .at-hero-title { font-size: 30px; }
  .at-project-card { width: 250px; height: 300px; }
  .photo-item-marquee { width: 250px; }
  .dossier-card { width: 260px; }
  .footer-watermark-text { font-size: clamp(1.8rem, 6.5vw, 4.5rem); letter-spacing: 1px; }
  #backToTopBtn { bottom: 20px; right: 20px; width: 40px; height: 40px; }
  .whatsapp-floating-group { bottom: 72px; right: 16px; }
  #floatingWhatsappBtn { width: 40px; height: 40px; }
  .badge-title-text { font-size: 10px; }
  .badge-sub-text { font-size: 8px; }
  .badge-avatar-wrap { width: 30px; height: 30px; }
  .hud-bottom-right-fixed { right: 70px; }
  .tools-inventory-screen { padding: 20px 14px; }
  .revelation-holo-command-center { padding: 40px 20px 24px 20px; }
  .revelation-left-content { margin-top: 10px; }
  .rpg-skill-allocation-card { padding: 10px 12px; }
  .lvlup-header-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .lvlup-exp-desc { font-size: 12px; }
  .at-section-title { font-size: clamp(1.4rem, 4.2vw, 2.5rem); }
}

@media (max-width: 480px) {
  .operatives-single-row { grid-template-columns: 1fr; }
  .at-hero-cta-row { flex-direction: column; width: 100%; }
  .at-btn-primary, .at-btn-secondary-red { width: 100%; }
  .tools-inventory-screen { padding: 16px 12px; }
  .revelation-holo-command-center { padding: 36px 16px 20px 16px; }
  .rpg-skill-card-top { gap: 6px; }
  .rpg-skill-code { font-size: 9px; padding: 2px 4px; }
  .rpg-points-allocated { font-size: 9px; padding: 2px 4px; }
  .rpg-skill-name { font-size: 11px; }
}

/* ==========================================================================
   SECCIÓN ARCHIVO COMPLETO DE PROYECTOS (PROYECTOS.HTML)
   ========================================================================== */
.archive-hero-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(26, 255, 117, 0.08) 0%, transparent 70%);
}

.archive-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.filter-btn {
  background: rgba(15, 23, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.filter-btn .filter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: rgba(26, 255, 117, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: rgba(26, 255, 117, 0.12);
  border-color: var(--color-neon-green);
  color: var(--color-neon-green);
  box-shadow: 0 0 15px rgba(26, 255, 117, 0.25);
}

.filter-btn.active .filter-dot {
  background: var(--color-neon-green);
  box-shadow: 0 0 8px var(--color-neon-green);
}

.archive-projects-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

.archive-card {
  background: rgba(15, 23, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.archive-card:hover {
  border-color: rgba(26, 255, 117, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(26, 255, 117, 0.15);
  transform: translateY(-4px);
}

.archive-card-inner {
  display: grid;
  grid-template-columns: 480px 1fr;
  align-items: center;
  min-height: 340px;
}

.archive-media-col {
  padding: 24px;
  height: 100%;
}

/* MARCO DE PORTADAS CON GLITCH SUTIL CIBERNÉTICO */
.archive-media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #040406;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.archive-card:hover .archive-media-frame {
  border-color: rgba(26, 255, 117, 0.6);
  box-shadow: 0 0 25px rgba(26, 255, 117, 0.2);
}

.archive-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  animation: subtleCyberGlitch 6s ease-in-out infinite alternate;
}

@keyframes subtleCyberGlitch {
  0%, 92%, 100% {
    transform: translate(0, 0) scale(1);
    filter: none;
  }
  93% {
    transform: translate(-2px, 1px) scale(1.01);
    filter: drop-shadow(2px 0 0 rgba(255, 45, 85, 0.6)) drop-shadow(-2px 0 0 rgba(26, 255, 117, 0.6));
  }
  95% {
    transform: translate(2px, -1px) scale(1.01);
    filter: drop-shadow(-2px 0 0 rgba(255, 45, 85, 0.6)) drop-shadow(2px 0 0 rgba(26, 255, 117, 0.6));
  }
  97% {
    transform: translate(0, 0) scale(1);
    filter: none;
  }
}

.archive-card:hover .archive-media-img {
  animation: none !important;
  transform: scale(1.03) !important;
  filter: none !important;
}

.archive-card:hover .holo-corner-bracket {
  border-color: var(--color-neon-green);
  opacity: 1;
}

.holo-corner-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(26, 255, 117, 0.6);
  border-style: solid;
  z-index: 5;
  pointer-events: none;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.corner-tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.corner-tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.corner-br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.archive-info-col {
  padding: 32px 40px 32px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-badge-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-neon-green);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.archive-title {
  font-family: var(--font-heading);
  font-size: 26px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.archive-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-neon-yellow);
  margin-bottom: 14px;
  font-weight: 500;
}

.archive-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.archive-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.archive-actions-row {
  display: flex;
  gap: 12px;
}

/* BOTÓN DE FIGMA TRASLÚCIDO EN REPOSO Y CON ILUMINACIÓN AL HOVER */
.archive-btn-figma {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1.2px solid rgba(26, 255, 117, 0.45);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 14px rgba(26, 255, 117, 0.15);
  width: fit-content;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.archive-btn-figma:hover {
  background: var(--color-neon-green);
  color: #000000;
  border-color: var(--color-neon-green);
  box-shadow: 0 0 26px rgba(26, 255, 117, 0.55);
  transform: translateY(-2px);
}

.figma-svg-sm {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.archive-btn-figma:hover .figma-svg-sm {
  transform: scale(1.1);
}

/* SELECTOR DE IDIOMA BILINGÜE CON BANDERAS [ 🇪🇸 ES | 🇺🇸 EN ] */
.lang-switcher-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(26, 255, 117, 0.35);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px rgba(26, 255, 117, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lang-switcher-wrap:hover {
  border-color: var(--color-neon-green);
  box-shadow: 0 0 16px rgba(26, 255, 117, 0.3);
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-btn.active {
  color: var(--color-neon-green);
  text-shadow: 0 0 10px rgba(26, 255, 117, 0.6);
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 10px;
}

.carousel-archive-cta .at-btn-primary {
  color: var(--color-neon-green) !important;
  font-weight: 800 !important;
  background: rgba(26, 255, 117, 0.08) !important;
  border: 1.5px solid var(--color-neon-green) !important;
  box-shadow: 0 0 20px rgba(26, 255, 117, 0.35) !important;
  transition: all 0.3s ease !important;
}

.carousel-archive-cta .at-btn-primary:hover {
  color: #000000 !important;
  background: var(--color-neon-green) !important;
  box-shadow: 0 0 30px rgba(26, 255, 117, 0.6) !important;
}

@media (max-width: 640px) {
  .lang-switcher-wrap {
    padding: 4px 8px;
    font-size: 10px;
  }
  .lang-btn {
    font-size: 10px;
    padding: 1px 2px;
  }
}

/* MEDIA QUERIES RESPONSIVAS DE PROYECTOS.HTML PARA TABLET Y MÓVIL */
@media (max-width: 992px) {
  .archive-card-inner {
    grid-template-columns: 1fr;
  }
  .archive-info-col {
    padding: 0 24px 28px 24px;
  }
  .archive-media-frame {
    min-height: 240px;
  }
}

@media (max-width: 576px) {
  .archive-filter-bar {
    gap: 8px;
  }
  .filter-btn {
    font-size: 10px;
    padding: 8px 12px;
  }
  .archive-media-col {
    padding: 16px;
  }
  .archive-info-col {
    padding: 0 16px 20px 16px;
  }
  .archive-title {
    font-size: 20px;
  }
}

/* ==========================================================================
   AJUSTES DE OPACIDAD PARA CANVAS EN MÓVILES Y TABLETS
   ========================================================================== */
@media (max-width: 992px) {
  #matrixSpineCanvas {
    opacity: 0.15 !important;
  }
  
  #at-canvas {
    opacity: 0.40 !important;
  }
}
