/* =============================================
   BYTEON ARGENTINA — style.css
   Paleta: Negro / Amarillo / Blanco
   Fuentes: Syne (display) + Space Mono (code)
   ============================================= */

:root {
  --black:   #0a0a0a;
  --yellow:  #f5c400;
  --yellow2: #ffe566;
  --white:   #f0f0f0;
  --gray:    #1a1a1a;
  --gray2:   #2a2a2a;
  --gray3:   #444;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --nav-h: 72px;
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 3px; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray2);
  z-index: 1000;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.logo-bracket { color: var(--gray3); }
.logo-accent  { color: var(--yellow); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  color: var(--white);
  transition: var(--transition);
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active { color: var(--yellow); background: rgba(245,196,0,0.08); }

.nav-cta {
  background: var(--yellow) !important;
  color: var(--black) !important;
  font-weight: 700;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--yellow2) !important; }

/* LANG SWITCHER */
.lang-switcher {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--gray2);
  border: 1px solid var(--gray3);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
}
.lang-btn img { width: 18px; height: auto; border-radius: 2px; }
.lang-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.lang-btn.active { border-color: var(--yellow); background: rgba(245,196,0,0.12); color: var(--yellow); }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 3rem) 5% 5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,196,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,196,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, transparent 40%, var(--black) 100%);
}

.hero-content { flex: 1; max-width: 560px; position: relative; }
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--yellow);
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.yellow-text { color: var(--yellow); }

.hero-sub {
  font-size: 1rem;
  color: #aaa;
  max-width: 440px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ========== BUTTONS ========== */
.btn-primary {
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  border: 2px solid var(--yellow);
  transition: var(--transition);
  display: inline-block;
}
.btn-primary:hover { background: var(--yellow2); border-color: var(--yellow2); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  border: 2px solid var(--gray3);
  transition: var(--transition);
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }

.btn-outline {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--yellow);
  padding-bottom: 2px;
  transition: var(--transition);
  display: inline-block;
}
.btn-outline:hover { letter-spacing: 0.06em; }

.btn-dark {
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  border: 2px solid var(--black);
  transition: var(--transition);
  display: inline-block;
}
.btn-dark:hover { background: var(--gray); transform: translateY(-2px); }

/* CODE WINDOW */
.hero-code { flex: 1; max-width: 480px; position: relative; }

.code-window {
  background: var(--gray);
  border: 1px solid var(--gray2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,196,0,0.08);
}
.code-bar {
  background: var(--gray2);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }
.code-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray3);
  margin-left: auto;
}
.code-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}
.c-keyword { color: #c792ea; }
.c-var     { color: #82aaff; }
.c-prop    { color: #f07178; }
.c-str     { color: #c3e88d; }

/* ========== TECH STRIP ========== */
.tech-strip {
  overflow: hidden;
  background: var(--gray);
  border-top: 1px solid var(--gray2);
  border-bottom: 1px solid var(--gray2);
  padding: 1rem 0;
}
.tech-track {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #888;
  padding: 0 1.5rem;
}
.tech-track span:nth-child(odd) { color: var(--yellow); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========== ABOUT STRIP ========== */
.about-strip {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 6rem 5%;
  border-bottom: 1px solid var(--gray2);
}
.about-left { flex: 1; max-width: 520px; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--yellow);
  display: block;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.about-left h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.about-left p { color: #aaa; margin-bottom: 2rem; line-height: 1.75; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  flex: 1;
  max-width: 380px;
}
.stat-box {
  background: var(--gray);
  border: 1px solid var(--gray2);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: var(--transition);
}
.stat-box:hover { border-color: var(--yellow); }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--yellow); line-height: 1; }
.stat-label { font-family: var(--font-mono); font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 0.06em; }

/* ========== PROJECTS ========== */
.projects-section { padding: 6rem 5%; border-bottom: 1px solid var(--gray2); }
.section-header { margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.project-card {
  background: var(--gray);
  border: 1px solid var(--gray2);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gray3);
  transition: var(--transition);
}
.project-card:hover { border-color: var(--yellow); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.project-card:hover::before { background: var(--yellow); }
.project-card.featured::before { background: var(--yellow); }
.project-card.featured { border-color: rgba(245,196,0,0.3); }

.project-top { display: flex; justify-content: space-between; align-items: center; }
.project-lang {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--yellow);
  background: rgba(245,196,0,0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.project-links { display: flex; gap: 0.75rem; }
.project-links a { color: var(--gray3); font-size: 1rem; transition: var(--transition); }
.project-links a:hover { color: var(--yellow); }

.project-card h3 { font-size: 1.15rem; font-weight: 700; }
.project-card p  { font-size: 0.875rem; color: #888; line-height: 1.65; flex: 1; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--gray3);
  color: #aaa;
}

.center-btn { text-align: center; }

/* ========== CTA BANNER ========== */
.cta-banner {
  background: var(--yellow);
  padding: 5rem 5%;
}
.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--gray);
  border-top: 1px solid var(--gray2);
  padding: 3rem 5% 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--yellow); }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a { color: #888; font-size: 1.1rem; transition: var(--transition); }
.footer-socials a:hover { color: var(--yellow); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #555;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray2);
}

/* ========== ANIMATIONS ========== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}
.animate-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeRight 0.8s ease 0.25s forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  to { opacity: 1; transform: translateX(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero { flex-direction: column; gap: 2.5rem; padding-top: calc(var(--nav-h) + 2rem); }
  .hero-code { max-width: 100%; width: 100%; }
  .about-strip { flex-direction: column; gap: 2.5rem; }
  .about-stats { max-width: 100%; width: 100%; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    padding: 2rem 5%;
    gap: 0.5rem;
    border-bottom: 1px solid var(--gray2);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 0.9rem; padding: 0.6rem 0; width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav, .footer-socials { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons a { text-align: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ========== PAGE-SPECIFIC (reutilizable en otras páginas) ========== */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 5% 3rem;
  border-bottom: 1px solid var(--gray2);
}
.page-hero .section-tag { margin-bottom: 0.75rem; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-hero p { color: #aaa; max-width: 540px; margin-top: 1rem; line-height: 1.7; }

.content-section { padding: 5rem 5%; max-width: 1100px; margin: 0 auto; }