/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  background: #fafafa;
  color: #333;
  margin: 0;
  min-height: 100vh;
}

/* Header */
header {
  position: relative; /* cámbialo a fixed si quieres header fijo */
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

/* Título dentro del header */
header h1 {
  font-size: 20px;
  line-height: 60px; /* centra verticalmente dentro de los 60px */
  margin: 0;
}

/* Enlaces del nav */

/* ==========================
   Estilos para iconos en about.md
   ========================== */
.about-icon {
  margin-right: 8px;
  color: #2c3e50;
  vertical-align: middle;
}

/* ==========================
   Ajustes para títulos con iconos en about.md
   ========================== */
h2 {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #34495e;
}

h2 .about-icon {
  margin-right: 10px;
  font-size: 1.2em;
}

/* ... existing code ... */
header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 15px;
  font-weight: bold;
}

/* Estilos para about.md */

.profile-text {
  font-family: 'Arial', sans-serif;
  font-size: 1.1em;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 20px;
}

.experience-text {
  font-family: 'Georgia', serif;
  font-size: 1em;
  color: #444444;
  line-height: 1.5;
  margin-bottom: 20px;
  font-style: italic;
}

.education-text {
  font-family: 'Tahoma', sans-serif;
  font-size: 1em;
  color: #222222;
  line-height: 1.5;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  padding: 10px;
  border-left: 4px solid #007acc;
}

.skills-list {
  font-family: 'Verdana', sans-serif;
  font-size: 1em;
  color: #555555;
  list-style-type: square;
  margin-left: 20px;
  margin-bottom: 20px;
}

.skills-list li {
  margin-bottom: 8px;
}

header nav a:hover {
  text-decoration: underline;
}

/* Contenedor principal */
.main-container {
  max-width: 1200px;
  margin: 0px auto 0 auto; /* deja espacio para el header fijo */
  padding: 20px;
}

/* Layout de tres columnas */
.layout {
  display: flex;
  gap: 20px;
}

/* Sidebar izquierdo */
.sidebar-left {
  width: 220px;
  background: #f4f4f4;
  border-right: 1px solid #ddd;
  padding: 20px;
}

/* Contenido central */
main.content {
  flex: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Título de posts recientes */
.posts-recientes {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Sidebar derecho */
.sidebar-right {
  width: 220px;
  background: #f9f9f9;
  border-left: 1px solid #ddd;
  padding: 20px;
}

/* Footer */
footer {
  text-align: center;
  padding: 10px;
  background: #f4f4f4;
  border-top: 1px solid #ddd;
  margin-top: 1rem;
}

/* Paginación estilo numerado */
.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination ul {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.pagination li {
  border-right: 1px solid #ccc;
}

.pagination li:last-child {
  border-right: none;
}

.pagination a,
.pagination span {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: #333;
  background: #fff;
  min-width: 40px;
}

.pagination a:hover {
  background: #f0f0f0;
}

.pagination .active span {
  background: #007acc;
  color: #fff;
  font-weight: bold;
}

.pagination span {
  cursor: default;
}

/* Responsive */
@media (max-width: 480px) {
  .pagination ul {
    gap: 6px;
  }
  .pagination a,
  .pagination span {
    padding: 6px 8px;
    min-width: 32px;
  }
}

/* Lista de posts */
.lista-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  margin-bottom: 0.8em;
  padding: 1em;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.post-item a {
  font-weight: bold;
  font-size: 1.2em;
  text-decoration: none;
  color: #000;
}

.post-item small {
  display: block;
  margin-top: 0.4em;
  color: #1553da;
  font-size: 0.9em;
}

/* Contenedores */
.contenedor {
  background: #eaeaea;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  flex: 1;
}

.contenedor:first-child { flex: 1; }  /* 2/3 del ancho */
.contenedor:last-child { flex: 2; }   /* 1/3 del ancho */

/* Lista de años con contador en grilla */
.taxonomy__index {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Cada item como tarjeta */
.taxonomy__index li {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.taxonomy__index li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Año y contador en la misma línea */
.taxonomy__index a {
  text-decoration: none;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.taxonomy__count {
  color: #777;
  font-size: 0.85em;
}


/* ======================
   Sidebar izquierdo unificado
   ====================== */
.sidebar-left {
  width: 220px;                /* ancho fijo consistente */
  background-color: #f5f5f5;   /* mismo color en ambos */
  padding: 20px;               /* padding igualado */
  border: 1px solid #ddd;      /* borde uniforme */
  border-radius: 6px;          /* esquinas redondeadas */
  overflow-y: auto;            /* scroll si hay mucho contenido */
}

.sidebar-left p {
  line-height: 1.6;            /* texto con buen espaciado */
  text-align: center;
}

.sidebar-left img {
  border-radius: 10px;
  width: 100%;
}

.sidebar-left a {
  display: inline-block;
  margin: 5px;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  color: white;
}


footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: #fff;
  border-top: 1px solid #444;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-nav a,
.footer-social a {
  color: #ffd700;
  text-decoration: none;
  margin: 0 8px;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: #fff;
}
