.page-title {
    padding: 60px 0 30px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-title h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.page-title p {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Categorías de la galería */
.gallery {
    padding: 30px 0 80px;
    background-color: white;
}

.gallery-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.category-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Carrusel de galería */
.gallery-carousel {
    margin-bottom: 60px;
    padding: 20px 0;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    padding-top: 50px;
}

.slide-info h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.slide-info p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.carousel-button.prev {
    left: 15px;
}

.carousel-button.next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Cuadrícula de galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 250px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    padding-top: 50px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .item-overlay {
    transform: translateY(0);
}

.item-overlay h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.item-overlay p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Testimonios */
.testimonials {
    background-color: var(--light-color);
    padding: 80px 0;
}

.testimonials h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.testimonial-content {
    padding: 30px;
    position: relative;
}

.testimonial-content:before {
    content: '\201C';
    font-family: Georgia, serif;
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    font-style: italic;
}

.client-info h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.client-info span {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Animación para las imágenes al cargar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-item, .carousel-slide {
    animation: fadeIn 0.8s ease forwards;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 400px;
    }
    
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .carousel-slide img {
        height: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .category-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* Clase para ocultar elementos filtrados */
.hidden {
    display: none;
}