.boletines-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.boletines-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: stretch;
}

.boletin-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Toda la tarjeta es un enlace */
    color: inherit;
}

.boletin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.boletin-wrapper-img {
    position: relative;
    background: #f5f5f5;
    padding-top: 130%;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.boletin-wrapper-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boletin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(236, 0, 0, 0.85); /* Rojo institucional */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.boletin-card:hover .boletin-overlay {
    opacity: 1;
}

.boletin-overlay i {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.boletin-overlay span {
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.boletin-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.boletin-info h3 {
    font-size: 1.1em;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.boletin-fecha {
    font-size: 0.85em;
    color: #888;
}

/* Paginación */
.paginacion {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 5px;
}

.paginacion a {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.paginacion a.active {
    background: #ec0000;
    color: white;
    border-color: #ec0000;
}

/* Adaptabilidad (Responsive) */
@media (max-width: 992px) {
    .boletines-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .boletines-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .boletines-grid { grid-template-columns: 1fr; }
}

.tabla-gestion {
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
    background:white;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 4px 10px rgba(0,0,0,0.02);
}

.tabla-gestion th, .tabla-gestion td {
    padding:15px;
    text-align:left;
    border-bottom:1px solid #eee;
}

.tabla-gestion th {
    background:#4e2602;
    color:white;
    font-weight:bold;
}

.btn-accion {
    padding:6px 12px;
    border-radius:4px;
    text-decoration:none;
    font-weight:bold;
    font-size:0.9em;
    display:inline-block;
}

.btn-eliminar {
    background:#de2a2a;
    color:white;
}

.btn-nuevo {
    background:#2a9d8f;
    color:white;
    padding:10px 15px;
    border-radius:5px;
    text-decoration:none;
    font-weight:bold;
    float:right;
}