/* Iconos propios */
.tmx-i--team { background-color: #efe9ff; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235a22e9' stroke-width='1.4' stroke-linecap='round'><circle cx='6' cy='5.6' r='2'/><path d='M2.6 12.4c.5-2.3 6.3-2.3 6.8 0'/><circle cx='11.2' cy='6.4' r='1.6'/><path d='M10.4 9.6c1.6-.3 3 .4 3.2 2'/></svg>"); }
.tmx-i--brand { background-color: #ffe8f2; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d61f6a' stroke-width='1.4' stroke-linecap='round'><path d='M8 2.6c3 0 5.4 2.1 5.4 4.7 0 1.6-1.3 2.4-2.6 2.4H9.6c-.7 0-1.1.8-.7 1.4.5.8-.1 2.3-1.3 2.3-2.8 0-5-2.4-5-5.4S5 2.6 8 2.6z'/><circle cx='5.6' cy='7' r='.6'/><circle cx='8' cy='5.2' r='.6'/><circle cx='10.4' cy='6.2' r='.6'/></svg>"); }
.tmx-i--key { background-color: #e7e9f5; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23070d38' stroke-width='1.4' stroke-linecap='round'><circle cx='5.6' cy='8' r='2.4'/><path d='M8 8h5.4M11.4 8v2M13.4 8v1.6'/></svg>"); }
.tmx-lock {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.6'><rect x='3.5' y='7' width='9' height='7' rx='1.5'/><path d='M5.5 7V5a2.5 2.5 0 0 1 5 0v2'/></svg>") center / 12px no-repeat;
}
.tmx-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #4338ca; box-shadow: 0 0 0 3px #e3e1fb; }

/* Hero: usuarios */
.tmx-hero { position: relative; width: 100%; max-width: 600px; padding: 34px 0 54px; }
.tmx-users .ux-app { min-height: 300px; }
.tmx-users__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tmx-users__top .ux-h,
.tmx-users__top .ux-sub { display: block; }
.tmx-seat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 12px 0; }
.tmx-seat i { height: 5px; border-radius: 4px; background: #e3e6f0; }
.tmx-seat i.is-on { background: #6D4AFF; }
.tmx-users__list { display: grid; padding: 4px 12px; }
.tmx-urow { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #f1f2f6; }
.tmx-urow:last-child { border-bottom: 0; }
.tmx-urow .ux-av { width: 30px; height: 30px; }
.tmx-urow > span:nth-child(2) { flex: 1; min-width: 0; }
.tmx-urow b { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tmx-urow small { color: #6b7190; font-size: 10.5px; }
.tmx-hero__inv { right: -18px; top: 0; }
.tmx-hero__lock { left: -22px; bottom: -34px; }

/* Matriz de permisos */
.tmx-perm {
  max-width: 940px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #eceef5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgb(16 24 64 / 7%);
}
.tmx-perm__row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.tmx-perm__row + .tmx-perm__row .tmx-perm__l,
.tmx-perm__row + .tmx-perm__row .tmx-perm__c:not(.tmx-perm__c--own) { border-top: 1px solid #f1f2f7; }
.tmx-perm__l {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  color: #1f2547;
  font-size: 15px;
  font-weight: 700;
}
.tmx-perm__l .mi { width: 32px; height: 32px; border-radius: 10px; background-size: 17px 17px; }
.tmx-perm__c { display: grid; place-items: center; padding: 14px 8px; text-align: center; }
.tmx-perm__c--own { background: #f4f1ff; }
.tmx-perm__row:last-child .tmx-perm__c--own { border-radius: 0 0 16px 16px; }
.tmx-perm__row--head .tmx-perm__c { align-content: center; gap: 2px; padding: 18px 8px 16px; }
.tmx-perm__row--head b { font-size: 16px; font-weight: 800; color: #070d38; }
.tmx-perm__row--head small { color: #6b7190; font-size: 12.5px; line-height: 1.35; }
.tmx-perm__row--head .tmx-perm__c--own { border-radius: 16px 16px 0 0; background: #2563eb; }
.tmx-perm__row--head .tmx-perm__c--own b { color: #fff; }
.tmx-perm__row--head .tmx-perm__c--own small { color: rgb(255 255 255 / 85%); }
.tmx-perm__corner { color: #6b7190; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tmx-yes,
.tmx-no { display: inline-block; width: 26px; height: 26px; border-radius: 50%; }
.tmx-yes { background: #dff6e8 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2316a34a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8.4l2.6 2.4L12 5.4'/></svg>") center / 14px no-repeat; }
.tmx-no { background: #f3f4f8 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a8bd' stroke-width='2' stroke-linecap='round'><path d='M5.4 5.4l5.2 5.2M10.6 5.4l-5.2 5.2'/></svg>") center / 12px no-repeat; }
.tmx-v {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.tmx-v--all { background: #e8f1ff; color: #1d5bd8; }
.tmx-v--own { background: #fff4e0; color: #b45309; }
.tmx-v--team { background: #efe9ff; color: #5a22e9; }

/* Marca: antes / después */
.tmx-ba { position: relative; display: grid; justify-items: center; gap: 14px; width: 100%; max-width: 460px; }
.tmx-ba__set { position: relative; display: grid; gap: 10px; width: 100%; }
.tmx-ba__lbl { justify-self: start; color: #8a6a3b; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tmx-ba__set--after .tmx-ba__lbl { color: #4338ca; }
.tmx-ba__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tmx-ba__set:not(.tmx-ba__set--after) .tmx-ba__cards { opacity: .9; }
.tmx-ba__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234338ca' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M8 3v10M4 9l4 4 4-4'/></svg>") center / 16px no-repeat;
  box-shadow: 0 8px 20px rgb(16 24 64 / 10%);
}
.tmx-mc {
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding-bottom: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgb(16 24 64 / 10%);
  text-align: center;
}
.tmx-mc__cv { position: relative; display: block; width: 100%; height: 38px; }
.tmx-mc img { position: relative; z-index: 1; width: 34px; height: 34px; margin-top: -17px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.tmx-mc b { max-width: 92%; margin-top: 5px; overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.tmx-mc small { color: #6b7190; font-size: 10px; }
.tmx-mc__btn { display: block; width: 74%; height: 12px; margin-top: 8px; border-radius: 6px; }
.tmx-mc--a .tmx-mc__cv,
.tmx-mc--a .tmx-mc__btn { background: #f97316; }
.tmx-mc--a b { font-family: Georgia, "Times New Roman", serif; }
.tmx-mc--b .tmx-mc__cv { background: linear-gradient(135deg, #16a34a, #84cc16); }
.tmx-mc--b .tmx-mc__btn { background: #16a34a; border-radius: 2px; }
.tmx-mc--b b { font-family: "Courier New", monospace; letter-spacing: -.3px; }
.tmx-mc--c .tmx-mc__cv { background: #db2777; }
.tmx-mc--c .tmx-mc__btn { background: #fbcfe8; }
.tmx-mc--c b { font-style: italic; }
.tmx-mc--brand .tmx-mc__cv { background: linear-gradient(135deg, #4338ca, #312e81); }
.tmx-mc--brand .tmx-mc__btn { background: #4338ca; }
.tmx-mc__cv span {
  position: absolute;
  right: 6px;
  top: 6px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #fff;
  color: #4338ca;
  font-size: 10px;
  font-weight: 900;
}
.tmx-ba__chip { right: -14px; top: -16px; }

/* Marca: panel de ajustes */
.tmx-brand { max-width: 470px; }
.tmx-brand__body { padding: 18px 20px 20px; background: #f7f8fb; }
.tmx-brand__fields { display: grid; margin-top: 12px; padding: 4px 12px; }
.tmx-field { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f2f6; }
.tmx-field:last-child { border-bottom: 0; }
.tmx-field__l { color: #6b7190; font-size: 11px; font-weight: 700; }
.tmx-field__v { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.tmx-field__v .tmx-dot { width: 22px; height: 22px; }
.tmx-field__v .ux-input { min-height: 26px; }
.tmx-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #070d38; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.tmx-toggle i { position: relative; width: 26px; height: 15px; border-radius: 999px; background: #4338ca; }
.tmx-toggle i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.tmx-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #4338ca; color: #fff; font-size: 14px; font-weight: 900; }
.tmx-field__file { flex: 1; min-width: 0; overflow: hidden; color: #3a4170; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tmx-field__font { flex: 1; font-weight: 700; }
.tmx-aa { color: #4338ca; font-size: 18px; font-weight: 900; }
.tmx-brand__to { display: block; margin: 14px 0 8px; color: #6b7190; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tmx-brand__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tmx-brand__chips > span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #eceef5;
  border-radius: 10px;
  background: #fff;
  font-size: 11.5px;
  font-weight: 700;
}
.tmx-brand__chips > span::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-left: auto;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2316a34a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8.4l2.6 2.4L12 5.4'/></svg>") center / contain no-repeat;
}

/* SSO */
.tmx-sso { position: relative; width: 100%; max-width: 360px; padding-bottom: 26px; }
.tmx-login__body { display: grid; justify-items: center; gap: 10px; padding: 26px 26px 24px; }
.tmx-login__body img { border-radius: 10px; }
.tmx-login__t { margin-bottom: 6px; font-size: 16px; font-weight: 800; color: #070d38; }
.tmx-login__sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.tmx-login__sso i {
  flex: none;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'><path d='M3 14V3.5l6-1.5v12M9 6h4v8M2 14h12M5 5.5h2M5 8h2M5 10.5h2M11 8.5h0M11 11h0'/></svg>") center / contain no-repeat;
}
.tmx-login__or {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: #a3a8bd;
  font-size: 10.5px;
}
.tmx-login__or::before,
.tmx-login__or::after { content: ""; flex: 1; height: 1px; background: #eceef5; }
.tmx-login__body .ux-input { width: 100%; color: #a3a8bd; }
.tmx-login__pw { letter-spacing: 2px; }
.tmx-login__go { width: 100%; padding: 8px 0; color: #a3a8bd; }
.tmx-sso__ok { right: -26px; bottom: 0; }

/* Usuarios por plan */
.tmx-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.tmx-plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 24px;
  border: 1px solid #eceef5;
  border-radius: 22px;
  background: #fff;
}
.tmx-plan__n { color: #5b6280; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tmx-plan__p { margin-top: -6px; font-size: 32px; font-weight: 900; letter-spacing: -.8px; color: #070d38; }
.tmx-plan__p small { font-size: 13px; font-weight: 700; letter-spacing: 0; color: #6b7190; }
.tmx-plan__seats { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.tmx-plan__seats img,
.tmx-plan__seats i { width: 30px; height: 30px; border-radius: 50%; }
.tmx-plan__seats img { object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.tmx-plan__seats i { border: 1.5px dashed #c9cddc; }
.tmx-plan ul { display: grid; gap: 9px; margin: 4px 0 0; padding: 0; list-style: none; }
.tmx-plan li { position: relative; padding-left: 24px; color: #3a4170; font-size: 15px; line-height: 1.45; }
.tmx-plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236D4AFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8.4l2.6 2.4L12 5.4'/></svg>") center / contain no-repeat;
}
.tmx-plan li b { color: #070d38; }
.tmx-plan__go {
  margin-top: auto;
  padding: 11px 16px;
  border: 1px solid #dfe2ee;
  border-radius: 999px;
  color: #070d38;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.tmx-plan__go:hover { border-color: #c4c9de; background: #f6f7fb; }
.tmx-plan--biz { border-color: #c9b8ff; box-shadow: 0 0 0 3px #efe9ff, 0 22px 50px rgb(90 34 233 / 10%); }
.tmx-plan--biz .tmx-plan__go { border-color: #6D4AFF; background: #6D4AFF; color: #fff; }
.tmx-plan--biz .tmx-plan__go:hover { background: #5a3ae6; }
.tmx-plan--ent { border-color: #2563eb; background: #2563eb; }
.tmx-plan--ent .tmx-plan__n { color: rgb(255 255 255 / 85%); }
.tmx-plan--ent .tmx-plan__p,
.tmx-plan--ent li b { color: #fff; }
.tmx-plan--ent li { color: #d4d7ef; }
.tmx-plan--ent .tmx-plan__seats img { box-shadow: 0 0 0 2px #070d38; }
.tmx-plan--ent .tmx-plan__seats i { border-color: #3b4170; }
.tmx-plan--ent .tmx-plan__go { border-color: #fff; background: #fff; color: #070d38; }
.tmx-plan--ent .tmx-plan__go:hover { background: #e9ebf7; }
.tmx-down {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 14px 20px;
  border: 1px dashed #c9cddc;
  border-radius: 14px;
  color: #3a4170;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
.tmx-down b { color: #070d38; }

@media (max-width: 1080px) {
  .tmx-hero__inv { right: 0; }
  .tmx-hero__lock { left: 0; }
  .tmx-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
}
@media (max-width: 899px) {
  .tmx-hero { margin: 0 auto; }
  .tmx-sso__ok { right: 0; }
}
@media (max-width: 560px) {
  .tmx-hero { padding: 0 0 60px; }
  .tmx-hero__inv { top: auto; right: -4px; bottom: 0; transform: scale(.9); transform-origin: right bottom; }
  .tmx-hero__lock { display: none; }
  .tmx-urow .ux-pill--ok,
  .tmx-urow .ux-pill--pink { display: none; }
  .tmx-perm { padding: 6px; border-radius: 18px; }
  .tmx-perm__row { grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); }
  .tmx-perm__l { gap: 8px; padding: 12px 6px; font-size: 12.5px; line-height: 1.25; }
  .tmx-perm__l .mi { display: none; }
  .tmx-perm__c { padding: 12px 2px; }
  .tmx-perm__row--head small { display: none; }
  .tmx-perm__row--head b { font-size: 13px; }
  .tmx-perm__corner { font-size: 10px; }
  .tmx-v { padding: 4px 6px; font-size: 10.5px; white-space: normal; line-height: 1.2; }
  .tmx-yes, .tmx-no { width: 22px; height: 22px; }
  .tmx-ba__cards { gap: 7px; }
  .tmx-mc b { font-size: 10px; }
  .tmx-mc small { font-size: 9px; }
  .tmx-ba__chip { right: -4px; top: -20px; transform: scale(.88); transform-origin: right top; }
  .tmx-field { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tmx-toggle { margin-left: 0; }
  .tmx-brand__chips { grid-template-columns: minmax(0, 1fr); }
  .tmx-sso__ok { right: -4px; }
  .tmx-login__body { padding: 22px 16px 20px; }
}
