/* css/historial.css */

/* Reutilizando tus variables base */
.historial-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 40px;
    padding: 100px 5vw; /* Ajustado para que no lo tape el banner */
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- SIDEBAR ESTILO CARD --- */
.historial-sidebar {
    flex: 0 0 300px;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 40px 20px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.user-profile {
    text-align: center;
    margin-bottom: 40px;
}

.user-profile .avatar-mini {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--beige2), var(--beige));
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark);
}

.nav-menu {
    list-style: none;
}

.nav-item {
    padding: 15px 25px;
    margin-bottom: 8px;
    border-radius: 16px;
    color: var(--muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.nav-item.active {
    background: var(--dark2);
    color: var(--beige2);
    border-left: 4px solid var(--beige2);
}

/* --- ÁREA DE COMPRAS --- */
.historial-main {
    flex: 1;
}

.historial-header {
    margin-bottom: 30px;
}

.historial-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: var(--text);
    margin-bottom: 10px;
}

/* --- TARJETA DE ORDEN --- */
.compra-card {
    background: var(--dark2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.compra-card:hover {
    transform: translateY(-5px);
    border-color: var(--beige);
    box-shadow: var(--shadow);
}

.compra-info h3 {
    color: var(--text);
    font-size: 20px;
    margin-bottom: 8px;
}

.compra-meta {
    display: flex;
    gap: 25px;
    color: var(--muted);
    font-size: 14px;
}

.compra-meta span b {
    color: var(--beige2);
}

.btn-detalle {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--beige2);
    color: var(--beige2);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.btn-detalle:hover {
    background: var(--beige2);
    color: var(--dark);
}

/* Ajuste para que el contenido sea scrolleable si hay muchas compras */
body {
    overflow-y: auto; 
}