.body-container {
    background: url("/static/img/Screenshot_3.png");
    height: 100vh;
    flex-direction: column;
    margin: 0;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.title {
    text-align: center;
    color: black;
    font-family: 'Playfair Display', 'Arial Narrow', Arial, sans-serif;
    font-size: 50px;
    margin-top: 20px;
    text-shadow: 2px 2px 4px #000000;
    font-weight: bold;
    text-shadow: 0 0 8px white, 0 0 1px white, 0 0 1px white;
}

.description {
    text-align: center;
    color: white;
    font-family: 'Playfair Display', 'Arial Narrow', Arial, sans-serif;
    font-size: 30px;
    margin-top: 20px;
    text-shadow: 2px 2px 4px #000000;
}

.back-blog-container {
    text-decoration: none;
    text-align: center;
    font-family: 'Playfair Display', 'Arial Narrow', Arial, sans-serif;
    font-size: 30px;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white
}

.link:hover {
    background: blue;
    box-shadow: 0 0 10px white, 0 0 20px white, 0 0 30px white;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.post-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    text-align: center;
    transition: box-shadow 0.2s;
}
.post-title {
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    font-size: 1.3em;
}
.post-title:hover {
    transform: scale(1.12);
    color: #007bff;
}
.modal {
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
}
.modal-content {
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    position: relative;
    opacity: 0;
    transform: translateY(-60px);
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
    max-height: 80vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    opacity: 1;
    transform: translateY(0);
}

.close {
    position: absolute;
    top: 12px; right: 18px;
    font-size: 2em;
    cursor: pointer;
}

/* DISEÑO DE LOS LINKS */

p {
    text-align: center;
}

.centered-link {
    text-decoration: none;
    font-size: 20px;
    font-family: 'Playfair Display', 'Arial Narrow', Arial, sans-serif;
    color: black;
    text-align: center;
}

/* diseño responsivo */

/* Móviles (max-width: 480px) */
@media (max-width: 480px) {
    .body-container {
        background-attachment: scroll;
        background-size: cover;
        height: auto;
        padding: 15px;
    }

    .title {
        font-size: 28px;
        margin-top: 10px;
        text-shadow: none;
    }

    .description {
        font-size: 18px;
        margin-top: 10px;
    }

    .back-blog-container {
        font-size: 18px;
        padding: 8px 16px;
    }

    .posts-grid {
        grid-template-columns: 1fr; /* Una columna para móviles */
        gap: 16px;
        margin-top: 20px;
    }

    .post-card {
        padding: 16px;
    }

    .post-title {
        font-size: 1.1em;
    }

    .modal-content {
        padding: 20px;
        max-width: 95%;
        max-height: 75vh;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .title {
        font-size: 38px;
    }

    .description {
        font-size: 24px;
    }

    .back-blog-container {
        font-size: 22px;
        padding: 10px 18px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas en tablets */
        gap: 20px;
        margin-top: 28px;
    }

    .post-card {
        padding: 20px;
    }

    .post-title {
        font-size: 1.2em;
    }

    .modal-content {
        max-width: 90%;
        max-height: 80vh;
        padding: 28px;
    }
}
