:root {
  --bg: #f2f4f7;

  --panel: #ffffff;

  --panel-2: #f7f6f3;

  --text: #0b0f14;

  --muted: #6b7280;

  --border: #e5e7eb;

  --danger: #dc2626;

  --ok: #16a34a;

  --warn: #d97706;

  --r: 18px;

  --shadow: 0 16px 40px rgba(11, 15, 20, 0.1);

  --shadow2: 0 10px 22px rgba(11, 15, 20, 0.08);

  --ring: 0 0 0 4px rgba(11, 15, 20, 0.16);

  --corp-grad: linear-gradient(95deg, #4b5563, #111827, #0b0f14);

  --corp-border: rgba(11, 15, 20, 0.65);

  --corp-shadow: 0 14px 30px rgba(11, 15, 20, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  font:
    15px/1.45 "Urbanist",
    system-ui,
    sans-serif;

  font-weight: 500;
}

body {
  margin: 0;

  color: var(--text);

  background: var(--bg);
}

.hidden {
  display: none !important;
}

.wrap {
  max-width: 1020px;

  margin: 28px auto;

  padding: 0 16px 40px;
}

.muted {
  color: var(--muted);
}

.banner {
  background: linear-gradient(90deg, #0b0f14, #1e293b, #0b0f14);

  color: #fff;

  border-radius: 18px;

  padding: 20px 24px;

  margin-bottom: 16px;

  box-shadow: 0 10px 26px rgba(11, 15, 20, 0.18);
}

.bannerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brandBox {
  display: flex;

  align-items: center;

  gap: 14px;

  min-width: 0;
}

.bannerLogo {
  height: 30px;

  width: auto;

  filter: none;
  display: block;
  border-right: 1px solid #eee;
  padding-right: 10px;
}

.bannerText {
  display: grid;

  gap: 2px;

  min-width: 0;
}

.bannerTitle {
  margin: 0;

  font-size: 18px;

  font-weight: 850;

  letter-spacing: 0.25px;
}

.bannerTagline {
  font-size: 13.5px;

  color: rgba(255, 255, 255, 0.85);
}

.bannerMeta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.92);
  align-self: center;
  /*  centrado vertical */
  margin-top: 0;
  /*  sin corrimiento */
}

.mItem {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  white-space: nowrap;

  font-size: 13px;
}

.mItem i {
  font-size: 16px;

  opacity: 0.95;
}

.mItem b {
  font-weight: 850;

  letter-spacing: 0.2px;
}

.mMuted {
  color: rgba(255, 255, 255, 0.78);

  font-weight: 650;
}

.mSep {
  color: rgba(255, 255, 255, 0.25);

  user-select: none;
}

.dot {
  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: rgba(34, 197, 94, 0.95);

  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);

  margin-top: 0;
}

@media (max-width: 760px) {
  .bannerInner {
    flex-direction: column;

    align-items: flex-start;
  }

  .bannerMeta {
    justify-content: flex-start;

    align-self: auto;

    margin-top: 0;
  }

  .mSep {
    display: none;
  }
}

.hero {
  margin: 0 0 14px;

  padding: 20px 24px;

  border-radius: 18px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.55)
  );

  box-shadow: 0 16px 34px rgba(11, 15, 20, 0.08);
}

.welcome {
  padding: 0;

  margin: 0;
}

.welcome::before {
  content: none !important;
}

.welcomeKicker {
  margin: 0 0 8px;

  font-weight: 950;

  font-size: 14.4px;

  letter-spacing: 0.22px;

  color: var(--text);
}

.welcomeLead {
  margin: 0;

  font-size: 14.4px;

  line-height: 1.5;

  color: var(--text);
}

.card {
  background: var(--panel);

  border: 1px solid var(--border);

  border-radius: var(--r);

  box-shadow: var(--shadow);

  overflow: hidden;
}

.topBar {
  padding: 12px 14px;

  border-bottom: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.78);

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  flex-wrap: wrap;
}

.session {
  display: flex;

  align-items: center;

  gap: 12px;

  min-width: 0;

  flex: 1 1 520px;
}

.sessionTxt {
  min-width: 0;

  display: grid;

  gap: 2px;
}

.line1 {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  align-items: baseline;
}

.name {
  font-weight: 950;

  max-width: 520px;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.line2 {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  align-items: center;

  min-width: 0;
}

.email {
  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  max-width: 520px;
}

.actions {
  display: flex;

  gap: 8px;

  align-items: center;

  white-space: nowrap;

  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .actions {
    width: 100%;

    justify-content: flex-start;
  }

  .name {
    max-width: 100%;
  }

  .email {
    max-width: 100%;
  }
}

.panel {
  background: var(--panel);

  border-radius: 16px;

  padding: 20px 24px;

  box-shadow: 0 10px 18px rgba(11, 15, 20, 0.06);
}

.panel--primary {
  border-color: rgba(11, 15, 20, 0.18);

  box-shadow: 0 16px 30px rgba(11, 15, 20, 0.1);
}

.panelHead {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 12px;

  margin-bottom: 10px;
}

.panelTitle {
  margin: 0;

  font-weight: 950;

  font-size: 18px;

  letter-spacing: 0.2px;
}

.panelSub {
  margin: 2px 0 0;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.35;
}

label {
  display: grid;

  gap: 6px;

  font-size: 14px;
}

.fieldLabel {
  display: inline-flex;

  align-items: baseline;

  gap: 6px;

  font-weight: 750;

  color: var(--text);
}

.reqStar {
  color: var(--danger);

  font-weight: 900;

  line-height: 1;
}

.hint {
  color: var(--muted);

  font-size: 12.8px;

  line-height: 1.35;
  margin-top: 2px;
}

.error {
  color: var(--danger);

  font-size: 12.8px;

  margin-top: 2px;
}

input,
select,
textarea {
  width: 100%;

  border: 1px solid var(--border);

  border-radius: 14px;

  padding: 11px 12px;

  font: inherit;

  outline: none;

  background: #fff;

  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(11, 15, 20, 0.55);

  box-shadow: var(--ring);
}

textarea {
  min-height: 120px;

  resize: vertical;

  line-height: 1.35;
}

.row2 {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;
}

@media (max-width: 640px) {
  .row2 {
    grid-template-columns: 1fr;
  }
}

.btnRow {
  display: flex;

  gap: 10px;

  justify-content: flex-end;

  align-items: center;

  flex-wrap: wrap;

  margin-top: 8px;
}

.bigInput {
  font-size: 16px;

  padding: 13px 14px;
}

.rutBlock {
  display: grid;

  gap: 6px;
}

.rutControls {
  display: grid;

  grid-template-columns: minmax(0, 1fr) minmax(140px, 22%);

  gap: 10px;

  align-items: stretch;
}

.rutControls input,
.rutControls button {
  height: 48px;
}

@media (max-width: 560px) {
  .rutControls {
    grid-template-columns: 1fr;
  }

  .rutControls button {
    width: 100%;
  }
}

button {
  border: 1px solid var(--border);

  background: #fff;

  border-radius: 14px;

  padding: 11px 12px;

  font: inherit;

  cursor: pointer;

  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.06s,
    opacity 0.15s,
    box-shadow 0.15s,
    filter 0.15s;

  box-shadow: 0 10px 18px rgba(11, 15, 20, 0.06);
}

button:hover {
  background: #f9fafb;

  border-color: #d1d5db;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: none;

  box-shadow: var(--ring);
}

button[disabled] {
  opacity: 0.6;

  cursor: not-allowed;

  box-shadow: none;
}

button.primary {
  background: var(--corp-grad) !important;

  border-color: var(--corp-border) !important;

  color: #fff !important;

  box-shadow: var(--corp-shadow) !important;
}

button.primary:hover {
  filter: brightness(1.02);
}

.link {
  display: inline-flex;

  align-items: center;

  border: 0 !important;

  background: rgba(11, 15, 20, 0.07) !important;

  color: var(--text) !important;

  padding: 9px 12px;

  border-radius: 999px;

  box-shadow: 0 6px 14px rgba(11, 15, 20, 0.06);
}

.link:hover {
  background: rgba(11, 15, 20, 0.1) !important;
}

.link.danger {
  background: #111827 !important;

  color: #fff !important;

  box-shadow: 0 10px 18px rgba(11, 15, 20, 0.14);
}

.link.danger:hover {
  filter: brightness(1.05);
}

#contentArea {
  margin-top: 2px;
}

.menuGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 980px) {
  .menuGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menuGrid {
    grid-template-columns: 1fr;
  }
}

.menuCard {
  width: 100%;

  padding: 10px 15px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.88);

  border: 1px solid rgba(11, 15, 20, 0.1);

  box-shadow: 0 10px 18px rgba(11, 15, 20, 0.06);

  display: flex;

  align-items: center;

  gap: 12px;

  cursor: pointer;

  user-select: none;

  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.08s,
    filter 0.15s;
}

.menuCard:hover {
  background: rgba(11, 15, 20, 0.03);

  border-color: rgba(11, 15, 20, 0.18);

  box-shadow: 0 14px 24px rgba(11, 15, 20, 0.08);

  transform: translateY(-1px);
}

.menuCard.is-active {
  background: var(--corp-grad) !important;

  border-color: rgba(255, 255, 255, 0.14) !important;

  box-shadow: 0 18px 34px rgba(11, 15, 20, 0.22) !important;
}

.menuCard.is-active:hover {
  transform: none;
}

.iconBox {
  width: 40px;

  height: 40px;

  border-radius: 14px;

  display: grid;

  place-items: center;

  border: 1px solid rgba(11, 15, 20, 0.1);

  background: rgba(11, 15, 20, 0.03);

  font-size: 20px;

  flex: 0 0 auto;
}

.menuCard.is-active .iconBox {
  background: rgba(255, 255, 255, 0.12) !important;

  border-color: rgba(255, 255, 255, 0.18) !important;

  color: #fff !important;
}

.menuCard.is-active .iconBox i,
.menuCard.is-active .iconBox .icon {
  color: #fff !important;

  fill: #fff !important;
}

.menuTxt {
  display: grid;

  gap: 2px;

  min-width: 0;
}

.menuTxt b {
  font-size: 14.6px;

  font-weight: 950;

  letter-spacing: 0.15px;
}

.menuTxt span {
  display: block;

  font-size: 13.2px;

  color: var(--muted);
}

.menuCard.is-active .menuTxt b,
.menuCard.is-active .menuTxt span {
  color: #fff !important;
}

.menuCard.is-active .menuTxt span {
  opacity: 0.85;
}

.helpBlock {
  margin-top: 12px;

  border: 1px solid rgba(11, 15, 20, 0.12);

  background: rgba(11, 15, 20, 0.04);

  border-radius: 14px;

  padding: 10px 12px;

  display: grid;

  gap: 6px;
}

.helpBlock b {
  font-size: 13px;
}

.helpBlock span {
  color: var(--muted);

  font-size: 13px;

  line-height: 1.35;
}

.preview {
  border: 1px dashed var(--border);

  border-radius: 14px;

  padding: 10px;

  color: var(--muted);

  font-size: 13px;

  background: #fff;
}

.previewGrid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 10px;

  margin-top: 10px;
}

@media (max-width: 560px) {
  .previewGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.thumb {
  position: relative;

  border-radius: 12px;

  overflow: hidden;

  border: 1px solid var(--border);

  background: #fff;

  box-shadow: 0 10px 18px rgba(11, 15, 20, 0.06);
}

.thumb img {
  display: block;

  width: 100%;

  height: 110px;

  object-fit: cover;
}

.thumb .cap {
  padding: 8px 9px;

  font-size: 12.5px;

  color: var(--muted);

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  border-top: 1px solid var(--border);

  background: #fff;
}

.thumb .rm {
  position: absolute;

  top: 8px;

  right: 8px;

  border: 1px solid rgba(229, 231, 235, 0.9);

  background: rgba(255, 255, 255, 0.92);

  border-radius: 10px;

  padding: 6px 8px;

  cursor: pointer;

  font-weight: 900;

  line-height: 1;

  box-shadow: 0 10px 18px rgba(11, 15, 20, 0.08);
}

table {
  width: 100%;

  border-collapse: collapse;
}

th,
td {
  padding: 10px 10px;

  text-align: left;

  border-bottom: 1px solid #eef2f7;

  font-size: 13.5px;
}

th {
  color: var(--muted);

  font-weight: 900;

  font-size: 12.8px;

  text-transform: uppercase;

  letter-spacing: 0.35px;
}

.badge {
  display: inline-flex;

  align-items: center;

  padding: 4px 8px;

  border-radius: 999px;

  font-size: 12.5px;

  font-weight: 900;

  border: 1px solid var(--border);

  background: #fff;

  color: var(--muted);

  white-space: nowrap;
}

.b-open {
  border-color: rgba(11, 15, 20, 0.35);

  background: rgba(11, 15, 20, 0.06);

  color: var(--text);
}

.b-proc {
  border-color: rgba(217, 119, 6, 0.35);

  background: rgba(217, 119, 6, 0.14);

  color: #92400e;
}

.b-done {
  border-color: rgba(22, 163, 74, 0.35);

  background: rgba(22, 163, 74, 0.14);

  color: #166534;
}

.termsNote {
  margin: 10px 0 0;

  font-size: 12.8px;

  line-height: 1.35;

  color: var(--muted);
}

.termsNote a {
  color: var(--text);

  font-weight: 800;

  text-decoration: underline;
}

/* Mensaje “no puedes ingresar ticket” (más llamativo, rojo fuerte pero suave) */

.helpBlock--danger {
  border: 1px solid rgba(220, 38, 38, 0.28);

  background: rgba(220, 38, 38, 0.1);
}

.helpBlock--danger b {
  color: #b91c1c;

  /* rojo fuerte */
}

.helpBlock--danger span {
  color: rgba(185, 28, 28, 0.9);
}

details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary b {
  font-weight: 950;
}

details span {
  display: block;
  margin-top: 8px;
}

.heroUserRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.heroUserInfo {
  min-width: 0;
}

.heroUserActions {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .heroUserActions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Footer del formulario: términos + botón alineados */
.formFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.formFooter .termsNote {
  margin: 0;
  flex: 1 1 auto;
  max-width: 680px;
}

.formFooterAction {
  flex: 0 0 auto;
}

/* Botón no “flotando” raro */
.formFooterAction .primary {
  min-width: 190px;
}

/* Consejo como bloque secundario y con mejor spacing */
.helpBlock--tip {
  margin-top: 12px;
}

/* Responsive: en móvil todo apilado y botón ancho completo */
@media (max-width: 640px) {
  .formFooter {
    flex-direction: column;
    align-items: stretch;
  }

  .formFooterAction .primary {
    width: 100%;
    min-width: 0;
  }
}

.tipBox {
  background: rgba(11, 15, 20, 0.03);
  border-radius: 16px;
  padding: 12px 12px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.tipBox b {
  font-weight: 950;
  color: var(--text);
}

.tipBox span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.tipBox .tipMini {
  color: rgba(107, 114, 128, 0.9);
  font-size: 12.8px;
}

.row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  /* más espacio para adjunto */
  gap: 12px;
  align-items: start;
}

@media (max-width: 980px) {
  .row3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .row3 {
    grid-template-columns: 1fr;
  }
}

/* selects compactos y parejos */
.selectCompact {
  height: 44px;
  padding: 9px 12px;
}

/* input file: solo botón, sin “Ningún archivo seleccionado” */
.fileOnlyButton {
  height: 44px;
  padding: 0;
  font-size: 0;
  /* oculta el texto del archivo */
  border-radius: 14px;
  overflow: hidden;
}

.fileOnlyButton::file-selector-button {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.fileOnlyButton::file-selector-button:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Safari/Chrome viejo */
.fileOnlyButton::-webkit-file-upload-button {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

/* Encabezado del módulo (Nuevo Ticket / FAQ / etc) */
#contentArea .panelHead {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

/* Que el título se lea como título */
#contentArea .panelTitle {
  font-size: 20px;
  line-height: 1.15;
}

/* Subtítulo un poco más separado */
#contentArea .panelSub {
  margin-top: 6px;
}

/* Centrar verticalmente el bloque de botones respecto al contenido de la izquierda */
.heroUserRow {
  align-items: center;
  /* en vez de flex-start */
}

/* Si además quieres que los botones queden centrados dentro de su columna */
.heroUserActions {
  align-items: center;
}

/* En móvil, tu CSS ya los pasa abajo; opcional: mantenerlos centrados también */
@media (max-width: 640px) {
  .heroUserActions {
    justify-content: center;
    /* o flex-start si los quieres a la izquierda */
  }
}

.siteFooter {
  margin-top: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  overflow: hidden;
}

.siteFooterInner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  padding: 18px 20px;
}

.fCol {
  min-width: 0;
  padding-right: 12px;
  border-right: 1px solid #eef2f7;
}

.fCol:last-child {
  border-right: 0;
  padding-right: 0;
}

.fTitle {
  margin: 0 0 8px;
  font-weight: 650;
  font-size: 13.2px;
  letter-spacing: 0.12px;
  color: var(--text);
}

.fMini {
  margin: 0;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.35;
}

.fLine {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 8px;
  min-width: 0;
}

.fKey {
  flex: 0 0 64px;
  /*  ancho fijo: alinea todos los valores */
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.fVal {
  color: var(--text);
  font-weight: 600;
  font-size: 12.8px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fVal:hover {
  color: #000;
}

.fBottom {
  padding: 10px 16px;
  border-top: 1px solid #eef2f7;
  color: var(--muted);
  font-size: 12.6px;
}

/* Responsive */
@media (max-width: 900px) {
  .siteFooterInner {
    grid-template-columns: 1fr;
  }

  .fCol {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
  }

  .fCol:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/* Quitar la “raya” (subrayado) de Redes / Mapa / Web / Correo */
.fVal,
.fLink,
.fWebLink {
  text-decoration: none !important;
}

/* Mantener interacción sin subrayado: cambio suave de color */
.fVal:hover,
.fLink:hover,
.fWebLink:hover {
  color: var(--text);
  opacity: 0.95;
}

/* Opcional: hover tipo “pill” MUY suave (sin rayas) */
.fVal,
.fLink,
.fWebLink {
  border-radius: 10px;
}

.fVal:hover,
.fLink:hover,
.fWebLink:hover {
  background: rgba(11, 15, 20, 0.04);
}

/* Textos del footer más “muted” (más grises) */
.siteFooter {
  color: rgba(107, 114, 128, 0.95);
  /* base gris */
}

.siteFooter .fTitle {
  color: rgba(75, 85, 99, 0.95);
  /* título un poco más marcado pero gris */
  font-weight: 600;
}

.siteFooter .fMini,
.siteFooter .fText,
.siteFooter .fKey {
  color: rgba(107, 114, 128, 0.95);
  font-weight: 500;
}

/* Valores/link también grises (sin subrayado) */
.siteFooter .fVal,
.siteFooter .fLink,
.siteFooter .fWebLink {
  color: rgba(107, 114, 128, 0.95);
  font-weight: 500;
  text-decoration: none !important;
}

/* Hover apenas más oscuro */
.siteFooter .fVal:hover,
.siteFooter .fLink:hover,
.siteFooter .fWebLink:hover {
  color: rgba(55, 65, 81, 0.95);
}

/* Igualar tamaño en TODOS los links del footer */
.siteFooter .fVal,
.siteFooter .fLink,
.siteFooter .fWebLink,
.siteFooter .fKey,
.siteFooter .fMini,
.siteFooter .fText {
  font-size: 12.8px !important;
  line-height: 1.35;
}

/* Spinner dentro de botones */
.btnSpin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: rgba(255, 255, 255, 1);
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.countBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  margin-left: 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  border: 1px solid rgba(11, 15, 20, 0.18);
  background: rgba(11, 15, 20, 0.06);
  color: var(--text);
  vertical-align: middle;
}

.menuCard.is-active .countBadge {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* === Popover Términos === */
.tcWrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tcTrigger {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: help;
  font: inherit;
  color: var(--text);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tcTrigger:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

.tcPopover {
  position: fixed;
  /*  ya no depende del contenedor */
  z-index: 9999;
  max-width: 420px;
  min-width: 260px;
  background: #fff;
  border: 1px solid rgba(11, 15, 20, 0.18);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(11, 15, 20, 0.18);
  padding: 12px 12px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.tcPopover::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid rgba(11, 15, 20, 0.18);
  border-top: 1px solid rgba(11, 15, 20, 0.18);
  transform: rotate(45deg);
}

/* Flecha cuando abre abajo (popover debajo del botón) */
.tcPopover.is-bottom::before {
  top: -6px;
  left: 18px;
}

/* Flecha cuando abre arriba (popover sobre el botón) */
.tcPopover.is-top::before {
  bottom: -6px;
  left: 18px;
  transform: rotate(225deg);
}

.skeleton {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.skLine {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(11, 15, 20, 0.06),
    rgba(11, 15, 20, 0.1),
    rgba(11, 15, 20, 0.06)
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.skLine.h42 {
  height: 42px;
  border-radius: 14px;
}

.skLine.h110 {
  height: 110px;
  border-radius: 14px;
}

.skLine.w40 {
  width: 40%;
}

.skLine.w60 {
  width: 60%;
}

.skLine.w80 {
  width: 80%;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* Asegura layout consistente dentro de la card */
.menuCard {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Texto alineado y ordenado */
.menuTxt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* clave: evita centrados raros */
  gap: 3px;
  line-height: 1.1;
}

.menuTxt b {
  margin: 0;
}

.menuTxt span {
  margin: 0;
}

/* Badge compacto y bien alineado */
.countBadge.newBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 16px;
  padding: 0 8px;
  width: fit-content;
  /* evita que ocupe todo el ancho */

  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.1);
  color: rgba(21, 128, 61, 1);

  font-weight: 800;
  font-size: 10px !important;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  line-height: 1;
}

/* En activo */
.menuCard.is-active .countBadge.newBadge {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Solo separación arriba del badge */
#certNewBadge {
  margin-top: 4px;
  /* ajusta 2px–6px */
  display: inline-flex;
  /* por si está heredando inline */
}

.bannerTagline {
  line-height: 1.05;
}

.bannerTitle {
  line-height: 1.05;
}


:root{
  /* Arriba más claro, abajo más oscuro (como tu azul) */
  --corp-top:  #1f2937;   /* claro (slate) */
  --corp-mid:  #111827;   /* medio */
  --corp-bot:  #0b0f14;   /* oscuro */

  --corp-border-2: rgba(255,255,255,.16);
  --corp-shadow-2: 0 10px 22px rgba(2,6,23,.22);
}

/* Mata gradients/filters viejos */
.banner,
button.primary,
.link.danger,
.menuCard.is-active,
.scaleOpt:has(input:checked){
  background-image: none !important;
  filter: none !important;
  border: 1px solid var(--corp-border-2) !important;
  box-shadow: var(--corp-shadow-2) !important;
  color: #fff !important;
}

/* Degradado claro -> oscuro (igual feeling que encuesta) */
.banner,
button.primary,
.link.danger,
.menuCard.is-active,
.scaleOpt:has(input:checked){
  background:
    radial-gradient(120% 140% at 25% 0%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(180deg, var(--corp-top) 0%, var(--corp-mid) 55%, var(--corp-bot) 100%) !important;
}

/* Hover sin “brightness” */
button.primary:hover,
.link.danger:hover,
.menuCard.is-active:hover,
.scaleOpt:hover{
  filter: none !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(2,6,23,.26) !important;
}

/* Focus sobrio */
button.primary:focus-visible,
.link.danger:focus-visible{
  box-shadow:
    0 0 0 3px rgba(255,255,255,.10),
    var(--corp-shadow-2) !important;
}
