/* Nueva Galería - Diseño acorde a tu página */
.new-gallery-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.new-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 169, 119, 0.3) 50%, transparent 100%);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    text-align: center;
    color: #2c2c2c;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: -0.5px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d4a977, #c19a6b);
    border-radius: 1px;
}

.section-subtitle {
    text-align: center;
    color: #8b7355;
    margin-bottom: 60px;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.new-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.new-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 
        0 4px 20px rgba(212, 169, 119, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid rgba(212, 169, 119, 0.1);
}

.new-gallery-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(212, 169, 119, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(212, 169, 119, 0.2);
}

/* ARREGLAR: Las imágenes deben verse desde el inicio */
.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
    filter: brightness(1) saturate(1.1);
    opacity: 1; /* CAMBIADO: era 0, ahora es 1 */
}

.new-gallery-item:hover .gallery-img {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.2);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(212, 169, 119, 0.85) 0%, 
        rgba(193, 154, 107, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(2px);
}

.new-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lupa SVG elegante */
.zoom-icon-svg {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-bottom: 10px;
}

.zoom-icon-svg svg {
    width: 30px;
    height: 30px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.new-gallery-item:hover .zoom-icon-svg {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: scale(1.1);
}

.gallery-overlay::after {
    content: 'Click to enlarge';
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gallery-actions {
    text-align: center;
    padding: 0 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4a977 0%, #c19a6b 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 169, 119, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c19a6b 0%, #b8916a 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 169, 119, 0.4);
}

/* MODAL REDISEÑADO - Acorde a tu página blanca */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98); /* CAMBIADO: Fondo blanco en lugar de negro */
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.gallery-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: white; /* AÑADIDO: Fondo blanco para el contenido */
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(212, 169, 119, 0.2);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(212, 169, 119, 0.3);
    border: 2px solid rgba(212, 169, 119, 0.1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(212, 169, 119, 0.1);
    border: 1px solid rgba(212, 169, 119, 0.3);
    color: #8b7355; /* CAMBIADO: Color café en lugar de blanco */
    font-size: 28px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: 300;
}

.modal-close:hover {
    background: rgba(212, 169, 119, 0.2);
    border-color: rgba(212, 169, 119, 0.5);
    color: #d4a977;
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 169, 119, 0.1);
    border: 1px solid rgba(212, 169, 119, 0.3);
    color: #8b7355; /* CAMBIADO: Color café */
    font-size: 24px;
    cursor: pointer;
    padding: 15px 18px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.modal-nav:hover {
    background: rgba(212, 169, 119, 0.2);
    border-color: rgba(212, 169, 119, 0.5);
    color: #d4a977;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: -90px;
}

.modal-next {
    right: -90px;
}

.modal-info {
    margin-top: 25px;
    text-align: center;
    color: #8b7355; /* CAMBIADO: Color café */
    background: rgba(212, 169, 119, 0.1);
    padding: 15px 25px;
    border-radius: 25px;
    border: 1px solid rgba(212, 169, 119, 0.2);
}

.modal-counter {
    font-size: 14px;
    margin-bottom: 8px;
    color: #8b7355; /* CAMBIADO: Color café */
    font-weight: 300;
    letter-spacing: 1px;
}

.modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #2c2c2c; /* CAMBIADO: Color oscuro */
    font-family: 'Playfair Display', serif;
}

/* Responsive */
@media (max-width: 992px) {
    .new-gallery-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .new-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .gallery-img {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .modal-prev {
        left: 15px;
    }
    
    .modal-next {
        right: 15px;
    }
    
    .modal-nav {
        font-size: 20px;
        padding: 12px 15px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .new-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 10px;
    }
    
    .gallery-img {
        height: 220px;
    }
    
    .modal-content {
        padding: 15px;
        margin: 10px;
    }
}

/* ELIMINAR las animaciones que causan que las imágenes estén ocultas */
/* .new-gallery-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
} */

/* ELIMINAR el efecto de carga que oculta las imágenes */
/* .gallery-img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-img.loaded {
    opacity: 1;
} */
