/* ----------------------------- */
/* BLOG ITEMS                    */
/* ----------------------------- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.blog-item {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-item:hover {
    transform: translateY(-5px);
}

.blog-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px 10px 0 0;
}

.blog-item h2 {
    font-size: 16px;
    padding: 15px 10px;
    margin-bottom: 0;
    color: #46148b;
    text-align:center;
}

/* ----------------------------- */
/* ARTICULO                      */
/* ----------------------------- */

#articulo {
    padding-top: 60px;
    padding-bottom: 60px;
}

.articulo-content {
    display: flex;
    gap: 30px;
    border-radius: 10px;
    width: 1130px;
    margin: 0 auto;
}

.articulo-info {
    width:775px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.articulo-info h2 {
    text-align:left;
}

.articulo-info li {
    margin-left: 14px;
}

.articulo-info p {
    text-align:justify;
}

.articulo-info p strong {
    color:#1e286e;
} 

.articulo-info img {
    display:block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0px 20px 0 rgb(0 0 0 / 10%);
    margin:0 auto 20px auto;
}

/* ----------------------------- */
/* WIDGETS                       */
/* ----------------------------- */

.widgets {
    width: 325px; /* Ancho fijo de 325px */
    flex-shrink: 0; /* Evita que se reduzca */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    width: 100%;
}

.widget h2 {
    font-family: 'Geologica', sans-serif;
    color: #befa14;
    background-color: #0a0a0a;
    margin:0;
    padding: 15px;
    width: 100%;
    border-radius:10px;
}

.widget a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 20px 0;
}

.widget img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.widget h3 {
    font-family: 'Geologica', sans-serif;
    color: #00b4ff;
    text-align: center;
}

/* ----------------------------- */
/* ESTILOS RESPONSIVE            */
/* ----------------------------- */

@media (max-width: 1200px) {
    .articulo-content {
        width: 955px;
    }
    .articulo-info {
        width: 640px;
    }
}

@media (max-width: 992px) {
    .blog-grid {grid-template-columns: repeat(2, 1fr);gap:20px}
    .articulo-content {
        flex-direction: column;
        width: 640px;
    }
    .articulo-info {
        width: 640px;
    }
}

@media (max-width: 768px) {
    .articulo-content {
        width:480px;
    }

    .articulo-info {
        width:480px;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid a {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .articulo-content {
        width: 320px;
    }
    .articulo-info {
        width: 320px;
    }
}
