/*
 * Tarjeta de empresa (centr.ar/tarjeta-de-empresa/). La portada: Recibidos a un lado, donde el
 * cursor pasa por el nombre de quien escribe y toca «Ver tarjeta», y la ficha del producto al otro,
 * con su riel, que recorre Perfil, Contactos, Actividad y Radar. Ciclo de 16 s: la tarjeta breve
 * aparece al 10 %, el clic cae al 20 % y cada sección dura un cuarto, desde el 0, 32, 54 y 76 %.
 * Sin movimiento se ve la ficha en su perfil, con la tarjeta breve abierta.
 */
.tj-live {
  --T: 16s;
  background:
    radial-gradient(420px 260px at 100% 0, rgb(22 128 76 / 0.06), transparent 70%),
    #fff;
}

/* Recibidos, con la tarjeta breve debajo del primer remitente. */
.tj-inbox {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 120px;
  border-radius: 18px;
  background: #f2f6ee;
  font-size: 13px;
}
.tj-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 8px;
  color: var(--ink-2);
}
.tj-bar svg {
  width: 16px;
  height: 16px;
}
.tj-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 0.8fr) minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  white-space: nowrap;
}
.tj-row img {
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}
.tj-row b {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
}
.tj-row small {
  overflow: hidden;
  color: var(--ink-3);
  text-overflow: ellipsis;
}
.tj-row em {
  color: var(--ink-3);
  font-size: 12px;
  font-style: normal;
}
.tj-brief {
  position: absolute;
  left: 44px;
  top: 112px;
  z-index: 1;
  display: grid;
  gap: 8px;
  width: 248px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgb(18 51 47 / 0.35);
}
.tj-co {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.tj-co img {
  border-radius: 8px;
  object-fit: contain;
}
.tj-co span {
  display: grid;
  min-width: 0;
}
.tj-co b,
.tj-co small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tj-co small,
.tj-id {
  color: var(--ink-3);
  font-size: 12px;
}
.tj-see {
  position: relative;
  justify-self: start;
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.tj-cur {
  position: absolute;
  left: 84px;
  top: 196px;
  z-index: 2;
  width: 22px;
  height: 22px;
  opacity: 0;
}

/* La ficha: el riel del producto (site.css, .rdr-card) y las secciones apiladas. */
.tj-card {
  align-self: stretch;
}
.tj-rail .tj-ar {
  display: contents;
}
.tj-rail i {
  transition: none;
}
.tj-rail .k1 {
  background: #12332f;
  color: #fff;
}
.tj-ids {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.tj-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.tj-chip small {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 650;
}
.tj-chip svg,
.tj-dl svg {
  width: 13px;
  height: 13px;
  color: var(--ink-3);
}
.tj-pill {
  padding: 4px 10px;
  border-radius: 99px;
  background: #e5f2e8;
  color: #1c6b43;
  font-size: 12px;
  font-weight: 600;
}
.tj-panes {
  display: grid;
  margin-top: 6px;
}
.tj-pane {
  grid-area: 1 / 1;
  min-width: 0;
}
.tj-pane:not(.p1) {
  opacity: 0;
}
.tj-title {
  display: block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
}
.tj-about {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}
.tj-tiles {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  margin-top: 12px;
}
.tj-tiles span {
  display: grid;
  padding: 8px 10px;
  border: 1px solid #e8ecef;
  border-radius: 10px;
}
.tj-tiles small,
.tj-tiles i {
  color: var(--ink-3);
  font-size: 11px;
  font-style: normal;
}
.tj-tiles b {
  font-size: 15px;
}
.tj-dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}
.tj-dl dt {
  color: var(--ink-3);
  font-size: 11.5px;
}
.tj-dl dd {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 1px 0 0;
}
.tj-dl .tj-note,
.tj-src {
  color: var(--ink-3);
  font-size: 11.5px;
}
.tj-src {
  display: block;
  margin-top: 12px;
}
.tj-rows {
  list-style: none;
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
}
.tj-rows li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e8ecef;
  border-radius: 10px;
}
.tj-rows.tj-mails li {
  grid-template-columns: minmax(0, 1fr) auto;
}
.tj-rows li > i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e7eef8;
  color: #2f5f9e;
  font-style: normal;
  font-weight: 700;
}
.tj-rows li > i.me {
  background: #fdebe1;
  color: #b4472c;
}
.tj-rows span {
  display: grid;
  min-width: 0;
}
.tj-rows b,
.tj-rows small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tj-rows small,
.tj-rows time {
  color: var(--ink-3);
  font-size: 11.5px;
}
.tj-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.tj-kpis span {
  padding: 8px 10px;
  border: 1px solid #e8ecef;
  border-radius: 10px;
  color: #5f6368;
  font-size: 12px;
}
.tj-kpis b {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.2;
}
.tj-h {
  display: block;
  margin-top: 14px;
  color: #5f6368;
  font-size: 12px;
}
.tj-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.tj-stage em {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.tj-stage small {
  color: var(--ink-3);
  font-size: 12px;
}
.tj-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}
.tj-steps i {
  height: 5px;
  border-radius: 99px;
  background: #c98a1c;
}
.tj-steps i.off {
  background: #e3e8e4;
}

@media (prefers-reduced-motion: no-preference) {
  .tj-live .tj-brief {
    animation: tj-brief var(--T) infinite both;
  }
  .tj-live .tj-cur {
    animation: tj-cur var(--T) infinite both;
  }
  .tj-live .tj-brief .tj-see {
    animation: tj-press var(--T) infinite both;
  }
  .tj-live .r1 {
    animation: tj-hover var(--T) infinite both;
  }
  .tj-live .tj-card {
    animation: tj-flash var(--T) infinite both;
  }
  .tj-live .p1 {
    animation: tj-p1 var(--T) infinite both;
  }
  .tj-live .p2 {
    animation: tj-p2 var(--T) infinite both;
  }
  .tj-live .p3 {
    animation: tj-p3 var(--T) infinite both;
  }
  .tj-live .p4 {
    animation: tj-p4 var(--T) infinite both;
  }
  .tj-live .tj-rail .k1 {
    animation: tj-k1 var(--T) infinite both;
  }
  .tj-live .tj-rail .k2 {
    animation: tj-k2 var(--T) infinite both;
  }
  .tj-live .tj-rail .k3 {
    animation: tj-k3 var(--T) infinite both;
  }
  .tj-live .tj-rail .k4 {
    animation: tj-k4 var(--T) infinite both;
  }
}
@keyframes tj-cur {
  0%,
  2% {
    opacity: 0;
    translate: 140px -40px;
  }
  5% {
    opacity: 1;
  }
  /* Llega al nombre del primer remitente. */
  9% {
    opacity: 1;
    translate: -20px -120px;
  }
  13% {
    opacity: 1;
    translate: -20px -120px;
  }
  /* Baja a «Ver tarjeta» y hace clic. */
  18% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  20% {
    scale: 0.82;
  }
  21% {
    scale: 1;
  }
  26% {
    opacity: 1;
    translate: 0 0;
  }
  30%,
  100% {
    opacity: 0;
    translate: 30px 20px;
  }
}
@keyframes tj-hover {
  0%,
  8%,
  27%,
  100% {
    border-color: var(--line);
    background: #fff;
  }
  10%,
  25% {
    border-color: rgb(22 128 76 / 0.45);
    background: #f7fbf6;
  }
}
@keyframes tj-brief {
  0%,
  10% {
    opacity: 0;
    translate: 0 6px;
  }
  12%,
  24% {
    opacity: 1;
    translate: 0 0;
  }
  28%,
  100% {
    opacity: 0;
    translate: 0 0;
  }
}
@keyframes tj-press {
  0%,
  19%,
  22%,
  100% {
    background: var(--ink);
  }
  20% {
    background: var(--ok);
  }
}
@keyframes tj-flash {
  0%,
  20%,
  30%,
  100% {
    border-color: var(--line);
  }
  22% {
    border-color: rgb(22 128 76 / 0.6);
  }
}
@keyframes tj-p1 {
  0%,
  31% {
    opacity: 1;
  }
  33%,
  97% {
    opacity: 0;
  }
  99%,
  100% {
    opacity: 1;
  }
}
@keyframes tj-p2 {
  0%,
  31% {
    opacity: 0;
  }
  33%,
  53% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0;
  }
}
@keyframes tj-p3 {
  0%,
  53% {
    opacity: 0;
  }
  55%,
  75% {
    opacity: 1;
  }
  77%,
  100% {
    opacity: 0;
  }
}
@keyframes tj-p4 {
  0%,
  75% {
    opacity: 0;
  }
  77%,
  97% {
    opacity: 1;
  }
  99%,
  100% {
    opacity: 0;
  }
}
/* El ícono de la sección abierta se oscurece en el riel, al mismo ritmo. */
@keyframes tj-k1 {
  0%,
  31%,
  99%,
  100% {
    background: #12332f;
    color: #fff;
  }
  33%,
  97% {
    background: transparent;
    color: #56635c;
  }
}
@keyframes tj-k2 {
  0%,
  31%,
  55%,
  100% {
    background: transparent;
    color: #56635c;
  }
  33%,
  53% {
    background: #12332f;
    color: #fff;
  }
}
@keyframes tj-k3 {
  0%,
  53%,
  77%,
  100% {
    background: transparent;
    color: #56635c;
  }
  55%,
  75% {
    background: #12332f;
    color: #fff;
  }
}
@keyframes tj-k4 {
  0%,
  75%,
  99%,
  100% {
    background: transparent;
    color: #56635c;
  }
  77%,
  97% {
    background: #12332f;
    color: #fff;
  }
}

/* Paso 1: el interruptor del panel se prende con el clic. */
.tj-set {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
}
.tj-set span {
  display: grid;
  gap: 2px;
}
.tj-set small {
  color: var(--ink-3);
  font-size: 11px;
}
.tj-sw {
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  border-radius: 99px;
  background: var(--ok);
}
.tj-sw::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}
.tj-fx-on .rdr-cur {
  left: auto;
  right: 18px;
  top: 98px;
}
/* Paso 2: la tarjeta breve debajo del nombre, con su botón. */
.tj-fx-hover .tj-row {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 40px;
  padding: 0 10px;
  font-size: 12px;
}
.tj-fx-hover .tj-row small {
  display: none;
}
.tj-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-left: 22px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.tj-mini .tj-see {
  padding: 5px 11px;
  font-size: 11.5px;
}
.tj-fx-hover .rdr-cur {
  left: 40%;
  top: 40%;
}
/* Paso 3: una ficha en miniatura, con el riel. */
.tj-mcard {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.tj-mrail {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 0;
  background: #f3f6f3;
}
.tj-mrail i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #56635c;
}
.tj-mrail i.on {
  background: #12332f;
  color: #fff;
}
.rdr-fx .tj-mrail svg,
.tj-ic svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tj-mlines {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px 14px;
}
.tj-mlines i {
  height: 8px;
  border-radius: 99px;
  background: #e8ece9;
}
.tj-mlines i.s {
  width: 60%;
}
@media (prefers-reduced-motion: no-preference) {
  .tj-fx-on .tj-sw {
    animation: tj-sw-bg var(--s) infinite both;
  }
  .tj-fx-on .tj-sw::after {
    animation: tj-sw-knob var(--s) infinite both;
  }
  .tj-fx-hover .tj-mini {
    animation: tj-step-pop var(--s) infinite both;
  }
  .tj-mrail i {
    animation: tj-rail-walk var(--s) infinite both;
  }
  .tj-mrail i:nth-child(2) {
    animation-delay: calc(var(--s) * 0.25);
  }
  .tj-mrail i:nth-child(3) {
    animation-delay: calc(var(--s) * 0.5);
  }
  .tj-mrail i:nth-child(4) {
    animation-delay: calc(var(--s) * 0.75);
  }
}
@keyframes tj-sw-bg {
  0%,
  45% {
    background: #c9d1cc;
  }
  48%,
  100% {
    background: var(--ok);
  }
}
@keyframes tj-sw-knob {
  0%,
  45% {
    left: 2px;
  }
  48%,
  100% {
    left: 18px;
  }
}
@keyframes tj-step-pop {
  0%,
  20% {
    opacity: 0;
    translate: 0 6px;
  }
  26%,
  92% {
    opacity: 1;
    translate: 0 0;
  }
  98%,
  100% {
    opacity: 0;
  }
}
@keyframes tj-rail-walk {
  0%,
  24% {
    background: #12332f;
    color: #fff;
  }
  25%,
  100% {
    background: transparent;
    color: #56635c;
  }
}

/* Lo que trae: una tarjeta por sección del riel. */
.tj-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 100%);
  margin: 48px auto 0;
  padding: 0;
  text-align: left;
}
.tj-grid li {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.tj-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f2f6ee;
  color: var(--ink);
}
.tj-ic svg {
  width: 20px;
  height: 20px;
}
.tj-grid h3 {
  margin: 16px 0 0;
  font-size: 17px;
  letter-spacing: -0.025em;
}
.tj-grid p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
  text-wrap: pretty;
}
.tj-grid a,
.tj-bill a {
  color: #205d42;
  font-weight: 600;
}
.tj-bill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px auto 0;
  padding: 12px 18px;
  border-radius: 99px;
  background: #eef4ec;
  color: var(--ink-2);
  font-size: 14.5px;
}
.tj-bill svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ok);
}

/* Contactos: el formulario para sumar una persona. */
.tj-form {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  font-size: 13.5px;
}
.tj-form .tj-title {
  margin: 0 0 4px;
}
.tj-field {
  display: grid;
  gap: 3px;
}
.tj-field small {
  color: var(--ink-3);
  font-size: 12px;
}
.tj-field b {
  overflow: hidden;
  padding: 9px 12px;
  border: 1px solid #dfe5e1;
  border-radius: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tj-area b {
  min-height: 58px;
  white-space: normal;
}
.tj-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.tj-actions i {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-style: normal;
  font-weight: 600;
}
.tj-actions i.ok {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.tj-form .tj-src {
  margin-top: 2px;
}

/* Argentina y Brasil: cada columna con su empresa de ejemplo. */
.tj-flag {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: center;
  gap: 2px 12px;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6f8f3;
}
.tj-flag img {
  grid-row: 1 / 3;
  border-radius: 2px;
}
.tj-flag small {
  color: var(--ink-3);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.tj-one {
  grid-template-columns: minmax(0, 1fr);
  width: min(560px, 100%);
}

@media (max-width: 1139px) {
  .tj-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .tj-live {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .tj-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tj-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }
  .tj-row small {
    display: none;
  }
  .tj-tiles {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tj-bill {
    border-radius: 16px;
  }
}
