@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
@import './tokens.css';

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--bi-text-strong);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

p {
  margin-bottom: var(--bi-space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bi-space-sm);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--bi-radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--bi-transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--bi-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--bi-primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--bi-shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--bi-primary);
  border: 2px solid var(--bi-primary);
}

.btn-secondary:hover {
  background: var(--bi-primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--bi-text-strong);
}

.btn-ghost:hover {
  background: var(--bi-page-bg);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Secciones */
.section {
  padding: var(--bi-space-3xl) 0;
}

.section-alt {
  background: var(--bi-page-bg);
}

.section-dark {
  background: var(--bi-hero-bg);
  color: white;
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

/* Tarjetas */
.card {
  background: var(--bi-content-bg);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius-lg);
  padding: var(--bi-space-xl);
  transition: all var(--bi-transition-normal);
}

.card:hover {
  box-shadow: var(--bi-shadow-md);
  transform: translateY(-2px);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--bi-space-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--bi-space-xs);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--bi-radius-full);
}

.badge-primary {
  background: rgba(22, 119, 255, 0.1);
  color: var(--bi-primary);
}

.badge-success {
  background: var(--bi-success-bg);
  color: var(--bi-success);
}

/* Iconos */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.icon-lg {
  width: 48px;
  height: 48px;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-in {
  animation: slideIn 0.5s ease forwards;
}
