/* Configuración General */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

body {
    background: linear-gradient(270deg, #000000, #1a1a1a, #333333, #000000);
    background-size: 800% 800%;
    animation: mareaFondo 15s ease infinite;
}

@keyframes mareaFondo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    display: flex;
    justify-content: space-between;
    padding: 30px 50px;
    align-items: center;
}

.logo { font-size: 1.8rem; font-weight: bold; letter-spacing: 5px; }

nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }

nav a {
    color: white; text-decoration: none; text-transform: uppercase;
    font-size: 0.9rem; opacity: 0.7; transition: 0.3s;
}
nav a:hover { opacity: 1; }

.cart-toggle {
    background: transparent; color: white;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 8px 16px; cursor: pointer;
    font-size: 0.9rem; letter-spacing: 1px; transition: 0.3s;
}
.cart-toggle:hover { background: rgba(255,255,255,0.1); }

.hero { text-align: center; padding: 100px 20px; }
.hero h1 { font-size: 4rem; margin-bottom: 10px; }

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; padding: 50px;
}

.item-arte {
    background: rgba(255, 255, 255, 0.1);
    height: 350px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.4s;
    display: flex; flex-direction: column;
    justify-content: flex-end; align-items: center;
    padding: 20px; box-sizing: border-box; text-align: center;
}
.item-arte:hover { transform: scale(1.03); border: 1px solid white; }

.item-arte button {
    margin-top: 10px; background: white; color: black;
    border: none; padding: 10px 20px; cursor: pointer;
    font-weight: bold; letter-spacing: 1px; transition: 0.3s;
}
.item-arte button:hover { background: #ddd; }

#side-cart {
    position: fixed; top: 0; right: -400px;
    width: 360px; height: 100vh;
    background: #0a0a0a;
    border-left: 1px solid rgba(255,255,255,0.1);
    transition: right 0.4s ease;
    display: flex; flex-direction: column; z-index: 1000;
}
#side-cart.active { right: 0; }

.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid #222;
}
.close-cart {
    background: transparent; color: white; border: none;
    font-size: 1.8rem; cursor: pointer;
}
#cart-items { flex: 1; overflow-y: auto; }
.empty-msg { padding: 30px; text-align: center; opacity: 0.6; }
.cart-footer { padding: 20px; border-top: 1px solid #222; text-align: right; }
