/* =========================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    /* Paleta de Colores - Basada en Invoice PDF */
    --wine-primary: #800020;       /* Color Vino Principal */
    --wine-dark: #5a0016;          /* Vino Oscuro (Hover) */
    --wine-accent: #a30029;        /* Vino Brillante */
    --gold: #d4af37;               /* Dorado */
    --gold-dark: #c5a028;          /* Dorado Oscuro */
    --text-dark: #333333;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}

/* Importar Fuentes (Sugerencia: Playfair Display para títulos) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .serif-font {
    font-family: 'Playfair Display', serif;
}

/* =========================================
   2. COMPONENTES DE BOTONES
   ========================================= */

/* Botón Principal (Tienda / Checkout) */
.btn-rm-primary {
    background-color: var(--wine-primary);
    color: #fff;
    border: 1px solid var(--wine-primary);
    transition: all 0.3s ease;
}

.btn-rm-primary:hover {
    background-color: var(--wine-dark);
    border-color: var(--wine-dark);
    color: #fff;
}

/* Botón "Call to Action" Premium (Home / Catálogo) */
.btn-wine-cta {
    background: linear-gradient(135deg, var(--wine-primary) 0%, var(--wine-dark) 100%);
    color: #ffffff !important;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(128, 0, 32, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-wine-cta:hover {
    background: linear-gradient(135deg, var(--wine-accent) 0%, var(--wine-primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.4);
    color: #fff;
}

.btn-wine-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(128, 0, 32, 0.3);
}

/* =========================================
   3. TARJETAS Y PRODUCTOS
   ========================================= */

/* Animación para cards de producto en catálogo */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}

.product-card img {
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Links Bloque para el Dashboard Admin */
.card-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    height: 100%;
}

.card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    color: inherit;
}

/* Iconos cuadrados del Dashboard */
.stat-icon {
    width: 48px; 
    height: 48px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 12px; 
    font-size: 1.5rem;
}

/* =========================================
   4. UTILIDADES DE TEXTO Y BADGES
   ========================================= */

.text-wine { color: var(--wine-primary) !important; }
.bg-wine { background-color: var(--wine-primary) !important; }

.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }

/* Enlaces dorados sutiles */
.hover-gold:hover {
    color: var(--gold-dark) !important;
}