/* ============================================
   CSS GLOBAL - RESET Y ESTILOS BASE
   ============================================ */

/* Importar Inter y Oswald desde Google Fonts - 2 familias máximas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Oswald:wght@400;500;600;700&display=swap');

/* 1. RESET GLOBAL PROFESIONAL */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-principal);
  color: var(--color-gris-texto);
  background: var(--color-blanco);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 2. VARIABLES CSS - Colores del Logo y Tipografía Estándar */
:root {
  /* Colores */
  --color-azul-oscuro: #3a647a;
  --color-verde: #aac254;
  --color-verde-oscuro: #87a26e;
  --color-gris-texto: #4f5e6b;
  --color-blanco: #ffffff;
  --color-negro: #1a1a1a;
  --color-gris-claro: #f5f5f5;
  --color-gris-medio: #e0e0e0;

  /* TIPOGRAFÍA ESTÁNDAR - Solo Inter */
  --font-heading: 'Oswald', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-principal: var(--font-heading);
  
  /* Tamaños estándar */
  --font-size-h1: 2.5rem;      /* 40px */
  --font-size-h2: 2rem;        /* 32px */
  --font-size-h3: 1.5rem;      /* 24px */
  --font-size-h4: 1.25rem;     /* 20px */
  --font-size-body: 1rem;      /* 16px */
  --font-size-small: 0.875rem; /* 14px */
  
  /* Pesos estándar */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Sombras sutiles */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.08);

  /* Espaciado generoso */
  --spacing-section: 100px;
  --spacing-section-md: 80px;
  --spacing-section-sm: 60px;
  --spacing-element: 40px;

  --max-width: 1250px;
  --transition: 0.3s ease;
}

/* 3. TIPOGRAFÍA BASE - ESTÁNDAR ÚNICO */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-normal);
  color: var(--color-gris-texto);
  background: var(--color-blanco);
  line-height: 1.6;
}

/* 4. TIPOGRAFÍA DE ENCABEZADOS - ESTÁNDAR */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-azul-oscuro);
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.5px;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.3px;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: 1.1rem;
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
}

/* 5. TIPOGRAFÍA DE PÁRRAFOS - ESTÁNDAR */
p {
  font-size: var(--font-size-body);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.lead, .lead-text {
  font-size: 1.125rem;
  line-height: 1.8;
}

small, .small {
  font-size: var(--font-size-small);
}

/* 6. REGLAS UNIVERSALES */

/* Enlaces */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

/* Contenedor general */
.container {
  max-width: var(--max-width);
  padding: 0 20px;
  margin: 0 auto;
  width: 100%;
}

/* Contenedor común para todo el sitio */
.site-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Botones base */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-azul-oscuro);
  color: var(--color-blanco);
}

.btn-primary:hover {
  background: var(--color-verde);
  opacity: 1;
}

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

.btn-secondary:hover {
  background: var(--color-azul-oscuro);
  color: var(--color-blanco);
}

/* Limpieza de listas */
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Utilidades */
.text-center {
  text-align: center;
}

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

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* 7. RESPONSIVE TIPOGRAFÍA */

/* Tablet Landscape */
@media (max-width: 1024px) {
  :root {
    --font-size-h1: 2.25rem;  /* 36px */
    --font-size-h2: 1.75rem;  /* 28px */
    --font-size-h3: 1.35rem;  /* 22px */
  }

  .container,
  .site-container {
    padding: 0 25px;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 1.75rem;  /* 28px */
    --font-size-h2: 1.5rem;   /* 24px */
    --font-size-h3: 1.25rem;  /* 20px */
    --font-size-h4: 1.1rem;   /* 18px */
  }

  .container,
  .site-container {
    padding: 0 20px;
  }

  .btn {
    padding: 12px 20px;
    font-size: var(--font-size-small);
    width: 100%;
    display: block;
    text-align: center;
  }

  .hide-mobile {
    display: none !important;
  }
}

/* Móvil */
@media (max-width: 576px) {
  :root {
    --font-size-h1: 1.5rem;   /* 24px */
    --font-size-h2: 1.35rem;  /* 22px */
    --font-size-h3: 1.15rem;  /* 18px */
    --font-size-h4: 1rem;     /* 16px */
    --font-size-body: 0.95rem;
  }

  body {
    -webkit-text-size-adjust: 100%;
  }

  .container,
  .site-container {
    padding: 0 15px;
  }

  .btn {
    padding: 14px 20px;
    font-size: var(--font-size-small);
    width: 100%;
    border-radius: 8px;
  }
}

/* Móvil pequeño */
@media (max-width: 400px) {
  :root {
    --font-size-h1: 1.35rem;  /* 22px */
    --font-size-h2: 1.2rem;   /* 19px */
    --font-size-h3: 1.1rem;   /* 18px */
  }

  .container,
  .site-container {
    padding: 0 12px;
  }
}

