 /* ESTILOS GENERALES */
        :root {
            --bg-color: #0a0a0a; /* Negro suave */
            --text-color: #f0f0f0;
            --accent-color: #333;
        }

        body {
            margin: 0;
            padding: 0;
            background-color: var(--bg-color);
            color: var(--text-color);
            font-family: 'Inter', Helvetica, Arial, sans-serif;
            overflow-x: hidden;
        }

        a { text-decoration: none; color: inherit;}

        /* HEADER */
        header {
            padding: 2rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--accent-color);
            position: sticky;
            top: 0;
            background-color: rgba(10, 10, 10, 0.9);
            backdrop-filter: blur(5px);
            z-index: 100;
        }



        .logo { 
            font-weight: 600; 
            letter-spacing: 3px; 
            font-size: 1.2rem; 
            font-family: 'Jost'; 
        }

        .back-btn {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            border: 1px solid var(--text-color);
            padding: 0.5rem 1rem;
            transition: all 0.3s ease;
        }

        .back-btn:hover {
            background-color: var(--text-color);
            color: var(--bg-color);
        }

        /* GALERÍA */
        .gallery-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 4rem 2rem;
        }

        .gallery-title {
            font-size: 3rem;
            text-transform: uppercase;
            margin-bottom: 1rem;
            font-weight: 300;
        }

        .gallery-subtitle {
            font-size: 1rem;
            color: #888;
            margin-bottom: 3rem;
            max-width: 600px;
            line-height: 1.6;
        }

        /* Rejilla Masonry (Mosaico) */
        .gallery-grid {
            column-count: 3;
            column-gap: 1.5rem;
        }

        .gallery-item {
            margin-bottom: 1.5rem;
            break-inside: avoid;
            position: relative;
            overflow: hidden;
            cursor: pointer;

            
        }

        /* IMAGENES: Blanco y Negro por defecto */
        .gallery-item img {
            width: 100%;
            height: auto;
            display: block;
            filter: grayscale(100%); 
            transition: transform 0.5s ease, filter 0.3s ease;
        }

        

        /* Hover: Color y Zoom */
        .gallery-item:hover img {
            transform: scale(1.05);
            filter: grayscale(0%); 
        }

        

        /* MODAL PARA IMAGEN EN GRANDE */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            max-width: 90%;
            max-height: 90%;
            display: block;
            filter: none; /* Asegura que la imagen del modal sea a color */
        }

        .close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #f0f0f0;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }

        /* FOOTER */
        footer {
            text-align: center;
            padding: 3rem;
            border-top: 1px solid var(--accent-color);
            font-size: 0.8rem;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            .gallery-grid {
                column-count: 2;
            }
            .gallery-title {
                font-size: 2rem;
            }
        }
        @media (max-width: 480px) {
            .gallery-grid {
                column-count: 1;
            }
        }