/* ===== GALERÍA · RUBI'S STUDIO ===== */

.hero-gallery {
    background: linear-gradient(135deg, rgba(232, 180, 200, 0.1), rgba(212, 165, 200, 0.1));
    padding: 100px 0 50px;
    margin-top: 76px;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 28px;
    border: 2px solid var(--soft-gray);
    border-radius: 40px;
    background: white;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-rose), var(--primary-mauve));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(232, 180, 200, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.gallery-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(212, 165, 200, 0.15);
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(139, 107, 125, 0.95) 0%,
        rgba(139, 107, 125, 0.7) 50%,
        rgba(139, 107, 125, 0.4) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    width: 100%;
}

.gallery-card:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h4 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.gallery-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-ver-mas {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-rose), var(--primary-mauve));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ver-mas:hover {
    transform: scale(1.15) rotate(45deg);
    box-shadow: 0 15px 35px rgba(232, 180, 200, 0.5);
    border-color: white;
}

/* Modal de imagen */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-modal.show {
    display: flex;
}

.gallery-modal-content {
    max-width: 900px;
    width: 90%;
    position: relative;
    animation: zoomIn 0.4s ease;
}

.gallery-modal-image {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.gallery-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--deep-plum);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    transform: rotate(90deg);
    background: var(--primary-rose);
    color: white;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-gallery {
        padding: 80px 0 40px;
        margin-top: 66px;
    }

    .gallery-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .gallery-info h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card {
        aspect-ratio: 4/5;
    }

    
}

/* ===== MODAL MEJORADO PARA GALERÍA ===== */

/* Modal container */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-modal.show {
    display: flex;
}

/* Contenido del modal - tamaño más pequeño */
.gallery-modal-content {
    max-width: 700px;
    width: 90%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Botón cerrar */
.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--deep-plum);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-modal-close:hover {
    transform: rotate(90deg);
    background: var(--primary-rose);
    color: white;
}

/* Header del modal con gradiente */
.gallery-modal-header {
    background: linear-gradient(135deg, var(--soft-cream), white);
    padding: 20px 30px;
    border-bottom: 2px solid var(--primary-rose);
}

.gallery-modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--deep-plum);
    margin: 0;
    text-align: center;
}

/* Cuerpo del modal - layout con imagen más pequeña */
.gallery-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 30px;
}

/* Imagen más pequeña y centrada */
.gallery-modal-image {
    max-width: 200px;
    width: 80%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.gallery-modal-image:hover {
    transform: scale(1.02);
}

/* Información del modal */
.gallery-modal-info {
    text-align: center;
    width: 100%;
}

.gallery-modal-description {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* Grid de detalles */
.gallery-modal-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    background: var(--soft-cream);
    border-radius: 20px;
    padding: 15px;
}

.gallery-modal-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.gallery-modal-detail i {
    font-size: 1.2rem;
    color: var(--primary-mauve);
}

.gallery-modal-detail strong {
    color: var(--deep-plum);
    font-weight: 600;
}

/* Tags dentro del modal */
.gallery-modal-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--soft-gray);
}

.gallery-modal-tag {
    background: linear-gradient(135deg, var(--soft-cream), white);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    color: var(--primary-mauve);
    font-weight: 600;
    border: 1px solid var(--soft-gray);
    transition: all 0.2s ease;
}

.gallery-modal-tag:hover {
    background: var(--primary-rose);
    color: white;
    border-color: transparent;
}

/* Footer del modal */
.gallery-modal-footer {
    background: var(--soft-cream);
    padding: 15px 30px;
    text-align: center;
    border-top: 1px solid var(--soft-gray);
}

.gallery-modal-footer small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .gallery-modal-content {
        width: 95%;
        max-width: 500px;
    }
    
    .gallery-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .gallery-modal-body {
        padding: 20px;
    }
    
    .gallery-modal-image {
        max-width: 280px;
    }
    
    .gallery-modal-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-modal-detail {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .gallery-modal-header {
        padding: 15px 20px;
    }
    
    .gallery-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .gallery-modal-body {
        padding: 15px;
    }
    
    .gallery-modal-image {
        max-width: 220px;
    }
    
    .gallery-modal-description {
        font-size: 0.85rem;
    }
    
    .gallery-modal-detail {
        font-size: 0.75rem;
    }
    .gallery-filters a,
    .gallery-filters a:link,
    .gallery-filters a:visited,
    .gallery-filters a:hover,
    .gallery-filters a:active,
    .gallery-filters a:focus {
        text-decoration: none;
        outline: none;
    }

}