:root {
    --color-primary: #00AEEF;
    --color-secondary: #00AEEF;
    --color-text-light: #666666;
}

/* CSS para la galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

@media(min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}


/* Modal de la galería */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}


.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.gallery-modal-close:hover,
.gallery-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.gallery-modal-prev,
.gallery-modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    color: #bbb;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0 40px 0;
    gap: 10px;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination li a:hover {
    background-color: var(--color-primary);
    color: white;
}

.pagination li.active span {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

@media (max-width: 768px) {
    .pagination li.number {
        display: none;
    }

    .pagination li.number.active {
        display: block;
    }
}