/* =========================================
   TUS ARCANOS: DARK LUXURY STYLES
   ========================================= */

/* --- 1. FONDO GENERAL Y TIPOGRAFÍA --- */
body {
    background-color: #0a0a0a !important; /* Negro profundo obligatorio */
    color: #e0e0e0;
    font-family: 'Marcellus', "Segoe UI", sans-serif;
    padding-top: 0px; 
}

/* --- 2. MENU GLASSMORPHISM --- */
.navbar {
    z-index: 1030;
    transition: all 0.3s ease-in-out;
    position: fixed; /* Lo fijamos arriba */
    top: 0;
    left: 0;
    right: 0;
}

.glass-navbar {
    background: rgba(15, 15, 15, 0.4) !important; 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); 
}

.glass-navbar .nav-link {
    color: #d4af37 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.glass-navbar .nav-link:hover {
    color: #fff !important;
}

/* --- 3. HERO CORTO (PORTADA) --- */
.header-hero {
    position: relative;
    height: 80vh !important; /* Altura corta para mostrar contenido rápido */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(10,10,10,1) 100%);
    z-index: 1;
}

.header-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 60px !important; /* Espacio para el menú flotante */
}

.header-hero p.lead {
    color: #d4af37 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}


/* --- 4. TARJETAS DE ARTÍCULOS (CARDS) --- */
.card {
    background: rgba(20, 20, 20, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 12px;
    color: #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; 
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.6) !important;
}

.card-img-container {
    height: 180px;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex-direction: column;
}

.card-title {
    color: #d4af37;
    font-family: 'Cinzel', serif; /* Títulos de tarjetas en Cinzel */
    font-size: 1.3rem;
    font-weight: bold;
}

.card-text.excerpt {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.5em;
    max-height: 4.5em;
    color: #b0b0b0;
}

.btn-outline-primary {
    color: #d4af37;
    border-color: #d4af37;
    border-radius: 0.5rem;
}

.btn-outline-primary:hover {
    background-color: #d4af37;
    color: #0a0a0a;
}

/* --- 5. SIDEBAR GLASSMORPHISM --- */
.col-lg-4 aside > div,
.col-lg-4 .card { /* Por si el sidebar usa clases card */
    background: rgba(20, 20, 20, 0.6) !important; 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(212, 175, 55, 0.15) !important; 
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    color: #e0e0e0 !important; 
}

.col-lg-4 aside h3,
.col-lg-4 aside h4,
.col-lg-4 .card-header {
    color: #d4af37 !important;
    font-family: 'Cinzel', serif;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    background: transparent !important; /* Matar fondos grises de card-header */
}

/* Formularios del sidebar */
.col-lg-4 .form-control {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #e0e0e0 !important;
}

.col-lg-4 .form-control:focus {
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.col-lg-4 .btn-primary {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #0a0a0a !important;
    font-weight: bold;
}

.col-lg-4 aside a {
    color: #b0b0b0 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.col-lg-4 aside a:hover {
    color: #d4af37 !important;
}

/* --- 6. PAGINACIÓN LUXURY --- */
.pagination .page-link {
    background-color: transparent !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

.pagination .page-item.active .page-link {
    background-color: #d4af37 !important;
    color: #0a0a0a !important;
    border-color: #d4af37;
}

.pagination .page-link:hover {
    background-color: rgba(212, 175, 55, 0.2) !important;
    color: #fff;
}
/* =========================================
   EXORCISMO DEFINITIVO DEL SIDEBAR 
   ========================================= */

/* 1. El contenedor principal (card) */
.col-lg-4 .card {
    background: rgba(20, 20, 20, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 12px;
    color: #e0e0e0;
}

/* 2. Los títulos (Buscar, Categorías, etc.) */
.col-lg-4 .card h4 {
    color: #d4af37 !important; /* Dorado */
    font-family: 'Cinzel', serif;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px !important;
}

/* 3. El buscador y el botón */
.col-lg-4 .form-control {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #e0e0e0 !important;
}

.col-lg-4 .form-control:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5) !important;
}

.col-lg-4 .btn-primary {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #0a0a0a !important; /* Texto oscuro sobre botón dorado */
    font-weight: bold;
}

.col-lg-4 .btn-primary:hover {
    background-color: #b5952f !important;
}

/* 4. Las listas (Artículos y Categorías) para matar el fondo blanco */
.col-lg-4 .list-group-item {
    background-color: transparent !important; 
    border: 1px solid rgba(212, 175, 55, 0.1) !important; 
    color: #b0b0b0 !important;
    transition: all 0.3s ease;
}

/* Efecto al pasar el mouse por los enlaces de la lista */
.col-lg-4 .list-group-item:hover {
    background-color: rgba(212, 175, 55, 0.1) !important; /* Un brillo sutil dorado */
    color: #d4af37 !important;
}