:root {
    --primary: #8d6e63;
    --primary-dark: #5f4339;
    --secondary: #d4a373;
    --accent: #bc6c25;
    --bg: #fefae0;
    --text: #283618;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-card h1 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.auth-card p {
    margin-bottom: 25px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: var(--accent);
}

.btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--primary-dark);
}

.toggle-auth {
    margin-top: 20px;
    font-size: 14px;
}

.toggle-auth a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* Dashboard */
.dashboard-nav {
    background: var(--primary-dark);
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.stats-bar {
    background: var(--white);
    padding: 10px 5%;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.gallery-container {
    padding: 40px 5%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.art-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.art-card:hover {
    transform: translateY(-5px);
}

.art-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.art-info {
    padding: 15px;
}

.art-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.art-info p {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1em;
}

.art-actions {
    padding: 10px 15px 15px;
}

/* Cart / Buzón */
.cart-drawer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-dark);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 300px;
    z-index: 999;
}

.cart-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.cart-total {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    font-size: 1.2em;
}

/* Ticket Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.ticket {
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    border: 2px dashed #ccc;
}

.ticket h2 {
    color: var(--accent);
    margin-bottom: 20px;
}

.ticket-code {
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 5px;
    margin: 20px 0;
    padding: 10px;
    background: #f0f0f0;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-card { padding: 20px; }
    .gallery-grid { grid-template-columns: 1fr; }
}
