/* ==== Estilos globales ==== */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html, body {
    height: 100%;
    color: #223843;
}

body {
    margin: 0;
    color: #223843;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-wrapper main {
    flex: 1;
}


/* El main crece y empuja el footer */
.site-wrapper main {
    flex: 1;
}

.blog-content > .month-title:first-child {
    margin-top: 0;
}

.site-wrapper main {
    padding-top: 20px; /* o 0 si lo quieres flush */
}


/* ===== LAYOUT ===== */
.blog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;              /* ← QUITA el margen vertical */
    padding: 40px 20px;          /* ← controla el espacio interno */
    background: #E5E5E5;
}


/* ===== SIDEBAR ===== */
.blog-sidebar {
    position: sticky;
    top: 120px;
}

.blog-sidebar h3 {
    margin-bottom: 20px;
}

.recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    text-decoration: none;
    color: #223843;
}

.recent-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.recent-post h4 {
    font-size: 0.9rem;
    margin: 0 0 4px;
}

.recent-post span {
    font-size: 0.8rem;
    color: #777;
}

/* ===== LISTADO ===== */
.month-title {
    margin: 40px 0 20px;
    font-size: 1.6rem;
}

.post-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.post-card img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.post-card h3 {
    margin: 0 0 6px;
}

.post-card p {
    margin-top: 8px;
    color: #223843;
}

/* ===== DETALLE ===== */
.post-detail-card img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.post-detail-card h1 {
    margin-bottom: 10px;
}

.post-detail-card .content {
    margin-top: 30px;
    line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
        background: #E5E5E5;
    }

    .blog-sidebar {
        position: relative;
        top: 0;
        order: 2;
        margin-top: 40px;
    }

    .post-card {
        flex-direction: column;
    }

    .post-card img {
        width: 100%;
        height: auto;
    }
}


 .main-nav ul.menu li a:hover{
    color:#223843 !important;
  }
  .header-socials a:hover{
    color:#223843 !important;
  }


  .pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.pagination .page {
    padding: 8px 14px;
    border: 1px solid #223843;
    color: #223843;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pagination .page:hover {
    background: #223843;
    color: white;
}

.pagination .page.active {
    background: #223843;
    color: white;
    pointer-events: none;
}

.pagination .prev,
.pagination .next {
    font-weight: 500;
}
