/* =====================================================
   main.css — Estilos compartidos byronlainez.click
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:ital,wght@0,400;0,500;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

:root {
  --bg: #0a0e13;
  --bg2: #0f1419;
  --surface: #141b24;
  --surface2: #0f1820;
  --border: #1e2d3d;
  --border2: #263d52;
  --accent: #00d4ff;
  --accent2: #ff6b35;
  --accent3: #39d353;
  --accent4: #f7c948;
  --text: #e8edf2;
  --text-muted: #6b8096;
  --text-dim: #3d5166;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* GRID BACKGROUND */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(10,14,19,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: 'DM Mono', monospace; font-size: 0.8rem;
  color: var(--text-muted); text-decoration: none;
  letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-cta {
  font-family: 'DM Mono', monospace; font-size: 0.78rem;
  padding: 0.5rem 1.2rem;
  background: transparent; border: 1px solid var(--accent);
  color: var(--accent); cursor: pointer;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transition: all 0.2s;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }

.nav-back {
  font-family: 'DM Mono', monospace; font-size: 0.78rem;
  color: var(--text-muted); text-decoration: none;
  letter-spacing: 0.05em; display: flex; align-items: center;
  gap: 0.5rem; transition: color 0.2s;
}
.nav-back:hover { color: var(--accent); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 2.5rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.footer-brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; }
.footer-brand span { color: var(--accent); }
.footer-note { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  color: var(--text-dim); text-decoration: none;
  letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ── SECTION BASE ── */
section { position: relative; z-index: 1; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 6rem 2.5rem; }

.section-label {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  color: var(--accent); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.section-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1.2rem;
}
.section-title span { color: var(--accent); }
.section-body {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.8; max-width: 620px;
}

/* ── ANIMATIONS ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── FILTER BAR (shared by blog and juguetes) ── */
.filter-bar {
  display: flex; gap: 0; margin-bottom: 3rem;
  border: 1px solid var(--border); overflow: hidden; width: fit-content;
}
.filter-btn {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  padding: 0.6rem 1.4rem; background: transparent;
  border: none; border-right: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.2s; white-space: nowrap;
}
.filter-btn:last-child { border-right: none; }
.filter-btn:hover { background: var(--surface); color: var(--text); }
.filter-btn.active { background: var(--accent); color: var(--bg); }

/* ── PAGE HEADER (shared) ── */
.page { max-width: 1200px; margin: 0 auto; padding: 7rem 2rem 6rem; position: relative; z-index: 1; }
.page-header {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 2rem;
  margin-bottom: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  animation: fadeSlideUp 0.5s ease both;
}
.page-label {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  color: var(--accent); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.page-label::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
.page-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 0.8rem;
}
.page-title .dim { color: var(--text-muted); }
.page-sub { font-size: 1rem; color: var(--text-muted); max-width: 580px; line-height: 1.75; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .section-inner { padding: 4rem 1.5rem; }
  .page { padding: 6rem 1.2rem 4rem; }
  .page-header { grid-template-columns: 1fr; }
  .filter-bar { width: 100%; overflow-x: auto; }
}
