/* DI ROMA | Sistema visual de botones cristal biselado. 2026-11-26.
   Se conserva el tamaño, la visibilidad y la funcionalidad de cada control.
   No se aplican estilos a figuras SVG del mapa ni a etiquetas de estado. */
:is(button, input[type="button"], input[type="submit"], input[type="reset"], a.btn, a.boton, a.boton-secundario, a.pagos-btn, a.portal-btn, a.cotizador-btn, a.page, a.sort-link, a.diroma-action-link, .topnav a, .scenario-list a, .legal-links a, .client-access a, .venta-toggle, a[role="button"], div[role="button"], span[role="button"]):not(.diroma-voice-indicator):not(.diroma-voice-button) {
  --diroma-cristal: linear-gradient(180deg,#b1c3d8 0%,#7892af 12%,#5d7693 46%,#4a6685 82%,#7d9ab7 100%);
  background: var(--diroma-cristal) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.90) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 2px 3px rgba(255,255,255,.95), inset 0 -3px 5px rgba(19,43,70,.35), 0 3px 0 rgba(42,65,91,.18), 0 5px 9px rgba(30,55,82,.18) !important;
  text-shadow: 0 1px 2px rgba(10,28,48,.65) !important;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: filter .15s ease, box-shadow .15s ease;
}
/* Acciones principales y selección actual: mismo cristal en azul profundo. */
:is(button, input[type="button"], input[type="submit"], input[type="reset"], a.btn, a.boton, a.boton-secundario, a.pagos-btn, a.portal-btn, a.cotizador-btn, a.page, a.sort-link, a.diroma-action-link, .topnav a, .scenario-list a, .legal-links a, .client-access a, .venta-toggle, a[role="button"], div[role="button"], span[role="button"]):not(.diroma-voice-indicator):not(.diroma-voice-button):is(.primary,.confirm,.legal-accept,.confirmacion-cliente-si,[aria-pressed="true"],[aria-current="page"],.active),
form[action="logout.php"] button:not(.diroma-voice-indicator),
form[action$="/logout.php"] button:not(.diroma-voice-indicator) {
  --diroma-cristal: linear-gradient(180deg,#759fc6 0%,#315b86 13%,#173e67 47%,#0c294a 81%,#37658b 100%);
}
:is(button, input[type="button"], input[type="submit"], input[type="reset"], a.btn, a.boton, a.boton-secundario, a.pagos-btn, a.portal-btn, a.cotizador-btn, a.page, a.sort-link, a.diroma-action-link, .topnav a, .scenario-list a, .legal-links a, .client-access a, .venta-toggle, a[role="button"], div[role="button"], span[role="button"]):not(.diroma-voice-indicator):not(.diroma-voice-button):not(:disabled):not([aria-disabled="true"]):not(.disabled):hover {
  filter: brightness(1.09);
  box-shadow: inset 0 2px 3px #fff, inset 0 -3px 5px rgba(19,43,70,.35), 0 3px 0 rgba(42,65,91,.20), 0 7px 12px rgba(30,55,82,.23) !important;
}
:is(button, input[type="button"], input[type="submit"], input[type="reset"], a.btn, a.boton, a.boton-secundario, a.pagos-btn, a.portal-btn, a.cotizador-btn, a.page, a.sort-link, a.diroma-action-link, .topnav a, .scenario-list a, .legal-links a, .client-access a, .venta-toggle, a[role="button"], div[role="button"], span[role="button"]):not(.diroma-voice-indicator):not(.diroma-voice-button):not(:disabled):not([aria-disabled="true"]):not(.disabled):active {
  box-shadow: inset 0 3px 6px rgba(10,28,48,.45), inset 0 -1px 2px rgba(255,255,255,.45), 0 1px 2px rgba(30,55,82,.16) !important;
  filter: brightness(.94);
}
:is(button, input[type="button"], input[type="submit"], input[type="reset"], a.btn, a.boton, a.boton-secundario, a.pagos-btn, a.portal-btn, a.cotizador-btn, a.page, a.sort-link, a.diroma-action-link, .topnav a, .scenario-list a, .legal-links a, .client-access a, .venta-toggle, a[role="button"], div[role="button"], span[role="button"]):focus-visible { outline: 3px solid #c6963d !important; outline-offset: 3px; }
:is(button, input[type="button"], input[type="submit"], input[type="reset"], a.btn, a.boton, a.boton-secundario, a.pagos-btn, a.portal-btn, a.cotizador-btn, a.page, a.sort-link, a.diroma-action-link, .topnav a, .scenario-list a, .legal-links a, .client-access a, .venta-toggle, a[role="button"], div[role="button"], span[role="button"]):not(.diroma-voice-indicator):not(.diroma-voice-button):is(:disabled,[aria-disabled="true"],.disabled) { opacity:.48; filter:none; cursor:not-allowed; transform:none !important; }
/* Botones que antes eran enlaces de acción, sin afectar texto o enlaces de marca. */
a.diroma-action-link, .legal-links a, .client-access a { display:inline-block; padding:7px 12px; margin:2px 0; line-height:1.35; max-width:100%; box-sizing:border-box; white-space:normal; overflow-wrap:anywhere; }
/* Evitar que los grupos de botones se peguen; no modificar rejillas ni tablas. */
.nav-acciones, .acciones, .pagos-tools, .top-actions, .legal-actions, .cotizador-actions, .purchase-actions { gap:12px; flex-wrap:wrap; }
/* El control de archivos también es un botón nativo. */
input[type="file"]::file-selector-button {
  background:linear-gradient(180deg,#b1c3d8 0%,#7892af 12%,#5d7693 46%,#4a6685 82%,#7d9ab7 100%);
  color:#fff; border:1px solid #fff; border-radius:999px; padding:6px 10px; margin-inline-end:7px; font-weight:700; cursor:pointer;
  box-shadow:inset 0 2px 3px #fffd,inset 0 -2px 4px #18334c66,0 2px 4px #18334c33; text-shadow:0 1px 2px #132b46;
}
input[type="file"]:disabled::file-selector-button { opacity:.48; cursor:not-allowed; }
/* La luz de voz conserva sus colores de estado; sólo recibe el bisel. */
.diroma-voice-indicator { background-image:linear-gradient(180deg,#ffffff50,transparent 42%,#0003 85%,#ffffff33) !important; border-radius:999px !important; box-shadow:inset 0 2px 3px #fffc,inset 0 -2px 4px #0004,0 2px 6px #0003 !important; }
.diroma-voice-button { border-radius:999px !important; }
/* Los encabezados de pagos vencidos siguen rojos; sólo el control visual de expansión es cristal. */
.venta-head.venta-head-pago-vencido .venta-toggle { outline:1px solid #b91c1c; }
/* Controles de iconos y tabla: mantener su área original sin añadir padding. */
.ordenar-columna, .sort-link, .page, .diroma-float-hide, .diroma-float-toggle { white-space:nowrap; }
@media (max-width:700px) {
  :is(a.btn,a.boton,a.boton-secundario,a.pagos-btn,a.portal-btn,a.cotizador-btn,button.btn,button.boton,button.pagos-btn,button.portal-btn) { max-width:100%; box-sizing:border-box; white-space:normal; overflow-wrap:anywhere; }
}
@media (prefers-reduced-motion:reduce) { :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.btn, a.boton, a.boton-secundario, a.pagos-btn, a.portal-btn, a.cotizador-btn, a.page, a.sort-link, a.diroma-action-link, .topnav a, .scenario-list a, .legal-links a, .client-access a, .venta-toggle, a[role="button"], div[role="button"], span[role="button"]) { transition:none !important; } }
