/* Variables CSS */
:root {
  --primary: hsl(215, 55%, 52%);
  --primary-dark: hsl(215, 55%, 42%);
  --secondary: hsl(215, 50%, 92%);
  --background: hsl(228, 73%, 97%);
  --foreground: hsl(228, 68%, 20%);
  --card: hsl(0, 0%, 100%);
  --muted: hsl(215, 50%, 94%);
  --muted-foreground: hsl(215, 30%, 42%);
  --border: hsl(215, 30%, 88%);
  --accent: hsl(215, 55%, 88%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: hsl(210, 70%, 50%);
    --primary-dark: hsl(210, 70%, 40%);
    --secondary: hsl(210, 15%, 18%);
    --background: hsl(210, 15%, 9%);
    --foreground: hsl(210, 20%, 90%);
    --card: hsl(210, 15%, 13%);
    --muted: hsl(210, 15%, 18%);
    --muted-foreground: hsl(210, 20%, 65%);
    --border: hsl(210, 15%, 20%);
    --accent: hsl(210, 15%, 18%);
  }
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Estilos globales */
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
}

/* Botones */
.btn {
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
  text-decoration: none;
}

/* Remove hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover {
    transform: none;
    box-shadow: none;
  }
}

.btn-secondary {
  background: var(--accent);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--muted);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Remove hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn-secondary:hover {
    transform: none;
  }
}
