/*
  Hoja de Estilo Base - Minimalismo Moderno 2025 (v2)
  Protocolo: gemini.md @ 4.6. Guía de Estilo Visual
*/

:root {
  --bg-color: #f8f9fa; /* Blanco Hueso */
  --text-primary: #212529; /* Casi Negro */
  --text-secondary: #6c757d; /* Gris Suave */
  --accent-color: #007bff; /* Azul Vibrante */
  --border-color: #dee2e6; /* Gris Claro */

  --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-width: 720px;
  --border-radius: 4px;
}

/* 1. Reseteo y Normalización */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Estilos Generales del Body */
body {
  font-family: var(--font-family-base);
  font-size: 1rem; /* Tamaño base 16px */
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

/* 3. Contenedor Principal */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 4. Tipografía y Encabezados (TAMAÑOS AJUSTADOS) */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem); /* Reducido */
}

h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem); /* Reducido */
  margin-top: 3rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

p, ol, ul {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.1rem); /* Ligeramente ajustado */
}

ol, ul {
  padding-left: 20px;
}

li {
  margin-bottom: 0.75rem;
}

/* 5. Enlaces y Elementos Interactivos */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover, a:focus {
  text-decoration: underline;
  opacity: 0.8;
}

/* 6. Header y Footer (NUEVOS ESTILOS) */
.site-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .site-title a {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
}

.site-header nav a {
  margin-left: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.site-header nav a:hover, .site-header nav a.active {
  color: var(--accent-color);
  text-decoration: none;
}

footer {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

footer ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* 7. Componentes Específicos (CON REGLA PARA IMAGEN RESPONSIVE) */
article a {
  text-decoration: underline;
  font-weight: 500;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: var(--border-radius);
}

.image-suggestion {
  background-color: #fff;
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  font-style: italic;
  color: var(--text-secondary);
  border-radius: var(--border-radius);
}

.recommended-articles {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.recommended-articles ul {
    list-style: none;
    padding: 0;
}

.recommended-articles li a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 700;
}

.recommended-articles li a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* 8. Banner de Cookies */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    z-index: 1000;
    display: none; /* Oculto por defecto, JS lo muestra */
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.cookie-consent-banner p {
    margin: 0;
}

.cookie-consent-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-consent-button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.cookie-consent-button:hover, .cookie-consent-button:focus {
    opacity: 0.8;
}