body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: transparent; /* antes: #f4f4f4, ahora deja ver el fondo PHP */
}

.top-header {
    background: #1f1f1f;
    color: white;
    padding: 15px 20px;
}

.logo-area h1 {
    margin: 0 0 10px 0;
}

.main-menu {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.main-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    background: #333;
    border-radius: 4px;
}

.main-menu a:hover {
    background: #555;
}

.home-content {
    padding: 20px;
}

/* Caja sin fondo blanco, respeta fondo global */
.home-box {
    background: transparent; /* antes: white */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.article-card {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.article-card:last-child {
    border-bottom: none;
}

.article-card h3 {
    margin: 0 0 8px 0;
}

.article-card h3 a {
    color: #222;
    text-decoration: none;
}

.article-card h3 a:hover {
    text-decoration: underline;
}

.meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.article-full {
    line-height: 1.6;
    white-space: normal;
    margin-top: 20px;
}

.public-one-image {
    margin-top: 12px;
}

.public-one-image img {
    display: block;
    height: 113px !important;
    width: auto !important;
    max-width: 170px !important;
    object-fit: contain !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: transparent; /* antes: #fff */
}

.article-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.article-gallery-thumbs img {
    display: block;
    height: 113px !important;
    width: auto !important;
    max-width: 170px !important;
    object-fit: contain !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: transparent; /* antes: #fff */
    cursor: pointer;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    width: auto !important;
    height: auto !important;
    background: transparent; /* antes: white */
    padding: 8px;
    border-radius: 6px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}
