:root {
  --purple-900: #1b153d;
  --purple-800: #221a4c;
  --purple-700: #2b2260;
  --gold-500: #d4af37;
  --gold-600: #e2c24f;
  --text-100: #ffffff;
  --text-80: rgba(255,255,255,0.85);
  --text-60: rgba(255,255,255,0.65);
  --bg: linear-gradient(180deg, #17113a 0%, #1b153d 40%, #17113a 100%);
}

* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: Manrope, Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text-100);
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  backdrop-filter: saturate(150%) blur(8px);
  background: linear-gradient(180deg, rgba(16,10,36,0.6), rgba(16,10,36,0));
  z-index: 20;
}
.logo { text-decoration: none; color: var(--text-100); font-weight: 800; letter-spacing: 0.12em }
.site-nav { display: flex; gap: 16px; flex-wrap: wrap }
.site-nav a { color: var(--text-80); text-decoration: none; padding: 8px 12px; border-radius: 999px }
.site-nav a:hover { color: var(--text-100); background: rgba(255,255,255,0.06) }
.site-nav .cta { color: #0a0618; background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); font-weight: 600 }
.site-nav .cta:hover { filter: brightness(1.05) }

/* Language switcher in header */
.site-nav .idiomas { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 0 8px }
.site-nav .idiomas li { display: flex }
.site-nav .idiomas a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12) }
.site-nav .idiomas a:hover { background: rgba(255,255,255,0.16) }
.site-nav .idiomas .flag-img { width: 18px; height: 18px }
/* Generic idiomas list for hero section */
.idiomas { list-style: none; display: flex; gap: 8px; justify-content: center; padding: 0; margin: 10px 0 0 }
.idiomas li { display: flex }
.idiomas a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12) }
.idiomas a:hover { background: rgba(255,255,255,0.16) }
.idiomas .flag-img { width: 18px; height: 18px }
@media (max-width: 720px) {
  .site-nav { gap: 10px }
  .site-nav .idiomas { margin-top: 8px }
}

.hero { position: relative; display: grid; place-items: center; padding: 96px 24px; min-height: 80vh }
.hero-inner { max-width: 1100px; text-align: center; position: relative; z-index: 1 }
.hero-title { font-size: clamp(3rem, 8vw, 5rem); line-height: 0.98; margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 800; color: var(--text-100) }
.hero-title::after { content: ""; display: block; width: 160px; height: 3px; margin: 16px auto 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold-500), var(--gold-600)) }
.hero-tagline { font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--text-80); margin: 0 0 16px }
.hero p { font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--text-80); margin: 0 0 24px; max-width: 780px; margin-left: auto; margin-right: auto }
.badges { display: flex; gap: 8px; justify-content: center; margin: 8px 0 20px }
.name { color: var(--gold-500) }
.name { color: var(--gold-500); text-shadow: 0 2px 6px rgba(0,0,0,0.35) }
.hero-actions { display: inline-flex; gap: 12px }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease }
.btn:focus-visible { outline: 2px solid rgba(226,194,79,0.9); outline-offset: 2px }
.btn.primary, .btn.ghost { color: #0a0618; background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); box-shadow: 0 6px 20px rgba(212,175,55,0.35); border: none }
.btn.primary:hover, .btn.ghost:hover { transform: translateY(-1px); filter: brightness(1.05) }

.hero-bg { display: none }

.section { padding: 72px 24px }
.section-head { max-width: 1100px; margin: 0 auto 24px auto; backface-visibility: hidden; will-change: transform }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin: 0 0 8px }
.section-subtitle { margin: 0; color: var(--text-60) }

.grid { max-width: 1100px; margin: 24px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0,1fr)) } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr } }

.card { position: relative; display: block; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text-100); transform: translateZ(0); outline: none; backface-visibility: hidden; will-change: transform }
.card::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: 18px; background: linear-gradient(135deg, rgba(212,175,55,0.7), rgba(212,175,55,0.15)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude }
.card-media { height: 150px; background: linear-gradient(135deg, rgba(58,32,131,0.5), rgba(42,23,98,0.7)); position: relative; overflow: hidden }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 0 30%, rgba(226,194,79,0.18) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.2s ease-in-out infinite; will-change: transform }
@keyframes shine { 0% { transform: translateX(-100%) } 50% { transform: translateX(0%) } 100% { transform: translateX(100%) } }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(110%) contrast(102%) }
.card-media .overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(180deg, rgba(27,21,61,0.0), rgba(27,21,61,0.55)); color: var(--text-100); opacity: 0; transform: translateY(6px); transition: opacity .22s ease, transform .22s ease; text-decoration: none; cursor: pointer }
.card:hover .overlay, .card:focus-within .overlay { opacity: 1; transform: translateY(0) }
.card-media .overlay i { color: var(--gold-500); font-size: 18px }
.card-media .overlay span { font-weight: 700 }
.card-body { padding: 16px }
.card h3 { margin: 0 0 6px; font-weight: 700 }
.card p { margin: 0 0 10px; color: var(--text-80) }
.chip { display: inline-block; font-size: 12px; padding: 6px 8px; border-radius: 999px; margin-right: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15) }
.chip { backdrop-filter: blur(2px) }
.card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.35) }
.card-actions { margin-top: 12px; display: flex; gap: 10px }
.btn.sm { padding: 8px 12px; border-radius: 10px; font-size: 13px; color: #0a0618 }

.about { max-width: 1100px; margin: 24px auto 0; display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start }
@media (max-width: 800px) { .about { grid-template-columns: 1fr } }
.avatar { width: 280px; height: 280px; border-radius: 24px; background: linear-gradient(135deg, rgba(212,175,55,0.3), rgba(58,32,131,0.5)) }
.skills { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px }
.skills li { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12) }

.contact { max-width: 800px; margin: 0 auto; text-align: center; padding: 32px; border-radius: 20px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12) }
.contact h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.4vw, 2.4rem) }
.contact p { margin: 0 16px 20px; color: var(--text-80) }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap }

.site-footer { padding: 36px 24px }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; color: var(--text-60) }
.socials { display: flex; gap: 10px }
.socials a { display: inline-flex; width: 36px; height: 36px; border-radius: 999px; align-items: center; justify-content: center; text-decoration: none; color: #0a0618; background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; position: relative; overflow: hidden }
.socials a:focus-visible { outline: 2px solid rgba(226,194,79,0.9); outline-offset: 2px }
.socials a:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 8px 24px rgba(212,175,55,0.35) }
.socials a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(226,194,79,0.45); transform: scale(0.9); opacity: 0 }
.socials a:hover::after { animation: ring .8s ease-out }
@keyframes ring { 0% { opacity: .35; transform: scale(0.9) } 100% { opacity: 0; transform: scale(1.6) } }

.reveal { opacity: 1; transform: none }
.reveal.is-visible { opacity: 1; transform: none }
.delay-1 { transition-delay: .08s }
.delay-2 { transition-delay: .16s }

.card[data-tilt] { transition: transform .15s ease }

.cursor { display: none }
.btn.magnetic { will-change: transform }

@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 rgba(212,175,55,0) } 50% { box-shadow: 0 0 24px rgba(212,175,55,0.6) } }
.pulse { animation: pulseGlow 1.2s ease-in-out 0s 3 }

/* removed HUD and panel for clean hero experience */
.detail { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(12px) saturate(160%); background: rgba(10,6,24,0.5) }
.detail.open { display: flex }
.detail-close { position: absolute; top: 16px; right: 16px; border: none; background: rgba(255,255,255,0.1); color: var(--text-100); width: 36px; height: 36px; border-radius: 999px; cursor: pointer }
.skills-grid { max-width: 1100px; margin: 24px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px }
@media (max-width: 800px) { .skills-grid { grid-template-columns: 1fr } }
.skill { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 12px }
.skill .chip { margin: 0 }
.bar { position: relative; height: 14px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); overflow: hidden }
.bar-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); will-change: width }
.bar-label { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--text-100) }

.masonry { max-width: 1100px; margin: 24px auto 0; column-count: 3; column-gap: 16px }
@media (max-width: 900px) { .masonry { column-count: 2 } }
@media (max-width: 640px) { .masonry { column-count: 1 } }
.interest-card { break-inside: avoid; display: block; margin: 0 0 16px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); backface-visibility: hidden; will-change: transform }
.interest-card i { font-size: 28px; color: var(--gold-500) }
.interest-card h3 { margin: 8px 0 6px }
.interest-card p { margin: 0; color: var(--text-80) }
.btn { position: relative; overflow: hidden }
.btn .ripple { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,0.4); width: 8px; height: 8px; pointer-events: none }
.hvr-shutter-out-horizontal:before { background: var(--purple-700) !important }
.btn.hvr-shutter-out-horizontal:hover { color: var(--text-100) }
.btn.xs { padding: 6px 10px; border-radius: 10px; font-size: 12px }
.card-media .overlay { gap: 10px }
