/* ========================================
   TIPOGRAFÍA UNIFICADA - OrlasPix
   ======================================== */

/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ========================================
   VARIABLES CSS PARA FUENTES
   ======================================== */
:root {
  /* Fuentes principales */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-headings: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  
  /* Pesos de fuente */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Tamaños de fuente */
  --font-xs: 0.75rem;    /* 12px */
  --font-sm: 0.875rem;   /* 14px */
  --font-base: 1rem;     /* 16px */
  --font-lg: 1.125rem;   /* 18px */
  --font-xl: 1.25rem;    /* 20px */
  --font-2xl: 1.5rem;    /* 24px */
  --font-3xl: 1.875rem;  /* 30px */
  --font-4xl: 2.25rem;   /* 36px */
  --font-5xl: 3rem;      /* 48px */
}

/* ========================================
   ESTILOS BASE UNIFICADOS
   ======================================== */

/* Reset base y tipografía global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px; /* Base para rem */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-normal);
  font-size: var(--font-base);
  line-height: 1.6;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ENCABEZADOS (H1-H6)
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: var(--font-semibold);
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: #333;
}

h1 {
  font-size: var(--font-4xl);
  font-weight: var(--font-bold);
}

h2 {
  font-size: var(--font-3xl);
  font-weight: var(--font-semibold);
}

h3 {
  font-size: var(--font-2xl);
  font-weight: var(--font-semibold);
}

h4 {
  font-size: var(--font-xl);
  font-weight: var(--font-medium);
}

h5 {
  font-size: var(--font-lg);
  font-weight: var(--font-medium);
}

h6 {
  font-size: var(--font-base);
  font-weight: var(--font-medium);
}

/* ========================================
   TEXTO DE CONTENIDO
   ======================================== */
p {
  font-family: var(--font-primary);
  font-size: var(--font-base);
  font-weight: var(--font-normal);
  line-height: 1.6;
  margin-bottom: 1em;
  color: #555;
}

/* Enlaces */
a {
  font-family: inherit;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* ========================================
   ELEMENTOS DE FORMULARIO
   ======================================== */
input, textarea, select, button {
  font-family: var(--font-primary);
  font-size: var(--font-base);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  font-weight: var(--font-normal);
  line-height: 1.5;
}

button {
  font-weight: var(--font-medium);
  letter-spacing: 0.025em;
}

/* ========================================
   BOTONES ESPECIALES
   ======================================== */
.cta-button,
.btn-primary {
  font-family: var(--font-headings);
  font-weight: var(--font-medium);
  font-size: var(--font-base);
  letter-spacing: 0.025em;
}

/* ========================================
   NAVEGACIÓN
   ======================================== */
nav,
.navigation {
  font-family: var(--font-primary);
}

nav a,
.nav-link {
  font-weight: var(--font-medium);
  font-size: var(--font-base);
}

/* ========================================
   TARJETAS Y COMPONENTES
   ======================================== */
.card-header h3,
.pricing-header h2 {
  font-family: var(--font-headings);
  font-weight: var(--font-semibold);
}

.card .price {
  font-family: var(--font-headings);
  font-weight: var(--font-bold);
}

.card .details {
  font-family: var(--font-primary);
  font-weight: var(--font-normal);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  font-family: var(--font-primary);
}

footer h3 {
  font-family: var(--font-headings);
  font-weight: var(--font-semibold);
}

footer p,
footer a {
  font-weight: var(--font-normal);
}

/* ========================================
   CLASES UTILITARIAS
   ======================================== */
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.text-xs { font-size: var(--font-xs); }
.text-sm { font-size: var(--font-sm); }
.text-base { font-size: var(--font-base); }
.text-lg { font-size: var(--font-lg); }
.text-xl { font-size: var(--font-xl); }
.text-2xl { font-size: var(--font-2xl); }
.text-3xl { font-size: var(--font-3xl); }

.font-primary { font-family: var(--font-primary); }
.font-headings { font-family: var(--font-headings); }

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */
@media (max-width: 768px) {
  :root {
    --font-4xl: 2rem;     /* 32px */
    --font-3xl: 1.5rem;   /* 24px */
    --font-2xl: 1.25rem;  /* 20px */
  }
  
  body {
    font-size: var(--font-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --font-4xl: 1.75rem;  /* 28px */
    --font-3xl: 1.25rem;  /* 20px */
    --font-2xl: 1.125rem; /* 18px */
  }
}

/* ========================================
   FALLBACK PARA NAVEGADORES ANTIGUOS
   ======================================== */
@supports not (font-display: swap) {
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  }
} 