/* ===== typography.css - Fuente Oswald para todo el proyecto ===== */

/* Importar Oswald desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');

/* Variables de tipografía actualizadas */
:root {
  /* Fuentes principales */
  --font-primary: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Oswald', sans-serif; /* También Oswald para consistencia */
  
  /* Pesos de fuente disponibles en Oswald */
  --font-weight-light: 200;
  --font-weight-normal: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Tamaños de fuente */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */
  
  /* Line heights */
  --line-height-tight: 1.1;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;
}

/* Configuración base del body */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text, #333);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings con Oswald */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-sm, 1rem);
  letter-spacing: 0.02em;
  text-transform: uppercase; /* Oswald se ve genial en mayúsculas */
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-semibold);
}

h3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-medium);
}

h5 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

/* Párrafos y texto */
p {
  margin-bottom: var(--spacing-sm, 1rem);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
}

/* Texto destacado */
.text-large {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
}

.text-small {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
}

.text-xs {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-normal);
}

/* Clases de peso de fuente */
.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-regular { font-weight: var(--font-weight-regular); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Clases de transformación de texto */
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }
.text-normal-case { text-transform: none; }

/* Espaciado de letras */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Enlaces */
a {
  font-family: inherit;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

/* Listas */
ul, ol {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
}

li {
  margin-bottom: 0.5rem;
}

/* Botones con Oswald */
button, .button, .btn {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Inputs y formularios */
input, textarea, select {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-base);
}

/* Clases especiales para el hero y títulos principales */
.hero-title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: clamp(var(--font-size-4xl), 8vw, var(--font-size-6xl));
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
  text-transform: none;
}

.section-title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-3xl);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  margin-bottom: var(--spacing-lg, 2rem);
}

/* Responsive typography */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;  /* 40px */
    --font-size-4xl: 2rem;    /* 32px */
    --font-size-3xl: 1.75rem; /* 28px */
  }
  
  body {
    font-size: var(--font-size-sm);
  }
  
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-xs, 0.5rem);
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-5xl: 2rem;     /* 32px */
    --font-size-4xl: 1.75rem;  /* 28px */
    --font-size-3xl: 1.5rem;   /* 24px */
  }
}