/* ============================================
   SISTEMA POS - TEMA PASTELERÍA PREMIUM
   ============================================ */

/* ========== VARIABLES CSS ========== */
:root {
    /* Paleta Luxury Bakery */
    --luxury-gold: #D4AF37;
    --luxury-berry: #C2185B;
    --luxury-cream: #FFFDF7;
    --luxury-dark: #2D1A12;
    --luxury-accent: #FF5E62;

    /* Variables Base */
    --bakery-bg: #FDFBF7;
    --bakery-pink: #FF85A1;
    --bakery-coral: #FF6B6B;
    --bakery-chocolate: #4A2C2A;
    --bakery-coffee: #6F4E37;
    --bakery-lavender: #D8BFD8;
    --bakery-peach: #FFCCB3;
    --bakery-mint: #48C9B0;

    /* Gradientes Avanzados */
    --gradient-luxury: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 40%, #A18CD1 70%, #FBC2EB 100%);
    --gradient-professional: radial-gradient(circle at 20% 20%, #FFF5F7 0%, #FFE4E8 100%);

    /* Glassmorphism Pro */
    --glass-white: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(74, 44, 42, 0.1);

    /* Otros */
    --radius-main: 25px;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Quicksand', sans-serif;
    --text-main: var(--bakery-coffee);
    --text-dark: var(--bakery-chocolate);
}

.bg-mint {
    background-color: var(--bakery-mint) !important;
    color: white !important;
}

/* ========== IMPORTAR FUENTES ========== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ========== RESET & BASE ========== */
body {
    background-color: var(--bakery-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    color: var(--text-dark);
    font-weight: 700;
}

/* ========== DASHBOARD HERO BACKGROUND (KEN BURNS PRO) ========== */
.dashboard-hero {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: -2;
    background: url('../img/hero-bakery.jpg') no-repeat center center;
    background-size: cover;
    animation: kenBurnsHero 45s ease-in-out infinite alternate;
    filter: brightness(0.8);
}

@keyframes kenBurnsHero {
    0% {
        transform: scale(1.05) translate(0, 0);
    }

    100% {
        transform: scale(1.18) translate(-3%, -1.5%);
    }
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
    z-index: -1;
}

/* ========== MESH GRADIENT AVANZADO ========== */
.advanced-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: #FDFBF7;
    background-image:
        radial-gradient(at 0% 0%, #FF9A9E 0, transparent 55%),
        radial-gradient(at 50% 0%, #FAD0C4 0, transparent 55%),
        radial-gradient(at 100% 0%, #A18CD1 0, transparent 55%),
        radial-gradient(at 0% 50%, #FBC2EB 0, transparent 55%),
        radial-gradient(at 100% 50%, #FECFEF 0, transparent 55%),
        radial-gradient(at 0% 100%, #FFCCB3 0, transparent 55%),
        radial-gradient(at 50% 100%, #E6E6FA 0, transparent 55%),
        radial-gradient(at 100% 100%, #98FF98 0, transparent 55%);
    background-size: 200% 200%;
    animation: meshMove 30s ease-in-out infinite alternate;
}

@keyframes meshMove {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 50% 100%;
    }
}

.glass-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
}

/* Glass Cards Pro */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-main);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.dashboard-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

.dashboard-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: rotate(30deg);
    transition: 0.8s;
    pointer-events: none;
}

.dashboard-card:hover::after {
    left: 120%;
}

/* Animación de entrada para vistas */
.animate-view-entry {
    animation: viewEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewEntry {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== BOTONES ========== */
.btn {
    border-radius: var(--radius-main);
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: linear-gradient(135deg, var(--bakery-pink), var(--bakery-coral));
    border: none;
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--bakery-mint), #2ECC71);
    border: none;
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #F39C12, #E67E22);
    border: none;
    color: white;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Scrollbar Avanzado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--bakery-pink), var(--bakery-mint));
    border-radius: 10px;
}

/* Decoraciones */
.circle-deco {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bakery-pink), var(--bakery-peach));
    opacity: 0.1;
    z-index: 0;
}