body {
    background-color: rgb(30, 30, 30);
}

main {
    position: relative;
    left: 15vw;
    max-width: 70vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1, h3, .comerciales, .artesanales {
    color: white;
    font-weight: 600;
    font-family: "Finlandica", sans-serif;
    margin-top: 5vh;
    margin-bottom: 5vh;
}

h1, .comerciales, .artesanales {
    font-size: 4vh;
}

h3 {
    font-size: 3vh;
}

p {
    width: 50%;
    height: 100%;
    color: white;
    margin: 3vh 3vw;
    text-align: justify;
}

article {
    display: flex;
    flex-direction: row;
}

.comerciales {
    color: red;
}

.artesanales {
    color: green;
}

.div-imagen {
    margin: 0 10vw;
}

.div-imagenes {
    margin-bottom: 5vh;
}

.p-final-blog {
    width: 100%;
    font-weight: 600;
    font-size: 2.5vh;
    color: var(--verde);
    margin-bottom: 10vh;
}

@media screen and (max-width: 768px) {

    main {
        z-index: -1;
    }

    h1 {
        text-align: center;
    }

    h3 {
        font-size: 4vh;
        text-align: center;
    }

    .img-blog-inicio {
        width: 80vw;
    }

    p {
        width: 100%;
        margin: 2vh auto;
    }

    .p-solo {
        margin-top: 7vh;
    }

    article {
        flex-direction: column;
    }

    .div-imagen {
        margin-top: 3vh;
    }

    .p-final-blog {
        margin-top: 10vh;
    }
}
/* Blog dinámico */

.tit-blog {
    width: 100vw;
    text-align: center;
    color: white;
    font-size: 5vh;
    margin: 7vh 0;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-section {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    width: 80vw;
    margin: 0 auto 10vh auto;
}

.blog-card {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: calc(33% - 24px);
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.blog-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 8px 0;
    font-family: "Finlandica", sans-serif;
}

.blog-fecha {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.blog-resumen,
.blog-contenido {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    width: 100%;
}

.leer-mas {
    background: #43a047;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.leer-mas:hover {
    background: #2e7d32;
}

@media screen and (max-width: 768px) {
    .blog-section {
        width: 100vw;
    }

    .blog-card {
        width: 85vw;
    }
}
