/* ─── HERO ─── */
.tas-hero {
  background: var(--white);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--gray-200);
}
.tas-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.tas-hero__pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 12px;
}
.tas-hero__h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tas-hero__h1 span { color: var(--red); }
.tas-hero__desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
  max-width: 440px;
}
.tas-hero__trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.tas-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  min-width: 110px;
  text-align: center;
}
.tas-trust-icon { font-size: 22px; }
.tas-trust-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--black);
}

/* ─── WIZARD SECTION ─── */
.tas-wizard-section {
  padding: 48px 0 72px;
  background: var(--gray-50);
}

/* ─── STEP INDICATORS ─── */
.tas-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 0;
}
.tas-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  cursor: default;
}
.tas-step__circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-400);
  transition: background .3s, border-color .3s, color .3s;
}
.tas-step--active .tas-step__circle {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.tas-step--done .tas-step__circle {
  background: #16a34a;
  border-color: #16a34a;
  color: var(--white);
}
.tas-step__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gray-400);
  transition: color .3s;
}
.tas-step--active .tas-step__label { color: var(--red); }
.tas-step--done   .tas-step__label { color: #16a34a; }

.tas-step__connector {
  width: 80px;
  height: 2px;
  background: var(--gray-200);
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* ─── PANEL ─── */
.tas-panel {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  max-width: 720px;
  margin: 0 auto;
}
.tas-panel--hidden { display: none; }

.tas-panel__head {
  background: var(--white);
  padding: 28px 36px 24px;
  border-bottom: 3px solid var(--red);
}
.tas-panel__step-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
}
.tas-panel__title {
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.5px;
  color: var(--black);
  margin-top: 4px;
}
.tas-panel__sub {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 4px;
}

.tas-panel__body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ─── FORM ELEMENTS ─── */
.tas-row {
  display: grid;
  gap: 20px;
}
.tas-row--2 { grid-template-columns: 1fr 1fr; }

.tas-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tas-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--black);
}
.tas-req { color: var(--red); }
.tas-optional {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: none;
  letter-spacing: 0;
}

.tas-input,
.tas-select,
.tas-textarea {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.tas-input:focus,
.tas-select:focus,
.tas-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232,25,44,.1);
}
.tas-input::placeholder,
.tas-textarea::placeholder { color: var(--gray-400); }

.tas-textarea {
  resize: vertical;
  min-height: 100px;
}

.tas-charcount {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 600;
  text-align: right;
  margin-top: -4px;
}

.tas-select-wrap {
  position: relative;
}
.tas-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: var(--gray-600);
}
.tas-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

.tas-input-icon-wrap {
  position: relative;
}
.tas-input--icon { padding-right: 52px; }
.tas-input-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 800;
  color: var(--gray-400);
  letter-spacing: 1px;
  pointer-events: none;
}

.tas-field__hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: -4px;
}

/* ─── OPTION GROUP (intención) ─── */
.tas-option-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tas-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  text-align: left;
}
.tas-option:hover {
  border-color: var(--gray-400);
}
.tas-option--selected {
  border-color: var(--red);
  background: rgba(232,25,44,.04);
  box-shadow: 0 0 0 3px rgba(232,25,44,.12);
}
.tas-option__icon { font-size: 22px; }
.tas-option__text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--black);
}

/* ─── CONDITION GROUP (estado) ─── */
.tas-condition-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tas-condition {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  text-align: center;
}
.tas-condition:hover {
  border-color: var(--gray-400);
}
.tas-condition--selected {
  border-color: var(--red);
  background: rgba(232,25,44,.04);
  box-shadow: 0 0 0 3px rgba(232,25,44,.12);
}
.tas-condition__icon { font-size: 24px; }
.tas-condition strong {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--black);
}
.tas-condition span {
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.4;
}

/* ─── YES/NO GROUP ─── */
.tas-yesno-group {
  display: flex;
  gap: 12px;
}
.tas-yesno {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}
.tas-yesno__icon { font-size: 16px; }

.tas-yesno--no:hover  { border-color: #16a34a; }
.tas-yesno--yes:hover { border-color: var(--red); }

.tas-yesno--no.tas-yesno--selected {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #15803d;
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
.tas-yesno--yes.tas-yesno--selected {
  border-color: var(--red);
  background: rgba(232,25,44,.04);
  color: var(--red);
  box-shadow: 0 0 0 3px rgba(232,25,44,.12);
}

/* ─── PHOTO SLOTS ─── */
.tas-photos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.tas-photo-slot {
  position: relative;
  aspect-ratio: 1;
  border: 2px dashed var(--gray-200);
  border-radius: 10px;
  background: var(--gray-50);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  display: block;
}
.tas-photo-slot:hover {
  border-color: var(--red);
  background: rgba(232,25,44,.03);
}
.tas-photo-slot--filled {
  border-style: solid;
  border-color: var(--red);
}
.tas-photo-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}
.tas-photo-slot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 100%;
  pointer-events: none;
  padding: 6px;
}
.tas-photo-slot__icon { font-size: 20px; }
.tas-photo-slot__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--gray-600);
  text-align: center;
  line-height: 1.2;
}
.tas-photo-slot__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 1;
}
.tas-photo-slot--filled .tas-photo-slot__preview { display: block; }
.tas-photo-slot--filled .tas-photo-slot__inner   { display: none; }

/* ─── PRIVACY NOTICE ─── */
.tas-privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
  color: #166534;
  font-weight: 600;
  line-height: 1.5;
}
.tas-privacy-icon { font-size: 16px; flex-shrink: 0; }

/* ─── PANEL FOOTER ─── */
.tas-panel__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-200);
  margin-top: 4px;
}
.tas-btn-next,
.tas-btn-submit {
  padding: 13px 32px;
  font-size: 13px;
}
.tas-btn-back {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-600);
  cursor: pointer;
  transition: color .2s;
  padding: 0;
}
.tas-btn-back:hover { color: var(--black); }

/* ─── ERROR ─── */
.tas-error {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  min-height: 16px;
  letter-spacing: .3px;
}

/* ─── SUCCESS ─── */
.tas-success {
  padding: 64px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.tas-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #16a34a;
  color: var(--white);
  font-size: 32px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(22,163,74,.3);
}
.tas-success__title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--black);
}
.tas-success__desc {
  font-size: 14px;
  color: var(--gray-600);
  max-width: 480px;
  line-height: 1.7;
}
.tas-success__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .tas-hero__h1 { font-size: 38px; }
  .tas-hero__inner { flex-direction: column; }
  .tas-hero__trust { justify-content: center; }
  .tas-photos-grid { grid-template-columns: repeat(3, 1fr); }
  .tas-photos-grid label:nth-child(4),
  .tas-photos-grid label:nth-child(5) { grid-column: auto; }
}

@media (max-width: 640px) {
  .tas-hero { padding: 32px 0 28px; }
  .tas-hero__h1 { font-size: 30px; }
  .tas-panel__head { padding: 22px 20px 18px; }
  .tas-panel__body { padding: 24px 20px; gap: 20px; }
  .tas-row--2 { grid-template-columns: 1fr; }
  .tas-condition-group { grid-template-columns: 1fr; }
  .tas-option-group { grid-template-columns: 1fr; }
  .tas-photos-grid { grid-template-columns: repeat(2, 1fr); }
  .tas-step__connector { width: 40px; }
  .tas-panel__footer { flex-direction: column-reverse; align-items: stretch; }
  .tas-btn-next, .tas-btn-submit { width: 100%; text-align: center; }
  .tas-btn-back { text-align: center; }
  .tas-yesno-group { flex-direction: column; }
  .tas-hero__trust { flex-direction: column; align-items: center; width: 100%; }
  .tas-trust-item { width: 100%; max-width: 260px; flex-direction: row; justify-content: center; }
}
