/*
 * Datos para facturar (centr.ar/datos-para-facturar/). La portada: la tarjeta de empresa con el
 * botón junto al CUIT, el clic que lo confirma con «Copiado» y los cuatro renglones que se pegan en
 * una factura nueva. Ciclo de 10 s: el clic cae al 24 %, el pegado arranca al 42 %.
 * Lo que cambia parte del final: sin movimiento se ve copiado y pegado.
 */
.fa-live {
  --T: 10s;
  background:
    radial-gradient(420px 260px at 100% 100%, rgb(22 128 76 / 0.06), transparent 70%),
    #fff;
}

/* La tarjeta de empresa. */
.fa-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #f2f6ee;
  font-size: 13px;
}
.fa-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fa-head img {
  border-radius: 50%;
  background: #fff;
}
.fa-head span {
  display: grid;
}
.fa-head b {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.fa-head small {
  color: var(--ink-3);
  font-size: 12.5px;
}
.fa-ids {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fa-id {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fa-id small {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.fa-id svg {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}

/* El botón de copiar: su ícono y su nombre, que pasan a tilde y «Copiado». */
.fa-copy {
  position: relative;
  display: inline-grid;
}
.fa-ic {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
}
.fa-ic > *,
.fa-tip > * {
  grid-area: 1 / 1;
}
.fa-ic i {
  display: grid;
  place-items: center;
}
.fa-ic svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fa-ic .now {
  color: var(--ok);
}
.fa-ic .now svg {
  stroke-width: 2.5;
}
.fa-copy .was {
  opacity: 0;
}
.fa-bill .fa-ic {
  border-color: rgb(22 128 76 / 0.45);
  background: #e5f2e8;
}
/* Como los de Gmail, debajo del botón; se abre hacia la izquierda para no salirse de la escena. */
.fa-tip {
  position: absolute;
  right: -4px;
  top: calc(100% + 8px);
  z-index: 1;
  display: inline-grid;
  justify-items: end;
  padding: 5px 9px;
  border-radius: 7px;
  background: #3c4043;
  color: #fff;
  font-size: 11.5px;
  font-style: normal;
  white-space: nowrap;
}
.fa-tip i {
  font-style: normal;
}
.fa-cur {
  position: absolute;
  left: 172px;
  top: 16px;
  z-index: 2;
  width: 22px;
  height: 22px;
  opacity: 0;
}
.fa-pills {
  display: flex;
  gap: 6px;
}
.fa-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: #e5f2e8;
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}
.fa-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.fa-facts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
}
.fa-facts div {
  display: grid;
  gap: 1px;
}
.fa-facts dt {
  color: var(--ink-3);
  font-size: 11.5px;
}
.fa-facts dd {
  margin: 0;
  font-weight: 600;
}

/* La factura nueva donde se pegan los datos. */
.fa-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  font-size: 13px;
}
.fa-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.fa-bar svg {
  width: 17px;
  height: 17px;
  color: var(--ok);
}
.fa-bar b {
  font-size: 14px;
}
.fa-bar small {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 12px;
}
.fa-label {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fa-paste {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 106px;
  padding: 12px 14px;
  border: 1.5px solid rgb(22 128 76 / 0.45);
  border-radius: 12px;
  background: #fbfcfa;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fa-line {
  overflow: hidden;
  text-overflow: ellipsis;
}
.fa-line.l1 {
  font-weight: 650;
}
.fa-caret {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 1.5px;
  height: 16px;
  background: var(--ink);
  opacity: 0;
}
.fa-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f6f8f3;
}
.fa-row span {
  display: grid;
  min-width: 0;
}
.fa-row small {
  color: var(--ink-3);
  font-size: 11.5px;
}
.fa-row b {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fa-keys {
  position: absolute;
  right: 22px;
  top: 62px;
  display: flex;
  gap: 4px;
  opacity: 0;
}
.fa-keys kbd {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-2);
  font: 600 12px/1 inherit;
}

@media (prefers-reduced-motion: no-preference) {
  .fa-live .fa-cur {
    animation: fa-cur var(--T) infinite both;
  }
  .fa-live .fa-copy .was {
    animation: fa-was var(--T) infinite both;
  }
  .fa-live .fa-copy .now {
    animation: fa-now var(--T) infinite both;
  }
  .fa-live .fa-tip {
    animation: fa-tip var(--T) infinite both;
  }
  .fa-live .fa-bill .fa-ic {
    animation: fa-press var(--T) infinite both;
  }
  .fa-live .fa-keys {
    animation: fa-keys var(--T) infinite both;
  }
  .fa-live .fa-line.l1 {
    animation: fa-l1 var(--T) infinite both;
  }
  .fa-live .fa-line.l2 {
    animation: fa-l2 var(--T) infinite both;
  }
  .fa-live .fa-line.l3 {
    animation: fa-l3 var(--T) infinite both;
  }
  .fa-live .fa-line.l4 {
    animation: fa-l4 var(--T) infinite both;
  }
  .fa-live .fa-paste {
    animation: fa-field var(--T) infinite both;
  }
  .fa-live .fa-caret {
    animation: fa-caret var(--T) infinite both;
  }
}
@keyframes fa-cur {
  0%,
  4% {
    opacity: 0;
    translate: 90px 80px;
    scale: 1;
  }
  8% {
    opacity: 1;
  }
  20% {
    translate: 0 0;
    scale: 1;
  }
  23% {
    scale: 0.82;
  }
  25% {
    scale: 1;
  }
  36% {
    opacity: 1;
    translate: 0 0;
  }
  42%,
  100% {
    opacity: 0;
    translate: 30px 40px;
  }
}
/* El botón, antes y después del clic. */
@keyframes fa-was {
  0%,
  23% {
    opacity: 1;
  }
  25%,
  100% {
    opacity: 0;
  }
}
@keyframes fa-now {
  0%,
  23% {
    opacity: 0;
    scale: 0.6;
  }
  25% {
    opacity: 1;
    scale: 1.15;
  }
  28%,
  100% {
    opacity: 1;
    scale: 1;
  }
}
@keyframes fa-tip {
  0%,
  12% {
    opacity: 0;
    translate: 0 -4px;
  }
  16%,
  46% {
    opacity: 1;
    translate: 0 0;
  }
  50%,
  100% {
    opacity: 0;
    translate: 0 0;
  }
}
@keyframes fa-press {
  0%,
  22%,
  27%,
  100% {
    scale: 1;
  }
  24% {
    scale: 0.88;
  }
}
@keyframes fa-keys {
  0%,
  38% {
    opacity: 0;
    translate: 0 6px;
  }
  41%,
  50% {
    opacity: 1;
    translate: 0 0;
  }
  54%,
  100% {
    opacity: 0;
  }
}
/* Los renglones se pegan uno detrás del otro y quedan hasta que vuelve a empezar. */
@keyframes fa-l1 {
  0%,
  44% {
    opacity: 0;
    translate: -6px 0;
  }
  47%,
  95% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fa-l2 {
  0%,
  48% {
    opacity: 0;
    translate: -6px 0;
  }
  51%,
  95% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fa-l3 {
  0%,
  52% {
    opacity: 0;
    translate: -6px 0;
  }
  55%,
  95% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fa-l4 {
  0%,
  56% {
    opacity: 0;
    translate: -6px 0;
  }
  59%,
  95% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fa-field {
  0%,
  40% {
    border-color: var(--line);
  }
  44%,
  100% {
    border-color: rgb(22 128 76 / 0.45);
  }
}
@keyframes fa-caret {
  0%,
  40%,
  60%,
  100% {
    opacity: 0;
  }
  42%,
  58% {
    opacity: 1;
  }
}

/* Paso 1: la tarjeta breve con «Ver tarjeta». */
.fa-mail {
  display: grid;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff;
}
.fa-mail small {
  color: var(--ink-3);
}
.fa-brief {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.fa-brief img {
  border-radius: 50%;
}
.fa-brief > span {
  display: grid;
  flex: 1;
  min-width: 0;
}
.fa-brief small {
  color: var(--ink-3);
  font-size: 11px;
}
.fa-see {
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}
.fa-fx-open .rdr-cur {
  left: auto;
  right: 34px;
  top: 112px;
}

/* Paso 2: el botón junto al CUIT. */
.fa-fx-copy {
  align-items: center;
}
.fa-fx-copy .fa-ids {
  margin-top: 26px;
}
.fa-fx-copy .rdr-cur {
  left: calc(50% + 70px);
  top: 104px;
}
.fa-fx-copy .fa-copy .was {
  opacity: 0;
}

/* Paso 3: los renglones pegados. */
.fa-fx-paste .fa-paste {
  min-height: 0;
  padding: 10px 12px;
  font-size: 11.5px;
}

@media (prefers-reduced-motion: no-preference) {
  .fa-fx-open .fa-brief {
    animation: fa-step-pop var(--s) infinite both;
  }
  .fa-fx-copy .fa-copy .was {
    animation: fa-step-was var(--s) infinite both;
  }
  .fa-fx-copy .fa-copy .now {
    animation: fa-step-now var(--s) infinite both;
  }
  .fa-fx-paste .fa-line.l1 {
    animation: fa-step-l1 var(--s) infinite both;
  }
  .fa-fx-paste .fa-line.l2 {
    animation: fa-step-l2 var(--s) infinite both;
  }
  .fa-fx-paste .fa-line.l3 {
    animation: fa-step-l3 var(--s) infinite both;
  }
  .fa-fx-paste .fa-line.l4 {
    animation: fa-step-l4 var(--s) infinite both;
  }
}
@keyframes fa-step-pop {
  0%,
  14% {
    opacity: 0;
    translate: 0 6px;
  }
  20%,
  92% {
    opacity: 1;
    translate: 0 0;
  }
  98%,
  100% {
    opacity: 0;
  }
}
@keyframes fa-step-was {
  0%,
  45% {
    opacity: 1;
  }
  47%,
  100% {
    opacity: 0;
  }
}
@keyframes fa-step-now {
  0%,
  45% {
    opacity: 0;
    scale: 0.6;
  }
  47% {
    opacity: 1;
    scale: 1.15;
  }
  50%,
  100% {
    opacity: 1;
    scale: 1;
  }
}
@keyframes fa-step-l1 {
  0%,
  20% {
    opacity: 0;
  }
  26%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fa-step-l2 {
  0%,
  30% {
    opacity: 0;
  }
  36%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fa-step-l3 {
  0%,
  40% {
    opacity: 0;
  }
  46%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fa-step-l4 {
  0%,
  50% {
    opacity: 0;
  }
  56%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Cada dato, a mano: el CUIT, el domicilio y la condición de IVA. */
.fa-parts {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  font-size: 13.5px;
}
.fa-part {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f6f8f3;
}
.fa-part > small {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fa-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Acá los botones se ven copiados, sin su nombre. */
.fa-parts .fa-tip {
  display: none;
}
.fa-parts .fa-ic {
  width: 28px;
  height: 28px;
}
.fa-out {
  color: var(--ink-3);
  font-size: 12.5px;
  font-style: normal;
}
.fa-part:first-child .fa-out {
  color: var(--ok);
  font-weight: 600;
}
.fa-vat b {
  font-size: 15px;
  letter-spacing: -0.02em;
}

/* El add-on del Marketplace: toda la tarjeta es el enlace. */
.fa-addon {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(860px, 100%);
  margin: 40px auto 0;
  padding: 24px 26px;
  border-radius: 24px;
  background:
    radial-gradient(420px 220px at 100% 0, rgb(46 140 102 / 0.35), transparent 70%),
    linear-gradient(160deg, #173d38, #10302c 60%);
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: translate 0.25s var(--ease, ease);
}
.fa-addon:hover {
  translate: 0 -2px;
}
.fa-addon:focus-visible {
  outline: 3px solid #487c48;
  outline-offset: 3px;
}
.fa-addon-ic {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.1);
}
.fa-addon-ic svg {
  width: 26px;
  height: 26px;
}
.fa-addon-copy {
  display: grid;
  gap: 4px;
}
.fa-addon-copy small {
  color: #9cc4b2;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fa-addon-copy b {
  font-size: 18px;
  letter-spacing: -0.02em;
}
.fa-addon-copy span {
  color: #c5d8cf;
  font-size: 14.5px;
  line-height: 1.55;
  text-wrap: pretty;
}
.fa-addon-go {
  padding: 10px 16px;
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.fa-addon-go::after {
  content: ' →';
}

@media (max-width: 900px) {
  .fa-live {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .fa-addon {
    grid-template-columns: minmax(0, 1fr);
  }
  .fa-addon-go {
    justify-self: start;
  }
  .fa-bar small {
    display: none;
  }
}

/* El aviso muestra sólo «Copiado»: el nombre del botón, oculto, le daría su ancho. */
.fa-tip .was {
  display: none;
}
