/* Aviso de cookies de la tienda (6/11/2026; solo informa, una vez) — receta Nyxi de «Mis Nyxi Coins»:
   azul noche #080d1a, resplandor azul → turquesa, toque dorado, grano y botón de «Comprar ahora».
   Marco de luz que gira despacio, galleta dorada con el sello de Nyxivo, etiquetas de para qué se usan.
   Sin morado ni rosado. Celular: hoja sobre la barra de abajo (--ck-bajo lo mide el JS).
   Computadora: tarjeta flotante abajo a la izquierda (a la derecha está el chat de Alaia). */

@property --ck-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.nyx-ck {
    --ck-bajo: 0px;
    position: fixed;
    z-index: 10045;               /* sobre el chat y las barras; bajo los modales (10050) y SweetAlert */
    left: 24px;
    bottom: calc(24px + var(--ck-bajo));
    width: min(460px, calc(100vw - 48px));
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #e2e8f0;
    -webkit-font-smoothing: antialiased;
    filter: drop-shadow(0 26px 50px rgba(2, 6, 23, .7)) drop-shadow(0 0 32px rgba(37, 99, 235, .22));
    animation: nyxCkEntra .5s cubic-bezier(.16, 1, .3, 1) both;
}
.nyx-ck[hidden] { display: none !important; }
.nyx-ck.is-saliendo { animation: nyxCkSale .22s ease-in both; }
@keyframes nyxCkEntra { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes nyxCkSale  { to { opacity: 0; transform: translateY(16px) scale(.97); } }

/* Marco de luz: azul → turquesa → dorado girando despacio */
.nyx-ck__marco {
    position: relative;
    padding: 1.5px;
    border-radius: 24px;
    background: conic-gradient(from var(--ck-ang),
        rgba(59, 130, 246, .25) 0deg, #3b82f6 60deg, #22d3ee 120deg, rgba(34, 211, 238, .2) 170deg,
        rgba(148, 163, 184, .18) 220deg, #f5c542 290deg, rgba(59, 130, 246, .25) 360deg);
    animation: nyxCkGira 9s linear infinite;
}
@keyframes nyxCkGira { to { --ck-ang: 360deg; } }

.nyx-ck__caja {
    position: relative;
    overflow: hidden;
    max-height: calc(100dvh - var(--ck-bajo) - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 22px 18px;
    border-radius: 22.5px;
    background:
        radial-gradient(110% 80% at 0% 0%, rgba(59, 130, 246, .36), transparent 55%),
        radial-gradient(85% 75% at 100% 100%, rgba(14, 152, 153, .3), transparent 60%),
        radial-gradient(55% 45% at 92% 6%, rgba(245, 197, 66, .14), transparent 70%),
        linear-gradient(160deg, #101c38 0%, #0b1222 55%, #07121b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}
/* Grano de película */
.nyx-ck__caja::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: .09;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
.nyx-ck__caja > * { position: relative; z-index: 1; }

/* Destello que cruza la tarjeta una vez al aparecer */
.nyx-ck__brillo {
    position: absolute !important; z-index: 2 !important;
    top: 0; bottom: 0; left: -60%; width: 45%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .1) 45%, rgba(186, 230, 253, .16) 50%, transparent 60%);
    transform: skewX(-12deg);
    animation: nyxCkBrillo 1.4s .45s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes nyxCkBrillo { from { left: -60%; } to { left: 130%; } }

.nyx-ck__asa { display: none; }

/* Cabecera: galleta dorada con el sello de Nyxivo + HUD + título */
.nyx-ck__cabeza { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding-right: 44px; }
.nyx-ck__galleta {
    position: relative;
    flex: 0 0 auto;
    width: 60px; height: 60px;
    display: grid; place-items: center;
    border-radius: 18px;
    background:
        radial-gradient(70% 70% at 50% 40%, rgba(245, 197, 66, .3), transparent 70%),
        linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03));
    border: 1px solid rgba(253, 230, 138, .3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 24px -10px rgba(245, 197, 66, .55);
}
.nyx-ck__galleta-svg { filter: drop-shadow(0 4px 6px rgba(2, 6, 23, .45)); animation: nyxCkFlota 5s ease-in-out 1s infinite; }
@keyframes nyxCkFlota { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-6deg); } }
.nyx-ck__sello {
    position: absolute; right: -6px; bottom: -6px;
    width: 26px; height: 26px; padding: 2px;
    border-radius: 9px;
    background: linear-gradient(160deg, #13234a, #0b1222);
    border: 1px solid rgba(125, 211, 252, .45);
    box-shadow: 0 4px 10px rgba(2, 6, 23, .6);
    object-fit: contain;
}
.nyx-ck__titulos { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nyx-ck__hud {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
    color: #7dd3fc;
}
.nyx-ck__titulo {
    margin: 0;
    font-family: "Space Grotesk", Inter, system-ui, sans-serif;
    font-size: 1.45rem; line-height: 1.1; font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
    background: linear-gradient(92deg, #ffffff 0%, #e0f2fe 55%, #fde68a 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nyx-ck__texto { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: #cbd5e1; }
.nyx-ck__texto strong { color: #fff; font-weight: 600; }

/* Etiquetas de para qué se usan */
.nyx-ck__chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nyx-ck__chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 11px 6px 9px;
    border-radius: 999px;
    font-size: 12.5px; font-weight: 600; line-height: 1.2;
    background: rgba(8, 13, 26, .5);
    border: 1px solid var(--chip-borde);
    color: var(--chip-txt);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.nyx-ck__chip svg { flex: 0 0 auto; }
.nyx-ck__chip--azul  { --chip-txt: #bfdbfe; --chip-borde: rgba(96, 165, 250, .45); }
.nyx-ck__chip--verde { --chip-txt: #a7f3d0; --chip-borde: rgba(52, 211, 153, .42); }
.nyx-ck__chip--oro   { --chip-txt: #fde68a; --chip-borde: rgba(245, 197, 66, .45); }

/* Pie: política a la izquierda, «Entendido» a la derecha */
.nyx-ck__acciones {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, .16);
}
.nyx-ck__btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 158px; min-height: 48px;
    padding: 10px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    font: 700 15px/1.2 Inter, system-ui, sans-serif;
    color: #fff;
    background: linear-gradient(180deg, #2b6cee 0%, #2563eb 55%, #1d4ed8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -2px 0 rgba(8, 13, 26, .25), 0 12px 26px -10px rgba(37, 99, 235, .95);
    text-shadow: 0 1px 0 rgba(8, 13, 26, .25);
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .15s ease, box-shadow .2s ease;
}
.nyx-ck__btn::after {   /* reflejo que pasa al apuntar */
    content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 50%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-15deg);
    transition: left .55s ease;
    pointer-events: none;
}
.nyx-ck__btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(8, 13, 26, .25), 0 14px 30px -8px rgba(59, 130, 246, 1); }
.nyx-ck__btn:hover::after { left: 130%; }
.nyx-ck__btn:active { transform: scale(.97); }

.nyx-ck__enlace {
    display: inline-flex; align-items: center;
    min-height: 44px; padding: 0 4px;
    font: 600 14px/1.2 Inter, system-ui, sans-serif;
    color: #93c5fd;
    text-decoration: underline; text-decoration-color: rgba(147, 197, 253, .45); text-underline-offset: 4px;
    border-radius: 8px;
}
.nyx-ck__enlace:hover { color: #bfdbfe; text-decoration-color: currentColor; }

/* Cerrar */
.nyx-ck__cerrar {
    position: absolute !important; top: 12px; right: 12px; z-index: 3 !important;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 13px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(255, 255, 255, .05);
    color: #e2e8f0; cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}
.nyx-ck__cerrar:hover { background: rgba(255, 255, 255, .11); transform: rotate(90deg); }

.nyx-ck__btn:focus-visible,
.nyx-ck__enlace:focus-visible,
.nyx-ck__cerrar:focus-visible { outline: 3px solid #7dd3fc; outline-offset: 2px; }

/* Celular: hoja a todo el ancho sobre la barra de abajo */
@media (max-width: 767.98px) {
    .nyx-ck {
        left: 10px; right: 10px; width: auto;
        bottom: calc(10px + var(--ck-bajo) + env(safe-area-inset-bottom, 0px));
    }
    .nyx-ck__marco { border-radius: 22px; }
    .nyx-ck__caja { padding: 22px 16px 14px; border-radius: 20.5px; max-height: calc(100dvh - var(--ck-bajo) - 24px); }
    .nyx-ck__asa {
        display: block; position: absolute !important;
        top: 8px; left: 50%; transform: translateX(-50%);
        width: 38px; height: 4px; border-radius: 4px;
        background: rgba(203, 213, 225, .35);
    }
    .nyx-ck__cabeza { gap: 12px; }
    .nyx-ck__galleta { width: 54px; height: 54px; border-radius: 16px; }
    .nyx-ck__galleta-svg { width: 40px; height: 40px; }
    .nyx-ck__titulo { font-size: 1.3rem; }
    .nyx-ck__texto { font-size: 14px; margin-bottom: 12px; }
    .nyx-ck__chips { margin-bottom: 14px; gap: 6px; }
    .nyx-ck__chip { font-size: 12px; padding: 5px 9px 5px 8px; gap: 5px; }
    .nyx-ck__acciones { padding-top: 12px; }
    .nyx-ck__btn { flex: 1 1 150px; }
    /* El aviso tapa el botón del chat mientras está a la vista: se aparta un momento */
    body.nyx-ck-abierto #nyx-chat-bubble,
    body.nyx-ck-abierto .nyx-chat-bubble { opacity: 0 !important; pointer-events: none !important; }
}
@media (max-width: 359.98px) {
    .nyx-ck__acciones { flex-direction: column-reverse; align-items: stretch; }
    .nyx-ck__enlace { justify-content: center; }
    .nyx-ck__btn { flex: 0 0 auto; width: 100%; }   /* en columna, la base de 150 px se volvía alto */
}

@media (prefers-reduced-motion: reduce) {
    .nyx-ck, .nyx-ck.is-saliendo, .nyx-ck__marco, .nyx-ck__brillo, .nyx-ck__galleta-svg { animation: none !important; }
    .nyx-ck__brillo { display: none !important; }
    .nyx-ck__btn, .nyx-ck__btn::after, .nyx-ck__cerrar { transition: none !important; }
}
