/* Firma: piezas comunes */
.fir-sig { display: flex; align-items: center; gap: 12px; min-width: 0; color: #1f2547; font-size: 11px; line-height: 1.4; text-align: left; }
.fir-sig__txt { display: grid; gap: 1px; min-width: 0; }
.fir-sig b { display: block; color: #070d38; font-size: 13px; font-weight: 800; }
.fir-sig small { display: block; color: #5b6280; font-size: 10.5px; }
.fir-sig a { color: #1d5bd8; text-decoration: underline; text-underline-offset: 2px; cursor: default; }
.fir-sig__links { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: 10.5px; }
.fir-sig__ph { flex: none; border-radius: 50%; object-fit: cover; }
.fir-sig__head { display: flex; align-items: center; gap: 9px; }
.fir-ok {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #16a34a 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='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8.4l2.6 2.4L12 5.4'/></svg>") center / 14px no-repeat;
}
.fir-logo { display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 6px; }
.fir-logo svg { width: 100%; height: 100%; }
.fir-logo--gmail { background: #fff; box-shadow: inset 0 0 0 1px #eceef5; }
.fir-logo--apple { background: linear-gradient(180deg, #4fb6ff 0%, #1f6fff 100%); }
.fir-logo--apple svg { width: 78%; height: 78%; }
.fir-wm {
  display: grid;
  flex: none;
  place-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1;
}
.fir-wm small { margin-top: 3px; color: #b9a8ff; font-size: 8px; font-weight: 700; letter-spacing: .3em; }
.fir-wm--s { padding: 6px 8px; font-size: 10px; }

/* Hero: cliente de correo */
.fir-hero { position: relative; width: 100%; max-width: 540px; padding: 34px 0 44px; isolation: isolate; }
.fir-hero::before {
  content: "";
  position: absolute;
  inset: 0 -30px 10px 40px;
  z-index: -1;
  border-radius: 40px;
  background: linear-gradient(140deg, #e3edff 0%, #efe9ff 60%, #fff0e6 100%);
}
.fir-mail__fields { display: grid; padding: 4px 18px; border-bottom: 1px solid #eef0f5; }
.fir-mail__fields > span { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f3f4f8; }
.fir-mail__fields > span:last-child { border-bottom: 0; }
.fir-mail__fields small { flex: none; width: 52px; color: #8a90a6; font-size: 11px; }
.fir-mail__fields b { min-width: 0; overflow: hidden; color: #1f2547; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.fir-mail__body { padding: 16px 18px 6px; color: #2b3160; font-size: 13px; line-height: 1.55; }
.fir-mail__body p { margin: 0 0 10px; }
.fir-sig--hero { margin-top: 16px; padding: 14px 0 6px; border-top: 1px dashed #dfe2ec; gap: 16px; }
.fir-sig--hero .fir-sig__logo { flex: none; width: 96px; height: auto; padding-right: 14px; border-right: 2px solid #0b4f8a; }
.fir-sig--hero b { font-size: 14px; }
.fir-sig--hero small { font-size: 11.5px; }
.fir-sig--hero .fir-sig__links { font-size: 11.5px; }
.fir-mail__foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px 16px; }
.fir-mail__foot .ux-btn { padding: 8px 18px; border-radius: 999px; }
.fir-mail__foot i { width: 16px; height: 16px; border-radius: 4px; background: #eceef5; }
.fir-hero__copy { right: -18px; top: 0; }
.fir-hero__clients { left: -26px; bottom: 6px; gap: 8px; }
.fir-hero__clients b { font-size: 11.5px; }

/* Galería de plantillas */
.fir-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fir-tpl { display: grid; margin: 0; overflow: hidden; border: 1px solid #eceef5; border-radius: 20px; background: #fff; }
.fir-tpl__stage {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 190px;
  padding: 50px 22px 22px;
  background: #fbfbfd;
  border-bottom: 1px solid #f0f1f6;
}
.fir-tpl__stage::before,
.fir-tpl__stage::after { content: ""; position: absolute; left: 22px; height: 7px; border-radius: 4px; background: #e6e8f0; }
.fir-tpl__stage::before { top: 20px; width: 62%; }
.fir-tpl__stage::after { top: 33px; width: 40%; }
.fir-tpl figcaption { display: grid; gap: 2px; padding: 16px 20px 18px; }
.fir-tpl figcaption b { font-size: 16px; font-weight: 800; }
.fir-tpl figcaption small { color: #5b6280; font-size: 14px; }
.fir-note { max-width: 640px; margin: 30px auto 0; color: #4b5372; font-size: 15px; line-height: 1.55; text-align: center; }

.fir-s--classic .fir-wm { margin-right: 2px; }
.fir-s--classic .fir-sig__txt { padding-left: 12px; border-left: 2px solid #6D4AFF; }
.fir-soc { display: flex; gap: 5px; margin-top: 6px; }
.fir-soc i {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.fir-s--dir { display: grid; gap: 8px; }
.fir-dir {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  padding-top: 8px;
  border-top: 2px solid #070d38;
}
.fir-dir small { color: #8a90a6; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fir-dir a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fir-s--store .fir-sig__ph { border-radius: 50%; }
.fir-sig__btn {
  justify-self: start;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #6ab04c;
  color: #fff !important;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none !important;
}
.fir-s--banner { display: grid; gap: 10px; }
.fir-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(110deg, #6D4AFF 0%, #FB2B7D 100%);
  color: #fff;
}
.fir-banner b { color: #fff; font-size: 11.5px; }
.fir-banner small { flex: none; color: rgb(255 255 255 / 85%); font-size: 10px; }
.fir-s--card {
  padding: 12px;
  border: 1px solid #e6e8f1;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(16 24 64 / 7%);
}
.fir-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.fir-pills a {
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef3ff;
  color: #1d5bd8;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

/* De la tarjeta a la firma */
.fir-sync { display: grid; grid-template-columns: 186px minmax(0, 1fr); gap: 22px; align-items: center; width: 100%; max-width: 560px; }
.fir-sync__phone { width: 186px; padding: 7px; border-radius: 32px; }
.fir-sync__phone .ux-phone__screen { border-radius: 26px; }
.fir-sync__phone .ux-pcard__cover { height: 70px; }
.fir-sync__phone .ux-pcard__ava { width: 60px; height: 60px; margin-top: -32px; }
.fir-sync__phone .ux-pcard b { font-size: 13px; }
.fir-sync__phone .ux-pcard__row { font-size: 9.5px; }
.fir-sync__map { display: grid; gap: 12px; min-width: 0; }
.fir-sync__tag { justify-self: start; padding: 4px 10px; border-radius: 999px; background: #fff; color: #5a22e9; font-size: 11px; font-weight: 800; }
.fir-fields {
  display: grid;
  margin: 0;
  padding: 6px 14px;
  border-radius: 14px;
  background: #fff;
  list-style: none;
  box-shadow: 0 10px 24px rgb(16 24 64 / 7%);
}
.fir-fields li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f1f2f6; font-size: 11.5px; }
.fir-fields li:last-child { border-bottom: 0; }
.fir-fields small { flex: none; width: 66px; color: #8a90a6; font-size: 10.5px; }
.fir-fields b { flex: 1; min-width: 0; overflow: hidden; color: #1f2547; text-overflow: ellipsis; white-space: nowrap; }
.fir-fields li::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e9f8ef 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.4' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8.4l2.6 2.4L12 5.4'/></svg>") center / 9px no-repeat;
}
.fir-sync__out { position: relative; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 16px 34px rgb(16 24 64 / 12%); }
.fir-sync__out::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  width: 2px;
  height: 12px;
  background: #b9a8ff;
}

/* Editor */
.fir-editor { max-width: 560px; }
.fir-ed__texts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; }
.fir-ed__texts .ux-panel__t { margin: 0; align-self: center; }
.fir-langs { display: flex; justify-content: flex-end; gap: 4px; }
.fir-langs i { padding: 2px 6px; border-radius: 6px; background: #f1f2f6; color: #5b6280; font-size: 9.5px; font-style: normal; font-weight: 800; }
.fir-langs i.is-on { background: #2563eb; color: #fff; }
.fir-ed__texts label { display: grid; grid-column: 1 / -1; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; align-items: center; min-width: 0; }
.fir-ed__texts label small { color: #6b7190; font-size: 10px; font-weight: 700; line-height: 1.2; }
.fir-ed__texts .ux-input { overflow: hidden; white-space: nowrap; }
.fir-ed__logo { display: flex; align-items: center; gap: 10px; }
.fir-ed__logo img { flex: none; border-radius: 50%; }
.fir-ed__logo > span:nth-child(2) { flex: 1; min-width: 0; }
.fir-ed__logo b { display: block; font-size: 11.5px; }
.fir-ed__logo small { display: block; color: #6b7190; font-size: 10px; line-height: 1.35; }

/* Copiar y pegar */
.fir-copy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.fir-copy__b {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e6e8f1;
  border-radius: 16px;
  background: #fff;
}
.fir-copy__b i { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #eef3ff; }
.fir-copy__b svg { width: 18px; height: 18px; fill: none; stroke: #2563eb; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fir-copy__b b { display: block; font-size: 15px; }
.fir-copy__b small { display: block; color: #5b6280; font-size: 13px; }
.fir-copy__b.is-on { border-color: #2563eb; box-shadow: 0 0 0 3px #dbe6ff; }
.fir-copy__b.is-on i { background: #2563eb; }
.fir-copy__b.is-on svg { stroke: #fff; }
.fir-clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fir-client { display: grid; align-content: start; gap: 12px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 1px 0 #eceef5, 0 14px 34px rgb(16 24 64 / 6%); }
.fir-client header { display: flex; align-items: center; gap: 10px; }
.fir-client header b { font-size: 18px; font-weight: 800; }
.fir-client header .fir-logo { width: 28px; height: 28px; border-radius: 8px; }
.fir-client > p { margin: 0; color: #5b6280; font-size: 15px; line-height: 1.55; }
.fir-client > p.fir-path {
  justify-self: start;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f1f2f6;
  color: #2b3160;
  font-size: 12.5px;
  font-weight: 700;
}
.fir-box { overflow: hidden; border: 1px solid #e6e8f1; border-radius: 12px; }
.fir-box__tb { display: flex; gap: 6px; padding: 7px 10px; border-bottom: 1px solid #eef0f5; background: #f8f9fc; }
.fir-box__tb i { width: 14px; height: 8px; border-radius: 3px; background: #dfe2ec; }
.fir-box .fir-sig { padding: 12px; }
.fir-s--mini img { flex: none; padding-right: 10px; border-right: 2px solid #0b4f8a; }
.fir-s--mini b { font-size: 12px; }

/* Equipo */
.fir-more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 0; }
.fir-more .px-tag { margin: 0; }
.fir-more a { color: #2563eb; font-size: 15px; font-weight: 700; text-decoration: none; }
.fir-more a::after { content: " →"; }
.fir-team { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: center; width: 100%; max-width: 540px; }
.fir-team__brand { display: grid; gap: 10px; box-shadow: 0 16px 34px rgb(16 24 64 / 10%); }
.fir-team__brand .ux-panel__t { margin: 0; }
.fir-team__row { display: flex; align-items: center; gap: 8px; }
.fir-team__row > small { width: 62px; flex: none; color: #6b7190; font-size: 10.5px; }
.fir-team__row .ux-input { flex: 1; min-width: 0; font-size: 10.5px; }
.fir-team__sw { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #6D4AFF; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #d9cfff; }
.fir-team__list { display: grid; gap: 10px; }
.fir-s--team {
  padding: 11px 12px;
  border-left: 4px solid #6D4AFF;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgb(16 24 64 / 8%);
}
.fir-s--team b { font-size: 12px; }
.fir-s--team small { font-size: 10px; }
.fir-s--team::after { content: "NORTE"; margin-left: auto; color: #6D4AFF; font-size: 9px; font-weight: 900; letter-spacing: .14em; }

@media (max-width: 1180px) and (min-width: 900px) {
  .fir-sync { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
  .fir-sync__phone { width: 150px; }
  .fir-sync__phone .ux-pcard__row { padding: 6px 7px; font-size: 8.5px; }
  .fir-fields small { width: 56px; }
  .fir-s--team::after { display: none; }
  .fir-ed__texts label { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
@media (max-width: 1080px) {
  .fir-copy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fir-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fir-hero__clients { left: -8px; }
  .fir-hero__copy { right: -6px; }
}
@media (max-width: 899px) {
  .fir-clients { grid-template-columns: minmax(0, 1fr); }
  .fir-hero { margin-inline: auto; }
}
@media (max-width: 560px) {
  .fir-hero { padding: 30px 0 64px; }
  .fir-hero::before { inset: 0 -10px 20px; }
  .fir-hero__copy { right: 0; top: -6px; transform: scale(.9); transform-origin: right top; }
  .fir-hero__clients { left: 0; bottom: 0; transform: scale(.9); transform-origin: left bottom; }
  .fir-mail__body { font-size: 12px; }
  .fir-sig--hero { gap: 10px; }
  .fir-sig--hero .fir-sig__logo { width: 72px; padding-right: 10px; }
  .fir-gallery,
  .fir-copy { grid-template-columns: minmax(0, 1fr); }
  .fir-sync { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .fir-sync__map { width: 100%; }
  .fir-team { grid-template-columns: minmax(0, 1fr); }
  .fir-ed__texts label { grid-template-columns: 76px minmax(0, 1fr); }
}
