/* ============================================================
   YORVID.CSS — Post-Cyberpunk Creative Portfolio
   ============================================================ */

/* 1. SELF-HOSTED FONTS — Alternox */
@font-face {
  font-family: 'Alternox';
  src: url('alternox-2022-11-27-01-54-38-utc/Alternox-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alternox';
  src: url('alternox-2022-11-27-01-54-38-utc/Alternox-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alternox';
  src: url('alternox-2022-11-27-01-54-38-utc/Alternox-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alternox';
  src: url('alternox-2022-11-27-01-54-38-utc/Alternox-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* 2. CSS VARIABLES */
:root {
  --color-bg:        #0A0A0A;
  --color-surface:   #0C1411;
  --color-surface-2: #191CCE;
  --color-neon:      #11D95A;
  --color-neon-dim:  #00CC6A;
  --color-yellow:    #D7E90C;
  --color-purple:    #8B23DB;
  --color-red:       #E21254;
  --color-white-off: #E6E8E6;
  --color-gray:      #AAAAAA;
  --color-border:    rgba(17, 217, 90, 0.15);
  --glow-neon:       0 0 10px #11D95A, 0 0 30px rgba(17,217,90,0.3);
  --glow-blue:       0 0 10px #191CCE, 0 0 30px rgba(25,28,206,0.3);
  --glow-yellow:     0 0 8px #D7E90C, 0 0 20px rgba(215,233,12,0.2);
  --font-display:    'Alternox', sans-serif;
  --font-mono:       'Alternox', sans-serif;
  --font-body:       'Alternox', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --section-pad: 7rem 0;
  --nav-height: 64px;
}

/* 3. CSS RESET / BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  background-color: var(--color-bg);
  color: var(--color-white-off);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  background: none;
  border: none;
  cursor: none;
  font-family: inherit;
}

/* 4. SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-neon);
  border-radius: 3px;
  box-shadow: var(--glow-neon);
}
::-webkit-scrollbar-thumb:hover {
  background: #fff;
}

/* 5. SECTION CONTAINER */

/* Secciones below-fold: browser skip-renderiza hasta que entran en viewport */
#sobre, #servicios, #portfolio, #proceso, #creativos, #contacto {
  content-visibility: auto;
  contain-intrinsic-size: 0 900px;
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   CUSTOM CURSOR — Geometric Cyberpunk Target
   ============================================================ */

/* Center diamond dot */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 4px;
  height: 4px;
  background: var(--color-neon);
  border-radius: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.1s ease, background 0.2s ease, opacity 0.15s ease;
  box-shadow: var(--glow-neon);
}

/* Outer geometric target — diagonal corners */
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 38px;
  height: 38px;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease, filter 0.2s ease, opacity 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='2' y1='14' x2='14' y2='2' stroke='%2311D95A' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='34' y1='2' x2='46' y2='14' stroke='%2311D95A' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='2' y1='34' x2='14' y2='46' stroke='%2311D95A' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='34' y1='46' x2='46' y2='34' stroke='%2311D95A' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='24' y1='2' x2='24' y2='9' stroke='%2311D95A' stroke-width='1' opacity='0.5'/%3E%3Cline x1='24' y1='39' x2='24' y2='46' stroke='%2311D95A' stroke-width='1' opacity='0.5'/%3E%3Cline x1='2' y1='24' x2='9' y2='24' stroke='%2311D95A' stroke-width='1' opacity='0.5'/%3E%3Cline x1='39' y1='24' x2='46' y2='24' stroke='%2311D95A' stroke-width='1' opacity='0.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 0;
  filter: drop-shadow(0 0 3px rgba(17,217,90,0.5));
  opacity: 0.88;
}

/* Inner spinning diamond ring */
#cursor-ring::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(17,217,90,0.3);
  transform: translate(-50%, -50%) rotate(45deg);
  animation: innerDiamondSpin 5s linear infinite;
}

@keyframes innerDiamondSpin {
  from { transform: translate(-50%, -50%) rotate(45deg); }
  to   { transform: translate(-50%, -50%) rotate(405deg); }
}

#cursor-label {
  position: fixed;
  top: 0; left: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-neon);
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 99997;
  opacity: 0;
  transform: translate(20px, -18px);
  white-space: nowrap;
  transition: opacity 0.2s ease;
  text-shadow: var(--glow-neon);
}

/* Hover — target expands, turns yellow */
body.cursor-hover #cursor-dot {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
}
body.cursor-hover #cursor-ring {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 7px rgba(215,233,12,0.8));
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='2' y1='14' x2='14' y2='2' stroke='%23D7E90C' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='34' y1='2' x2='46' y2='14' stroke='%23D7E90C' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='2' y1='34' x2='14' y2='46' stroke='%23D7E90C' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='34' y1='46' x2='46' y2='34' stroke='%23D7E90C' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='24' y1='2' x2='24' y2='9' stroke='%23D7E90C' stroke-width='1.5' opacity='0.7'/%3E%3Cline x1='24' y1='39' x2='24' y2='46' stroke='%23D7E90C' stroke-width='1.5' opacity='0.7'/%3E%3Cline x1='2' y1='24' x2='9' y2='24' stroke='%23D7E90C' stroke-width='1.5' opacity='0.7'/%3E%3Cline x1='39' y1='24' x2='46' y2='24' stroke='%23D7E90C' stroke-width='1.5' opacity='0.7'/%3E%3C/svg%3E");
}
body.cursor-hover #cursor-label {
  opacity: 1;
}

/* Click — flash yellow diamond */
body.cursor-click #cursor-dot {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg) scale(3);
  background: var(--color-yellow);
  box-shadow: var(--glow-yellow);
}
body.cursor-click #cursor-ring {
  filter: drop-shadow(0 0 10px rgba(215,233,12,0.9));
}

/* Desktop — forzar cursor none en todo sin excepción */
@media (pointer: fine) {
  * { cursor: none !important; }
}

/* Touch devices — restore default cursor y desactivar animaciones decorativas */
@media (pointer: coarse) {
  * { cursor: auto !important; }
  #cursor-dot, #cursor-ring, #cursor-label { display: none; }
  .hero-bg-chips { display: none; }
  .hud-photo-scan { animation: none; }
  .scan-beam { animation: none; }
}

/* ============================================================
   SCANLINES OVERLAY
   ============================================================ */
.scanlines-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  opacity: 0.6;
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99990;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: left;
  max-width: 480px;
  width: 100%;
  padding: 0 2rem;
}

.loader-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.loader-logo-img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(17,217,90,0.7));
  animation: logoPulse 2s ease-in-out infinite;
}

.loader-logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--color-neon);
  text-shadow: var(--glow-neon);
  letter-spacing: 0.05em;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(17,217,90,0.6)); }
  50%       { filter: drop-shadow(0 0 20px rgba(17,217,90,1)); }
}

.loader-lines {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.loader-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-gray);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  letter-spacing: 0.05em;
}

.loader-line.visible {
  opacity: 1;
  transform: translateX(0);
}

.loader-line .prompt {
  color: var(--color-neon);
  margin-right: 0.5rem;
}

.loader-bar {
  color: var(--color-neon);
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

.loader-line.visible .loader-bar {
  opacity: 1;
}

.loader-welcome {
  color: var(--color-neon);
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 9000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: filter 0.3s ease;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(17,217,90,0.5));
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 12px rgba(17,217,90,0.9));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-gray);
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::before { content: '[ '; opacity: 0; transition: opacity 0.2s ease; }
.nav-link::after  { content: ' ]'; opacity: 0; transition: opacity 0.2s ease; }

.nav-link:hover,
.nav-link.active {
  color: var(--color-neon);
}

.nav-link:hover::before,
.nav-link:hover::after,
.nav-link.active::before,
.nav-link.active::after {
  opacity: 1;
}

.nav-link-cta {
  color: var(--color-neon);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.9rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-link-cta:hover {
  background: rgba(17,217,90,0.08);
  box-shadow: var(--glow-neon);
}

.nav-link-cta::before,
.nav-link-cta::after { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 9010;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-neon);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(16px);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--color-gray);
  letter-spacing: 0.1em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.mobile-link:hover {
  color: var(--color-neon);
  text-shadow: var(--glow-neon);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-neon);
  color: #0A0A0A;
  border: 1px solid var(--color-neon);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: var(--glow-neon);
  background: #14f060;
}

.btn-secondary {
  background: transparent;
  color: var(--color-neon);
  border: 1px solid var(--color-neon);
}

.btn-secondary:hover {
  transform: scale(1.02);
  box-shadow: var(--glow-neon);
  background: rgba(17,217,90,0.06);
}

.btn-yellow {
  color: var(--color-yellow);
  border-color: var(--color-yellow);
}
.btn-yellow:hover {
  box-shadow: var(--glow-yellow);
  background: rgba(215,233,12,0.06);
}

.btn-purple {
  color: var(--color-purple);
  border-color: var(--color-purple);
}
.btn-purple:hover {
  box-shadow: 0 0 10px #8B23DB, 0 0 30px rgba(139,35,219,0.3);
  background: rgba(139,35,219,0.06);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* ============================================================
   HUD PANEL
   ============================================================ */
.hud-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hud-panel:hover {
  border-color: rgba(17,217,90,0.4);
  box-shadow: var(--glow-neon);
}

/* Corner brackets */
.hud-panel::before,
.hud-panel::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--color-neon);
  border-style: solid;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hud-panel::before {
  top: -1px; left: -1px;
  border-width: 1.5px 0 0 1.5px;
}

.hud-panel::after {
  top: -1px; right: -1px;
  border-width: 1.5px 1.5px 0 0;
}

.hud-panel:hover::before,
.hud-panel:hover::after {
  opacity: 1;
}

/* Bottom corners via inner spans — applied via JS or pseudo-elements on child */
.hud-panel .hud-corner-bl,
.hud-panel .hud-corner-br {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--color-neon);
  border-style: solid;
  opacity: 0.7;
}
.hud-panel .hud-corner-bl {
  bottom: -1px; left: -1px;
  border-width: 0 0 1.5px 1.5px;
}
.hud-panel .hud-corner-br {
  bottom: -1px; right: -1px;
  border-width: 0 1.5px 1.5px 0;
}

/* ============================================================
   SECTION TYPOGRAPHY
   ============================================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-neon);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white-off);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray);
  margin-bottom: 3.5rem;
  letter-spacing: 0.05em;
}

.neon-dot {
  color: var(--color-neon);
  text-shadow: var(--glow-neon);
}

.neon-highlight {
  color: var(--color-neon);
  text-shadow: var(--glow-neon);
}

.prompt {
  color: var(--color-neon);
  font-family: var(--font-mono);
}

/* ============================================================
   HUD PING
   ============================================================ */
.hud-ping {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
}

.hud-ping-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-neon);
  border-radius: 50%;
  box-shadow: var(--glow-neon);
  position: relative;
  flex-shrink: 0;
}

.hud-ping-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--color-neon);
  animation: ping 1.8s ease-out infinite;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes rotateSlowReverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

@keyframes glitch1 {
  0%, 100% { clip-path: inset(0 0 98% 0); transform: translate(-3px,  0); }
  20%       { clip-path: inset(30% 0 50% 0); transform: translate(3px,  0); }
  40%       { clip-path: inset(60% 0 20% 0); transform: translate(-2px, 0); }
  60%       { clip-path: inset(10% 0 80% 0); transform: translate(2px,  0); }
  80%       { clip-path: inset(80% 0 5%  0); transform: translate(-3px, 0); }
}

@keyframes glitch2 {
  0%, 100% { clip-path: inset(50% 0 30% 0); transform: translate(3px,  0); color: var(--color-red); }
  25%       { clip-path: inset(5%  0 60% 0); transform: translate(-3px, 0); color: var(--color-neon); }
  50%       { clip-path: inset(70% 0 10% 0); transform: translate(2px,  0); color: var(--color-yellow); }
  75%       { clip-path: inset(20% 0 70% 0); transform: translate(-2px, 0); color: var(--color-red); }
}

@keyframes scanMove {
  0%   { top: -20%; }
  100% { top: 110%; }
}

@keyframes scanBeamAnim {
  0%   { transform: translateY(-100%); opacity: 0.6; }
  50%  { opacity: 0.2; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes ping {
  0%   { transform: scale(1); opacity: 0.8; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { opacity: 0; }
}

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

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: var(--glow-neon); }
  50%       { box-shadow: 0 0 20px #11D95A, 0 0 60px rgba(17,217,90,0.5); }
}

@keyframes processLineFill {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes processLineFillV {
  from { height: 0; }
  to   { height: 100%; }
}

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

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* HUD perspective grid bg */
.hud-grid-perspective {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17,217,90,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,217,90,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
  transform: perspective(800px) rotateX(15deg) scaleY(1.4);
  transform-origin: center bottom;
  pointer-events: none;
  opacity: 0.6;
}

/* Scan beam */
.scan-beam {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-neon), transparent);
  opacity: 0.35;
  pointer-events: none;
  animation: scanMove 6s linear infinite;
  z-index: 1;
}

/* HUD corner brackets on viewport */
.hud-corner {
  position: fixed;
  width: 24px;
  height: 24px;
  border-color: rgba(17,217,90,0.5);
  border-style: solid;
  z-index: 100;
  pointer-events: none;
}
.hud-corner-tl { top: 12px; left: 12px;  border-width: 1.5px 0 0 1.5px; }
.hud-corner-tr { top: 12px; right: 12px; border-width: 1.5px 1.5px 0 0; }
.hud-corner-bl { bottom: 12px; left: 12px;  border-width: 0 0 1.5px 1.5px; }
.hud-corner-br { bottom: 12px; right: 12px; border-width: 0 1.5px 1.5px 0; }

.hero-container {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

/* ── Hero Photo HUD ── */
.hero-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.hero-photo-hud {
  position: relative;
  width: 100%;
  max-width: 480px;
}

/* Diagonal-cut photo frame */
.hero-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  border: 1px solid rgba(17,217,90,0.5);
  box-shadow:
    0 0 0 1px rgba(17,217,90,0.08),
    0 0 24px rgba(17,217,90,0.18),
    0 0 60px rgba(17,217,90,0.06);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 3%;
  display: block;
  filter: contrast(1.06) saturate(0.88);
  transform: scale(1.22);
  transform-origin: center 20%;
  will-change: transform, filter;
  transition: transform 0.8s ease, filter 0.4s;
}

.hero-photo-hud:hover .hero-photo-img {
  transform: scale(1.27);
  filter: contrast(1.1) saturate(1.05);
}

/* Scanlines over photo */
.hero-photo-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Bottom vignette */
.hero-photo-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0) 45%,
    rgba(10,10,10,0.65) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Sweeping scan line */
.hud-photo-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(17,217,90,0.55), transparent);
  z-index: 6;
  pointer-events: none;
  will-change: transform, opacity;
  animation: photoScanLine 5s ease-in-out infinite;
}

@keyframes photoScanLine {
  0%   { transform: translateY(0);    opacity: 0; }
  5%   { opacity: 0.9; }
  88%  { opacity: 0.3; }
  100% { transform: translateY(700px); opacity: 0; }
}

/* Corner brackets */
.hud-photo-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 10;
  border-color: var(--color-neon);
  border-style: solid;
  box-shadow: 0 0 6px rgba(17,217,90,0.35);
}
.hud-photo-tl { top: -3px;  left: -3px;  border-width: 2px 0 0 2px; }
.hud-photo-tr { top: -3px;  right: -3px; border-width: 2px 2px 0 0; }
.hud-photo-bl { bottom: -3px; left: -3px;  border-width: 0 0 2px 2px; }
.hud-photo-br { bottom: -3px; right: -3px; border-width: 0 2px 2px 0; }

/* Active badge overlay */
.hud-photo-badge {
  position: absolute;
  bottom: 16px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--color-neon);
  letter-spacing: 0.15em;
  z-index: 8;
  background: rgba(10,10,10,0.82);
  padding: 4px 10px;
  border-left: 2px solid var(--color-neon);
  box-shadow: 0 0 10px rgba(17,217,90,0.18);
}

/* ── Hero background project images — scattered & animated ── */
.hero-bg-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  contain: paint;
}

@keyframes bgChipFloat {
  0%, 100% {
    transform: rotate(var(--chip-rot)) translateY(0px);
    opacity: 0.17;
  }
  50% {
    transform: rotate(var(--chip-rot)) translateY(-18px);
    opacity: 0.26;
  }
}


.hero-bg-chip {
  position: absolute;
  width: 320px;
  display: block;
  overflow: hidden;
  pointer-events: auto;
  text-decoration: none;
  border: 1px solid rgba(17,217,90,0.12);
  box-shadow: 0 0 0 0 rgba(17,217,90,0);
  animation: bgChipFloat 12s ease-in-out infinite;
  transition: box-shadow 0.5s;
}


.hero-bg-chip:hover {
  box-shadow: 0 0 20px rgba(17,217,90,0.15), 0 0 1px rgba(17,217,90,0.3);
}

.hero-bg-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.35) brightness(0.55);
  transition: filter 0.5s;
}

.hero-bg-chip:hover img {
  filter: saturate(0.9) brightness(0.85);
}

/* Individual positions — mismo ancho 320px, alto variado */
.hero-bg-chip-1 {
  aspect-ratio: 4 / 3;
  top: 7%;
  left: 3%;
  --chip-rot: -4deg;
  animation-delay: 0s;
  --scan-delay: 0.5s;
}

.hero-bg-chip-2 {
  aspect-ratio: 2 / 3;
  top: 5%;
  right: 4%;
  --chip-rot: 3.5deg;
  animation-delay: -3.5s;
  --scan-delay: 2s;
}

.hero-bg-chip-3 {
  aspect-ratio: 4 / 3;
  bottom: 7%;
  left: 4%;
  --chip-rot: 2.5deg;
  animation-delay: -6s;
  --scan-delay: 3.5s;
}

.hero-bg-chip-4 {
  aspect-ratio: 3 / 2;
  bottom: 8%;
  right: 3%;
  --chip-rot: -3deg;
  animation-delay: -8.5s;
  --scan-delay: 1s;
}

.photo-logo-img {
  width: 55%;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(17,217,90,0.8));
  animation: logoPulse 3s ease-in-out infinite;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-neon);
  letter-spacing: 0.14em;
  opacity: 0.7;
  text-align: center;
  margin-top: 0.5rem;
}

.hud-tag-top {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
}

.hud-tag-bottom {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
}

/* Hero text */
.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Glitch */
.glitch {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 6rem);
  color: var(--color-white-off);
  line-height: 1;
  letter-spacing: 0.04em;
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--color-red);
  animation: glitch1 4s infinite steps(1);
  animation-delay: 0.5s;
}

.glitch::after {
  color: var(--color-neon);
  animation: glitch2 4s infinite steps(1);
  animation-delay: 1s;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: var(--color-neon);
  letter-spacing: 0.12em;
  min-height: 1.6em;
  display: flex;
  align-items: center;
  gap: 2px;
}

.cursor-blink {
  animation: cursorBlink 1s infinite;
  color: var(--color-neon);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--color-white-off);
  line-height: 1.4;
}

.hero-sub-desc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-gray);
  letter-spacing: 0.08em;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  background: rgba(12,20,17,0.6);
  margin-top: 1rem;
}

.hud-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--color-neon);
  text-shadow: var(--glow-neon);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-gray);
  text-align: center;
  text-transform: uppercase;
}

.hud-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  animation: float 2.5s ease-in-out infinite;
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.25em;
  color: var(--color-gray);
  opacity: 0.6;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-neon), transparent);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#sobre {
  padding: var(--section-pad);
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

/* Terminal */
.about-terminal {
  padding: 0;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(17,217,90,0.05);
  border-bottom: 1px solid var(--color-border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.terminal-dot.red    { background: var(--color-red);    box-shadow: 0 0 6px var(--color-red); }
.terminal-dot.yellow { background: var(--color-yellow); box-shadow: 0 0 6px var(--color-yellow); }
.terminal-dot.green  { background: var(--color-neon);   box-shadow: 0 0 6px var(--color-neon); }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-gray);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.terminal-line {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  letter-spacing: 0.04em;
  animation: fadeInLine 0.5s ease both;
}

.terminal-line:nth-child(1) { animation-delay: 0.1s; }
.terminal-line:nth-child(2) { animation-delay: 0.2s; }
.terminal-line:nth-child(3) { animation-delay: 0.3s; }
.terminal-line:nth-child(4) { animation-delay: 0.4s; }
.terminal-line:nth-child(5) { animation-delay: 0.5s; }
.terminal-line:nth-child(6) { animation-delay: 0.6s; }
.terminal-line:nth-child(7) { animation-delay: 0.7s; }
.terminal-line:nth-child(8) { animation-delay: 0.8s; }

.t-key {
  color: var(--color-gray);
  min-width: 90px;
  display: inline-block;
}

.t-sep {
  color: rgba(17,217,90,0.3);
}

.t-val {
  color: var(--color-white-off);
}

.terminal-status .t-val {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-available {
  color: var(--color-neon);
  text-shadow: var(--glow-neon);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Skills */
.terminal-skills {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-row {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  align-items: center;
  gap: 0.75rem;
}

.skill-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gray);
}

.skill-bar {
  height: 4px;
  background: rgba(17,217,90,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--color-neon);
  box-shadow: var(--glow-neon);
  border-radius: 2px;
  transition: width 1.5s ease;
}

.skill-fill-yellow { background: var(--color-yellow); box-shadow: var(--glow-yellow); }
.skill-fill-purple { background: var(--color-purple); box-shadow: 0 0 8px #8B23DB; }

.skill-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-neon);
  text-align: right;
}

/* About text */
.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-lead {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--color-white-off);
  line-height: 1.3;
}

.about-body {
  color: var(--color-gray);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.about-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-neon);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.6rem;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.about-tag:hover {
  background: rgba(17,217,90,0.06);
  box-shadow: var(--glow-neon);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#servicios {
  padding: var(--section-pad);
  background: linear-gradient(180deg, var(--color-bg) 0%, #060e0a 50%, var(--color-bg) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.services-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card-featured {
  border-color: rgba(139,35,219,0.3);
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(139,35,219,0.05) 100%);
}

.service-card-featured:hover {
  border-color: rgba(139,35,219,0.6);
  box-shadow: 0 0 10px #8B23DB, 0 0 30px rgba(139,35,219,0.3);
}

.service-featured-badge {
  position: absolute;
  top: -1px;
  right: 2rem;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #0A0A0A;
  background: var(--color-purple);
  padding: 0.2rem 0.6rem;
  box-shadow: 0 0 10px rgba(139,35,219,0.5);
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-neon);
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.service-icon {
  margin: 0.25rem 0;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white-off);
  letter-spacing: 0.06em;
}

.service-desc {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray);
  line-height: 1.6;
  flex: 1;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.service-list li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gray);
  letter-spacing: 0.04em;
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--color-neon);
}

.service-price {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-gray);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-neon);
  text-shadow: var(--glow-neon);
  margin: 0 0.2rem;
}

.price-period {
  font-size: 0.65rem;
  color: var(--color-gray);
}

.services-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--color-border);
  background: rgba(17,217,90,0.02);
  flex-wrap: wrap;
}

.services-cta-text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gray);
  letter-spacing: 0.06em;
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
#portfolio {
  padding: var(--section-pad);
  background: var(--color-bg);
}

/* Filter buttons */
.portfolio-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-gray);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 1rem;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: none;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--color-neon);
  border-color: var(--color-neon);
  box-shadow: var(--glow-neon);
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.portfolio-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: none;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.portfolio-card:hover {
  border-color: rgba(17,217,90,0.4);
  transform: scale(1.02);
  box-shadow: var(--glow-neon);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-bg {
  transform: scale(1.05);
}

.portfolio-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

/* Placeholder gradients per card */
.portfolio-bg-1 {
  background: linear-gradient(135deg, #0a1f0f 0%, #0d2d1a 40%, #112211 100%);
}
.portfolio-bg-2 {
  background: linear-gradient(135deg, #080e1a 0%, #0c1535 40%, #0d1845 100%);
}
.portfolio-bg-3 {
  background: linear-gradient(135deg, #100818 0%, #180d28 40%, #20103a 100%);
}
.portfolio-bg-4 {
  background: linear-gradient(135deg, #0c1411 0%, #091c17 40%, #0a2015 100%);
}
.portfolio-bg-5 {
  background: linear-gradient(135deg, #1a0820 0%, #250d30 40%, #1e0a28 100%);
}
.portfolio-bg-6 {
  background: linear-gradient(135deg, #1a0808 0%, #280d0d 40%, #200a0a 100%);
}

/* Grid decorative lines on placeholders */
.portfolio-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17,217,90,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,217,90,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-open {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-neon);
  letter-spacing: 0.15em;
  border: 1px solid var(--color-neon);
  padding: 0.6rem 1.25rem;
  box-shadow: var(--glow-neon);
}

.portfolio-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(10,10,10,0.95), transparent);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.portfolio-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-neon);
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.portfolio-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white-off);
  letter-spacing: 0.06em;
}

.portfolio-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-gray);
  letter-spacing: 0.15em;
}

.portfolio-cta-row {
  text-align: center;
}

/* ============================================================
   FOR CREATIVES SECTION
   ============================================================ */
#creativos {
  padding: var(--section-pad);
  background: linear-gradient(180deg, var(--color-bg) 0%, #04080c 50%, var(--color-bg) 100%);
}

.creatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.creative-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
}

.creative-card-featured {
  border-color: rgba(215,233,12,0.2);
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(215,233,12,0.03) 100%);
}

.creative-card-featured:hover {
  border-color: rgba(215,233,12,0.5);
  box-shadow: var(--glow-yellow);
}

.creative-icon {
  margin-bottom: 0.25rem;
}

.creative-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-neon);
  letter-spacing: 0.08em;
}

.creative-desc {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray);
  line-height: 1.6;
}

.creative-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.creative-item {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gray);
  letter-spacing: 0.04em;
}

/* Terminal quotes */
.creative-quotes {
  border-left: 2px solid var(--color-neon);
  padding: 1rem 1.5rem;
  background: rgba(17,217,90,0.03);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.quote-line {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray);
  letter-spacing: 0.05em;
}

.creative-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
#proceso {
  padding: var(--section-pad);
  background: var(--color-bg);
}

.process-wrapper {
  position: relative;
  padding-top: 1rem;
}

/* Horizontal connecting line */
.process-line-track {
  position: absolute;
  top: 44px;
  left: calc(50px + 2rem);
  right: calc(50px + 2rem);
  height: 1px;
  background: rgba(17,217,90,0.12);
  z-index: 0;
}

.process-line-fill {
  height: 100%;
  background: var(--color-neon);
  box-shadow: var(--glow-neon);
  width: 0;
  transition: width 1.5s ease;
}

.process-line-fill.filled {
  width: 100%;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.process-node {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--color-neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  box-shadow: var(--glow-neon);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.process-node-final {
  background: var(--color-neon);
}

.process-node-final .process-node-number {
  color: #0A0A0A;
}

.process-node-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-neon);
  letter-spacing: 0.05em;
}

.process-content {
  text-align: center;
  padding: 1.25rem;
  width: 100%;
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white-off);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.process-step-desc {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-gray);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.process-step-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gray);
  opacity: 0.7;
  letter-spacing: 0.08em;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contacto {
  padding: var(--section-pad);
  background: linear-gradient(180deg, var(--color-bg) 0%, #04100a 50%, var(--color-bg) 100%);
}

.contact-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.contact-status-text {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-neon);
  letter-spacing: 0.15em;
  text-shadow: var(--glow-neon);
}

.contact-intro {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray);
  letter-spacing: 0.06em;
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-neon);
  text-transform: uppercase;
}

.form-input {
  background: rgba(17,217,90,0.03);
  border: 1px solid var(--color-border);
  color: var(--color-white-off);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.04em;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--color-neon);
  box-shadow: 0 0 0 1px rgba(17,217,90,0.2);
}

.form-input::placeholder {
  color: rgba(170,170,170,0.4);
}

.form-select {
  cursor: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2311D95A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: #0C1411;
  color: var(--color-white-off);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-feedback {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  display: none;
}

.form-feedback.success {
  display: block;
  color: var(--color-neon);
  border: 1px solid var(--color-border);
  background: rgba(17,217,90,0.05);
}

.form-feedback.error {
  display: block;
  color: var(--color-red);
  border: 1px solid rgba(226,18,84,0.3);
  background: rgba(226,18,84,0.05);
}

/* Contact info panel */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-panel {
  padding: 0;
  overflow: hidden;
}

.contact-channels {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-gray);
}

.channel-value {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-white-off);
  transition: color 0.2s ease;
}

a.channel-value:hover {
  color: var(--color-neon);
  text-shadow: var(--glow-neon);
}

.contact-terminal-note {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-gray);
  background: rgba(17,217,90,0.03);
}

/* Social links */
.social-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gray);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
  color: var(--color-neon);
  border-color: var(--color-neon);
  box-shadow: var(--glow-neon);
}

.social-link svg {
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--color-border);
  background: #040804;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  display: inline-flex;
  transition: filter 0.3s ease;
}

.footer-logo-img {
  height: 30px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(230,232,230,0.3));
}

.footer-logo:hover .footer-logo-img {
  filter: drop-shadow(0 0 10px rgba(17,217,90,0.7));
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gray);
  letter-spacing: 0.08em;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gray);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-neon);
}

.footer-divider {
  height: 1px;
  background: var(--color-border);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(170,170,170,0.5);
  letter-spacing: 0.1em;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-gray);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.6rem;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social-link:hover {
  color: var(--color-neon);
  border-color: var(--color-neon);
  box-shadow: var(--glow-neon);
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  .hud-ring-svg {
    animation: none;
  }
  .scan-beam {
    display: none;
  }
  .glitch::before,
  .glitch::after {
    display: none;
  }
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-container {
    gap: 2.5rem;
  }

  .hero-photo-hud {
    max-width: 380px;
  }

  .services-grid,
  .services-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .process-line-track {
    display: none;
  }

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

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-pad: 5rem 0;
  }

  /* Hide custom cursor on mobile */
  #cursor-dot,
  #cursor-ring,
  #cursor-label {
    display: none;
  }

  body {
    cursor: auto;
  }

  a, button {
    cursor: pointer;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    padding: 2rem 1.5rem 5rem;
  }

  .hero-photo-col {
    order: -1;
    align-items: center;
  }
  .hero-photo-hud {
    max-width: 300px;
  }

  /* Centrar badge "OPERADOR ACTIVO" en mobile */
  .hud-photo-badge {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  /* Centrar texto del hero en mobile */
  .hero-text-col {
    align-items: center;
    text-align: center;
  }

  .hero-subtitle,
  .hero-desc,
  .hero-sub-desc {
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hud-stat-divider {
    display: none;
  }

  .hud-stat {
    flex: 1;
    min-width: 80px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Services */
  .services-grid,
  .services-grid-3 {
    grid-template-columns: 1fr;
  }

  .services-cta-row {
    flex-direction: column;
    text-align: center;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Creatives */
  .creatives-grid {
    grid-template-columns: 1fr;
  }

  /* Process */
  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .process-content {
    text-align: left;
  }

  /* Contact */
  .social-links {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
  }

  .footer-nav {
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .section-container {
    padding: 0 1.25rem;
  }

  .hero-container {
    padding: 2rem 1.25rem 5rem;
  }

  .hero-photo-hud {
    max-width: 240px;
  }

  .hero-project-chips {
    gap: 4px;
  }

  .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.68rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.72rem;
  }

  .hud-corner {
    display: none;
  }

  .hero-stats {
    padding: 1rem;
  }

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

/* ============================================================
   BRAND AESTHETIC — Circuit Lines, Hex Boxes, Fingerprint
   ============================================================ */

/* ── Circuit line decoration on section titles ── */
.section-title {
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-yellow);
  margin-top: 0.75rem;
  box-shadow: var(--glow-yellow);
  position: relative;
}
.section-title::after {
  /* node dot at end */
  background: linear-gradient(to right, var(--color-yellow) 85%, transparent 100%);
}

/* ── Circuit node line — reusable ── */
.circuit-line {
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
  margin: 0.4rem 0;
}
.circuit-line::before {
  content: '';
  width: 6px;
  height: 6px;
  border: 1px solid var(--color-neon);
  border-radius: 50%;
  flex-shrink: 0;
}
.circuit-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--color-neon), transparent);
  opacity: 0.4;
}

/* ── Hex / angled callout box ── */
.hex-callout {
  position: relative;
  background: rgba(12, 20, 17, 0.85);
  border: 1px solid rgba(17,217,90,0.25);
  padding: 1.25rem 1.5rem 1.25rem 2rem;
  font-family: var(--font-body);
  color: var(--color-white-off);
  clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
}
.hex-callout::before {
  content: '';
  position: absolute;
  top: -1px; left: 20px;
  width: 40px; height: 2px;
  background: var(--color-neon);
  box-shadow: var(--glow-neon);
}
.hex-callout strong {
  color: var(--color-neon);
  font-weight: 700;
}

/* ── Fingerprint scanner icon ── */
.fingerprint-icon {
  width: 40px;
  height: 40px;
  position: relative;
  opacity: 0.6;
}
.fingerprint-icon::before,
.fingerprint-icon::after {
  content: '';
  position: absolute;
  border: 1px solid var(--color-neon);
}
.fingerprint-icon::before {
  inset: 0;
  border-radius: 4px;
}
.fingerprint-icon::after {
  inset: 6px;
  border-radius: 2px;
  border-color: rgba(17,217,90,0.5);
}

/* ── Construction tape border ── */
.construction-tape {
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-yellow) 0px,
    var(--color-yellow) 8px,
    #0A0A0A 8px,
    #0A0A0A 16px
  );
  opacity: 0.7;
}

/* ── Yellow accent label variant ── */
.section-label-yellow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-yellow);
  text-shadow: var(--glow-yellow);
  margin-bottom: 0.75rem;
  display: block;
}
.section-label-yellow::before { content: '[ '; }
.section-label-yellow::after  { content: ' ]'; }

/* ── Hero circuit decorations ── */
#hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 0;
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(17,217,90,0.3));
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: 35%;
  right: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(215,233,12,0.3));
  pointer-events: none;
}

/* ── About section darker surface ── */
#sobre {
  background: var(--color-surface);
}

/* ── Services alt-row background ── */
#servicios {
  background: var(--color-bg);
}

/* ── For Creatives — dark surface ── */
#creativos {
  background: var(--color-surface);
}

/* ── Section yellow accent bar (left border on hud-panel) ── */
.hud-panel.accent-yellow {
  border-left: 2px solid var(--color-yellow);
  box-shadow: -4px 0 12px rgba(215,233,12,0.15);
}

/* ── Footer construction tape handled via .construction-tape div ── */

/* ── Nav logo white version on scroll ── */
#nav.scrolled .nav-logo-img {
  filter: drop-shadow(0 0 8px rgba(17,217,90,0.7));
}
