/* Release UX A 14: contenido auxiliar visible en relato y contacto. */
[data-ux-step-one-only][hidden] { display: none !important; }
.tayco-form-ux {
  --ux-green: #176b38;
  --ux-green-hover: #10572d;
  --ux-green-soft: #eaf6ee;
  --ux-ink: #17231c;
  --ux-muted: #526159;
  --ux-border: #aebbb4;
  --ux-error: #a51d2d;
  --ux-focus: #075fd8;
  width: min(100%, 720px);
  margin: 0 auto 24px;
  padding: clamp(20px, 5vw, 40px);
  border: 1px solid #d8e1dc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 55, 36, .10);
  color: var(--ux-ink);
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}
.tayco-form-ux, .tayco-form-ux * { box-sizing: border-box; }
.tayco-form-ux [hidden] { display: none !important; }
.tayco-form-ux .ux-screen { width: 100%; }
.tayco-form-ux .ux-form__title,
.tayco-form-ux .ux-screen__title {
  margin: 0 0 12px;
  color: var(--ux-ink);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
.tayco-form-ux .ux-form__title { font-size: clamp(24px, 5vw, 34px); }
.tayco-form-ux .ux-screen__title { font-size: clamp(21px, 4vw, 28px); }
.tayco-form-ux .ux-screen__title:focus { outline: 3px solid var(--ux-focus); outline-offset: 4px; }
.tayco-form-ux .ux-screen__help {
  margin: 0 0 24px;
  color: var(--ux-muted);
  font-size: 16px;
  line-height: 1.55;
}
.tayco-form-ux .ux-field { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.tayco-form-ux label,
.tayco-form-ux legend {
  display: block;
  color: var(--ux-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.tayco-form-ux input[type="text"],
.tayco-form-ux input[type="email"],
.tayco-form-ux input[type="tel"],
.tayco-form-ux input[type="search"],
.tayco-form-ux textarea,
.tayco-form-ux select,
.tayco-form-ux .ux-select-trigger {
  display: block;
  width: 100% !important;
  min-height: 48px;
  margin: 8px 0 0;
  padding: 11px 13px;
  border: 1.5px solid var(--ux-border);
  border-radius: 9px;
  background: #fff;
  color: var(--ux-ink);
  font: inherit;
  font-size: 16px !important;
  line-height: 1.4;
  text-align: left;
}
.tayco-form-ux textarea { min-height: 144px; resize: vertical; }
.tayco-form-ux .ux-select-trigger {
  position: relative;
  padding-right: 44px;
  cursor: pointer;
}
.tayco-form-ux .ux-select-trigger::after {
  content: "⌄";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-55%);
  font-size: 22px;
}
.tayco-form-ux .ux-hint,
.tayco-form-ux .ux-legal,
.tayco-form-ux .ux-submit-status,
.tayco-form-ux .ux-trust {
  margin: 8px 0 0;
  color: var(--ux-muted);
  font-size: 14px;
  line-height: 1.5;
}
.tayco-form-ux .ux-trust { text-align: center; }
.tayco-form-ux .ux-character-count {
  margin: 6px 0 0;
  color: var(--ux-muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
}
.tayco-form-ux .ux-character-count.is-over-limit { color: var(--ux-error); font-weight: 700; }
.tayco-form-ux .ux-error {
  display: none;
  margin: 7px 0 0;
  color: var(--ux-error);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.tayco-form-ux .ux-field.is-invalid .ux-error { display: block; }
.tayco-form-ux .ux-field.is-invalid input,
.tayco-form-ux .ux-field.is-invalid textarea,
.tayco-form-ux .ux-field.is-invalid select,
.tayco-form-ux .ux-field.is-invalid .ux-select-trigger { border-color: var(--ux-error); }
.tayco-form-ux .ux-options { display: grid; gap: 10px; margin-top: 14px; }
.tayco-form-ux .ux-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--ux-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}
.tayco-form-ux .ux-option:hover { border-color: var(--ux-green); background: #fbfefc; }
.tayco-form-ux .ux-option:has(input:checked),
.tayco-form-ux .ux-option.is-selected { border-color: var(--ux-green); background: var(--ux-green-soft); }
.tayco-form-ux .ux-option input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ux-green);
}
.tayco-form-ux .ux-option span { min-width: 0; font-size: 16px; line-height: 1.4; }
.tayco-form-ux .ux-option small { display: block; margin-top: 3px; color: var(--ux-muted); font-size: 16px; }
.tayco-form-ux .ux-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.tayco-form-ux .ux-actions--end { justify-content: flex-end; }
.tayco-form-ux .ux-actions--start { justify-content: flex-start; }
.tayco-form-ux .ux-button {
  min-width: 124px;
  min-height: 50px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}
.tayco-form-ux .ux-button--primary { background: var(--ux-green); color: #fff; }
.tayco-form-ux .ux-button--primary:hover { background: var(--ux-green-hover); }
.tayco-form-ux .ux-button--secondary { border-color: #7f8d85; background: #fff; color: var(--ux-ink); }
.tayco-form-ux .ux-button[disabled] { cursor: wait; opacity: .66; }
.tayco-form-ux :where(button, input, textarea, select, a):focus-visible {
  outline: 3px solid var(--ux-focus) !important;
  outline-offset: 3px !important;
}
.tayco-form-ux .ux-form__status {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--ux-error);
  border-radius: 6px;
  background: #fff2f3;
  color: #771421;
  font-size: 16px;
  line-height: 1.45;
}
.tayco-form-ux .ux-form__status .ux-button--inline {
  display: block;
  margin-top: 12px;
}
.tayco-form-ux .ux-search { text-align: center; }
.tayco-form-ux .ux-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border: 5px solid #d6e8dc;
  border-top-color: var(--ux-green);
  border-radius: 50%;
  animation: ux-spin .9s linear infinite;
}
@keyframes ux-spin { to { transform: rotate(360deg); } }
.tayco-form-ux .ux-search-steps {
  width: min(100%, 430px);
  margin: 22px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.tayco-form-ux .ux-search-steps li {
  position: relative;
  min-height: 44px;
  padding: 9px 0 9px 38px;
  color: var(--ux-muted);
  font-size: 16px;
  line-height: 1.4;
}
.tayco-form-ux .ux-search-steps li span {
  position: absolute;
  left: 5px;
  top: 10px;
  width: 22px;
  height: 22px;
  border: 2px solid #95a39b;
  border-radius: 50%;
}
.tayco-form-ux .ux-search-steps li.is-active { color: var(--ux-ink); font-weight: 700; }
.tayco-form-ux .ux-search-steps li.is-active span { border-color: var(--ux-green); box-shadow: inset 0 0 0 5px #fff; background: var(--ux-green); }
.tayco-form-ux .ux-search-steps li.is-done { color: var(--ux-ink); }
.tayco-form-ux .ux-search-steps li.is-done span { border-color: var(--ux-green); background: var(--ux-green); }
.tayco-form-ux .ux-search-steps li.is-done span::after { content: "✓"; position: absolute; inset: -3px 0 0; color: #fff; text-align: center; font-size: 16px; font-weight: 700; }
.tayco-form-ux .ux-sr-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.tayco-form-ux .ux-requirements { margin: 14px 0 20px; padding-left: 24px; color: var(--ux-ink); font-size: 16px; line-height: 1.5; }
.tayco-form-ux .ux-requirements li + li { margin-top: 9px; }
.tayco-form-ux .ux-optional { color: var(--ux-muted); font-weight: 400; }
.tayco-form-ux .ux-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  margin: 4px 0 18px;
  font-weight: 400;
}
.tayco-form-ux .ux-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ux-green); }
.tayco-form-ux .ux-legal a { color: #0756b5; text-decoration: underline; }

.ux-dialog[hidden] { display: none !important; }
.ux-dialog {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(8, 20, 13, .55);
}
.ux-dialog__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-height: min(88dvh, 760px);
  padding: 18px;
  border-radius: 18px 18px 0 0;
  background: #fff;
  color: #17231c;
  box-shadow: 0 -8px 35px rgba(0,0,0,.18);
}
.ux-dialog__top { display: flex; align-items: center; gap: 12px; }
.ux-dialog__title { flex: 1; margin: 0; font-size: 20px; line-height: 1.3; }
.ux-dialog__close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #98a49d;
  border-radius: 8px;
  background: #fff;
  color: #17231c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.ux-dialog__search {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1.5px solid #aebbb4;
  border-radius: 9px;
  color: #17231c;
  font: inherit;
  font-size: 16px;
}
.ux-dialog__meta { margin: 0; color: #526159; font-size: 14px; }
.ux-dialog__results { display: grid; gap: 8px; min-height: 80px; overflow: auto; padding: 2px 2px 12px; overscroll-behavior: contain; }
.ux-dialog__option {
  min-height: 54px;
  padding: 11px 13px;
  border: 1.5px solid #aebbb4;
  border-radius: 9px;
  background: #fff;
  color: #17231c;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.ux-dialog__option[aria-current="true"] { border-color: #176b38; background: #eaf6ee; font-weight: 700; }
.ux-dialog :where(button, input):focus-visible { outline: 3px solid #075fd8; outline-offset: 2px; }
body.ux-dialog-open { overflow: hidden; }

@media (min-width: 700px) {
  .ux-dialog { align-items: center; padding: 24px; }
  .ux-dialog__panel { width: min(560px, 92vw); max-height: 82vh; border-radius: 16px; }
}
@media (max-width: 480px) {
  .tayco-form-ux { padding: 20px 16px; border-radius: 12px; }
  .tayco-form-ux .ux-actions { flex-direction: column-reverse; }
  .tayco-form-ux .ux-button { width: 100%; }
  .tayco-form-ux .ux-actions--end .ux-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tayco-form-ux *, .ux-dialog * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .tayco-form-ux .ux-spinner { border-color: #d6e8dc; border-top-color: #176b38; }
}
