/* Fondo propio del área de cliente (perfil y soporte) — 2026-10-16.
   Solo actúa con html[data-pbg]: el resto del sitio conserva su fondo. Reemplaza body::after (foto) y body::before (velo). */
html[data-pbg] body::after { transform: none; will-change: auto; }

/* 1 · Aurora: brillos violeta/índigo suaves y grano fino */
html[data-pbg="1"] body { background: #09070f; }
html[data-pbg="1"] body::after {
  background-image:
    radial-gradient(60% 55% at 12% 0%, rgba(168, 85, 247, .30), transparent 70%),
    radial-gradient(50% 50% at 100% 100%, rgba(79, 70, 229, .24), transparent 70%),
    radial-gradient(35% 40% at 85% 10%, rgba(217, 70, 239, .12), transparent 70%),
    linear-gradient(180deg, #0c0a14, #08070d);
  background-size: cover;
}
html[data-pbg="1"] body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-color: transparent;
}

/* 2 · Rejilla: cuadrícula tenue que se desvanece + brillo violeta arriba */
html[data-pbg="2"] body { background: #0a0911; }
html[data-pbg="2"] body::after {
  background-image:
    radial-gradient(70% 45% at 50% -5%, rgba(168, 85, 247, .26), transparent 70%),
    linear-gradient(180deg, #0c0a14, #09080e);
  background-size: cover;
}
html[data-pbg="2"] body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  background-color: transparent;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
}

/* 3 · Difuminado: la foto del sitio muy desenfocada y teñida de violeta (imagen fija, sin animación) */
html[data-pbg="3"] body { background: #0a0811; }
html[data-pbg="3"] body::after { background-image: url("/quantum-polish-20261010-r1/background.webp"); filter: blur(26px) saturate(1.1); transform: scale(1.12); }
html[data-pbg="3"] body::before { background: linear-gradient(180deg, rgba(20, 10, 38, .78), rgba(8, 7, 12, .9)), radial-gradient(60% 50% at 10% 0%, rgba(168, 85, 247, .25), transparent 70%); }

/* ===== que el panel ocupe todo el ancho disponible ===== */
html[data-pv] .q-profile-relief .main-content,
html[data-pv] body.q-profile-relief:has(.sidebar:hover) .main-content { max-width: none; }
@media (min-width: 1500px) {
  html[data-pv] .q-profile-relief .content-grid { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (min-width: 1900px) {
  html[data-pv] .q-profile-relief .content-grid { grid-template-columns: minmax(0, 1fr) 440px; }
}

/* ===== púrpura intenso (Dario: «colores así de púrpura intenso») — 2026-10-16 =====
   4 Nebulosa · 5 Agujero negro · 6 Cielo con montaña. Imágenes propias (fondos-gen/gen.html), sin animación. */
html[data-pbg="4"] body, html[data-pbg="5"] body, html[data-pbg="6"] body { background: #05020c; }
html[data-pbg="4"] body::after { background-image: url("/quantum-account-bg-20261016-r1/nebulosa.webp"); }
html[data-pbg="5"] body::after { background-image: url("/quantum-account-bg-20261016-r1/vacio.webp"); }
html[data-pbg="6"] body::after { background-image: url("/quantum-account-bg-20261016-r1/cielo.webp"); background-position: center bottom; }
@media (max-aspect-ratio: 4/5) {
  html[data-pbg="4"] body::after { background-image: url("/quantum-account-bg-20261016-r1/nebulosa-v.webp"); }
  html[data-pbg="5"] body::after { background-image: url("/quantum-account-bg-20261016-r1/vacio-v.webp"); }
  html[data-pbg="6"] body::after { background-image: url("/quantum-account-bg-20261016-r1/cielo-v.webp"); }
}
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) body::after { background-size: cover; filter: none; transform: none; }
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) body::before { background: linear-gradient(180deg, rgba(5, 2, 12, .16), rgba(5, 2, 12, .4)); }

/* superficies con tinte violeta: el fondo se ve, el texto se sigue leyendo */
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) .q-profile-relief :is(.card, .method-card, .tutorial-card, .ticket-card) { background: rgba(13, 7, 28, .76) !important; border-color: rgba(176, 120, 255, .2) !important; }
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) .q-profile-relief .card-header { border-bottom-color: rgba(176, 120, 255, .14) !important; }
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) .q-profile-relief .sidebar,
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) .q-profile-relief .sidebar:hover { background: rgba(13, 7, 28, .8); border-color: rgba(176, 120, 255, .2); }
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) .pv-head { border-color: rgba(190, 130, 255, .34); background: radial-gradient(120% 160% at 0% 0%, rgba(176, 80, 255, .55), transparent 58%), radial-gradient(90% 130% at 100% 100%, rgba(110, 60, 255, .4), transparent 62%), rgba(18, 8, 40, .84); box-shadow: 0 30px 80px -46px rgba(150, 60, 255, .95); }
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) .pv-stats div { background: rgba(255, 255, 255, .1); }
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) .q-profile-relief .mobile-menu-btn { background: rgba(13, 7, 28, .82); }

/* soporte */
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) .qd-rail { background: rgba(13, 7, 28, .8); border-color: rgba(176, 120, 255, .2); }
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) .qo-panel { background-color: rgba(13, 7, 28, .76); border-color: rgba(176, 120, 255, .18); }
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) .qo-chat { background: rgba(11, 6, 24, .82); }
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) .qo-product-header { border-color: rgba(190, 130, 255, .3); background: radial-gradient(120% 160% at 0% 0%, rgba(176, 80, 255, .5), transparent 58%), rgba(18, 8, 40, .86); }
:root:is([data-pbg="4"], [data-pbg="5"], [data-pbg="6"]) .qs-toolbar { background-color: rgba(13, 7, 28, .76); border-color: rgba(176, 120, 255, .18); }

/* ===== color de las tarjetas (Dario: «cambiar el fondo ese gris por otros colores») — html[data-psf] =====
   1 Violeta · 2 Púrpura intenso · 3 Medianoche · 4 Obsidiana. Sin data-psf = gris actual. */
:root[data-psf="1"] { --psf-card: rgba(30, 16, 54, .76); --psf-card-c: rgba(30, 16, 54, .76); --psf-line: rgba(168, 85, 247, .2); --psf-side: rgba(24, 13, 44, .86); --psf-tile: rgba(168, 85, 247, .08); --psf-tile-line: rgba(168, 85, 247, .16); --psf-head: rgba(34, 16, 62, .9); }
:root[data-psf="2"] { --psf-card: linear-gradient(165deg, rgba(98, 34, 190, .55), rgba(38, 14, 78, .8) 42%, rgba(18, 9, 36, .9)); --psf-card-c: rgba(44, 18, 88, .82); --psf-line: rgba(196, 130, 255, .3); --psf-side: linear-gradient(180deg, rgba(70, 24, 140, .72), rgba(22, 10, 44, .92)); --psf-tile: rgba(200, 140, 255, .1); --psf-tile-line: rgba(200, 140, 255, .22); --psf-head: rgba(52, 18, 104, .92); }
:root[data-psf="3"] { --psf-card: rgba(15, 19, 50, .8); --psf-card-c: rgba(15, 19, 50, .8); --psf-line: rgba(110, 120, 255, .22); --psf-side: rgba(12, 15, 42, .88); --psf-tile: rgba(129, 140, 248, .08); --psf-tile-line: rgba(129, 140, 248, .18); --psf-head: rgba(18, 20, 58, .92); }
:root[data-psf="4"] { --psf-card: rgba(6, 5, 10, .88); --psf-card-c: rgba(6, 5, 10, .88); --psf-line: rgba(255, 255, 255, .09); --psf-side: rgba(5, 4, 9, .92); --psf-tile: rgba(255, 255, 255, .04); --psf-tile-line: rgba(255, 255, 255, .08); --psf-head: rgba(8, 6, 14, .94); }

/* perfil */
:root[data-psf] .q-profile-relief :is(.card, .method-card, .tutorial-card, .ticket-card) { background: var(--psf-card) !important; border-color: var(--psf-line) !important; }
:root[data-psf] .q-profile-relief .card-header { border-bottom-color: var(--psf-line) !important; }
:root[data-psf] .q-profile-relief .sidebar, :root[data-psf] .q-profile-relief .sidebar:hover { background: var(--psf-side); border-color: var(--psf-line); }
:root[data-psf] .q-profile-relief #accionesRapidas .config-item:not(:first-child) { background: var(--psf-tile); border-color: var(--psf-tile-line) !important; }
:root[data-psf] .pv-head { border-color: var(--psf-line); background: radial-gradient(120% 150% at 0% 0%, rgba(168, 85, 247, .36), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(99, 102, 241, .2), transparent 60%), var(--psf-head); }
:root[data-psf] .pvc-card:not(.pvc-wide) { background: var(--psf-tile); border-color: var(--psf-tile-line); }
:root[data-psf] .q-profile-relief .mobile-menu-btn { background: var(--psf-head); }

/* soporte */
:root[data-psf] .qd-rail { background: var(--psf-side); border-color: var(--psf-line); }
:root[data-psf] :is(.qo-panel, .qs-toolbar) { background-color: var(--psf-card-c); border-color: var(--psf-line); }
:root[data-psf] .qo-chat { background: var(--psf-card-c); }
:root[data-psf] .qo-product-header { border-color: var(--psf-line); background: radial-gradient(120% 160% at 0% 0%, rgba(168, 85, 247, .3), transparent 55%), var(--psf-head); }
