/* ---------- Prisma: paneles de cristal flotantes ----------
   Fondo gris azulado liso, paneles de vidrio que flotan con sombra larga y un filo tornasolado (rosa, azul, verde, dorado),
   letra geométrica del sistema en títulos y cifras, anillo con los días hasta Hacienda. Claro y oscuro.
   Propuesta: docs/estilos/prisma.html (sin las manchas de color del fondo: están en la lista de cosas que Pau no quiere). */
[data-estilo="prisma"] {
  --fondo: #111821; --fondo-alto: #161f2a; --texto: #eef3f8; --suave: #a9b6c5; --linea: rgba(255, 255, 255, .1);
  --marca: #6ccdec; --mal: #f0808f; --mal-fondo: #3a1d24; --ok: #4cc9b0; --ok-fondo: #0e2d2a; --impuesto: #e5b861;
  --solido: #1c2532; --relleno: rgba(255, 255, 255, .08);
  --cristal: linear-gradient(160deg, rgba(52, 66, 86, .62), rgba(30, 41, 56, .6)); --placa: rgba(255, 255, 255, .06); --borde: rgba(255, 255, 255, .12);
  --brillo: inset 0 1px 0 rgba(255, 255, 255, .1), 0 3px 8px -2px rgba(0, 0, 0, .3), 0 26px 48px -18px rgba(0, 0, 0, .55);
  --marco: transparent; --oscura: rgba(62, 76, 96, .7); --oscura-texto: #eef3f8; --oscura-suave: #b4c0cf; --grafico: #2aa6cc;
  --degradado: linear-gradient(135deg, #7fd0e8, #b8c6f4 55%, #f3aebd); --sobre-degradado: #0f1720;
  --boton: #eef3f8; --boton-texto: #0f1720;
  --pendiente: #e5b861; --ok-texto: #5fdcc3; --borde-campo: #7d8ea3;
  --nav-fondo: rgba(34, 45, 60, .56); --nav-movil: rgba(28, 37, 50, .86);
  --tc-fondo: linear-gradient(160deg, rgba(52, 66, 86, .62), rgba(30, 41, 56, .6)); --tc-borde: rgba(255, 255, 255, .12); --tc-texto: #eef3f8; --tc-suave: #b4c0cf;
  --tc-trazo: #6ccdec; --tc-pista: rgba(255, 255, 255, .14); --tc-col: #2aa6cc; --tc-area: rgba(42, 166, 204, .18);
  --tc-chip: rgba(255, 255, 255, .1); --tc-chip-suave: rgba(255, 255, 255, .1); --tc-ir: #eef3f8; --tc-ir-texto: #0f1720;
  --iris: conic-gradient(from 200deg, #3f9fc0, #7385cf, #c86e86, #c7a55c, #4fb39a, #3f9fc0);
  --hacienda-color: #e5b861;
  --fondo-capa: linear-gradient(180deg, var(--fondo-alto), var(--fondo) 60%);
  --vidrio: blur(16px) saturate(140%); --vidrio-movil: blur(20px) saturate(150%);
  --r-grande: 28px; --r-panel: 26px; --r-tabla: 22px; --r-chico: 16px; --r-boton: 999px; --r-campo: 14px;
  --f-texto: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --f-titulo: "Avenir Next", Avenir, "Century Gothic", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --f-cifras: var(--f-titulo); --f-etiqueta: var(--f-texto); --f-tabla: var(--f-texto);
  --f-empresa: var(--f-titulo); --peso-empresa: 600;
  color-scheme: dark;
}
[data-estilo="prisma"][data-theme="light"] {
  --fondo: #e9eef3; --fondo-alto: #f4f6f9; --texto: #101923; --suave: #4a5866; --linea: rgba(16, 25, 35, .12);
  --marca: #086f8e; --mal: #ad2d43; --mal-fondo: #fbe3e7; --ok: #07695a; --ok-fondo: #d9f2ec; --impuesto: #8a5a00;
  --solido: #ffffff; --relleno: rgba(17, 30, 44, .07);
  --cristal: linear-gradient(160deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .66)); --placa: rgba(255, 255, 255, .7); --borde: rgba(255, 255, 255, .9);
  --brillo: inset 0 1px 0 rgba(255, 255, 255, .95), 0 3px 8px -2px rgba(20, 36, 52, .06), 0 16px 32px -14px rgba(20, 36, 52, .16), 0 40px 80px -36px rgba(20, 36, 52, .22);
  --marco: transparent; --oscura: #101923; --oscura-texto: #ffffff; --oscura-suave: rgba(255, 255, 255, .78); --grafico: #0b8db3;
  --degradado: linear-gradient(135deg, #7fd0e8, #b8c6f4 55%, #f3aebd); --sobre-degradado: #101923;
  --boton: #101923; --boton-texto: #ffffff;
  --pendiente: #8a5a00; --ok-texto: #0a6b5a; --borde-campo: #76869a;
  --nav-fondo: rgba(255, 255, 255, .62); --nav-movil: rgba(255, 255, 255, .88);
  --tc-fondo: linear-gradient(160deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .66)); --tc-borde: rgba(255, 255, 255, .9); --tc-texto: #101923; --tc-suave: #4a5866;
  --tc-trazo: #0b8db3; --tc-pista: rgba(16, 25, 35, .1); --tc-col: #0b8db3; --tc-area: rgba(11, 141, 179, .14);
  --tc-chip: rgba(16, 25, 35, .07); --tc-chip-suave: rgba(16, 25, 35, .07); --tc-ir: #101923; --tc-ir-texto: #ffffff;
  --iris: conic-gradient(from 200deg, #7fd0e8, #b8c6f4, #f3aebd, #f4d79a, #a3e2d0, #7fd0e8);
  --hacienda-color: #c08416;
  color-scheme: light;
}
html[data-estilo="prisma"] h1 { font-weight: 650; letter-spacing: -.03em; }
html[data-estilo="prisma"] header strong { text-transform: uppercase; letter-spacing: .08em; font-size: clamp(1rem, .9rem + .6vw, 1.3rem); }
html[data-estilo="prisma"] .cristal strong { font-weight: 650; letter-spacing: -.02em; }
html[data-estilo="prisma"] .saldo > strong { letter-spacing: -.035em; }
/* Filo tornasolado alrededor de los paneles (máscara: solo se ve el contorno). */
html[data-estilo="prisma"] .cristal, html[data-estilo="prisma"] .ficha:not(dialog), html[data-estilo="prisma"] .rejilla-ajustes { position: relative; border-color: transparent; }
html[data-estilo="prisma"] .cristal::after, html[data-estilo="prisma"] .ficha:not(dialog)::after, html[data-estilo="prisma"] .rejilla-ajustes::after {
  content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none; background: var(--iris); opacity: .55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
html[data-estilo="prisma"][data-theme="light"] .cristal::after, html[data-estilo="prisma"][data-theme="light"] .ficha:not(dialog)::after, html[data-estilo="prisma"][data-theme="light"] .rejilla-ajustes::after { opacity: .9; }
html[data-estilo="prisma"] nav { border-color: var(--borde); }
html[data-estilo="prisma"] nav a[aria-current] { color: var(--texto); }
html[data-estilo="prisma"] .indicador { background: var(--boton); box-shadow: 0 2px 8px rgba(16, 25, 35, .2); }
html[data-estilo="prisma"] nav a[aria-current] { color: var(--boton-texto); }
html[data-estilo="prisma"] .tarjeta-color { position: relative; }
@media (max-width: 760px) { html[data-estilo="prisma"] .indicador { background: var(--boton); } }
/* Anillo de días hasta Hacienda. */
html[data-estilo="prisma"] .proximo-pago .pago-importe { font-size: 1.6rem; letter-spacing: -.02em; }
/* En Ajustes las secciones ya van separadas por una línea dentro de un solo panel: sin marco propio. */
html[data-estilo="prisma"] .rejilla-ajustes > .ficha::after { display: none; }
@media (max-width: 760px) { html[data-estilo="prisma"] nav a { font-size: .66rem; } }
