/* ═══════════════════════════════════════════════════
   FELIPE SERRANO — Biólogo Ilustrador
   RETROFUTURISM — Cyberpunk/Marathon hybrid
   Cream + Ink + Crimson | Diagonal geometry | HUD annotations
   ═══════════════════════════════════════════════════ */

:root {
  /* ── Palette ──────────────────────────────────── */
  --bg:           #ffffff;
  --bg-surface:   #f0f6f8;
  --bg-card:      #ffffff;
  --bg-card-alt:  #e8f4f8;
  --bg-dark:      #080e14;
  --bg-dark2:     #0c1218;

  --red:          #00c5d4;
  --red-dim:      #0095a8;
  --red-glow:     rgba(0,197,212,.14);
  --red-glow-lg:  rgba(0,197,212,.24);

  --ink:          #0a0f14;
  --ink-mid:      #1a2530;
  --ink-dim:      rgba(10,15,20,.08);

  --text:         #0a0f14;
  --text-muted:   #3a5060;
  --text-dim:     #7a9aaa;
  --text-on-dark: #c8e0ea;
  --text-on-dark-muted: #5a8090;

  --border:       rgba(10,15,20,.1);
  --border-red:   rgba(0,197,212,.4);
  --border-glow:  rgba(0,197,212,.65);
  --border-dark:  rgba(255,255,255,.08);

  --font-mono:    'Space Mono', 'Courier New', monospace;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --section-pad:  clamp(5rem, 10vw, 9rem);
  --max-w:        1320px;
  --radius:       2px;
  --radius-sm:    2px;
  --radius-pill:  2px;

  --shadow-red:   0 0 30px rgba(201,26,40,.12);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.12);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain / scanline on light bg */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.018) 3px,
    rgba(0,0,0,.018) 4px
  );
  pointer-events: none;
  z-index: 9999;
  opacity: .6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; background: none; border: none; }
input, textarea, select { font: inherit; background: none; border: none; outline: none; width: 100%; }

/* ── Animations ─────────────────────────────────── */
@keyframes glitch {
  0%   { clip-path: inset(40% 0 61% 0); transform: translate(-4px, 0); }
  20%  { clip-path: inset(92% 0 1% 0);  transform: translate(4px, 0); }
  40%  { clip-path: inset(43% 0 50% 0); transform: translate(0, 0); }
  60%  { clip-path: inset(25% 0 58% 0); transform: translate(2px, 0); }
  80%  { clip-path: inset(54% 0 7% 0);  transform: translate(-2px, 0); }
  100% { clip-path: inset(58% 0 43% 0); transform: translate(0, 0); }
}
@keyframes flicker {
  0%, 95%, 100% { opacity: 1; }
  96%            { opacity: .7; }
  97%            { opacity: 1; }
  98%            { opacity: .5; }
  99%            { opacity: 1; }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes scanMove {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .85; }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Typography ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.section-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section-label::before { content: '//'; opacity: .5; }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: 1.5rem;
  color: var(--text);
}
em {
  font-style: normal;
  color: var(--red);
  animation: none;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .2s;
  position: relative;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1.5px solid var(--ink);
}
.btn-primary:hover {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 4px 24px var(--red-glow-lg);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-full { width: 100%; justify-content: center; }

/* ── Corner brackets ────────────────────────────── */
.bracket-box { position: relative; }
.bracket-box::before,
.bracket-box::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--red);
  border-style: solid;
  opacity: .5;
}
.bracket-box::before { top: -4px; left: -4px; border-width: 1.5px 0 0 1.5px; }
.bracket-box::after  { bottom: -4px; right: -4px; border-width: 0 1.5px 1.5px 0; }

/* ── Diagonal band utility ──────────────────────── */
/* Applied as overlay on sections via pseudo-elements */
.diag-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -22deg,
    transparent 0px,
    transparent 160px,
    rgba(13,13,13,.04) 160px,
    rgba(13,13,13,.04) 210px
  );
  z-index: 0;
}

/* ════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem clamp(1.5rem, 5vw, 3.5rem);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: background .4s, border-color .4s, box-shadow .4s, color .4s;
}
.site-header.scrolled {
  background: var(--ink);
  border-bottom-color: rgba(0,197,212,.30);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.header-inner {
  max-width: var(--max-w);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  flex-shrink: 0;
}
.logo-first { color: var(--ink); transition: color .4s; }
.logo-last  { color: var(--red); margin-left: .4em; }
.site-header.scrolled .logo-first { color: #ffffff; }
.main-nav { display: flex; gap: 2rem; margin-left: auto; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
  transition: color .2s;
  position: relative;
}
.site-header.scrolled .main-nav a { color: rgba(255,255,255,.75); }
.main-nav a::before {
  content: '>';
  position: absolute;
  left: -.9rem;
  opacity: 0;
  color: var(--red);
  transition: opacity .2s;
}
.main-nav a:hover { color: var(--red); }
.main-nav a:hover::before { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: 1.5rem; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  transition: all .3s;
}
.site-header.scrolled .social-pill {
  border-color: rgba(0,197,212,.35);
  color: var(--text-on-dark-muted);
}
.social-pill:hover { border-color: var(--red); color: var(--red); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s, background .4s; }
.site-header.scrolled .nav-toggle span { background: #ffffff; }

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(5rem + 3vw) clamp(1.5rem, 5vw, 3.5rem) 3rem;
  max-width: var(--max-w);
  margin: auto;
  position: relative;
}

/* Diagonal bands overlay — key motif from reference */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: -15%; right: -15%; bottom: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -22deg,
    transparent 0px,
    transparent 155px,
    rgba(13,13,13,.055) 155px,
    rgba(13,13,13,.055) 200px,
    transparent 200px,
    transparent 320px,
    rgba(13,13,13,.032) 320px,
    rgba(13,13,13,.032) 350px
  );
  z-index: 0;
}

/* HUD margin annotation — right side */
.hero::before {
  content: '⊕\A—\A*\A×\A—\A+';
  position: absolute;
  right: clamp(.8rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-dim);
  line-height: 2.4;
  white-space: pre;
  letter-spacing: .1em;
  pointer-events: none;
  z-index: 1;
  opacity: .55;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.hero-terminal {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .06em;
}
.terminal-prompt { color: var(--red); }
.terminal-text   { color: var(--text-muted); }
.cursor-blink {
  color: var(--red);
  animation: blink 1s step-end infinite;
  font-weight: 700;
}
.hero-available {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: .3rem .85rem;
}
.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,.8);
  flex-shrink: 0;
}

/* Brand */
.hero-brand {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1rem 0;
  position: relative;
  z-index: 1;
}
.hero-brand h1 {
  display: flex;
  flex-direction: column;
  line-height: .92;
  letter-spacing: -.01em;
}
.brand-line {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(4rem, 13vw, 12rem);
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
}
.brand-bio {
  color: var(--ink);
  animation: flicker 8s infinite;
}
.brand-bio::before,
.brand-bio::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  color: var(--red);
  opacity: 0;
}
.brand-bio:hover::before {
  opacity: .7;
  animation: glitch .3s steps(1) infinite;
  text-shadow: none;
}
.brand-bio:hover::after {
  opacity: .6;
  animation: glitch .3s steps(1) infinite reverse;
  left: 3px;
}
.brand-ilus {
  color: var(--red);
  /* Bold diagonal rule under "ilustrador" via outline */
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 2px solid var(--ink);
  padding-top: 2rem;
  position: relative;
  z-index: 1;
}
.hero-bottom::before {
  content: '';
  position: absolute;
  top: -2px; left: 0;
  width: 80px; height: 2px;
  background: var(--red);
}
.hero-sub {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 50ch;
  font-family: var(--font-mono);
}
.hero-sub strong { color: var(--red); font-weight: 400; }
.hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }
.hero-ig {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
  transition: color .2s;
}
.hero-ig:hover { color: var(--red); }

/* ════════════════════════════════════════════════
   STATS BAR — dark band (main black band motif)
   ════════════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-dark);
  border-top: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  padding: 3rem clamp(1.5rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

/* Diagonal pattern inside dark band */
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -15%; right: -15%; bottom: 0;
  background: repeating-linear-gradient(
    -22deg,
    transparent 0px,
    transparent 120px,
    rgba(255,255,255,.025) 120px,
    rgba(255,255,255,.025) 150px
  );
  pointer-events: none;
}

.stats-inner {
  max-width: var(--max-w);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 6rem);
  flex-wrap: wrap;
  position: relative;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--bg);
  line-height: 1;
}
.stat-suffix { color: var(--red); font-family: var(--font-mono); font-size: 1.5rem; }
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-top: .4rem;
}
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.1); }

/* ════════════════════════════════════════════════
   MARQUEE
   ════════════════════════════════════════════════ */
.marquee-band {
  overflow: hidden;
  background: var(--red);
  padding: .7rem 0;
  position: relative;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.marquee-dot { color: rgba(255,255,255,.35) !important; }
.marquee-band:hover .marquee-track { animation-play-state: paused; }

/* ════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════ */
.about { padding: var(--section-pad) clamp(1.5rem, 5vw, 3.5rem); }
.about-inner {
  max-width: var(--max-w);
  margin: auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-img-secondary {
  position: absolute;
  bottom: 0; right: -1.5rem;
  width: 58%;
  overflow: hidden;
  border: 3px solid var(--bg);
  box-shadow: 4px 4px 0 var(--red);
  z-index: 2;
}
.about-img-secondary img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  aspect-ratio: 4/3;
}
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about-img-placeholder img:not(.about-firma) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.about-firma {
  position: absolute;
  bottom: 1.25rem;
  right: 1rem;
  width: 110px;
  height: auto !important;
  opacity: .85;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
  object-fit: unset !important;
  object-position: unset !important;
}
.about-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-red);
  margin: 6px;
  pointer-events: none;
}
.img-placeholder-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.img-placeholder-bg svg { width: 45%; color: var(--text-dim); opacity: .3; }
.about-deco-card {
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.12);
  padding: .9rem 1.3rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--bg);
  box-shadow: 4px 4px 0 var(--red);
}
.deco-icon { font-size: 1.1rem; }
.about-text p { color: var(--text-muted); max-width: 52ch; margin-bottom: 1.25rem; font-size: .9rem; line-height: 1.75; }
.about-text p strong { color: var(--red); font-weight: 600; }
.about-skills { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.75rem 0 2rem; }
/* .about-firma defined above with :not(.about-firma) scope fix */
.skill-tag {
  padding: .3rem .8rem;
  background: transparent;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
  transition: all .2s;
}
.skill-tag:hover { border-color: var(--red); color: var(--red); background: var(--red-glow); }

/* ════════════════════════════════════════════════
   PORTFOLIO
   ════════════════════════════════════════════════ */
.portfolio {
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3.5rem);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Diagonal band on portfolio section */
.portfolio::after {
  content: '';
  position: absolute;
  top: 0; left: -15%; right: -15%; bottom: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -22deg,
    transparent 0px,
    transparent 180px,
    rgba(13,13,13,.035) 180px,
    rgba(13,13,13,.035) 215px
  );
  z-index: 0;
}

.portfolio-header {
  max-width: var(--max-w);
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.portfolio-header .section-title { margin-bottom: 0; }
.portfolio-filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.filter-btn {
  padding: .35rem .9rem;
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-glow);
}
.portfolio-grid {
  max-width: var(--max-w);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 340px;
  gap: .6rem;
  position: relative;
  z-index: 1;
}
.portfolio-card {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  cursor: pointer;
  position: relative;
}
.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
  z-index: 1;
}
.portfolio-card:hover { border-color: var(--border-red); box-shadow: 4px 4px 0 var(--red); transform: translate(-2px,-2px); }
.portfolio-card:hover::before { transform: scaleX(1); }
.portfolio-card.card-large { grid-row: span 2; }
.portfolio-card.hidden { display: none; }
.portfolio-card.card-extra { display: none; }
.portfolio-card.card-extra.card-extra-shown { display: flex; }
.portfolio-more-wrap { text-align: center; margin: 2rem 0 1rem; }
.portfolio-more-wrap.hidden { display: none; }
.card-image { flex: 1; position: relative; overflow: hidden; min-height: 220px; }
.card-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform .4s ease;
  background: var(--bg-surface);
}
.portfolio-card:hover .card-image img { transform: scale(1.03); }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(13,13,13,.2);
  transition: transform .4s ease;
}
.portfolio-card:hover .card-img-placeholder { transform: scale(1.03); }

/* Card image placeholders — muted analogous tones */
.c1 { background: linear-gradient(145deg, #c4bfae 0%, #b0a990 60%, #c8c2b2 100%); }
.c2 { background: linear-gradient(145deg, #b2bec0 0%, #96acb0 60%, #a8babb 100%); }
.c3 { background: linear-gradient(145deg, #aab4c2 0%, #8898b0 60%, #9aa8c0 100%); }
.c4 { background: linear-gradient(145deg, #c2a8a0 0%, #b08880 60%, #baa090 100%); }
.c5 { background: linear-gradient(145deg, #a8bab4 0%, #8aaa9e 60%, #a0b8b0 100%); }
.c6 { background: linear-gradient(145deg, #b8b4b0 0%, #9e9a96 60%, #b0acaa 100%); }

.placeholder-label { writing-mode: vertical-rl; transform: rotate(180deg); opacity: .3; }
.card-overlay {
  position: absolute; inset: 0;
  background: rgba(13,13,13,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.portfolio-card:hover .card-overlay { opacity: 1; }
.card-zoom {
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  color: white;
  transition: background .2s;
}
.card-zoom:hover { background: var(--red); border-color: var(--red); }
.card-info { padding: .9rem 1rem; border-top: 1px solid var(--border); }
.card-info h3 { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .2rem; color: var(--text); }
.card-info p { font-size: .78rem; color: var(--text-muted); margin-bottom: .5rem; font-family: var(--font-mono); }
.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--border-red);
  padding: .12rem .5rem;
}
.portfolio-cta { max-width: var(--max-w); margin: 2.5rem auto 0; text-align: center; position: relative; z-index: 1; }

/* ════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════ */
.services { padding: var(--section-pad) clamp(1.5rem, 5vw, 3.5rem); }
.services-inner { max-width: var(--max-w); margin: auto; }
.services-header { max-width: 36ch; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6rem; }
.service-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s, transform .3s;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .3s;
}
.service-card:hover { border-color: var(--border-red); box-shadow: 4px 4px 0 var(--red); transform: translate(-2px,-2px); }
.service-card:hover::after { transform: scaleX(1); }
.service-featured {
  background: var(--ink);
  border-color: var(--red);
  box-shadow: 4px 4px 0 var(--red);
  color: var(--bg);
}
.service-featured::after { transform: scaleX(1); }
.service-featured .service-card h3 { color: var(--bg); }
.service-featured .service-card p { color: var(--text-on-dark-muted); }
.service-badge {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: var(--red);
  color: white;
  font-family: var(--font-mono);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .18rem .6rem;
}
.service-platform {
  font-family: var(--font-mono);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.service-icon { width: 40px; height: 40px; margin-bottom: 1rem; color: var(--red); }
.service-featured .service-icon { color: var(--red); opacity: 1; }
.service-card h3 { font-size: .9rem; letter-spacing: .06em; margin-bottom: .65rem; color: var(--text); }
.service-featured h3 { color: var(--bg); }
.service-card p { font-size: .84rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.5rem; }
.service-featured p { color: rgba(234,228,213,.6); }
.service-link {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--red-dim);
  transition: color .2s;
}
.service-link:hover { color: var(--red); }
.service-featured .service-link { color: rgba(234,228,213,.5); }
.service-featured .service-link:hover { color: var(--red); }

/* ════════════════════════════════════════════════
   CONCEPT BAND — dark band
   ════════════════════════════════════════════════ */
.concept-band {
  background: var(--bg-dark);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
/* Large ghost text */
.concept-band::before {
  content: 'ART+SCIENCE';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: clamp(6rem, 16vw, 14rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.04);
  letter-spacing: .05em;
  pointer-events: none;
  white-space: nowrap;
}
/* Diagonal band inside concept section */
.concept-band::after {
  content: '';
  position: absolute;
  top: 0; left: -15%; right: -15%; bottom: 0;
  background: repeating-linear-gradient(
    -22deg,
    transparent 0px,
    transparent 140px,
    rgba(255,255,255,.02) 140px,
    rgba(255,255,255,.02) 175px
  );
  pointer-events: none;
}
.concept-inner {
  max-width: var(--max-w);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.concept-inner .section-label { color: var(--red); }
.concept-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: 1.25rem;
  color: var(--text-on-dark);
}
.concept-title em { font-style: normal; color: var(--red); animation: none; }
.concept-band .concept-inner .concept-text p {
  color: var(--text-on-dark-muted);
  font-size: .88rem;
  max-width: 46ch;
  line-height: 1.75;
}
.concept-stats { text-align: center; }
.concept-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.cs-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bg);
}
.cs-plus {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--red);
}
.cs-desc {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--text-on-dark-muted);
  max-width: 32ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* ════════════════════════════════════════════════
   TALKS
   ════════════════════════════════════════════════ */
.talks { padding: var(--section-pad) clamp(1.5rem, 5vw, 3.5rem); }
.talks-inner { max-width: var(--max-w); margin: auto; }
.talks-header { max-width: 52ch; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

/* Galería fotográfica de charlas */
.talks-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.tg-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.tg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform .5s ease;
}
.tg-item:hover img { transform: scale(1.04); }
.tg-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .45rem .7rem;
  background: linear-gradient(transparent, rgba(8,14,20,.82));
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  opacity: 0;
  transition: opacity .3s ease;
}
.tg-item:hover figcaption { opacity: 1; }
.tg-item.tg-contain img { object-fit: contain; background: #f0f0ee; }
@media (max-width: 600px) { .talks-gallery { grid-template-columns: repeat(2, 1fr); } }
.talks-header .section-title { margin-bottom: 1rem; }
.talks-intro { color: var(--text-muted); font-size: .88rem; margin-bottom: 2rem; line-height: 1.75; }
.talks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.talk-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s, transform .3s;
  position: relative;
}
.talk-card::before {
  content: attr(data-num);
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .1em;
}
.talk-card:hover { border-color: var(--border-red); box-shadow: 4px 4px 0 var(--red); transform: translate(-2px,-2px); }
.talk-featured { border-color: var(--border-red); background: var(--ink); }
.talk-featured h3, .talk-featured p { color: var(--text-on-dark); }
.talk-featured p { color: var(--text-on-dark-muted); }
.talk-featured::before { color: var(--text-on-dark-muted); }
.talk-icon { width: 40px; height: 40px; color: var(--red); margin-bottom: 1.5rem; }
.talk-featured .talk-icon { color: var(--red); }
.talk-card h3 { font-size: .88rem; letter-spacing: .05em; margin-bottom: .65rem; line-height: 1.4; color: var(--text); }
.talk-card.talk-featured h3 { color: var(--text-on-dark); }
.talk-card p { font-size: .83rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; }
.talk-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--border-red);
  padding: .12rem .5rem;
}

/* ════════════════════════════════════════════════
   EDUCATION
   ════════════════════════════════════════════════ */
.education {
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3.5rem);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.education::after {
  content: '';
  position: absolute;
  top: 0; left: -15%; right: -15%; bottom: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -22deg,
    transparent 0px,
    transparent 180px,
    rgba(13,13,13,.03) 180px,
    rgba(13,13,13,.03) 210px
  );
}
.education-inner { max-width: var(--max-w); margin: auto; position: relative; z-index: 1; }
.education-header { max-width: 56ch; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.education-header .section-title { margin-bottom: 1rem; }
.education-header > p { color: var(--text-muted); font-size: .88rem; line-height: 1.75; }
.edu-blocks-wrapper {
  border: 1px solid var(--border);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.edu-block { padding: clamp(1.5rem, 4vw, 2.5rem); }
.edu-block-equipos {
  border-top: 2px solid var(--red);
  background: var(--bg-surface);
}
.edu-block-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.edu-block-header > div p { color: var(--text-muted); font-size: .88rem; line-height: 1.75; max-width: 52ch; margin-top: .5rem; }
.edu-block-header .section-title { margin-bottom: 0; }
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 2.5rem; }
.edu-grid-single { grid-template-columns: 1fr; max-width: 540px; }
.edu-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.edu-card:hover { border-color: var(--border-red); box-shadow: 4px 4px 0 var(--red); transform: translate(-2px,-2px); }
.edu-featured {
  background: var(--ink);
  border-color: var(--red);
  box-shadow: 4px 4px 0 var(--red);
}
.edu-featured h3, .edu-featured .edu-level { color: var(--text-on-dark); }
.edu-featured > p { color: var(--text-on-dark-muted); }
.edu-featured .edu-topics li { color: var(--text-on-dark-muted); }
.edu-header-card {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.edu-featured .edu-header-card { border-bottom-color: rgba(201,26,40,.3); }
.edu-tool {
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--border-red);
  padding: .18rem .6rem;
}
.edu-level {
  font-family: var(--font-mono);
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
}
.edu-level-adv { color: var(--red); }
.edu-lab { position: relative; }
.edu-lab-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  background: var(--red);
  color: var(--bg-dark);
  margin-bottom: .9rem;
}
.edu-lab-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  transition: letter-spacing .2s;
}
.edu-lab-link:hover { letter-spacing: .12em; }
.edu-featured .edu-lab-link { color: var(--red); }
.edu-card h3 { font-size: .88rem; letter-spacing: .05em; margin-bottom: .65rem; line-height: 1.4; color: var(--text); }
.edu-card > p { font-size: .83rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; }
.edu-topics { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.edu-topics li {
  font-family: var(--font-mono);
  font-size: .75rem; color: var(--text-muted);
  padding-left: 1.2rem; position: relative;
  letter-spacing: .02em;
}
.edu-topics li::before { content: '>'; position: absolute; left: 0; color: var(--red); }
.edu-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem;
  border: 1px solid var(--border-red);
  background: var(--bg-card);
  position: relative;
}
.edu-cta::before, .edu-cta::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--red);
  border-style: solid;
}
.edu-cta::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.edu-cta::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.edu-cta p {
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

/* Formation format pills */
.formation-formats {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.format-pill {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .38rem .9rem;
  border: 1px solid var(--red);
  color: var(--red);
}
.format-pill-highlight {
  background: var(--red);
  color: var(--bg-dark);
}

/* Illustra Scilab band */
.scilab-band {
  background: var(--bg-dark);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 3.5rem);
  border-top: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
}
.scilab-band-inner {
  max-width: var(--max-w);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.scilab-band-text .section-label { color: var(--red); }
.scilab-band-text h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: .4rem 0 .75rem;
}
.scilab-band-text p {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  max-width: 52ch;
  line-height: 1.75;
}

/* ════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════ */
.testimonials { padding: var(--section-pad) clamp(1.5rem, 5vw, 3.5rem); }
.testimonials-inner { max-width: var(--max-w); margin: auto; }
.testimonials-inner .section-label,
.testimonials-inner .section-title { text-align: center; }
.testimonials-inner .section-title { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .6rem; align-items: start; }
.testimonial-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.testimonial-card:hover { border-color: var(--border-red); box-shadow: 4px 4px 0 var(--red); transform: translate(-2px,-2px); }
.testimonial-featured {
  border-color: var(--red);
  box-shadow: 4px 4px 0 var(--red);
  background: var(--ink);
}
.testimonial-card p {
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.testimonial-featured p { color: var(--text-on-dark-muted); }
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem; left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
  opacity: .25;
}
.testimonial-card footer { display: flex; flex-direction: column; gap: .2rem; }
.testimonial-card footer strong { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.testimonial-featured footer strong { color: var(--text-on-dark); }
.testimonial-card footer span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--text-muted); }
.testimonial-featured footer span { color: var(--text-on-dark-muted); }

/* ════════════════════════════════════════════════
   CONTACT — dark band
   ════════════════════════════════════════════════ */
.contact {
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3.5rem);
  background: var(--bg-dark);
  border-top: 3px solid var(--ink);
  position: relative;
  overflow: hidden;
}
/* Diagonal overlay */
.contact::before {
  content: '';
  position: absolute;
  top: 0; left: -15%; right: -15%; bottom: 0;
  background: repeating-linear-gradient(
    -22deg,
    transparent 0px,
    transparent 140px,
    rgba(255,255,255,.02) 140px,
    rgba(255,255,255,.02) 175px
  );
  pointer-events: none;
}
.contact-inner {
  max-width: var(--max-w); margin: auto;
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(3rem, 8vw, 7rem); align-items: start;
  position: relative; z-index: 1;
}
.contact-inner .section-label { color: var(--red); }
.contact-inner .section-title { color: var(--text-on-dark); }
.contact-left > p { color: var(--text-on-dark-muted); max-width: 40ch; margin-bottom: 2rem; font-size: .88rem; line-height: 1.75; }
.contact-left .section-title { margin-bottom: 1rem; }
.contact-social { display: flex; flex-direction: column; gap: 0; margin-bottom: 2rem; }
.social-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: .78rem; letter-spacing: .04em;
  color: var(--text-on-dark-muted);
  transition: color .2s, gap .2s;
}
.social-link:hover { color: var(--red); gap: 1rem; }
.social-link-icon { display: flex; align-items: center; flex-shrink: 0; opacity: .6; transition: opacity .2s; }
.social-link:hover .social-link-icon { opacity: 1; }
.social-link-platform {
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  font-size: .68rem; color: inherit;
}
.social-link-sep { opacity: .35; margin: 0 .1rem; }
.social-link-handle { color: var(--text-on-dark); font-weight: 400; }
.company-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-on-dark-muted);
  padding: .7rem 1.2rem;
  border: 1px solid var(--border-dark);
  background: rgba(255,255,255,.04);
  transition: color .2s, border-color .2s;
}
.company-link:hover { color: var(--red); border-color: var(--border-red); }
.contact-form {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-dark);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}
.contact-form::before, .contact-form::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--red);
  border-style: solid;
  opacity: .7;
}
.contact-form::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.contact-form::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: .65rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-dim); margin-bottom: .4rem;
}
.form-group input, .form-group select, .form-group textarea {
  padding: .7rem .9rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark);
  font-family: var(--font-mono);
  font-size: .8rem;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--red);
  outline: none;
}
.form-group textarea { resize: vertical; }
.form-note { margin-top: 1rem; text-align: center; font-family: var(--font-mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-on-dark-muted); }

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-dark2);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2.5rem clamp(1.5rem, 5vw, 3.5rem);
}
.footer-inner {
  max-width: var(--max-w); margin: auto;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { font-family: var(--font-mono); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-on-dark); }
.footer-brand span { color: var(--red); }
.footer-brand p { font-size: .65rem; color: var(--text-on-dark-muted); margin-top: .3rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-on-dark-muted); transition: color .2s; }
.footer-nav a:hover { color: var(--red); }
.footer-copy { width: 100%; text-align: center; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-on-dark-muted); border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.5rem; margin-top: .5rem; }

/* ════════════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(13,13,13,.96);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  animation: fadeIn .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  border: 1px solid var(--border-red);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); transition: background .2s;
}
.lightbox-close:hover { background: var(--red); color: white; }
.lightbox-content { max-width: 700px; width: 100%; text-align: center; color: white; }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; }
  .portfolio-card.card-large { grid-row: span 1; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-image-wrap { max-width: 360px; }
  .concept-inner { grid-template-columns: 1fr; }
  .talks-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero { padding-top: 6rem; }
  .hero::before { display: none; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .main-nav {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2.5rem; z-index: 99;
    border: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; z-index: 101; }
  .social-pill { display: none; }
  .stat-divider { display: none; }
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}
