/* zx-tema-violeta.css 1.11.0 · 17/18-nov-2026 (1.1.0: fondo nuevo; 1.2.0: barra de módulos plana; 1.3.0: panel de Estados y, con zx-tema-violeta.js, los paneles del visor; 1.4.0: cortes sesgados; 1.5.0: barra más baja, 30 px; 1.6.0: le gana a la malla de triángulos de sitio-vercel.js; 1.7.0: ventanas de los módulos; 1.8.0: login y admin; 1.9.0: Evaluar y Túnel; 1.10.0: «Open simulator» como el botón del login, y el tema pasa a los tres sitios; 1.11.0: paneles con esquinas rectas) · zirkelrozeta.com, zirkeldep.com y gitnew120 (en DonWeb no es el tema por defecto)
   Tercer tema, «Violeta»: una variante del oscuro con violeta profundo y barras con degradé
   lila. La página sigue en data-theme="dark" (así el visor de ShapeDiver, los módulos y todo
   lo que ya se adapta al oscuro sigue igual) y se le suma data-estilo="violeta". Acá sólo se
   recolorea encima. */

html[data-theme="dark"][data-estilo="violeta"] {
  --bg-body: #16111f;
  --text-main: #ece6ff;
  --text-muted: #b3a6d4;
  --text-heading: #f6f2ff;
  --card-bg: linear-gradient(140deg, rgba(48, 30, 82, 0.82), rgba(26, 17, 44, 0.86));
  --card-border: rgba(183, 140, 255, 0.38);
  --card-shadow: rgba(8, 0, 20, 0.5);
  --card-shadow-hover: rgba(170, 110, 255, 0.45);
  --nav-bg: rgba(28, 17, 48, 0.9);
  --nav-text: #e6dcff;
  --nav-text-hover: #d0b3ff;
  --dropdown-bg: #261a3d;
  --modal-bg: rgba(10, 4, 20, 0.9);
  --modal-content-bg: #1a1229;
  --zv-barra: linear-gradient(90deg, #1d1233 0%, #2a1650 45%, #4a2190 72%, #7b34d0 90%, #a74ae8 100%);
  --zv-acento: #a970ff;
  --zv-acento-2: #c9a6ff;
  --zv-borde: rgba(183, 140, 255, 0.4);
  --zv-boton: rgba(64, 38, 110, 0.72);
  --zv-boton-hover: rgba(98, 56, 170, 0.85);
}

/* ── Fondo (1.1.0) ─────────────────────────────────────────────────────────
   Las cinco capas fijas del sitio (blur, gradient, aurora, grid, spotlight), redibujadas:
   base violeta casi negra, tres manchas de luz que derivan despacio (degradé de malla),
   un halo cónico que gira muy lento, la cuadrícula fina que se desvanece hacia los bordes
   y un grano casi invisible. Con «reducir movimiento» queda quieto. */
html[data-estilo="violeta"] body { background: #0f0a1a; }
html[data-estilo="violeta"] .background-blur {
  inset: 0;
  background: radial-gradient(140% 100% at 50% 0%, #1c1233 0%, #120b22 45%, #0b0714 100%);
  filter: none;
}
html[data-estilo="violeta"] .background-gradient {
  inset: -20%;
  height: auto;
  background:
    radial-gradient(34% 40% at 22% 28%, rgba(139, 62, 255, 0.55), transparent 70%),
    radial-gradient(30% 36% at 78% 20%, rgba(214, 70, 239, 0.42), transparent 70%),
    radial-gradient(38% 44% at 55% 82%, rgba(79, 70, 229, 0.45), transparent 72%);
  filter: blur(60px) saturate(1.15);
  opacity: 0.75;
  animation: zv-malla 38s ease-in-out infinite alternate;
}
html[data-estilo="violeta"] .background-aurora {
  inset: -50%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(167, 74, 232, 0.16) 60deg, transparent 120deg,
    rgba(99, 102, 241, 0.14) 200deg, transparent 260deg, rgba(236, 72, 153, 0.12) 320deg, transparent 360deg);
  mix-blend-mode: screen;
  filter: blur(40px);
  opacity: 0.9;
  animation: zv-gira 90s linear infinite;
}
html[data-estilo="violeta"] .background-grid {
  inset: 0;
  background-image: linear-gradient(rgba(201, 166, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 166, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 75%);
  mix-blend-mode: normal;
  opacity: 1;
  animation: zv-cuadricula 24s linear infinite;
}
html[data-estilo="violeta"] .background-spotlight {
  inset: 0;
  background: radial-gradient(60% 45% at 50% -5%, rgba(196, 160, 255, 0.22), transparent 70%);
  filter: none;
  animation: none;
}
/* Grano: ruido fractal en SVG, muy tenue, encima de todo el fondo. */
html[data-estilo="violeta"] .background-spotlight::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  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='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes zv-malla {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(4%, -3%, 0) scale(1.06); }
  66%  { transform: translate3d(-3%, 4%, 0) scale(0.97); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.04); }
}
@keyframes zv-gira { to { transform: rotate(360deg); } }
@keyframes zv-cuadricula { to { background-position: 48px 48px, 48px 48px; } }
@media (prefers-reduced-motion: reduce) {
  html[data-estilo="violeta"] .background-gradient,
  html[data-estilo="violeta"] .background-aurora,
  html[data-estilo="violeta"] .background-grid { animation: none; }
}

/* Barra superior y cabecera de las ventanas: el degradé. */
html[data-estilo="violeta"] .navbar,
html[data-estilo="violeta"] .modal-header,
html[data-estilo="violeta"] #simulator-modal .modal-header {
  background: var(--zv-barra) !important;
  border-bottom-color: var(--zv-borde) !important;
}
html[data-estilo="violeta"] .navbar a:hover,
html[data-estilo="violeta"] .nav-links a:hover { color: #fff; }

/* Pie del visor y su barra de módulos. */
html[data-estilo="violeta"] #simulator-modal #modal-footer-info {
  background: linear-gradient(90deg, #1b1030, #24143f 60%, #2f1a55) !important;
  border-top: 1px solid var(--zv-borde) !important;
}
/* Barra de módulos (1.2.0): como los botones de ventana de la barra de Tor. Planos, sin
   cápsula ni borde ni brillo, pegados uno al otro y a toda la altura de la barra; al pasar
   el mouse sólo se aclara el fondo, y un poco más al apretar. El resto del pie (logo,
   texto, «?», barra ZMC, notas) conserva su separación. */
html[data-estilo="violeta"] #simulator-modal #modal-footer-info {
  gap: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 30px;
  align-items: stretch !important;
}
html[data-estilo="violeta"] #simulator-modal #modal-footer-info > :not(.zmc-inline-evaluar4):not(.zmc-inline-evaluar5) {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  align-self: center;
}
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar4,
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar5 {
  align-self: stretch;
  height: auto !important;
  min-height: 30px;
  margin: 0 !important;
  padding: 0 0.85rem !important;
  font-size: 0.66rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #e9defd !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: background-color 0.12s ease, color 0.12s ease;
}
/* Cortes sesgados (1.4.0), como las franjas detrás de los botones de ventana de Tor: cada
   botón tiene detrás un paralelogramo inclinado que se monta sobre el vecino; el color de
   cada uno (--zv-bg) lo reparte zx-tema-violeta.js entre los botones VISIBLES, de violeta
   oscuro a lila, alternando un poco el tono para que cada corte se lea. */
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar4,
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar5 {
  position: relative;
  isolation: isolate;
}
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar4::before,
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar5::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -7px;
  right: -7px;
  z-index: -1;
  background: var(--zv-bg, transparent);
  transform: skewX(-22deg);
  transition: filter 0.12s ease;
  box-shadow: -1px 0 0 rgba(0, 0, 0, 0.18);
}
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar4:hover,
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar5:hover { color: #fff !important; }
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar4:hover::before,
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar5:hover::before { filter: brightness(1.35) saturate(1.1); }
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar4:active::before,
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar5:active::before { filter: brightness(1.6); }
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar4:focus-visible,
html[data-estilo="violeta"] #modal-footer-info .zmc-inline-evaluar5:focus-visible {
  outline: 2px solid var(--zv-acento-2) !important;
  outline-offset: -2px;
}
/* Los LED de Sismo/Viento/Incendio, adentro del botón ahora que no hay borde. */
html[data-estilo="violeta"] #modal-footer-info .zx-led { top: 6px; right: 6px; }

/* Botones principales y tarjetas. */
html[data-estilo="violeta"] .btn-primary {
  background: linear-gradient(135deg, #7b34d0, #a74ae8) !important;
  box-shadow: 0 10px 28px rgba(150, 70, 230, 0.35);
}
html[data-estilo="violeta"] .btn-primary:hover { background: linear-gradient(135deg, #8a3fe0, #b85cf2) !important; }
html[data-estilo="violeta"] .simulator-preview { background: rgba(38, 24, 64, 0.92); }

/* Botones flotantes del visor (Resultados, Estados, Parámetros). */
html[data-estilo="violeta"] #simulator-modal .viewer-toggle {
  background: rgba(36, 20, 62, 0.86);
  border-color: var(--zv-borde);
  color: #efe6ff;
}
html[data-estilo="violeta"] #simulator-modal .viewer-toggle:hover { background: rgba(70, 38, 120, 0.92); }
html[data-estilo="violeta"] #simulator-modal .viewer-toggle.zxp-toggle.zxp-activo {
  background: var(--zv-acento);
  border-color: var(--zv-acento);
  color: #fff;
}

/* Panel de estados ZMC (1.3.0: entero en la paleta). */
html[data-estilo="violeta"] .simulator-state-panel {
  background: linear-gradient(180deg, #22143c 0%, #170e2a 55%, #120a21 100%) !important;
  color: #ece6ff !important;
  border-right: 1px solid rgba(183, 140, 255, 0.28) !important;
  box-shadow: 4px 0 24px rgba(8, 0, 20, 0.55) !important;
}
html[data-estilo="violeta"] .simulator-state-section { border-top-color: rgba(183, 140, 255, 0.22) !important; }
html[data-estilo="violeta"] .shapediver-state-list { background: rgba(20, 10, 36, 0.6) !important; }
html[data-estilo="violeta"] .simulator-state-empty { background: rgba(183, 140, 255, 0.25) !important; }
html[data-estilo="violeta"] .simulator-state-status { background: #8b45e6; }
html[data-estilo="violeta"] .simulator-state-panel button:not(.modal-close) {
  background: rgba(190, 150, 255, 0.08);
  border-color: rgba(183, 140, 255, 0.3);
  color: #ece6ff;
}
html[data-estilo="violeta"] .simulator-state-panel button:not(.modal-close):hover:not(:disabled) {
  background: rgba(190, 150, 255, 0.18);
}
html[data-estilo="violeta"] .simulator-state-panel input,
html[data-estilo="violeta"] .simulator-state-panel textarea {
  background: #1c1131;
  color: #f3ecff;
  border-color: rgba(183, 140, 255, 0.28);
}

/* Ventana «Comparar cálculos» y globos. */
html[data-estilo="violeta"] .zx-cmp { background: rgba(26, 16, 44, 0.97); border-color: var(--zv-borde); }
html[data-estilo="violeta"] .zx-cmp thead th,
html[data-estilo="violeta"] .zx-cmp th.rot,
html[data-estilo="violeta"] .zx-cmp td.rot { background: #26173f; }
html[data-estilo="violeta"] .zx-cmp thead th:hover { background: #352058; }
html[data-estilo="violeta"] .zx-cmp .sec td.rot { background: #2c1b49; }
html[data-estilo="violeta"] .zk-ayuda { background: #1c1230; border-color: #6a4aa8; }
html[data-estilo="violeta"] .zk-ayuda-titulo { color: var(--zv-acento-2); }

/* Barras de desplazamiento a tono. */
html[data-estilo="violeta"] { scrollbar-color: #5b3a96 #1a1229; }

/* El botón de tema muestra el que viene después. */
html[data-estilo="violeta"] .theme-toggle { filter: drop-shadow(0 0 6px rgba(190, 130, 255, 0.6)); }

/* 1.6.0 · En rozeta, sitio-vercel.js (la marca de Vercel) apaga las cinco capas del fondo y dibuja
   una malla de triángulos en body::before/::after, con reglas html.zx-vercel …!important. En
   Violeta, éstas son más específicas: vuelven las capas de arriba y se apaga la malla. En
   Claro y Oscuro rozeta sigue con su malla, como siempre. */
html.zx-vercel[data-estilo="violeta"] .background-blur,
html.zx-vercel[data-estilo="violeta"] .background-gradient,
html.zx-vercel[data-estilo="violeta"] .background-aurora,
html.zx-vercel[data-estilo="violeta"] .background-grid,
html.zx-vercel[data-estilo="violeta"] .background-spotlight { display: block !important; }
html.zx-vercel[data-estilo="violeta"] body { background: #0f0a1a !important; border-top: 0 !important; }
html.zx-vercel[data-estilo="violeta"] body::before,
html.zx-vercel[data-estilo="violeta"] body::after { content: none !important; display: none !important; }
html.zx-vercel[data-estilo="violeta"] .navbar {
  background: var(--zv-barra) !important;
  border-bottom-color: var(--zv-borde) !important;
}

/* ── 1.7.0 · Ventanas de los módulos en Violeta ──────────────────────────────────────────
   Viento/Sismo (.zl-modal), Rayos/Suelo/Incendio (.zx-modal), Clima, Presupuesto, Evaluar,
   Planta, Render, Exportación. 1) Las variables de acento cian pasan a lila. 2) La caja de
   cada ventana, a violeta. 3) Los botones dejan la píldora redondeada y pasan a franjas
   sesgadas, como la barra de módulos; las tarjetas de opción (país, norma, destino…) no
   cambian de forma. Los colores con significado (verde verifica, ámbar, rojo) no se tocan. */
html[data-estilo="violeta"] :is(.zl-modal, .zt-modal) {
  --zl-fondo: #120a21; --zl-panel: rgba(46, 26, 80, 0.55); --zl-borde: rgba(183, 140, 255, 0.26);
  --zl-texto: #ece6ff; --zl-suave: #c6b6ea; --zl-tenue: #9483bb; --zl-cian: #b98cff; --zl-azul: #9d7bff;
}
html[data-estilo="violeta"] :is(.zl-modal:not([data-tipo="sismo"]), .zt-modal) { --zl-acento: #b98cff; }
html[data-estilo="violeta"] .zx-modal {
  --zx-fondo: #120a21; --zx-panel: rgba(46, 26, 80, 0.55); --zx-borde: rgba(183, 140, 255, 0.26);
  --zx-texto: #ece6ff; --zx-suave: #c6b6ea; --zx-tenue: #9483bb; --zx-cian: #b98cff; --zx-acento: #b98cff;
}
html[data-estilo="violeta"] :is(.zmc-clima-modal, .zmc-presu-modal, .zmc-eval5-modal, .zmc-eval4-modal, .zmc-planta-modal, .zmc-render-modal, .zmc-expo-modal, .zmc-eval4-modal, .zt-modal) {
  --e4-cyan: #b98cff; --zxv-c: #b98cff;
}
/* La caja de cada ventana. */
html[data-estilo="violeta"] :is(.zl-shell, .zx-shell, .zmc-clima-shell, .zmc-presu-shell, .zmc-eval5-shell, .zmc-planta-shell, .zmc-render-panel, .zmc-expo-shell, .zmc-eval4-shell, .zt-caja) {
  background: linear-gradient(160deg, #24153f 0%, #170d2b 55%, #110920 100%) !important;
  border-color: rgba(183, 140, 255, 0.35) !important;
  box-shadow: 0 24px 70px rgba(8, 0, 20, 0.6), 0 0 0 1px rgba(183, 140, 255, 0.12) !important;
  color: #ece6ff;
}
html[data-estilo="violeta"] :is(.zl-modal, .zx-modal, .zmc-clima-modal, .zmc-presu-modal, .zmc-eval5-modal, .zmc-planta-modal, .zmc-render-modal, .zmc-expo-modal, .zmc-eval4-modal, .zt-modal) {
  background-color: rgba(12, 4, 24, 0.82) !important;
}
/* Botones: franjas sesgadas. */
html[data-estilo="violeta"] :is(.zl-shell, .zx-shell, .zmc-clima-shell, .zmc-presu-shell, .zmc-eval5-shell, .zmc-planta-shell, .zmc-render-panel, .zmc-expo-shell, .zmc-eval4-shell, .zt-caja)
  button:not(.modal-close):not([class*="opcion"]):not([class*="tarjeta"]):not([class*="card"]):not([class*="tile"]):not([class*="color"]):not([role="switch"]) {
  border-radius: 0 !important;
  border-color: transparent !important;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  padding-left: calc(0.7em + 6px) !important;
  padding-right: calc(0.7em + 6px) !important;
  background: rgba(150, 100, 230, 0.2) !important;
  color: #efe6ff !important;
  box-shadow: none !important;
  transition: background-color 0.12s ease, filter 0.12s ease;
}
html[data-estilo="violeta"] :is(.zl-shell, .zx-shell, .zmc-clima-shell, .zmc-presu-shell, .zmc-eval5-shell, .zmc-planta-shell, .zmc-render-panel, .zmc-expo-shell, .zmc-eval4-shell, .zt-caja)
  button:not(.modal-close):not([class*="opcion"]):not([class*="tarjeta"]):not([class*="card"]):not([class*="tile"]):not([class*="color"]):not([role="switch"]):hover:not(:disabled) {
  background: rgba(170, 120, 250, 0.38) !important;
  color: #fff !important;
}
/* El encendido (pestaña activa, dirección elegida, botón principal). */
html[data-estilo="violeta"] :is(.zl-shell, .zx-shell, .zmc-clima-shell, .zmc-presu-shell, .zmc-eval5-shell, .zmc-planta-shell, .zmc-render-panel, .zmc-expo-shell, .zmc-eval4-shell, .zt-caja)
  button:not(.modal-close):not([class*="opcion"]):not([class*="tarjeta"]):not([class*="card"]):not([class*="tile"]):is(.activo, .activa, .is-active, .is-on, .on, .sel, .seleccionado, .zxb-principal, .zxb-pdf, [aria-selected="true"], [aria-pressed="true"], [data-activo="1"]) {
  background: linear-gradient(135deg, #7b34d0, #a74ae8) !important;
  color: #fff !important;
}
/* Tarjetas de opción: misma forma, colores violeta. */
html[data-estilo="violeta"] :is(.zl-shell, .zx-shell) :is([class*="opcion"]) {
  background: rgba(150, 100, 230, 0.1) !important;
  border-color: rgba(183, 140, 255, 0.3) !important;
}
html[data-estilo="violeta"] :is(.zl-shell, .zx-shell) :is([class*="opcion"]):is(.activo, .activa, .is-active, [aria-pressed="true"], [aria-checked="true"]) {
  background: rgba(176, 108, 255, 0.24) !important;
  border-color: #b98cff !important;
  box-shadow: 0 0 0 1px #b98cff, 0 0 14px rgba(176, 108, 255, 0.35) !important;
}
/* Barra común de los módulos (zx-barra): el principal en violeta. */
html[data-estilo="violeta"] .zxb-btn { border-radius: 0 !important; }
/* Tarjetas, paneles y cajas de adentro de cada módulo: el azul marino translúcido pasa a violeta.
   Sólo el fondo; los bordes de color con significado (rosa «no llega», verde «cumple») quedan. Los
   indicadores de estado (círculos ✓ / ✗, LED, íconos) no se tocan. */
html[data-estilo="violeta"] :is(.zl-shell, .zx-shell, .zmc-clima-shell, .zmc-presu-shell, .zmc-eval5-shell, .zmc-planta-shell, .zmc-render-panel, .zmc-expo-shell, .zmc-eval4-shell, .zt-caja)
  :is([class*="tarjeta"], [class*="card"], [class*="panel"], [class*="caja"], [class*="kpi"], [class*="bloque"], [class*="seccion"], [class*="grupo"], [class*="resumen"])
  :not(button):not([class*="estado"]):not([class*="ico"]):not([class*="badge"]):not([class*="led"]):not([class*="dot"]):not([class*="marca"]):not([class*="chip"]) {
  background-color: rgba(150, 100, 230, 0.08) !important;
}
html[data-estilo="violeta"] :is(.zl-shell, .zx-shell, .zmc-clima-shell, .zmc-presu-shell, .zmc-eval5-shell, .zmc-planta-shell, .zmc-render-panel, .zmc-expo-shell, .zmc-eval4-shell, .zt-caja) .zxb-pie {
  background: rgba(20, 8, 40, 0.6) !important;
  border-top-color: rgba(183, 140, 255, 0.2) !important;
}
html[data-estilo="violeta"] :is(.zl-shell, .zx-shell, .zmc-clima-shell, .zmc-presu-shell, .zmc-eval5-shell, .zmc-planta-shell, .zmc-render-panel, .zmc-expo-shell, .zmc-eval4-shell, .zt-caja)
  :is(select, input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), textarea) {
  background: #1c1131 !important;
  color: #f3ecff !important;
  border-color: rgba(183, 140, 255, 0.3) !important;
}

/* ── 1.8.0 · Login y panel de administración (rozeta) ─────────────────────────────────────
   Llegan con zx-tema-violeta-paginas.js. El login usa las mismas capas de fondo de la portada y
   la tarjeta .auth-container; el admin, paneles .admin-panel y pestañas .admin-pestana. */
html[data-estilo="violeta"] .auth-container {
  background: linear-gradient(160deg, rgba(48, 28, 86, 0.92), rgba(24, 14, 44, 0.94)) !important;
  border-color: rgba(183, 140, 255, 0.38) !important;
  box-shadow: 0 40px 80px rgba(8, 0, 20, 0.6), 0 0 40px rgba(150, 70, 230, 0.18) !important;
}
html[data-estilo="violeta"] .auth-form input {
  background: rgba(20, 10, 36, 0.6) !important;
  border-color: rgba(183, 140, 255, 0.32) !important;
  color: #f3ecff !important;
}
html[data-estilo="violeta"] .auth-form input:focus {
  border-color: #b98cff !important;
  box-shadow: 0 0 0 4px rgba(176, 108, 255, 0.18) !important;
}
html[data-estilo="violeta"] :is(.auth-submit, .admin-button, .admin-tab, .admin-chip-btn, .cms-shortcut) {
  border-radius: 0 !important;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  box-shadow: none !important;
}
html[data-estilo="violeta"] .auth-submit:not([style*="background:#475467"]):not([style*="background: #475467"]),
html[data-estilo="violeta"] :is(.admin-button, .admin-tab) {
  background: linear-gradient(135deg, #7b34d0, #a74ae8) !important;
  color: #fff !important;
  border-color: transparent !important;
}
html[data-estilo="violeta"] :is(.admin-chip-btn, .cms-shortcut) {
  background: rgba(150, 100, 230, 0.18) !important;
  color: #efe6ff !important;
  border-color: transparent !important;
}
/* Admin: paneles, pestañas sesgadas, campos y tablas. */
html[data-estilo="violeta"] .admin-panel {
  background: linear-gradient(160deg, rgba(42, 25, 74, 0.86), rgba(24, 14, 44, 0.9)) !important;
  border: 1px solid rgba(183, 140, 255, 0.24) !important;
  color: #ece6ff;
}
html[data-estilo="violeta"] .admin-pestana {
  border-radius: 0 !important;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  padding-left: calc(0.8em + 6px) !important;
  padding-right: calc(0.8em + 6px) !important;
  background: rgba(150, 100, 230, 0.16) !important;
  color: #e9defd !important;
  border-color: transparent !important;
}
html[data-estilo="violeta"] .admin-pestana:hover { background: rgba(170, 120, 250, 0.32) !important; }
html[data-estilo="violeta"] .admin-pestana:is(.activa, .is-active, .active, [aria-selected="true"]) {
  background: linear-gradient(135deg, #7b34d0, #a74ae8) !important;
  color: #fff !important;
}
html[data-estilo="violeta"] :is(.admin-shell, .admin-layout) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea, .admin-textarea, .admin-search) {
  background: #1c1131 !important;
  color: #f3ecff !important;
  border-color: rgba(183, 140, 255, 0.3) !important;
}
html[data-estilo="violeta"] :is(.admin-row, .admin-table tr:nth-child(even)) { background: rgba(150, 100, 230, 0.07) !important; }
html[data-estilo="violeta"] .admin-table :is(th, td) { border-color: rgba(183, 140, 255, 0.16) !important; }
html[data-estilo="violeta"] .admin-shell h1,
html[data-estilo="violeta"] .admin-panel h2 { color: #f6f2ff; }
/* Páginas sin las capas de fondo de la portada (admin): degradé suave en el body. */
html[data-estilo="violeta"] body:not(:has(.background-blur)) {
  background:
    radial-gradient(1100px 520px at 90% -10%, rgba(150, 70, 230, 0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(90, 40, 170, 0.2), transparent 60%),
    #0f0a1a !important;
  background-attachment: fixed !important;
}

/* 1.9.0 · Evaluar (.zmc-eval4-*: el 5 reusa las clases del 4) y Túnel (#zt-modal, variables --zl-*). */
html[data-estilo="violeta"] .zmc-eval4-modal { --e4-cyan: #b98cff; }
html[data-estilo="violeta"] :is(.zmc-eval4-shell, .zt-caja) .zxb-pie { background: rgba(20, 8, 40, 0.6) !important; }

/* 1.10.0 · 18-nov-2026 · Tarjetas de simuladores de la portada: «Open simulator» con el diseño del
   botón del login (corte en diagonal y degradé violeta, sin cápsula) y «Copiar link» / «Ver más»
   como los chips del admin. Sólo en Violeta: en Oscuro y Claro siguen como estaban. */
html[data-estilo="violeta"] .simulator-link {
  border-radius: 0 !important;
  clip-path: polygon(11px 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
  padding: 0.75rem 1.9rem !important;
  background: linear-gradient(135deg, #7b34d0, #a74ae8) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  letter-spacing: 0.02em;
  transition: filter 0.18s ease, transform 0.18s ease !important;
}
html[data-estilo="violeta"] .simulator-link:hover {
  filter: brightness(1.15) saturate(1.1);
  transform: translateY(-1px);
  box-shadow: none !important;
}
html[data-estilo="violeta"] .simulator-link:focus-visible { outline: 2px solid #e2ccff; outline-offset: 3px; }
html[data-estilo="violeta"] .simulator-link[aria-disabled="true"] {
  background: rgba(150, 100, 230, 0.22) !important;
  color: rgba(239, 230, 255, 0.7) !important;
  filter: none;
  transform: none;
}
html[data-estilo="violeta"] :is(.simulator-copy-link, .simulator-desc-toggle) {
  border-radius: 0 !important;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  padding-left: calc(0.9em + 6px) !important;
  padding-right: calc(0.9em + 6px) !important;
  background: rgba(150, 100, 230, 0.18) !important;
  color: #efe6ff !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html[data-estilo="violeta"] :is(.simulator-copy-link, .simulator-desc-toggle):hover { background: rgba(170, 120, 250, 0.34) !important; }

/* 1.11.0 · 18-nov-2026 · Esquinas rectas. Con los botones sesgados, los paneles redondeados quedaban de otro
   lenguaje: en Violeta todo lo que es caja (tarjetas, ventanas de los módulos, el visor, Estados, noticias, login,
   admin) pasa a esquinas casi rectas (3 px, para que el borde no se vea serruchado). Lo que es redondo por
   naturaleza (LEDs, puntos, avatares, interruptores, el botón de tema) no se toca. */
html[data-estilo="violeta"] :is(
  .simulator-card, .simulator-preview, .simulator-preview-link, .simulator-preview img, .simulator-bloqueado,
  .news-container, .news-card, .news-item, .noticias, .simulator-more-btn,
  .modal-content, #simulator-modal .modal-content, .modal-body, #modal-iframe, .simulator-state-panel,
  .zl-modal, .zt-modal, .zl-shell, .zx-shell, .zt-caja, [class*="zmc-"][class*="-shell"], [class*="zmc-"][class*="-modal"] > div,
  .zx-resumen .zx-r, .zx-resumen .zx-hist, .zx-resumen .zx-hlista,
  .auth-container, .admin-panel, .admin-card, .admin-list, .admin-table, .cms-card,
  .zl-card, .zx-card, .zl-tarjeta, .zx-tarjeta, .zl-panel, .zx-panel, .zl-caja, .zx-caja,
  .modal-container, .nav-dropdown, .insight-card, .tool-banner, .tool-image, .zmc-cosmos-tip, .extra-section > div
) { border-radius: 3px !important; }
html[data-estilo="violeta"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { border-radius: 2px !important; }
/* El cartel «Nueva herramienta» (Rasterizador) seguía azul marino y con botón cápsula. */
html[data-estilo="violeta"] .tool-banner {
  background: linear-gradient(140deg, rgba(48, 30, 82, 0.9), rgba(22, 12, 42, 0.92)) !important;
  border-color: rgba(183, 140, 255, 0.24) !important;
}
html[data-estilo="violeta"] .tool-badge {
  border-radius: 0 !important;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  padding-left: calc(0.75em + 5px) !important; padding-right: calc(0.75em + 5px) !important;
  background: rgba(176, 108, 255, 0.22) !important;
  color: #e2ccff !important;
}
html[data-estilo="violeta"] :is(.btn-primary, .simulator-more-btn) {
  border-radius: 0 !important;
  clip-path: polygon(11px 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
  padding-left: 1.9rem !important; padding-right: 1.9rem !important;
  background: linear-gradient(135deg, #7b34d0, #a74ae8) !important;
  color: #fff !important; border: 0 !important; box-shadow: none !important;
}
html[data-estilo="violeta"] :is(.btn-primary, .simulator-more-btn):hover { filter: brightness(1.15) saturate(1.1); }
/* «Declaración de uso y autoría»: caja clara con fondo puesto en línea; en Violeta el texto lila no se leía. */
html[data-estilo="violeta"] .extra-section > div[style*="248,250,252"] {
  background: linear-gradient(140deg, rgba(48, 30, 82, 0.82), rgba(26, 15, 48, 0.88)) !important;
  border-color: rgba(183, 140, 255, 0.24) !important;
}
html[data-estilo="violeta"] .extra-section > div[style*="248,250,252"] h4 { color: #cdb6ff !important; }
html[data-estilo="violeta"] .extra-section > div[style*="248,250,252"] :is(p, strong) { color: #ddd2f5 !important; }
html[data-estilo="violeta"] .tool-image { background: rgba(190, 150, 255, 0.05) !important; border-color: rgba(183, 140, 255, 0.18) !important; }
