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

/* 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 */
:root {
  --color-azul-oscuro: #003057;
  --color-verde: #007a3e;
  --color-gris-texto: #4f5e6b;
  --color-blanco: #ffffff;

  --font-principal: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

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

/* Importar Inter desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
  font-family: var(--font-principal);
  color: var(--color-gris-texto);
  background: var(--color-blanco);
  line-height: 1.5;
  font-weight: 400;
}

/* 4. 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%;
}

/* Titulares h1-h4 con espaciado uniforme */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-azul-oscuro);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* 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; }

/* 5. RESPONSIVE BASE */

/* Tablet Landscape */
@media (max-width: 1024px) {
  .container,
  .site-container {
    padding: 0 25px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

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

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  h4 {
    font-size: 1.05rem;
  }

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

  /* Esconder elementos en móvil si tienen esta clase */
  .hide-mobile {
    display: none !important;
  }
}

/* Móvil */
@media (max-width: 576px) {
  html {
    font-size: 14px;
  }

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

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

  h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.1rem;
  }

  h4 {
    font-size: 1rem;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

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

/* Móvil pequeño */
@media (max-width: 400px) {
  .container,
  .site-container {
    padding: 0 12px;
  }

  h1 {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1.15rem;
  }
}

