:root {
        --bg: #0a0a0f;
        --card: rgba(255,255,255,0.045);
        --border: rgba(255,255,255,0.10);
        --gold: #e8b64c;
        --gold2: #c9922e;
        --gold-soft: #f5d78a;
        --text: #f2f2f5;
        --muted: #a8a8b5;
        --input-bg: rgba(255,255,255,0.06);
        --panel-bg: rgba(20,20,30,0.85);
        --modal-bg: #13131c;
        --hover-bg: rgba(255,255,255,0.08);
        --overlay-bg: rgba(10,10,15,0.55);
        --imgwrap-bg: radial-gradient(circle at 50% 40%, #1a1a24, #0c0c12 75%);
    }
    * { margin:0; padding:0; box-sizing:border-box; }
    body {
        font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
        background:
            radial-gradient(1200px 600px at 80% -10%, rgba(232,182,76,0.10), transparent 60%),
            radial-gradient(900px 500px at -10% 30%, rgba(120,80,255,0.10), transparent 60%),
            var(--bg);
        color: var(--text);
        min-height: 100vh;
        padding: 0 0 80px;
    }
    header { text-align: center; padding: 92px 20px 20px; }
    header .kicker { letter-spacing: 6px; text-transform: uppercase; font-size: 12px; color: var(--gold); margin-bottom: 14px; margin-top: 20px; }
    header h1 {
        font-size: clamp(34px, 6vw, 58px); font-weight: 800;
        background: linear-gradient(90deg, #fff, var(--gold-soft));
        -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    header p { margin-top: 14px; color: var(--muted); font-size: 15px; }
    .divider { width: 90px; height: 2px; margin: 22px auto 0;
        background: linear-gradient(90deg, transparent, var(--gold), transparent); }

    /* ============ NAV SUPERIOR TRANSPARENTE ============ */
    .topnav {
        position: fixed; top: 0; left: 0; right: 0; z-index: 940;
        display: flex; align-items: center; justify-content: space-between;
        padding: 10px 18px;
        background: transparent;
        transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
    }
    /* Efecto glass al hacer scroll */
    .topnav.scrolled {
        background: var(--panel-bg);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 6px 24px rgba(0,0,0,0.25);
        border-bottom: 1px solid var(--border);
    }
    .topnav .brand {
        display: flex; align-items: center; gap: 10px; text-decoration: none;
    }
    .topnav .brand img {
        width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
        border: 1px solid var(--border);
        box-shadow: 0 4px 14px rgba(0,0,0,0.35);
        background: #eef6f1;
    }
    .topnav .brand span {
        font-weight: 800; font-size: 16px; letter-spacing: 1px;
        background: linear-gradient(90deg, var(--gold-soft), var(--gold));
        -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    .nav-acciones { display: flex; align-items: center; gap: 8px; }
    .nav-btn { padding: 8px 14px !important; font-size: 12.5px !important; }
    .hamburguesa {
        display: none; width: 42px; height: 42px; border-radius: 12px;
        background: var(--panel-bg); border: 1px solid var(--border);
        color: var(--text); font-size: 20px; cursor: pointer;
        backdrop-filter: blur(8px);
        align-items: center; justify-content: center;
    }
    @media (max-width: 860px) {
        .hamburguesa { display: flex; }
        .nav-acciones {
            display: none;
            position: absolute; top: 58px; right: 12px;
            flex-direction: column; align-items: stretch;
            background: var(--panel-bg); backdrop-filter: blur(14px);
            border: 1px solid var(--border); border-radius: 16px;
            padding: 10px; min-width: 215px; gap: 6px;
            box-shadow: 0 18px 45px rgba(0,0,0,0.5);
        }
        .topnav.nav-abierto .nav-acciones { display: flex; }
        .nav-acciones .btn, .nav-acciones form { width: 100%; }
        .nav-acciones .btn { justify-content: center; }
        .theme-toggle { align-self: center; }
    }
    @media (min-width: 861px) {
        .nav-acciones { display: flex !important; }
    }

    /* Logo del header */
    .logo-header {
        width: 186px; height: 186px; border-radius: 26px; object-fit: cover;
        margin-bottom: 12px; border: 1px solid var(--border);
        box-shadow: 0 12px 34px rgba(0,0,0,0.35);
        background: #eef6f1;
    }
    @media (max-width: 600px) {
        .logo-header { width: 84px; height: 84px; border-radius: 20px; }
    }
    .btn {
        display: inline-flex; align-items: center; gap: 8px;
        border: none; cursor: pointer;
        padding: 11px 22px; border-radius: 999px;
        font-size: 14px; font-weight: 700; text-decoration: none;
        transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1206; box-shadow: 0 6px 18px rgba(232,182,76,0.3); }
    .btn-outline { background: transparent; color: var(--gold-soft); border: 1px solid rgba(232,182,76,0.5); }
    .btn-outline:hover { background: rgba(232,182,76,0.12); }
    .btn-rojo { background: rgba(220,53,69,0.15); color: #ff7b87; border: 1px solid rgba(220,53,69,0.5); }
    .btn-rojo:hover { background: #dc3545; color: #fff; }

    .flash {
        max-width: 600px; margin: 22px auto 0; padding: 12px 20px;
        border-radius: 12px; text-align: center; font-size: 14px; font-weight: 600;
    }
    .flash-ok   { background: rgba(37,211,102,0.12); color: #4be187; border: 1px solid rgba(37,211,102,0.4); }
    .flash-error{ background: rgba(220,53,69,0.12);  color: #ff7b87; border: 1px solid rgba(220,53,69,0.4); }

    /* Buscador y categorías */
    .controles {
        max-width: 1250px; margin: 30px auto 0; padding: 0 24px;
        display: flex; flex-direction: column; gap: 16px; align-items: center;
    }
    .buscador {
        width: 100%; max-width: 520px; position: relative;
    }
    .buscador input {
        width: 100%;
        background: var(--input-bg);
        border: 1px solid var(--border);
        border-radius: 999px;
        color: var(--text);
        padding: 13px 20px 13px 46px;
        font-size: 15px; font-family: inherit; outline: none;
        transition: border-color .25s ease, box-shadow .25s ease;
    }
    .buscador input:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(232,182,76,0.15);
    }
    .buscador input::placeholder { color: var(--muted); }
    .buscador .icono-lupa {
        position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
        color: var(--muted); font-size: 16px; pointer-events: none;
    }
    .categorias { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
    .chip {
        background: var(--input-bg);
        border: 1px solid var(--border);
        color: var(--muted);
        padding: 8px 18px; border-radius: 999px;
        font-size: 13px; font-weight: 700; cursor: pointer;
        transition: all .25s ease;
    }
    .chip:hover { border-color: rgba(232,182,76,0.5); color: var(--gold-soft); }
    .chip.activo {
        background: linear-gradient(135deg, var(--gold), var(--gold2));
        color: #1a1206; border-color: transparent;
        box-shadow: 0 4px 14px rgba(232,182,76,0.35);
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 26px;
        max-width: 1250px; margin: 34px auto 0; padding: 0 24px;
        min-height: 200px;
    }
    .card {
        background: var(--card); border: 1px solid var(--border); border-radius: 18px;
        overflow: hidden; backdrop-filter: blur(8px);
        transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    }
    .card:hover { transform: translateY(-8px); border-color: rgba(232,182,76,0.55);
        box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(232,182,76,0.25); }
    .img-wrap {
        position: relative; aspect-ratio: 1/1;
        display: flex; align-items: center; justify-content: center;
        background: var(--imgwrap-bg);
        overflow: hidden;
    }
    .img-wrap img { width: 100%; height: 100%; object-fit: fill; transition: transform .5s ease; }
    .card:hover .img-wrap img { transform: scale(1.06); }
    .badge-price {
        position: absolute; bottom: 12px; right: 12px; z-index: 6;
        background: linear-gradient(135deg, var(--gold), var(--gold2));
        color: #1a1206; font-weight: 800; font-size: 16px;
        padding: 7px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,0.45);
    }
    .badge-costo {
        position: absolute; bottom: 12px; left: 12px; z-index: 6;
        background: rgba(108,117,125,0.9); color: #fff;
        font-weight: 700; font-size: 12px;
        padding: 6px 12px; border-radius: 999px;
        border: 1px solid var(--border); backdrop-filter: blur(4px);
    }
    .badge-cat {
        position: absolute; top: 12px; left: 12px; z-index: 6;
        background: var(--panel-bg); color: var(--gold-soft);
        font-size: 11px; font-weight: 700; letter-spacing: 1px;
        padding: 5px 12px; border-radius: 999px;
        border: 1px solid rgba(232,182,76,0.4); backdrop-filter: blur(4px);
    }
    .placeholder { display:none; font-size:64px; font-weight:800; color:var(--gold); opacity:.55; }
    .img-wrap.no-img .placeholder { display:block; }

    /* Sello AGOTADO: etiqueta pequeña arriba a la derecha, sin cubrir la imagen */
    .agotado {
        display: none; position: absolute; top: 12px; right: 12px; z-index: 6;
    }
    .agotado span {
        display: inline-block;
        background: linear-gradient(135deg, #dc3545, #a5192e);
        color: #fff; font-weight: 800; font-size: 11px;
        letter-spacing: 2px; padding: 5px 12px; border-radius: 999px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
        text-transform: uppercase;
    }
    .card.es-agotado .agotado { display: block; }

    .info { padding: 18px 20px 22px; }
    .info h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
    .info p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

    .btn-pedir {
        display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
        background: rgba(37,211,102,0.12); color: #4be187;
        border: 1px solid rgba(37,211,102,0.45);
        padding: 8px 16px; border-radius: 999px;
        font-size: 13px; font-weight: 700; text-decoration: none;
        transition: background .3s ease, color .3s ease;
    }
    .btn-pedir:hover { background: #25d366; color: #062b17; }
    .btn-pedir svg { width: 15px; height: 15px; fill: currentColor; }

    .btn-editar {
        display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; margin-left: 8px;
        background: rgba(232,182,76,0.12); color: var(--gold-soft);
        border: 1px solid rgba(232,182,76,0.5);
        padding: 8px 16px; border-radius: 999px;
        font-size: 13px; font-weight: 700; cursor: pointer;
        transition: background .3s ease, color .3s ease;
    }
    .btn-editar:hover { background: var(--gold); color: #1a1206; }

    /* Paginación */
    .paginacion {
        display: flex; justify-content: center; align-items: center; gap: 8px;
        margin: 40px auto 0; padding: 0 24px; flex-wrap: wrap;
    }
    .paginacion button {
        min-width: 40px; height: 40px;
        background: var(--input-bg);
        border: 1px solid var(--border);
        color: var(--muted); border-radius: 10px;
        font-size: 14px; font-weight: 700; cursor: pointer;
        transition: all .25s ease;
    }
    .paginacion button:hover:not(:disabled) { border-color: rgba(232,182,76,0.5); color: var(--gold-soft); }
    .paginacion button.activo {
        background: linear-gradient(135deg, var(--gold), var(--gold2));
        color: #1a1206; border-color: transparent;
    }
    .paginacion button:disabled { opacity: .3; cursor: default; }
    .paginacion-info { text-align: center; margin-top: 14px; color: var(--muted); font-size: 13px; }
    .sin-resultados {
        grid-column: 1 / -1; text-align: center; color: var(--muted);
        padding: 60px 20px; font-size: 16px;
    }
    .sin-resultados .grande { font-size: 42px; margin-bottom: 12px; }

    footer { text-align: center; margin-top: 70px; color: var(--muted); font-size: 13px; }

    /* Botón flotante WhatsApp */
    .wa-float {
        position: fixed; bottom: 24px; right: 24px; z-index: 900;
        width: 58px; height: 58px; border-radius: 50%; background: #25d366;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 3px rgba(37,211,102,0.25);
        transition: transform .3s ease; animation: wa-pulse 2.4s infinite;
    }
    .wa-float:hover { transform: scale(1.1); animation: none; }
    .wa-float svg { width: 30px; height: 30px; fill: #fff; }
    @keyframes wa-pulse {
        0%   { box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 0 rgba(37,211,102,0.45); }
        70%  { box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 18px rgba(37,211,102,0); }
        100% { box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 0 rgba(37,211,102,0); }
    }


    /* Cursor de zoom en las imágenes del catálogo */
    .img-wrap img { cursor: zoom-in; }

    /* ============ VISOR DE IMAGEN CON ZOOM ============ */
    .visor-backdrop {
        display: none; position: fixed; inset: 0; z-index: 980;
        background: rgba(3,3,8,0.92); backdrop-filter: blur(6px);
        align-items: center; justify-content: center;
        overflow: hidden;
    }
    .visor-backdrop.abierto { display: flex; }
    .visor-stage {
        width: 100%; height: 100%;
        display: flex; align-items: center; justify-content: center;
        overflow: hidden; touch-action: none;
    }
    .visor-stage img {
        max-width: 92vw; max-height: 88vh;
        object-fit: contain;
        transition: transform .12s ease-out;
        user-select: none; -webkit-user-drag: none;
        will-change: transform;
        box-shadow: 0 30px 80px rgba(0,0,0,0.8);
        border-radius: 8px;
    }
    .visor-controles {
        position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
        display: flex; gap: 10px; z-index: 982;
        background: var(--panel-bg);
        border: 1px solid var(--border);
        padding: 8px; border-radius: 999px;
        backdrop-filter: blur(8px);
    }
    .visor-controles button {
        width: 42px; height: 42px; border-radius: 50%;
        background: var(--hover-bg); border: 1px solid var(--border);
        color: var(--text); font-size: 20px; font-weight: 700;
        cursor: pointer; transition: all .2s ease;
        display: flex; align-items: center; justify-content: center;
    }
    .visor-controles button:hover { background: var(--gold); color: #1a1206; }
    .visor-cerrar {
        position: absolute; top: 20px; right: 24px; z-index: 982;
        width: 46px; height: 46px; border-radius: 50%;
        background: var(--panel-bg); border: 1px solid var(--border);
        color: #fff; font-size: 24px; cursor: pointer;
        transition: all .2s ease; line-height: 1;
    }
    .visor-cerrar:hover { background: #dc3545; border-color: #dc3545; }
    .visor-hint {
        position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
        z-index: 982; color: var(--muted); font-size: 12.5px;
        background: var(--panel-bg); padding: 7px 16px; border-radius: 999px;
        border: 1px solid var(--border); white-space: nowrap;
    }


    /* ============ ME GUSTA (corazón) ============ */
    .btn-like {
        display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; margin-right: 8px;
        background: rgba(255,77,109,0.08); border: 1px solid rgba(255,77,109,0.35);
        color: #ff8fa3; padding: 8px 16px; border-radius: 999px;
        font-size: 13px; font-weight: 700; cursor: pointer;
        transition: all .25s ease;
    }
    .btn-like svg { width: 16px; height: 16px; fill: transparent; stroke: #ff4d6d; stroke-width: 2; transition: all .25s ease; }
    .btn-like:hover { background: rgba(255,77,109,0.18); }
    .btn-like.liked { color: #ff4d6d; border-color: rgba(255,77,109,0.6); }
    .btn-like.liked svg { fill: #ff4d6d; }
    .btn-like.pop svg { animation: like-pop .35s ease; }
    @keyframes like-pop { 0%{transform:scale(1)} 40%{transform:scale(1.5)} 100%{transform:scale(1)} }

    /* ============ BANNER DE PUNTOS DEL CLIENTE ============ */
    .mi-puntos {
        max-width: 620px; margin: 20px auto 0; text-align: center;
        background: linear-gradient(135deg, rgba(46,185,140,0.15), rgba(242,167,195,0.12));
        border: 1px solid rgba(46,185,140,0.4);
        padding: 14px 22px; border-radius: 14px; font-size: 15px;
    }
    .mi-puntos b { color: var(--gold); }

    /* ============ PANEL DE CLIENTES (admin) ============ */
    .lista-clientes { margin-top: 4px; }
    .fila-cliente { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: var(--input-bg); }
    .fila-cliente .datos { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:10px; font-size:14px; }
    .fila-cliente .puntos-cliente { color: var(--gold); font-weight:800; }
    .fila-cliente form { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
    .fila-cliente select, .fila-cliente input[type=number], .fila-cliente input[type=text] {
        background: var(--input-bg); border:1px solid var(--border); color: var(--text);
        border-radius:8px; padding:8px 10px; font-size:13px; flex:1; min-width:90px;
        font-family: inherit; outline:none;
    }
    .fila-cliente select:focus, .fila-cliente input:focus { border-color: var(--gold); }
    .fila-cliente select option { background: var(--modal-bg); }
    #modal-clientes .modal { max-width: 620px; }


    /* ============ REPORTE ============ */
    .opciones-reporte { display: flex; flex-direction: column; gap: 10px; }
    .opciones-reporte .btn { justify-content: center; padding: 14px 20px; font-size: 15px; }

    /* ============ MODALES ============ */
    .modal-backdrop {
        display: none; position: fixed; inset: 0; z-index: 950;
        background: rgba(5,5,10,0.75); backdrop-filter: blur(4px);
        align-items: center; justify-content: center; padding: 20px;
    }
    .modal-backdrop.abierto { display: flex; }
    .modal {
        background: var(--modal-bg); border: 1px solid rgba(232,182,76,0.35);
        border-radius: 20px; width: 100%; max-width: 460px;
        max-height: 90vh; overflow-y: auto;
        box-shadow: 0 25px 60px rgba(0,0,0,0.7);
        animation: modal-in .3s ease;
    }
    @keyframes modal-in { from { opacity:0; transform: translateY(25px) scale(.97);} to { opacity:1; transform:none;} }
    .modal-head { display:flex; align-items:center; justify-content:space-between; padding: 20px 24px 0; }
    .modal-head h2 { font-size: 20px; color: var(--gold-soft); }
    .modal-cerrar {
        background: none; border: none; color: var(--muted); font-size: 26px;
        cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 8px;
    }
    .modal-cerrar:hover { color: #fff; background: var(--hover-bg); }
    .modal-body { padding: 18px 24px 26px; }
    .campo { margin-bottom: 16px; }
    .campo label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
    .campo input[type=text], .campo input[type=password], .campo input[type=number],
    .campo textarea, .campo select {
        width: 100%; background: var(--input-bg);
        border: 1px solid var(--border); border-radius: 10px;
        color: var(--text); padding: 11px 14px; font-size: 14px;
        font-family: inherit; outline: none;
        transition: border-color .25s ease;
    }
    .campo select { cursor: pointer; }
    .campo select option { background: var(--modal-bg); }
    .campo input:focus, .campo textarea:focus, .campo select:focus { border-color: var(--gold); }
    .campo textarea { resize: vertical; min-height: 80px; }
    .campo-check { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
    .campo-check input { width: 18px; height: 18px; accent-color: #dc3545; }
    .campo-check label { font-size: 14px; color: #ff8b96; font-weight: 700; }
    .campo input[type=file] { color: var(--muted); font-size: 13px; }
    .preview-img { width: 100%; border-radius: 12px; margin-top: 8px; border: 1px solid var(--border); }
    .modal-footer { display:flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
    .modal-footer .btn { flex: 1; justify-content: center; }

    /* ============ TEMA CLARO: menta + pasteles ============ */
    [data-theme="light"] {
        --bg: #e9f6f0;                                   /* menta clarito principal */
        --card: rgba(255,255,255,0.75);
        --border: rgba(46,139,110,0.18);
        --text: #16382e;
        --muted: #5f7a72;
        --gold: #2eb98c;                                 /* menta medio: acciones */
        --gold2: #6fdcb5;                                /* menta suave: degradados */
        --gold-soft: #1e8f6d;
        --azul-pastel: #7fc8e8;
        --rosa-pastel: #f2a7c3;
        --input-bg: rgba(22,56,46,0.05);
        --panel-bg: rgba(255,255,255,0.9);
        --modal-bg: #ffffff;
        --hover-bg: rgba(46,185,140,0.10);
        --overlay-bg: rgba(35,60,52,0.45);
        --imgwrap-bg: radial-gradient(circle at 50% 40%, #ffffff, #dff0e8 75%);
    }
    [data-theme="light"] body {
        background:
            radial-gradient(1100px 550px at 85% -10%, rgba(127,200,232,0.35), transparent 60%),
            radial-gradient(900px 500px at -10% 30%, rgba(242,167,195,0.30), transparent 60%),
            radial-gradient(700px 500px at 50% 110%, rgba(111,220,181,0.25), transparent 60%),
            var(--bg);
    }
    [data-theme="light"] header h1 {
        background: linear-gradient(90deg, #157a5c, #35c496);
        -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    [data-theme="light"] header .kicker { color: #d97ba2; }            /* rosa pastel */
    [data-theme="light"] .buscador .icono-lupa { color: #6fa8dc; }     /* azul pastel */
    [data-theme="light"] .badge-cat {
        background: rgba(127,200,232,0.85); color: #1c5670;
        border-color: rgba(127,200,232,0.6);
    }
    [data-theme="light"] .visor-backdrop {
        background: rgba(10,10,18,0.88);
    }
    [data-theme="light"] .modal-backdrop {
        background: rgba(233,246,240,0.65);
    }
    [data-theme="light"] .visor-stage img { box-shadow: 0 30px 80px rgba(0,0,0,0.45); }

    /* ============ BOTÓN DE TEMA ============ */
    .theme-toggle {
        width: 38px; height: 38px; border-radius: 50%;
        background: var(--panel-bg); border: 1px solid var(--border);
        font-size: 17px; cursor: pointer; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        transition: transform .25s ease, background .25s ease;
    }
    .theme-toggle:hover { transform: scale(1.12) rotate(15deg); }

/* ============ MODAL CATEGORÍAS ============ */
.lista-categorias { display:flex; flex-direction:column; gap:8px; }
.fila-categoria {
    display:flex; justify-content:space-between; align-items:center; gap:10px;
    background:var(--input-bg); border:1px solid var(--border);
    border-radius:10px; padding:10px 14px; font-size:14px;
}
.btn:disabled { opacity:.4; cursor:default; transform:none !important; }

/* ============ HISTORIAL DE PUNTOS ============ */
.btn-historial {
    margin-top: 10px; background: none; border: none;
    color: var(--gold-soft); font-size: 12.5px; font-weight: 700;
    cursor: pointer; padding: 4px 0; font-family: inherit;
    text-decoration: underline;
}
.btn-historial:hover { color: var(--gold); }
.historial { margin-top: 8px; }
.tabla-historial { width: 100%; border-collapse: collapse; font-size: 12px; }
.tabla-historial th, .tabla-historial td {
    border: 1px solid var(--border); padding: 6px 8px; text-align: left;
}
.tabla-historial th { background: var(--input-bg); color: var(--muted); font-weight: 700; }
.tabla-historial .pos { color: #4be187; font-weight: 700; }
.tabla-historial .neg { color: #ff7b87; font-weight: 700; }

/* ============ PRODUCTO DADO DE BAJA (solo lo ve el admin) ============ */
.badge-baja {
    position:absolute; top:42px; right:12px; z-index:6;
    background: rgba(90,98,110,0.95); color:#fff; font-weight:800; font-size:11px;
    letter-spacing:2px; padding:5px 12px; border-radius:999px;
    border:1px solid var(--border); text-transform:uppercase;
}
.card.es-inactivo { opacity:.5; }
.card.es-inactivo:hover { opacity:.9; }
.card.es-inactivo .img-wrap img { filter:grayscale(.4); }