/* Componentes: botones, chips, filtros y tarjetas */
/* 4. Componentes ------------------------------------------------------- */
/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.btn:hover { color: var(--bg); }
.btn:active { transform: scale(0.97); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.btn--ghost:hover { color: var(--text); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 18px; }
.btn--sm { min-height: 0; padding: 10px 16px; margin-left: 8px; }

/* Enlaces de navegación / sociales */
.navlink {
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 200ms ease;
}
.navlink:hover { color: var(--text); }

/* Chips de habilidades */
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #C9D1D9;
  font-size: 17px;
  transition: border-color 200ms ease, color 200ms ease;
}
.chip__level { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

/* Filtros de proyectos */
.filter {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
  transition: transform 140ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.filter:active { transform: scale(0.97); }
.filter[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Tarjetas de proyecto */
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 240ms var(--ease-out), border-color 200ms ease;
}
.card-in {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 360ms var(--ease-out) forwards;
}
.grid > .card-in:nth-child(2) { animation-delay: 50ms; }
.grid > .card-in:nth-child(3) { animation-delay: 100ms; }
.grid > .card-in:nth-child(4) { animation-delay: 150ms; }
.grid > .card-in:nth-child(5) { animation-delay: 200ms; }
.grid > .card-in:nth-child(6) { animation-delay: 250ms; }

.card__media { overflow: hidden; border-bottom: 1px solid var(--border-faint); }
.card__shot {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 90% at 20% 0%, #1A222C, #0E1218);
  font-family: var(--font-mono);
  font-size: 13px;
  color: #6E7681;
  transition: transform 500ms var(--ease-out);
}
.card--feat .card__shot { height: 280px; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card__category { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.card__title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.card__desc { font-size: 16px; color: var(--text-muted); flex-grow: 1; }
.card__tags { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.card__links { display: flex; gap: 20px; font-size: 15px; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

