/* ==========================================
   Estilos de Galería Dinámica
========================================== */
.gallery-card-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: #f4f4f4;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card-item:hover .gallery-thumb {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(228, 59, 59, 0.82);
    /* Color acento de la plantilla */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 28px;
    color: #ffffff;
    transform: scale(0.6);
    transition: transform 0.3s ease;
}

.gallery-card-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Paginación Personalizada */
.custom-pagination .page-link {
    color: #1b1919;
    border: 1px solid #e0e0e0;
    padding: 10px 18px;
    margin: 0 4px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-pagination .page-item.active .page-link {
    background-color: #e43b3b;
    border-color: #e43b3b;
    color: #ffffff;
}

.custom-pagination .page-link:hover:not(.disabled) {
    background-color: #1b1919;
    color: #ffffff;
    border-color: #1b1919;
}