/*
 * Clics en enlaces (centr.ar/clics/). La portada: el correo que mandaste, con un enlace seguido y
 * otro no; el cursor toca el seguido, sale una onda y suma «1 clic», y al lado se anota cada clic
 * con adónde llevaba y desde qué equipo. Ciclo de 12 s: primer clic al 22 %, segundo al 52 %,
 * aviso de reenvío al 70 %.
 */
.cl-live {
  --T: 12s;
  background:
    radial-gradient(420px 260px at 100% 0, rgb(47 95 158 / 0.07), transparent 70%),
    #fff;
}

/* El correo. */
.cl-mail {
  position: relative;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: #202124;
  font-size: 14px;
  line-height: 1.5;
}
.cl-mh {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cl-mh img,
.cl-ph img {
  border-radius: 50%;
}
.cl-mh span,
.cl-ph span {
  display: grid;
  min-width: 0;
}
.cl-mh b,
.cl-ph b {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.cl-mh small,
.cl-ph small {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-mail p {
  margin: 0 0 8px;
}
.cl-lk {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f6f8f3;
  color: #1a56c4;
}
.cl-lk svg {
  flex: none;
  width: 15px;
  height: 15px;
}
.cl-lk u {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-lk.on {
  position: relative;
  background: #eaf1fb;
  outline: 1.5px solid rgb(26 86 196 / 0.3);
}
.cl-badge,
.cl-off {
  flex: none;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  white-space: nowrap;
}
.cl-badge {
  background: var(--ok);
  color: #fff;
  font-weight: 650;
}
.cl-off {
  background: #eef1ee;
  color: var(--ink-3);
}
.cl-sig {
  color: var(--ink-3);
}
/* La onda del clic, sobre el enlace con seguimiento. */
.cl-ring {
  position: absolute;
  left: 120px;
  top: 162px;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 2px solid rgb(26 86 196 / 0.5);
  opacity: 0;
  pointer-events: none;
}
.cl-cur {
  position: absolute;
  left: 120px;
  top: 162px;
  z-index: 1;
  width: 22px;
  height: 22px;
  opacity: 0;
}

/* Los clics de ese correo. */
.cl-log,
.cl-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.cl-lh {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cl-lh > span:last-child {
  display: grid;
  min-width: 0;
}
.cl-lh > span:last-child b {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-lh small {
  color: var(--ink-3);
  font-size: 12.5px;
}
.cl-big {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #eaf1fb;
  color: #1a56c4;
}
.cl-big b {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.cl-big small {
  margin-top: -10px;
  color: #1a56c4;
  font-size: 11px;
  font-weight: 600;
}
.cl-hits {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.cl-hits li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f8f3;
  font-size: 13px;
}
.cl-hits li > span:not(.cl-ic) {
  display: grid;
  min-width: 0;
}
.cl-hits small {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-hits time {
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.cl-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e7eef8;
  color: #2f5f9e;
}
.cl-ic svg {
  width: 15px;
  height: 15px;
}
.cl-hits .cl-open .cl-ic {
  background: #e5f2e8;
  color: var(--ok);
}
.cl-hits .cl-sent .cl-ic {
  background: #eef1ee;
  color: var(--ink-3);
}
.cl-fwd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdf0eb;
  color: #8a3a26;
  font-size: 13px;
  line-height: 1.4;
}
.cl-fwd svg {
  flex: none;
  width: 18px;
  height: 18px;
}

/* Lo que cambia con el clic: el número pasa de 0 a 1 y después a 2. */
@media (prefers-reduced-motion: no-preference) {
  .cl-live .cl-cur {
    animation: cl-cur var(--T) infinite both;
  }
  .cl-live .cl-ring {
    animation: cl-ring var(--T) infinite both;
  }
  .cl-live .cl-badge {
    animation: cl-badge var(--T) infinite both;
  }
  .cl-live .cl-lk.on {
    animation: cl-press var(--T) infinite both;
  }
  .cl-live .h1 {
    animation: cl-h1 var(--T) infinite both;
  }
  .cl-live .h2 {
    animation: cl-h2 var(--T) infinite both;
  }
  .cl-live .cl-fwd {
    animation: cl-fwd var(--T) infinite both;
  }
  .cl-live .cl-big {
    animation: cl-big var(--T) infinite both;
  }
}
@keyframes cl-cur {
  0%,
  6% {
    opacity: 0;
    translate: 160px 90px;
  }
  10% {
    opacity: 1;
  }
  20% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  22% {
    scale: 0.82;
  }
  24% {
    scale: 1;
  }
  34%,
  100% {
    opacity: 0;
    translate: 20px 30px;
  }
}
@keyframes cl-ring {
  0%,
  21% {
    opacity: 0;
    scale: 0.4;
  }
  23% {
    opacity: 1;
    scale: 0.6;
  }
  32%,
  100% {
    opacity: 0;
    scale: 1.8;
  }
}
@keyframes cl-press {
  0%,
  21%,
  28%,
  100% {
    background: #eaf1fb;
  }
  23% {
    background: #d6e4f8;
  }
}
@keyframes cl-badge {
  0%,
  22% {
    opacity: 0;
    scale: 0.5;
  }
  25% {
    opacity: 1;
    scale: 1.15;
  }
  28%,
  96% {
    opacity: 1;
    scale: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes cl-h1 {
  0%,
  24% {
    opacity: 0;
    translate: 0 -8px;
  }
  28%,
  96% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes cl-h2 {
  0%,
  52% {
    opacity: 0;
    translate: 0 -8px;
  }
  56%,
  96% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes cl-fwd {
  0%,
  68% {
    opacity: 0;
    translate: 0 8px;
  }
  72%,
  96% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes cl-big {
  0%,
  24%,
  30%,
  52%,
  60%,
  100% {
    scale: 1;
  }
  26%,
  55% {
    scale: 1.1;
  }
}

/* Paso 1: el cursor elige la primera opción. */
.cl-q {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cl-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.cl-opt i {
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #9aa69f;
  border-radius: 50%;
}
.cl-opt.o1 {
  border-color: rgb(22 128 76 / 0.45);
}
.cl-opt.o1 i {
  border: 5px solid var(--ok);
}
.cl-fx-mode .rdr-cur {
  left: 30px;
  top: 70px;
}

/* Paso 2: el diálogo «Enlaces con seguimiento». */
.cl-fx-pick {
  gap: 8px;
}
.cl-dt {
  font-size: 13px;
}
.cl-box {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fff;
  text-overflow: ellipsis;
}
.cl-box i {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #9aa69f;
  border-radius: 4px;
  color: #fff;
}
.rdr-fx .cl-box i svg {
  width: 11px;
  height: 11px;
}
.cl-box.b1 i {
  border-color: var(--ok);
  background: var(--ok);
}
.cl-box.b2 i svg {
  opacity: 0;
}
.cl-done {
  align-self: flex-end;
  padding: 6px 14px;
  border-radius: 99px;
  background: #0b57d0;
  color: #fff;
  font-weight: 600;
}
.cl-fx-pick .rdr-cur {
  left: 24px;
  top: 52px;
}

/* Paso 3: el resumen del check suma el clic. */
.cl-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 0.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.cl-row b,
.cl-row em {
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-row em {
  color: var(--ink-3);
  font-style: normal;
}
.cl-ck {
  display: grid;
  color: var(--ok);
}
.rdr-fx .cl-ck svg {
  width: 18px;
  height: 18px;
}
.cl-hover {
  display: grid;
  align-self: flex-start;
  gap: 3px;
  margin-left: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}
.cl-pop {
  color: #a9d6ff;
  font-size: 12px;
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .cl-fx-mode .o1 {
    animation: cl-pick-on var(--s) infinite both;
  }
  .cl-fx-mode .o1 i {
    animation: cl-dot-on var(--s) infinite both;
  }
  .cl-fx-pick .b1 i {
    animation: cl-tick-bg var(--s) infinite both;
  }
  .cl-fx-pick .b1 i svg {
    animation: cl-tick var(--s) infinite both;
  }
  .cl-fx-hit .cl-pop {
    animation: cl-pop var(--s) infinite both;
  }
}
@keyframes cl-pick-on {
  0%,
  45% {
    border-color: var(--line);
  }
  48%,
  100% {
    border-color: rgb(22 128 76 / 0.45);
  }
}
@keyframes cl-dot-on {
  0%,
  45% {
    border: 1.5px solid #9aa69f;
  }
  48%,
  100% {
    border: 5px solid var(--ok);
  }
}
@keyframes cl-tick-bg {
  0%,
  45% {
    border-color: #9aa69f;
    background: transparent;
  }
  48%,
  100% {
    border-color: var(--ok);
    background: var(--ok);
  }
}
@keyframes cl-tick {
  0%,
  45% {
    opacity: 0;
  }
  48%,
  100% {
    opacity: 1;
  }
}
@keyframes cl-pop {
  0%,
  40% {
    opacity: 0;
    translate: 0 4px;
  }
  46%,
  94% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
  }
}

/* Clic por clic: el panel «Seguimiento» con los clics arriba. */
.cl-ph {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cl-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.cl-stats span {
  display: grid;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f2f6ee;
}
.cl-stats b {
  font-size: 19px;
  letter-spacing: -0.03em;
}
.cl-stats small {
  color: var(--ink-3);
  font-size: 12px;
}
.cl-tl li {
  background: transparent;
  padding: 6px 0;
}

@media (max-width: 900px) {
  .cl-live {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .cl-mail {
    font-size: 13px;
  }
  .cl-stats b {
    font-size: 16px;
  }
}
