/**
 * Components Bundle - Home v2
 * Importa todos los componentes reutilizables del sistema
 *
 * Orden de carga:
 * 1. Design tokens (variables)
 * 2. Componentes individuales
 */

/* Design Tokens (Variables globales) */
@import './design-tokens.css';

/* Componentes */
@import './components/_buttons.css';
@import './components/_cards.css';
@import './components/_trust-bar.css';
@import './components/_testimonials.css';

/* Reset y utilidades base adicionales */
* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Selection styling */
::selection {
  background: var(--color-full-primary);
  color: white;
}

::-moz-selection {
  background: var(--color-full-primary);
  color: white;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links base */
a {
  color: var(--color-link);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
}

/* Headings base */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

@media (max-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  h3 {
    font-size: var(--text-2xl);
  }

  h4 {
    font-size: var(--text-xl);
  }
}

/* Paragraphs */
p {
  margin: 0 0 var(--space-md);
}

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

/* Lists */
ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: var(--space-xl);
}

ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

/* Code */
code,
pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
