/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #e0a80d;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Styles */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 1000;
    background-color: rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav img {
    height: 30px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    justify-content: flex-end;
    grid-column: 3;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Header de la galería */
.gallery-header {
    text-align: center;
    padding: 50px 5% 60px;
}

.gallery-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.gallery-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Contenedor de la galería */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    aspect-ratio: 1 / 1;
    cursor: pointer;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    background: white;
    display: block;
}

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

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1.5rem 1rem 1rem;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.item-artist {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 0 20px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 2rem 2%;
    }
    .gallery-header {
        padding: 40px 2% 40px;
    }
}

@media (max-width: 900px) {
    .gallery-header {
        padding: 30px 1rem 30px;
    }
    .gallery-header h1 {
        font-size: 2rem;
    }
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    .gallery-item {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 12px 10px;
    }
    .gallery-header {
        padding: 80px 0.5rem 30px;
    }
    .gallery-header h1 {
        font-size: 1.5rem;
    }
    .gallery-header p {
        font-size: 1rem;
    }
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 1rem 0.5rem;
    }
    .gallery-item {
        aspect-ratio: 16/9;
    }
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .gallery-header {
        padding: 70px 0.2rem 20px;
    }
    .gallery-header h1 {
        font-size: 1.1rem;
    }
    .gallery-header p {
        font-size: 0.95rem;
    }
    .gallery-container {
        padding: 0.5rem 0.2rem;
    }
    .gallery-item {
        aspect-ratio: 1/1;
        min-height: 180px;
    }
    .item-overlay {
        padding: 1rem 0.5rem 0.5rem;
        font-size: 0.9rem;
    }
    .modal-content {
        max-width: 98vw;
        max-height: 70vh;
    }
    .close-modal {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }
    .modal-caption {
        bottom: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .gallery-header h1 {
        font-size: 0.95rem;
    }
    .gallery-header p {
        font-size: 0.85rem;
    }
    .gallery-item {
        min-height: 120px;
    }
}
