
/* =========================
 Fuentes locales
========================= */
/* Inter */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Playfair Display */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfairdisplay-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================
 Variables globales
========================= */
:root {
  /* Colores */
  --color-primary: #1F3A4D; /* Azul petróleo */
  --color-primary-dark: #163049; /* Azul petróleo más oscuro */
  --color-secondary: #E0B973; /* Arena dorada */
  --color-secondary-dark: #c9a24e; /* Arena dorada más intensa */
  --color-bg: #F8F9FA;
  --color-text: #1C1C1C;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;

  /* Tipografía */
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;

  /* Transiciones */
  --transition: 0.2s ease;
}

/* =========================
 Reset base
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* =========================
 Tipografía
========================= */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0 0 0.75em;
}
h1 { font-size: 3rem; line-height: 1.15; }
h2 { font-size: 2.25rem; line-height: 1.2; }
h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  margin: 0 0 0.5em;
}
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--color-text); }
small { color: var(--color-muted); }

/* =========================
 Enlaces
========================= */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-secondary); }
a:focus-visible {
  outline: 3px solid #7aa0b9;
  outline-offset: 2px;
}

/* =========================
 Layout helpers
========================= */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.section { padding: 4rem 0; }
.skip-link {
  position: absolute; left: -9999px; top: auto;
}
.skip-link:focus {
  left: 1rem; top: 1rem; background: #fff; color: #000;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
}

/* =========================
 Botones
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  transition: background 0.3s, box-shadow 0.3s;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(31, 58, 77, 0.15);
}
.btn-secondary {
  background-color: var(--color-secondary);
  color: #1C1C1C;
  transition: background 0.3s, box-shadow 0.3s;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--color-secondary-dark);
  box-shadow: 0 4px 16px rgba(224, 185, 115, 0.15);
}

/* =========================
 Cards
========================= */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover,
.card:focus-within {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 32px rgba(31, 58, 77, 0.12);
  border-color: var(--color-secondary);
}

/* =========================
 Blog / texto largo
========================= */
.article { max-width: 68ch; }

/* =========================
 Reduced motion
========================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =========================
 Responsive
========================= */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  .section { padding: 3rem 0; }
}


/* =========================
 Footer al final de la página
========================= */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* ocupa toda la altura de la ventana */
}

main {
  flex: 1; /* hace que el contenido principal ocupe el espacio disponible */
}
