/* Calculadora Shopify Plus. Mismo lenguaje que el resto del sitio:
   rotulos monoespaciados, filo de 1px, lima solo donde hay que mirar. */

.ts-calc {
  --ts-acento: #C6FF3D;
  --ts-filo: #262A31;
  --ts-panel: #111317;
  --ts-texto: #C9CED6;
  --ts-tenue: #8A919C;
  font-family: "Inter Tight", Inter, sans-serif;
  color: var(--ts-texto);
  width: 100%;
}

.ts-calc__eyebrow,
.ts-calc__cat {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ts-tenue);
  padding-left: 32px;
  position: relative;
}
.ts-calc__eyebrow::before,
.ts-calc__cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 1px;
  background: var(--ts-acento);
}

/* -- Portada -- */

.ts-calc__intro { max-width: 620px; }

.ts-calc__titulo {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin: 20px 0 0;
}

.ts-calc__texto {
  font-size: 17px;
  line-height: 1.6;
  margin: 18px 0 0;
  max-width: 52ch;
}

.ts-calc__empezar,
.ts-calc__enviar,
.ts-calc__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ts-acento);
  color: #0A0B0D;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ts-calc__empezar:hover,
.ts-calc__enviar:hover,
.ts-calc__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(198, 255, 61, .16);
}
.ts-calc__enviar[disabled] { opacity: .6; cursor: wait; transform: none; }

.ts-calc__apuntes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 26px 0 0;
  padding: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ts-tenue);
}
.ts-calc__apuntes li { position: relative; padding-left: 16px; }
.ts-calc__apuntes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ts-acento);
}

/* -- Formulario -- */

.ts-calc__form {
  background: var(--ts-panel);
  border: 1px solid var(--ts-filo);
  border-radius: 18px;
  padding: 26px 30px 30px;
  max-width: 760px;
}

.ts-calc__cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ts-tenue);
}
.ts-calc__n b { color: #FFFFFF; font-weight: 500; }

.ts-calc__estado { transition: color .2s ease; }
.ts-calc__estado[data-banda="plus"] { color: var(--ts-acento); }
.ts-calc__estado[data-banda="gris"] { color: #E8C547; }
.ts-calc__estado[data-banda="advanced"] { color: var(--ts-tenue); }

.ts-calc__barra {
  height: 2px;
  background: var(--ts-filo);
  margin: 14px 0 26px;
  overflow: hidden;
}
.ts-calc__barra i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ts-acento);
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

.ts-calc__paso { border: 0; margin: 0; padding: 0; min-width: 0; }

.ts-calc__pregunta {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 14px 0 0;
}

.ts-calc__ayuda { font-size: 15px; line-height: 1.55; margin: 10px 0 0; color: var(--ts-tenue); }

.ts-calc__ops { display: flex; flex-direction: column; gap: 8px; margin: 24px 0 0; }

.ts-calc__op {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--ts-filo);
  border-radius: 12px;
  cursor: pointer;
  font-size: 15.5px;
  line-height: 1.4;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.ts-calc__op:hover { border-color: rgba(198, 255, 61, .4); transform: translateX(2px); }
.ts-calc__op input { position: absolute; opacity: 0; width: 0; height: 0; }

.ts-calc__marca {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ts-filo);
  border-radius: 50%;
  position: relative;
  transition: border-color .16s ease;
}
.ts-calc__op:has(input:checked) {
  border-color: var(--ts-acento);
  background: rgba(198, 255, 61, .05);
}
.ts-calc__op:has(input:checked) .ts-calc__marca { border-color: var(--ts-acento); }
.ts-calc__op:has(input:checked) .ts-calc__marca::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ts-acento);
}
.ts-calc__op:has(input:focus-visible) { outline: 2px solid var(--ts-acento); outline-offset: 3px; }
.ts-calc__op-t { color: #FFFFFF; }

.ts-calc__nav { display: flex; align-items: center; gap: 20px; margin: 24px 0 0; }
.ts-calc__nav--final { justify-content: space-between; flex-wrap: wrap; }

.ts-calc__atras {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ts-tenue);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .16s ease;
}
.ts-calc__atras:hover { color: #FFFFFF; }

/* -- Paso de datos -- */

.ts-calc__campos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 24px 0 0;
}
.ts-calc__campo { display: flex; flex-direction: column; gap: 7px; }
.ts-calc__campo span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ts-tenue);
}
.ts-calc__campo input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ts-filo);
  padding: 9px 0;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 15.5px;
  border-radius: 0;
  transition: border-color .16s ease;
}
.ts-calc__campo input:focus { outline: none; border-bottom-color: var(--ts-acento); }
.ts-calc__campo input::placeholder { color: #4A5058; }

.ts-calc__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ts-calc__legal { font-size: 13px; line-height: 1.6; color: var(--ts-tenue); margin: 18px 0 0; }
.ts-calc__error { color: #FF6B57; font-size: 14.5px; margin: 14px 0 0; }

/* -- Resultado -- */

.ts-calc__res {
  background: var(--ts-panel);
  border: 1px solid var(--ts-filo);
  border-radius: 18px;
  padding: 30px 32px 34px;
  max-width: 760px;
  position: relative;
}
.ts-calc__res::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  top: -1px;
  right: -1px;
  border-top: 1px solid var(--ts-acento);
  border-right: 1px solid var(--ts-acento);
  border-top-right-radius: 18px;
  pointer-events: none;
}

.ts-calc__res-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ts-calc__marcador { font-family: "Inter Tight", Inter, sans-serif; line-height: 1; }
.ts-calc__marcador b { font-size: 44px; font-weight: 600; color: #FFFFFF; letter-spacing: -0.03em; }
.ts-calc__marcador span { font-size: 15px; color: var(--ts-tenue); margin-left: 4px; }

.ts-calc__barra--res { margin: 18px 0 20px; height: 3px; }

.ts-calc__rotulo {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--ts-filo);
  border-radius: 999px;
  padding: 5px 13px;
  color: var(--ts-tenue);
}
.ts-calc__rotulo[data-banda="plus"] { color: var(--ts-acento); border-color: var(--ts-acento); }
.ts-calc__rotulo[data-banda="gris"] { color: #E8C547; border-color: #E8C547; }

.ts-calc__res-t {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  color: #FFFFFF;
  margin: 18px 0 0;
}
.ts-calc__res-b { font-size: 16px; line-height: 1.7; margin: 16px 0 0; max-width: 60ch; }
.ts-calc__res-n { font-size: 15.5px; line-height: 1.65; margin: 26px 0 0; color: #FFFFFF; }

.ts-calc__motivos { margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--ts-filo); }
.ts-calc__motivos ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ts-calc__motivos li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
}
.ts-calc__motivo-t { font-size: 15px; color: #FFFFFF; }
.ts-calc__motivo-p {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ts-tenue);
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
}
.ts-calc__motivo-r { font-size: 14px; color: var(--ts-tenue); grid-column: 1; }
.ts-calc__motivo-b { grid-column: 1 / 3; height: 2px; background: var(--ts-filo); margin-top: 6px; }
.ts-calc__motivo-b i { display: block; height: 100%; background: var(--ts-acento); }

.ts-calc__res-acciones { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 4px; }
.ts-calc__informe {
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid var(--ts-filo);
  padding-bottom: 3px;
  transition: border-color .16s ease;
}
.ts-calc__informe:hover { border-bottom-color: var(--ts-acento); }

@media (max-width: 767px) {
  .ts-calc__form, .ts-calc__res { padding: 22px 20px 26px; border-radius: 14px; }
  .ts-calc__campos { grid-template-columns: 1fr; }
  .ts-calc__op { padding: 14px 15px; font-size: 15px; }
  .ts-calc__res-cab { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ts-calc__nav--final { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ts-calc__barra i,
  .ts-calc__op,
  .ts-calc__empezar,
  .ts-calc__enviar,
  .ts-calc__cta { transition: none; }
}
