/* ---------------------------------------------------
   TOKENS — tema oscuro, acento fucsia
--------------------------------------------------- */
:root {
  --bg: #08070A;
  --bg-raised: #0E0812;
  --bg-raised-2: #1A1019;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #F3EEF7;
  --ink-soft: #C7BED1;
  --muted: #8D8296;

  --fuchsia: #FF2DA6;
  --fuchsia-2: #C026D3;
  --fuchsia-bright: #FF6FD8;
  --fuchsia-soft: rgba(255, 45, 166, 0.16);
  --violet: #6D28D9;
  --glow-fuchsia: rgba(255, 45, 166, 0.45);

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .hero-ribbon, .glyph, .hero-spark, .hero-visual::before, .hero-visual::after { animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60vw 50vh at 0% 0%, rgba(255, 45, 166, 0.06), transparent 70%),
    radial-gradient(55vw 50vh at 100% 100%, rgba(109, 40, 217, 0.06), transparent 70%),
    radial-gradient(45vw 40vh at 80% 22%, rgba(192, 38, 211, 0.05), transparent 70%),
    radial-gradient(70vw 60vh at 50% 120%, rgba(59, 7, 100, 0.18), transparent 70%);
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--fuchsia); color: #14040F;
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

a { color: var(--fuchsia); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--fuchsia);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

code {
  font-family: var(--font-mono);
  background: var(--bg-raised-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.85em;
  color: var(--ink-soft);
}

.centered { text-align: center; }

.accent { color: var(--fuchsia); }
.section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fuchsia);
  margin-bottom: 10px;
}

/* ---------------------------------------------------
   TOP NAV
--------------------------------------------------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  background: linear-gradient(var(--glass-bg), var(--glass-bg)), rgba(8, 7, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--fuchsia); }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  cursor: pointer;
}
.nav-toggle span { width: 16px; height: 2px; background: var(--ink); display: block; }

/* ---------------------------------------------------
   LAYOUT / SECTIONS
--------------------------------------------------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); overflow-x: clip; }

.section { position: relative; padding: 100px 0 0; scroll-margin-top: 80px; }
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: min(520px, 70%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 45, 166, 0.28), rgba(109, 40, 217, 0.28), transparent);
}
.section-title { font-size: 2rem; margin-bottom: 8px; }
.section-lede { color: var(--muted); max-width: 56ch; margin: 18px auto 40px; }

.rule, .rule-center {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--fuchsia));
  margin: 14px 0 36px;
  border-radius: 2px;
}
.rule-center { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------
   HERO
--------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "content visual"
    "hint hint";
  align-items: center;
  column-gap: clamp(24px, 4vw, 56px);
  padding-top: 48px;
  isolation: isolate;
  animation: rise 0.7s ease both;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * clamp(20px, 5vw, 64px));
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 60% at 68% 42%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 68% 42%, #000 0%, transparent 75%);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.hero-visual {
  grid-area: visual;
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  justify-self: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 45%, rgba(255, 45, 166, 0.30), transparent 58%),
    radial-gradient(circle at 62% 60%, rgba(109, 40, 217, 0.38), transparent 62%);
  filter: blur(48px);
  z-index: -1;
  animation: breathe 10s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.85; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.04); }
}
.hero-visual::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%; bottom: 3%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(192, 38, 211, 0.35), rgba(8, 7, 10, 0) 100%);
  filter: blur(10px);
  z-index: -1;
  animation: shadow-drift 12s ease-in-out infinite;
}
@keyframes shadow-drift {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  50% { opacity: 0.65; transform: scaleX(0.9); }
}
.hero-orbit {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 55%, #000 95%);
  mask-image: linear-gradient(160deg, #000 10%, transparent 55%, #000 95%);
}
.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 45, 166, 0.14);
}
.hero-ribbon {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: drift 12s ease-in-out infinite;
  will-change: transform;
}
.hero-ribbon.is-ready { opacity: 1; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

.hero-spark {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #FFD3F0;
  box-shadow: 0 0 8px 2px rgba(255, 111, 216, 0.7);
  animation: twinkle 5s ease-in-out infinite;
}
.spark-1 { top: 16%; left: 22%; }
.spark-2 { top: 70%; right: 10%; width: 3px; height: 3px; animation-delay: 1.8s; }
.spark-3 { bottom: 12%; left: 34%; width: 3px; height: 3px; animation-delay: 3.1s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-glyphs { position: absolute; inset: 0; pointer-events: none; }
.glyph {
  position: absolute;
  font-family: var(--font-mono);
  color: var(--fuchsia);
  opacity: 0.45;
  animation: float 9s ease-in-out infinite;
}
.glyph-1 { top: 4%; left: 6%; font-size: 1.3rem; animation-delay: 0s; }
.glyph-2 { top: 10%; right: 4%; font-size: 1.5rem; color: #9B6BFF; animation-delay: 1.2s; }
.glyph-3 { bottom: 8%; left: 2%; font-size: 0.9rem; color: var(--muted); animation-delay: 2.1s; }
.glyph-4 { bottom: 4%; right: 8%; font-size: 1.3rem; animation-delay: 0.7s; }

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

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 10px;
  position: relative;
}

.hero-name {
  font-size: clamp(3rem, 6.6vw, 5.6rem);
  line-height: 1;
  margin-bottom: 18px;
  position: relative;
}
.gradient-text {
  background: linear-gradient(100deg, #8E7CFF 0%, var(--fuchsia) 55%, var(--fuchsia-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 45, 166, 0.3));
}

.hero-role {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0 0 6px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--fuchsia-soft);
  position: relative;
}

.hero-pitch {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 22px;
  position: relative;
}

.tag-pills {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 12px 0 36px;
  position: relative;
}
.tag-pills li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tag-pills li:hover { border-color: rgba(255, 45, 166, 0.3); color: var(--ink); }
.pill-icon { width: 15px; height: 15px; flex-shrink: 0; display: block; }
.pill-python { fill: url(#pyGrad); }
.pill-vercel { fill: var(--ink); }
.pill-supabase { fill: #3ECF8E; }
.pill-postgres { fill: #8BB9F0; }
.pill-git { fill: #F05032; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}
.hero-actions.centered { justify-content: center; }

.btn {
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(100deg, var(--violet), var(--fuchsia));
  color: #FFFFFF;
  box-shadow: 0 6px 18px -12px var(--glow-fuchsia);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 45, 166, 0.35), 0 14px 40px -6px var(--glow-fuchsia);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--fuchsia); color: var(--fuchsia); }

.scroll-hint {
  grid-area: hint;
  justify-self: center;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  position: relative;
}
.scroll-arrow { animation: bounce 1.8s ease-in-out infinite; color: var(--fuchsia); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero-photo-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.about-photo-box {
  position: relative;
  width: 100%; max-width: 360px; aspect-ratio: 4 / 5;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
    linear-gradient(150deg, rgba(255, 45, 166, 0.55), rgba(255, 255, 255, 0.06) 45%, rgba(109, 40, 217, 0.55)) border-box;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(192, 38, 211, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.about-photo-box::before {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 45, 166, 0.16), transparent 60%),
    radial-gradient(circle at 70% 75%, rgba(109, 40, 217, 0.2), transparent 60%);
  filter: blur(30px);
}
.photo-bracket {
  position: absolute;
  width: 34px; height: 34px;
  pointer-events: none;
}
.photo-bracket-tl {
  top: -14px; left: -14px;
  border-top: 1px solid var(--fuchsia);
  border-left: 1px solid var(--fuchsia);
  border-top-left-radius: 6px;
}
.photo-bracket-br {
  bottom: -14px; right: -14px;
  border-bottom: 1px solid #9B6BFF;
  border-right: 1px solid #9B6BFF;
  border-bottom-right-radius: 6px;
}
.photo-chip {
  position: absolute;
  right: -18px; top: 18%;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fuchsia-bright);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(14, 8, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
}

/* ---------------------------------------------------
   QUÉ HAGO — 3 cards
--------------------------------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.do-card,
.skill-card,
.project-card.project-card-soon {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 45%), var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.do-card::after,
.skill-card::after,
.project-card.project-card-soon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 45, 166, 0.11), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.do-card:hover,
.skill-card:hover,
.project-card.project-card-soon:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 166, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 50px -30px rgba(0, 0, 0, 0.95), 0 0 40px -24px var(--glow-fuchsia);
}
.do-card:hover::after,
.skill-card:hover::after,
.project-card.project-card-soon:hover::after { opacity: 1; }

.do-card { padding: 28px 24px; }
.do-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--fuchsia));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.do-card:hover::before { opacity: 1; }
.do-icon {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--fuchsia);
  margin-bottom: 14px;
}
.do-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.do-card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* ---------------------------------------------------
   SOBRE MÍ
--------------------------------------------------- */
.about { display: flex; gap: 64px; align-items: center; flex-wrap: wrap; isolation: isolate; }
.about-photo { flex: 1 1 300px; display: flex; justify-content: center; }
.about-text { flex: 2 1 420px; }
.about-text p { color: var(--ink-soft); margin: 0 0 16px; max-width: 60ch; }

.check-list { list-style: none; margin: 24px 0 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--fuchsia);
  color: var(--fuchsia);
  border-radius: 50%;
  font-size: 0.65rem;
}

/* ---------------------------------------------------
   PROYECTOS — grid
--------------------------------------------------- */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 32px;
}
.filter-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.filter-pill:hover { border-color: var(--fuchsia-soft); color: var(--ink); }
.filter-pill.is-active {
  color: #FFFFFF;
  border-color: transparent;
  background: linear-gradient(100deg, var(--violet), var(--fuchsia));
}

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.25s ease;
}

.project-name { font-size: 1.05rem; margin: 18px 20px 6px; }
.project-desc { color: var(--muted); margin: 0 20px 20px; font-size: 0.92rem; }

.project-card-featured {
  grid-column: 1 / -1;
  position: relative;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9), 0 0 80px -50px var(--glow-fuchsia);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
    linear-gradient(120deg, rgba(109, 40, 217, 0.5), rgba(255, 45, 166, 0.5)) border-box;
}
.project-featured-body { padding: 8px 32px 32px; }
.project-card-featured .project-name { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 10px; }
.project-card-featured .project-desc { margin: 0 0 18px; font-size: 1rem; color: var(--ink-soft); max-width: 70ch; }
.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 22px;
}
.project-tags:empty { display: none; }
.project-tags li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}
.project-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.project-actions .btn { padding: 10px 22px; font-size: 0.9rem; }

.project-card-soon { display: flex; flex-direction: column; }
.project-card-soon:hover .soon-visual { opacity: 0.9; }
.soon-visual {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, rgba(109, 40, 217, 0.18), rgba(255, 45, 166, 0.08) 60%, transparent);
}
.soon-badge {
  align-self: flex-start;
  margin: 18px 20px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fuchsia);
  background: var(--fuchsia-soft);
  border: 1px solid rgba(255, 45, 166, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
}
.project-card-soon .project-name { color: var(--muted); margin-top: 12px; margin-bottom: 20px; }

/* Carrusel de capturas del proyecto destacado */
.shot-carousel { position: relative; padding: 28px 0 8px; }
.shot-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 10px;
  --shot-w: 68%;
}
.shot-track::-webkit-scrollbar { display: none; }
.shot-track::before,
.shot-track::after {
  content: "";
  flex: 0 0 calc((100% - var(--shot-w)) / 2 - 18px);
}
.shot {
  flex: 0 0 var(--shot-w);
  scroll-snap-align: center;
  margin: 0;
  opacity: 0.45;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.shot.is-active { opacity: 1; transform: scale(1); }
.shot-frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-raised-2);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.shot.is-active .shot-frame {
  border-color: rgba(255, 45, 166, 0.45);
  box-shadow: 0 18px 50px -24px var(--glow-fuchsia);
}
.shot-frame-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.shot-frame-bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.shot-frame-body {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(109, 40, 217, 0.12), transparent 60%),
    linear-gradient(160deg, var(--bg-raised-2), var(--bg));
}
.shot-frame-body img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-frame-body.is-phone { position: relative; }
.shot-frame-body.is-phone img {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 90%;
  aspect-ratio: 738 / 1599;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8), 0 0 40px -12px var(--glow-fuchsia);
}
.shot-frame-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.shot-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.shot-arrow:hover { background: var(--fuchsia); border-color: var(--fuchsia); color: #fff; }
.shot-prev { left: 12px; }
.shot-next { right: 12px; }

.shot-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.shot-dot {
  width: 6px; height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.shot-dot.is-active { width: 18px; background: linear-gradient(90deg, var(--fuchsia-2), var(--fuchsia)); }

/* Zoom de capturas */
.is-zoomable { cursor: zoom-in; }
.is-zoomable:focus-visible { outline: 2px solid var(--fuchsia); outline-offset: 3px; }
.shot:not(.is-active).is-zoomable { cursor: pointer; }

.zoom-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8, 7, 10, 0);
  cursor: zoom-out;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.zoom-overlay.open { background: rgba(8, 7, 10, 0.9); backdrop-filter: blur(6px); }
.zoom-overlay:focus { outline: none; }
.zoom-img {
  position: fixed;
  transform-origin: 0 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--fuchsia-soft);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------------------------------------------------
   HABILIDADES — carrusel
--------------------------------------------------- */
.skills-row { position: relative; display: flex; align-items: center; gap: 12px; }

.skills-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.skills-track::-webkit-scrollbar { display: none; }

.skill-card {
  flex: 0 0 230px;
  scroll-snap-align: start;
  padding: 22px;
}
.skill-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--fuchsia); }
.skill-icons { display: flex; gap: 10px; margin-bottom: 18px; }
.skill-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.skill-icon svg { width: 22px; height: 22px; display: block; }
.skill-card:hover .skill-icon {
  border-color: rgba(255, 45, 166, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 18px -6px var(--glow-fuchsia);
}
.icon-python svg { fill: url(#pyGrad); }
.icon-html svg { fill: #E34F26; }
.icon-css svg { fill: #2B8BE0; }
.icon-js svg { fill: #F7DF1E; border-radius: 3px; }
.icon-git svg { fill: #F05032; }
.icon-github svg { fill: var(--ink); }
.icon-glyph {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fuchsia-bright);
  background: linear-gradient(160deg, rgba(255, 45, 166, 0.14), rgba(109, 40, 217, 0.12));
  border-color: rgba(255, 45, 166, 0.22);
}
.skill-card p { color: var(--muted); font-size: 0.88rem; margin: 0; }

.skills-arrow {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
}
.skills-arrow:hover { background: var(--fuchsia); color: #fff; border-color: var(--fuchsia); }

/* ---------------------------------------------------
   CTA BAND
--------------------------------------------------- */
.cta-band {
  margin-top: 120px;
  background: radial-gradient(circle at 50% 0%, rgba(255,45,166,0.10), transparent 55%), var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px clamp(20px, 5vw, 64px);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 32px;
  line-height: 1.25;
}

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 56px clamp(20px, 5vw, 64px) 60px; }
.footer-role { color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; }
.contact-list li { margin-bottom: 8px; }
.contact-list a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.contact-list a:hover { color: var(--fuchsia); border-color: var(--fuchsia); }
.footer-note {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 0;
}

/* ---------------------------------------------------
   RESPONSIVE
--------------------------------------------------- */
@media (max-width: 1100px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "visual" "content" "hint";
    text-align: center;
    min-height: unset;
    padding-top: 24px;
  }
  .hero-visual { max-width: 380px; margin-bottom: 8px; }
  .hero-role, .hero-pitch { margin-left: auto; margin-right: auto; }
  .tag-pills, .hero-actions { justify-content: center; }
  .hero::before {
    -webkit-mask-image: radial-gradient(70% 40% at 50% 22%, #000 0%, transparent 75%);
    mask-image: radial-gradient(70% 40% at 50% 22%, #000 0%, transparent 75%);
  }
}

@media (max-width: 880px) {
  .cards-3 { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }

  .hero-visual { max-width: min(72vw, 300px); }
  .hero-orbit, .glyph-3 { display: none; }
  .hero-ribbon { animation: none; }
  .photo-chip { right: -6px; }
  .about { flex-direction: column; }
  .section { padding-top: 72px; }

  .shot-track { --shot-w: 86%; }
  .shot-arrow { display: none; }
  .project-featured-body { padding: 20px; }
}
