:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --accent: #3b82f6;
  --sidebar-bg: #f5f6f7;
  --card: #f9fafb;
}
body.dark {
  --bg: #0d1117;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #60a5fa;
  --sidebar-bg: #161b22;
  --card: #1f2937;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', system-ui, sans-serif; }
body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  transition: background 0.3s, color 0.3s;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(0,0,0,0.1);
  padding: 2rem 1.5rem;
  position: fixed;
  overflow-y: auto;
}
.sidebar-header h1 {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 800;
}
.sidebar-header p {
  font-size: 0.9rem;
  color: var(--muted);
}
.nav-links {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.6rem 0;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}
.theme-btn {
  margin-top: 2rem;
  background: var(--card);
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
}
.theme-btn:hover { background: var(--accent); color: white; }

/* MAIN CONTENT */
.content {
  margin-left: 260px;
  padding: 3rem 2rem;
  width: calc(100% - 260px);
  max-width: 1000px;
}
section {
  margin-bottom: 4rem;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
h3 { margin-top: 1rem; margin-bottom: .5rem; color: var(--text); }
p, li { color: var(--muted); font-size: 1rem; line-height: 1.7; }
ul { margin-left: 1.5rem; list-style: disc; }

article {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid rgba(0,0,0,0.05);
}

/* FORM */
form { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; max-width: 500px; }
input, textarea {
  padding: 0.7rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.2);
  background: var(--card);
  color: var(--text);
}
button.btn {
  padding: 0.8rem 1.2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s;
}
button.btn:hover { opacity: 0.85; }

/* FOOTER */
footer {
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 3rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* SCROLL */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* RESPONSIVE */
@media (max-width: 800px) {
  .sidebar { position: fixed; width: 200px; padding: 1rem; }
  .content { margin-left: 200px; padding: 2rem 1rem; }
}
@media (max-width: 600px) {
  .sidebar { position: relative; width: 100%; height: auto; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); }
  .content { margin-left: 0; width: 100%; }
}
/* ============================== */
/* CV TÉCNICO (silvio-aguilar-cv.html) */
/* ============================== */

/* Rejilla de tecnologías */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.tech-card {
  background: var(--card);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.tech-card img {
  width: 48px;
  height: 48px;
  margin-bottom: .6rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
.tech-card p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* Secciones informativas del CV */
.section-info {
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.section-info h3 {
  color: var(--accent);
  margin-bottom: .8rem;
}

/* Cabecera del CV */
header h2 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
header p a {
  color: var(--accent);
  text-decoration: none;
}
header p a:hover {
  text-decoration: underline;
}

/* Botón “Ver CV técnico” (reutilizable) */
.cv-link {
  text-align: center;
  margin-top: 2rem;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: background 0.2s, transform 0.15s ease;
}
.btn-primary:hover {
  background: #1e40af;
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
  background: #1d4ed8;
}

/* Activo en el menú lateral */
.nav-links a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* Ajuste general para pantallas pequeñas */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}
