/* Estilos de la galería */
        h1 {
            text-align: center;
            margin: 30px 0;
            color: #3D2314;
        }
        
        .galeria {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            list-style: none;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            justify-content: center;
        }
        
        .galeria li {
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            width: 320px; /* Ancho fijo para cada elemento */
        }
        
        .galeria li:hover {
            transform: translateY(-5px);
        }
        
        .galeria li img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
        }

        .galeria li span {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 50px; /* Ajustar al gusto */
            text-align: center;
        }

        
        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 999;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            overflow: auto;
        }
        
        .modal:target {
            display: block;
        }
        
        .modal h3 {
            color: #fff;
            text-align: center;
            margin-top: 20px;
        }
        
        .imagen {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 80vh;
        }
        
        .imagen img {
            max-width: 80%;
            max-height: 80vh;
            object-fit: contain;
            cursor: pointer; /* Añadir cursor pointer para indicar que es clicable */
            transition: opacity 0.3s ease; /* Añadir transición suave */
        }
        
        .imagen img:hover {
            opacity: 0.9; /* Efecto al pasar el ratón para indicar que es clicable */
        }
        
        .imagen a.flecha {
            color: #fff;
            font-size: 30px;
            text-decoration: none;
            margin: 0 20px;
            height: 50px;
            width: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.2);
            transition: background-color 0.3s ease;
        }
        
        .imagen a.flecha:hover {
            background-color: rgba(255, 255, 255, 0.4);
        }
        
        .cerrar {
            position: absolute;
            top: 20px;
            right: 20px;
            color: #fff;
            font-size: 30px;
            text-decoration: none;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.2);
            transition: background-color 0.3s ease;
        }
        
        .cerrar:hover {
            background-color: rgba(255, 255, 255, 0.4);
        }
        
        