/* ============================================================
   CV Eduardo Fierro Duque — freeanimationpower.org/cveduardofierroduque
   Header/hero: lenguaje FAP (amarillo fluor + celeste).
   Cuerpo: direccion editorial poster — azul royal, tipografia
   condensada Oswald, tags amarillos, acentos blancos.
   Micro-interacciones: flotado, escala 3D al hover/click,
   reveal al hacer scroll en experiencia.
   ============================================================ */

:root {
  --yellow: #ffdc00;
  --fluor: #d2fa02;
  --sky: #6ed9f4;
  --sky-bright: #1fb6ef;
  --sky-deep: #0a86b4;
  --blue: #1b4ddb;
  --blue-deep: #0f2fa0;
  --orange: #ff6d00;
  --orange2: #ff4200;
  --ink: #070706;
  --cream: #eaf7fc;
  --white: #ffffff;
  --muted: #6b675a;
  --border: rgba(7,7,6,0.10);
  --radius: 22px;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; background: var(--ink); }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--yellow);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.cv-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---------- Barra superior ---------- */
.cv-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(110,217,244,0.25);
}

.cv-topbar-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 10px var(--space-md);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cv-topbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin-right: auto;
}

.cv-langs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cv-lang-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,220,0,0.35);
  background: transparent;
  color: var(--yellow);
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}

.cv-lang-pill:hover { border-color: var(--fluor); color: var(--fluor); background: rgba(217,255,0,0.12); box-shadow: 0 0 16px rgba(217,255,0,0.55); transform: translateY(-1px) scale(1.06); }
.cv-lang-pill:active { transform: scale(0.94); }

.cv-lang-pill.is-active {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

/* ---------- Boton descarga ---------- */
.cv-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  background: var(--fluor);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo), background-color 0.25s var(--ease-out-expo);
  box-shadow: 0 4px 14px rgba(7,7,6,0.25);
  animation: cvFloatCard 6s ease-in-out infinite;
}

.cv-download:hover { background: var(--yellow); transform: perspective(600px) translateY(-3px) rotateX(4deg) scale(1.05); box-shadow: 0 12px 28px rgba(7,7,6,0.38), 0 0 26px rgba(255,220,0,0.75); }
.cv-download:active { transform: scale(0.94); }
.cv-download-icon { font-size: 1rem; line-height: 1; }

.cv-download--hero {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  padding: 14px 28px;
  animation-delay: -3s;
}

.cv-download-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.6;
  margin-left: 6px;
}

/* ---------- Hero ---------- */
.cv-hero {
  background:
    radial-gradient(circle at center, rgba(255,242,160,0.90) 0%, rgba(255,242,160,0) 55%),
    radial-gradient(circle at center, rgba(110,217,244,0.55) 0%, rgba(110,217,244,0) 60%),
    var(--yellow);
  background-size: 220% 220%, 300% 300%, 100% 100%;
  animation: rampCircle 22s ease-in-out infinite alternate;
  text-align: center;
  padding: var(--space-xl) 0 calc(var(--space-xl) * 0.85);
}

@keyframes rampCircle {
  0%   { background-position: 18% 12%, 82% 88%, 0 0; }
  50%  { background-position: 85% 42%, 12% 28%, 0 0; }
  100% { background-position: 28% 92%, 72% 58%, 0 0; }
}

.cv-hero-logo-link {
  display: inline-block;
  line-height: 0;
  border-radius: 24px;
  transition: transform 0.35s var(--ease-out-expo), filter 0.35s var(--ease-out-expo);
}

.cv-hero-logo-link:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 26px rgba(255,255,255,0.95)) drop-shadow(0 14px 30px rgba(7,7,6,0.30));
}

.cv-hero-logo {
  width: 172px;
  height: auto;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 10px 22px rgba(7,7,6,0.25));
  animation: cvFloat 5.5s ease-in-out infinite;
}

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

/* Flotado suave para tarjetas/botones (usa la propiedad translate
   para no interferir con los transform de hover) */
@keyframes cvFloatCard {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

.cv-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.cv-role {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(0.72rem, 1.6vw, 0.92rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-top: 10px;
}

.cv-contact-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-md);
}

.cv-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 50px;
  background: var(--sky-bright);
  border: 1px solid rgba(7,7,6,0.14);
  color: var(--fluor);
  text-decoration: none;
  transition: all 0.2s var(--ease-out-expo);
  animation: cvFloatCard 7s ease-in-out infinite;
}

.cv-chip:nth-child(2n) { animation-delay: -2.3s; }
.cv-chip:nth-child(3n) { animation-delay: -4.6s; }

a.cv-chip:hover { background: var(--ink); color: var(--fluor); box-shadow: 0 0 22px rgba(217,255,0,0.80), 0 8px 18px rgba(7,7,6,0.28); transform: perspective(600px) translateY(-2px) rotateX(5deg) scale(1.07); }
a.cv-chip:active { transform: scale(0.93); }

/* ---------- Secciones ---------- */
.cv-main { background: var(--white); }

.cv-section {
  padding: var(--space-xl) 0;
}

.cv-section--tight { padding-top: 0; }

.cv-section--cream { background: var(--cream); }

.cv-section--dark {
  background: linear-gradient(160deg, var(--blue-deep) 0%, #0a1f6e 100%);
  color: var(--white);
}

.cv-section--blue {
  background: var(--blue);
  color: var(--white);
}

.cv-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.cv-label::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}

.cv-section--blue .cv-label,
.cv-section--dark .cv-label { color: var(--white); }
.cv-section--blue .cv-label::before,
.cv-section--dark .cv-label::before { background: var(--yellow); }

.cv-label--yellow { color: var(--yellow); }
.cv-label--yellow::before { background: var(--yellow); }

.cv-section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-bottom: var(--space-md);
}

/* ---------- Perfil + video personal ---------- */
.cv-profile-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  column-gap: var(--space-lg);
  row-gap: var(--space-md);
  align-items: start;
}

.cv-profile-text { grid-column: 1; }

.cv-profile-video {
  grid-column: 2;
  grid-row: 1 / span 2; /* abarca texto + distingue: centrado en altura total */
  align-self: center;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(27,77,219,0.85);
  line-height: 0;
  animation: cvFloatCard 7.5s ease-in-out infinite;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), background-color 0.35s var(--ease-out-expo);
}

.cv-profile-video:hover {
  transform: perspective(700px) rotateX(3deg) rotateY(-4deg) scale(1.03);
  box-shadow: 12px 12px 0 rgba(27,77,219,0.9), 0 0 30px rgba(110,217,244,0.85);
}

.cv-profile-video-media {
  width: 100%;
  height: auto;
  display: block;
}

.cv-profile-video-print { display: none; }

.cv-profile-sub {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--blue);
  margin-bottom: 14px;
}

.cv-lead {
  font-size: 1.06rem;
  max-width: 62ch;
  color: #2a2a26;
}

/* Bloque destacado amarillo estilo tag de poster */
.cv-distingue {
  grid-column: 1; /* queda bajo el texto, a la izquierda del video */
  margin-top: 0; /* el aire lo da el row-gap de la grilla */
  background: var(--yellow);
  border-left: 6px solid var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-md);
  max-width: 72ch;
  animation: cvFloatCard 8s ease-in-out infinite;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), background-color 0.35s var(--ease-out-expo);
}

.cv-distingue:hover {
  background: var(--fluor);
  transform: perspective(700px) translateY(-4px) rotateX(2.5deg) scale(1.015);
  box-shadow: 0 16px 40px rgba(7,7,6,0.16), 0 0 30px rgba(217,255,0,0.75);
}

.cv-distingue h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

/* ---------- Core ---------- */
.cv-core-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.cv-core-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), background-color 0.35s var(--ease-out-expo);
  break-inside: avoid;
  animation: cvFloatCard 7s ease-in-out infinite;
}

.cv-core-card:nth-child(2) { animation-delay: -1.8s; }
.cv-core-card:nth-child(3) { animation-delay: -3.6s; }
.cv-core-card:nth-child(4) { animation-delay: -5.2s; }

.cv-core-card:hover {
  background: rgba(255,255,255,0.16);
  transform: perspective(700px) translateY(-5px) rotateX(3deg) scale(1.025);
  box-shadow: 0 16px 44px rgba(7,7,6,0.28), 0 0 0 1.5px var(--yellow), 0 0 32px rgba(255,220,0,0.55);
}

.cv-core-card:active { transform: scale(0.98); }

.cv-core-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--yellow);
  display: block;
  margin-bottom: 6px;
}

.cv-core-card h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.cv-core-card p { font-size: 0.92rem; color: rgba(255,255,255,0.88); }

/* ---------- Habilidades ---------- */
.cv-section--dark .cv-skill-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.cv-skill-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cv-skill-group {
  border: 1px solid rgba(110,217,244,0.28);
  border-radius: var(--radius);
  padding: var(--space-md);
  background: rgba(255,255,255,0.04);
  break-inside: avoid;
  animation: cvFloatCard 7.6s ease-in-out infinite;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), background-color 0.35s var(--ease-out-expo);
}

.cv-skill-group:nth-child(2) { animation-delay: -2s; }
.cv-skill-group:nth-child(3) { animation-delay: -4s; }
.cv-skill-group:nth-child(4) { animation-delay: -5.8s; }

.cv-skill-group:hover {
  background: rgba(110,217,244,0.14);
  transform: perspective(700px) translateY(-5px) rotateX(3deg) scale(1.02);
  box-shadow: 0 16px 44px rgba(7,7,6,0.30), 0 0 0 1.5px var(--sky), 0 0 30px rgba(110,217,244,0.60);
}

.cv-skill-group:active { transform: scale(0.98); }

.cv-skill-group h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
  color: var(--yellow);
  margin-bottom: 12px;
}

.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 50px;
  background: rgba(110,217,244,0.10);
  border: 1px solid rgba(110,217,244,0.32);
  color: #bfeefc;
}

/* ---------- Demo reels ---------- */
.cv-reel {
  border: 1px solid rgba(110,217,244,0.28);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255,255,255,0.04);
  break-inside: avoid;
  animation: cvFloatCard 7.6s ease-in-out infinite;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), background-color 0.35s var(--ease-out-expo);
}

.cv-reel:nth-child(2) { animation-delay: -1.9s; }
.cv-reel:nth-child(3) { animation-delay: -3.8s; }
.cv-reel:nth-child(4) { animation-delay: -5.7s; }

.cv-reel:hover {
  background: rgba(110,217,244,0.14);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 44px rgba(7,7,6,0.30), 0 0 0 1.5px var(--fluor), 0 0 30px rgba(210,250,2,0.45);
}

.cv-reel:active { transform: scale(0.98); }

.cv-reel-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: var(--ink);
}

.cv-reel-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cv-reel-thumb {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-reel figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px 2px;
}

.cv-reel-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.82rem;
  color: var(--white);
}

.cv-reel-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--sky);
  white-space: nowrap;
  text-decoration: none;
}

.cv-reel-url:hover { text-decoration: underline; color: var(--fluor); }

/* ---------- Cajas de enlace (fierroduque, portafolio, FAP, GitHub) ---------- */
.cv-linkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  border: 1px solid rgba(110,217,244,0.28);
  border-radius: var(--radius);
  padding: 14px var(--space-md);
  background: rgba(255,255,255,0.04);
  break-inside: avoid;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), background-color 0.35s var(--ease-out-expo);
}

.cv-linkbox:hover {
  background: rgba(110,217,244,0.14);
  transform: perspective(700px) translateY(-3px) scale(1.01);
  box-shadow: 0 12px 34px rgba(7,7,6,0.28), 0 0 0 1.5px var(--sky), 0 0 24px rgba(110,217,244,0.50);
}

.cv-linkbox-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cv-linkbox-info strong {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  color: var(--yellow);
}

.cv-linkbox-info span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}

.cv-linkbox-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cv-linkbox-btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--fluor);
  border-radius: 50px;
  padding: 9px 22px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo), background-color 0.25s;
}

.cv-linkbox-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 22px rgba(210,250,2,0.40);
}

.cv-linkbox-btn--alt {
  background: var(--sky-bright);
  color: var(--white);
}

.cv-linkbox-btn--alt:hover {
  box-shadow: 0 8px 22px rgba(31,182,239,0.45);
}

@media (max-width: 640px) {
  .cv-reel figcaption { flex-direction: column; gap: 2px; }
  .cv-linkbox { flex-direction: column; align-items: stretch; text-align: center; }
  .cv-linkbox-actions { justify-content: center; }
  .cv-games { grid-template-columns: 1fr !important; }
  .cv-game-info { flex-wrap: wrap; }
  .cv-game-link { margin-left: auto; }
}

/* ---------- Videojuegos HTML5 ---------- */
.cv-games-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.cv-games {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.cv-game {
  border: 1px solid rgba(110,217,244,0.28);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255,255,255,0.04);
  break-inside: avoid;
  animation: cvFloatCard 7.6s ease-in-out infinite;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), background-color 0.35s var(--ease-out-expo);
}

.cv-game:nth-child(2) { animation-delay: -1.3s; }
.cv-game:nth-child(3) { animation-delay: -2.6s; }
.cv-game:nth-child(4) { animation-delay: -3.9s; }
.cv-game:nth-child(5) { animation-delay: -5.2s; }
.cv-game:nth-child(6) { animation-delay: -6.4s; }

.cv-game:hover {
  background: rgba(110,217,244,0.14);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 44px rgba(7,7,6,0.30), 0 0 0 1.5px var(--fluor), 0 0 30px rgba(210,250,2,0.45);
}

.cv-game-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: var(--ink);
}

/* En pantalla el juego carga directo: cover y CTA solo se usan para el PDF */
.cv-game-cover,
.cv-game-cta {
  display: none;
}

.cv-game-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out-expo);
}

.cv-game:hover .cv-game-cover { transform: scale(1.05); }

.cv-game-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(7,7,6,0.55) 0%, rgba(7,7,6,0.10) 55%);
  transition: background-color 0.3s;
}

.cv-game-cta span {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--fluor);
  border-radius: 50px;
  padding: 10px 26px;
  box-shadow: 0 6px 24px rgba(210,250,2,0.45);
  transition: transform 0.25s var(--ease-out-expo);
}

.cv-game:hover .cv-game-cta span { transform: scale(1.08); }

.cv-game-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cv-game-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px 2px;
}

.cv-game-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.cv-game-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fluor);
  color: var(--ink);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(210, 250, 2, 0.45);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo),
              background-color 0.3s var(--ease-out-expo);
}

.cv-game-link:hover {
  transform: scale(1.06) translateY(-1px);
  box-shadow: 0 0 26px rgba(210, 250, 2, 0.75);
  background: var(--white);
}

.cv-game-info strong {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
  color: var(--white);
}

.cv-game-info span {
  font-size: 0.72rem;
  color: var(--sky);
}

/* ---------- Timeline experiencia ---------- */
.cv-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cv-job {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--blue);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: 0 2px 10px rgba(7,7,6,0.05);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo),
              background-color 0.35s var(--ease-out-expo), opacity 0.7s var(--ease-out-expo);
  break-inside: avoid;
  animation: cvFloatCard 8.2s ease-in-out infinite;
}

.cv-job:nth-child(2n) { animation-delay: -2.7s; }
.cv-job:nth-child(3n) { animation-delay: -5.4s; }

/* Reveal al hacer scroll (las clases las agrega cv.js) */
.cv-job.cv-reveal {
  opacity: 0;
  transform: translateY(28px);
}

.cv-job.cv-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cv-timeline .cv-job.cv-reveal:nth-child(2) { transition-delay: 0.06s; }
.cv-timeline .cv-job.cv-reveal:nth-child(3) { transition-delay: 0.12s; }
.cv-timeline .cv-job.cv-reveal:nth-child(4) { transition-delay: 0.18s; }
.cv-timeline .cv-job.cv-reveal:nth-child(5) { transition-delay: 0.24s; }
.cv-timeline .cv-job.cv-reveal:nth-child(6) { transition-delay: 0.30s; }
.cv-timeline .cv-job.cv-reveal:nth-child(7) { transition-delay: 0.36s; }
.cv-timeline .cv-job.cv-reveal:nth-child(8) { transition-delay: 0.42s; }

.cv-job:hover {
  background: #fffbe8;
  transform: perspective(700px) translateY(-5px) rotateX(2.5deg) scale(1.015);
  box-shadow: 0 16px 44px rgba(7,7,6,0.12), 0 0 0 1.5px var(--blue), 0 0 28px rgba(27,77,219,0.35);
}

.cv-job:active { transform: scale(0.99); }

.cv-job-period {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid rgba(7,7,6,0.20);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

.cv-job-body h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.12rem;
  line-height: 1.25;
}

.cv-job-company {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin: 4px 0 10px;
}

.cv-job-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-job-body li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  color: #33332e;
}

.cv-job-body li::before {
  content: '\25B6';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.6rem;
  color: var(--blue);
}

.cv-job-link {
  display: inline-block;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid rgba(27,77,219,0.3);
}

.cv-job-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Formacion ---------- */
.cv-degree {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--blue);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  break-inside: avoid;
  animation: cvFloatCard 7.2s ease-in-out infinite;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), background-color 0.35s var(--ease-out-expo);
}

.cv-degree:hover {
  background: #2f63f0;
  transform: perspective(700px) translateY(-4px) rotateX(2.5deg) scale(1.015);
  box-shadow: 0 16px 44px rgba(27,77,219,0.35), 0 0 30px rgba(110,217,244,0.75);
}

.cv-degree-icon { font-size: 1.6rem; }

.cv-degree p { font-weight: 700; font-size: 0.98rem; }

.cv-cert-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.cv-cert-group {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  break-inside: avoid;
  animation: cvFloatCard 7.8s ease-in-out infinite;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), background-color 0.35s var(--ease-out-expo);
}

.cv-cert-group:nth-child(2) { animation-delay: -2.6s; }
.cv-cert-group:nth-child(3) { animation-delay: -5.2s; }

.cv-cert-group:hover {
  background: var(--white);
  transform: perspective(700px) translateY(-5px) rotateX(3deg) scale(1.02);
  box-shadow: 0 16px 44px rgba(7,7,6,0.12), 0 0 0 1.5px var(--blue), 0 0 26px rgba(27,77,219,0.35);
}

.cv-cert-group:active { transform: scale(0.98); }

.cv-cert-group h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.cv-cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-cert-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.86rem;
  color: #3a3a34;
}

.cv-cert-list li::before {
  content: '\25B6';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.55rem;
  color: var(--blue);
}

/* ---------- Footer ---------- */
.cv-footer {
  background: var(--ink);
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
}

.cv-footer-logo {
  width: 96px;
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 22px rgba(255,150,0,0.55)) saturate(1.15);
  animation: cvFloat 5.5s ease-in-out infinite;
  transition: transform 0.3s var(--ease-out-expo);
}

.cv-footer-logo:hover { transform: scale(1.08); filter: drop-shadow(0 0 34px rgba(255,170,0,0.90)) saturate(1.3); }

.cv-footer-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,220,0,0.75);
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cv-core-grid,
  .cv-section--dark .cv-skill-groups,
  .cv-cert-groups { grid-template-columns: 1fr; }

  .cv-job { grid-template-columns: 1fr; gap: 12px; }

  .cv-profile-grid { grid-template-columns: 1fr; }
  .cv-profile-video { grid-column: auto; grid-row: auto; max-width: 230px; margin: 0 auto; }
  .cv-distingue { grid-column: auto; }

  .cv-topbar-inner { justify-content: center; }
  .cv-topbar-brand { margin-right: 0; width: 100%; text-align: center; }

  .cv-name { font-size: clamp(1.4rem, 7.5vw, 2.4rem); }
  .cv-role { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cv-hero, .cv-hero-logo, .cv-download, .cv-chip, .cv-profile-video,
  .cv-distingue, .cv-core-card, .cv-skill-group, .cv-job,
  .cv-degree, .cv-cert-group, .cv-footer-logo { animation: none !important; }

  .cv-job.cv-reveal { opacity: 1; transform: none; }
}

/* ============================================================
   IMPRESION / PDF — mismo diseno, formato documento A4
   ============================================================ */
@page {
  size: A4;
  margin: 12mm;
}

@media print {
  .no-print { display: none !important; }

  html, body {
    background: var(--white) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Nada flota ni se oculta en el PDF */
  .cv-hero, .cv-hero-logo, .cv-download, .cv-chip, .cv-profile-video,
  .cv-distingue, .cv-core-card, .cv-skill-group, .cv-job, .cv-reel, .cv-game,
  .cv-degree, .cv-cert-group, .cv-footer-logo {
    animation: none !important;
    translate: none !important;
  }

  .cv-job.cv-reveal { opacity: 1 !important; transform: none !important; }

  .cv-container { max-width: 100%; padding: 0; }

  .cv-hero {
    padding: 8mm 6mm;
    border-radius: 6mm;
    margin-bottom: 6mm;
  }

  .cv-hero-logo { width: 50px; margin-bottom: 4mm; }
  .cv-name { font-size: 24pt; }
  .cv-role { font-size: 8pt; }

  .cv-contact-chips { gap: 4px; margin-top: 4mm; }
  .cv-chip { font-size: 6.5pt; padding: 2px 8px; background: var(--sky-bright); color: var(--fluor); }

  .cv-section { padding: 5mm 0; }
  .cv-section--tight { padding-top: 0; }

  .cv-section-title { font-size: 17pt; margin-bottom: 3mm; }
  .cv-label { font-size: 7pt; }

  video.cv-profile-video-media { display: none !important; }
  .cv-profile-video-print { display: block !important; }
  .cv-profile-grid { grid-template-columns: 1fr 30mm; column-gap: 6mm; row-gap: 4mm; align-items: start; }
  .cv-profile-video { border-width: 1.5pt; box-shadow: none; }

  .cv-lead { font-size: 9.5pt; }
  .cv-profile-sub { font-size: 8pt; }

  .cv-distingue { padding: 4mm; margin-top: 0; }

  .cv-core-grid { grid-template-columns: repeat(2, 1fr); gap: 4mm; }
  .cv-core-card { padding: 4mm; box-shadow: none; }
  .cv-core-card:hover { transform: none; }

  .cv-section--dark .cv-skill-flow { gap: 4mm; }
  .cv-skill-block { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2%; }
  .cv-skill-group { padding: 4mm; margin-bottom: 3mm; width: 100%; }
  .cv-tag { font-size: 6.5pt; padding: 2px 8px; }

  /* Demo reels: en el PDF se muestran como miniatura + enlace clicable */
  .cv-reel { width: 48.5%; margin: 0 0 3mm; padding: 3mm; box-shadow: none; }
  .cv-reel:hover { transform: none; }
  .cv-reel-frame iframe { display: none !important; }
  .cv-reel-thumb { display: block !important; }
  .cv-reel-name { font-size: 7.5pt; }
  .cv-reel-url { font-size: 6pt; }

  /* Cajas de enlace compactas en el PDF */
  .cv-linkbox { padding: 3mm 4mm; margin-top: 2mm; box-shadow: none; }
  .cv-linkbox:hover { transform: none; }
  .cv-linkbox-info strong { font-size: 8.5pt; }
  .cv-linkbox-info span { font-size: 7pt; }
  .cv-linkbox-btn { font-size: 7pt; padding: 2px 10px; }

  /* Juegos: en el PDF se muestran como cover + titulo */
  .cv-games-note { font-size: 7.5pt; }
  .cv-games { grid-template-columns: repeat(3, 1fr) !important; gap: 3mm; }
  .cv-game { padding: 2.5mm; box-shadow: none; }
  .cv-game:hover { transform: none; }
  .cv-game-screen { cursor: default; }
  .cv-game-screen iframe, .cv-game-cta { display: none !important; }
  .cv-game-cover { display: block !important; }
  .cv-game-info strong { font-size: 6.8pt; }
  .cv-game-info span { font-size: 6pt; }
  .cv-game-link { font-size: 6pt; padding: 2px 8px; box-shadow: none; }

  .cv-job { padding: 4mm; box-shadow: none; margin-bottom: 3mm; }
  .cv-job:hover { transform: none; }
  .cv-job-body li { font-size: 8.8pt; }

  .cv-degree { padding: 4mm; }
  .cv-cert-groups { grid-template-columns: repeat(3, 1fr); gap: 4mm; }
  .cv-cert-group { padding: 4mm; }
  .cv-cert-list li { font-size: 7.6pt; }

  .cv-footer { padding: 4mm 0 3mm; }
  .cv-footer-logo { width: 15mm; margin-bottom: 2mm; }
}
