*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10pt;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #000;
    color: #f1f1f1;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    overflow-x: hidden;
    flex-direction: column;
}

img,
svg {
    vertical-align: middle;
}

.header {
    width: 100%;
    height: 92px;
    background: #1a1a1a;
}

.header-content {
    width: calc(100% - 92px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    text-decoration: none;
    color: inherit;
}

.header-title h1 {
    margin: 0;
}

.header h1 {
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: -0.05rem;
}

.email {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
    color: #ddd;
    text-decoration: none;
}

.email:hover {
    text-decoration: underline;
}

.menu-button {
    width: 64px;
    height: 64px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.menu-button:hover {
    background-color: #000000 !important;
}

.menu-button img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.email-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.email-container-autor {
    display: flex;
    justify-content: left;
    align-items: left;
    margin-top: 15px;
}

.email-button {
    width: 64px;
    height: 64px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.email-button img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.email-button:hover {
    background-color: #000000;
}

.main {
    flex: 1;
    width: calc(100% - 92px);
    max-width: 1558px;
    margin: 59px auto 0;
}

.posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
    row-gap: 78px;
}

.post-card {
    min-height: 228px;
    padding: 38px 46px;
    background: #1a1a1a;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    background: #1d1d1d;
}

.post-image {
    flex: 0 0 108px;
    width: 108px;
    height: 154px;
    overflow: hidden;
    border-radius: 10px;
}

.post-image img {
    display: block;
    width: 108px;
    height: 154px;
    object-fit: cover;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.post-content {
    min-width: 0;
    margin-left: 31px;
}

.post-image {
    flex: 0 0 108px;
    width: 108px;
    height: 154px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.post-image img {
    display: block;
    width: 108px;
    height: 154px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.post-content {
    min-width: 0;
    margin-left: 31px;
}

.post-content h2 {
    margin-bottom: 0.6rem;
    font-size: 1.17rem;
    line-height: 1.3;
    font-weight: 600;
    color: #f2f2f2;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    color: #ddd;
    width: fit-content;
}

.author img {
    display: block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}

.author[href]:hover {
    text-decoration: underline;
}

.post-content time {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    color: #0074ed;
}

.post-content p {
    max-width: 310px;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #e2e2e2;
}

.pagination {
    margin-top: 61px;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.pagination.visible {
    display: flex;
}

.pagination a {
    text-decoration: none;
    color: #eee;
}

.page {
    width: 47px;
    height: 47px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1rem;
}

.page.active {
    background: #1a1a1a;
}

.footer {
    margin-top: 54px;
    width: 100%;
    min-height: 92px;
    background: #1a1a1a;      /* mismo color que el header */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    color: #d8d8d8;
}

.footer-content{
    width: calc(100% - 92px);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.post-card {
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    background: #1d1d1d;
}

.menu-button {
    transition: background-color 0.2s ease;
}

.menu-button:hover {
    background: #080808;
}


@media (max-width: 1200px) {
    .post-card {
        padding: 35px;
    }
    .post-image {
        flex: 0 0 105px;
        width: 105px;
        height: 147px;
    }
    .post-image img {
        width: 105px;
        height: 147px;
        background-color: #f9f9f9;
    }
    .post-content {
        margin-left: 25px;
    }
    .post-content h2 {
        font-size: 24px;
    }
    .post-content p {
        font-size: 16px;
    }
}

@media (max-width: 700px) {
    .post-card {
        min-height: 190px;
        padding: 24px;
        border-radius: 20px;
    }
    .post-image {
        flex: 0 0 80px;
        width: 80px;
        height: 112px;
    }
    .post-image img {
        width: 80px;
        height: 112px;
        background-color: #f9f9f9;
    }
    .post-content {
        margin-left: 18px;
    }
    .post-content h2 {
        font-size: 20px;
    }
    .author {
        font-size: 13px;
        gap: 7px;
    }
    .author img {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }
    .post-content time {
        font-size: 13px;
    }
    .post-content p {
        font-size: 14px;
    }
}

@media (max-width: 430px) {
    .post-card {
        padding: 20px;
    }
    .post-image {
        flex: 0 0 65px;
        width: 65px;
        height: 91px;
    }
    .post-image img {
        width: 65px;
        height: 91px;
        background-color: #f9f9f9;
    }
    .post-content {
        margin-left: 15px;
    }
    .post-content h2 {
        font-size: 18px;
    }
    .post-content p {
        font-size: 13px;
    }
    .author {
        font-size: 12px;
    }
    .post-content time {
        font-size: 12px;
    }
}

@media (max-width: 1350px) {
    .posts {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
        row-gap: 50px;
    }
}

@media (max-width: 700px) {
    .posts {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 25px;
    }
}

.centro {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.3;
}

.inicio {
    text-align: justify;
    font-size: 1.2rem;
    line-height: 1.3;
}

.sangria {
    text-align: justify;
    text-indent: 40px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.right{
    text-align: right;
    font-size: 1.2rem;
    line-height: 1.3;
}

.article-card,
.article-content,
.book-info {
    width: 100%;
    background: #1a1a1a;
    border-radius: 20px;
}

.article-card {
    min-height: 228px;
    padding: 38px 46px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    color: inherit;
}

.article-card .post-content {
    min-width: 0;
    margin-left: 31px;
}

.article-card .post-content h2 {
    margin-bottom: 0.6rem;
    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 400;
    color: #f2f2f2;
}

.article-card .post-content p {
    max-width: 700px;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #e2e2e2;
}

.article-content {
    margin-top: 40px;
    padding: 46px;
}

.article-content article {
    width: 100%;
}

.book-info {
    margin-top: 40px;
    min-height: 228px;
    padding: 38px 46px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
}

.book-content {
    min-width: 0;
    flex: 1;
    padding-right: 40px;
}

.book-content h2 {
    margin-bottom: 0.6rem;
    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 400;
    color: #f2f2f2;
}

.book-content p {
    max-width: 700px;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #e2e2e2;
}

.book-image {
    flex: 0 0 108px;
    width: 108px;
    height: 154px;
    overflow: hidden;
    border-radius: 8px;
}

.book-image img {
    display: block;
    width: 108px;
    height: 154px;
    object-fit: contain;
    background: #111;
    border-radius: 8px;
}

.main-actions {
    width: 100%;
    margin-top: 54px;
    background: transparent;
    display: grid;
    grid-template-columns:
        1fr
        1fr
        1fr
        1fr
        1fr;
    align-items: center;
}

.home-button {
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.home-button img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.home-button:hover {
    background-color: #1a1a1a;
}

.navigation-spacer {
    width: 48px;
    height: 48px;
    justify-self: center;
    visibility: hidden;
}

.previous-post {
    justify-self: center;
}

.home-page-button {
    justify-self: center;
}

.next-post {
    justify-self: center;
}

.top-button {
    justify-self: end;
}

.main-actions .post-nav-button.is-hidden {
    visibility: hidden;
    pointer-events: none;
}


.image-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
    row-gap: 40px;
    align-items: start;
}


.image-card {
    width: 100%;
    margin: 0;
    padding: 38px 46px;
    background: #1a1a1a;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.image-card figcaption {
    width: 100%;
    margin-top: 20px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #e2e2e2;
}


@media (max-width: 1350px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
        row-gap: 40px;
    }
}

@media (max-width: 700px) {
    .image-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 25px;
    }

    .image-card {
        padding: 24px;
    }
}

@media (max-width: 430px) {
    .image-card {
        padding: 20px;
    }
}

.camara {
    display: flex;
    justify-content: center;
    align-items: center;
    
}

a.enlace {
    color: inherit;
    font-family: serif;
    font-weight: normal;
    text-decoration: none;
}

a.enlace:visited {
    color: inherit;
    text-decoration: none;
}
