#s-galeria {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0px;
}

#content-galeria {
    width: 80%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

#content-galeria img {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
}


.card-galeria {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    background-color: #fff;
}

.card-galeria img{
    width: 100%;
}

.card-galeria div{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    gap: 10px;
}

.card-galeria div h4{
    font-size: 22px;
    color: var(--azul);
    font-weight: bold;
    width: 100%;
    text-align: start;
}
.card-galeria div p{
    font-size: 18px;
    color: #6D6D6D;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    text-align: justify;
}

#gallery {
    width: 80%;
}

#gallery img {
    border-radius: 6px;
}
/* Contenedor */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
    padding: 0;
    list-style: none;
}

/* Cada link */
.pagination li a,
.pagination li span {
    padding: 8px 14px;
    background: #6b46c1; /* morado base */
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Hover */
.pagination li a:hover {
    background: #805ad5; /* morado más claro */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Página activa */
.pagination li.active span {
    background: #9f7aea; /* morado más claro */
    font-weight: 700;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Deshabilitado */
.pagination li.disabled span {
    background: #d6bcfa;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

#s-galeria-interna {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#content-pag{
    width: 80%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: 30px;
}


@media screen and (max-width: 1024px) {
    #content-galeria {
        width: 80%;
        display: grid;
        grid-template-columns: 1fr;
    }
}