/* Tío Tranqui — funnel screens (tokens from styles.css) */
.funnel-main {
  padding: 20px var(--pad-x) 48px;
  min-height: calc(100dvh - 56px);
}

.funnel-progress {
  margin-bottom: 20px;
}

.funnel-progress-label {
  /* block (not flex): the JS writes "Paso <strong>n</strong> de N · label"
     as one line; flex split it into 3 spaced-out items */
  display: block;
  margin-bottom: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

.funnel-progress-label strong {
  color: var(--accent-soft);
  font-weight: 650;
}

.funnel-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.funnel-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  transition: width 0.35s var(--ease);
}

.funnel-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 20px;
}

.funnel-card h1,
.funnel-card h2 {
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  margin-bottom: 8px;
}

.funnel-card .lead-sm {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.funnel-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt-btn {
  display: flex;
  flex-direction: column; /* .opt-hint sits under the title */
  align-items: flex-start;
  gap: 0;
  width: 100%;
  text-align: left;
  padding: 16px 16px;
  min-height: 56px;
  border-radius: var(--radius-btn);
  background: var(--surface-2);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
  font-size: 0.975rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
}

.opt-btn:hover,
.opt-btn:focus-visible {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.08);
  outline: none;
}

.opt-btn:active {
  transform: scale(0.985);
}

.opt-btn.is-selected {
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.14);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25);
}

.opt-btn .opt-hint {
  display: block;
  font-weight: 450;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
}

.opt-btn.opt-mint {
  border-color: rgba(110, 231, 183, 0.3);
}

.opt-btn.opt-mint:hover,
.opt-btn.opt-mint.is-selected {
  border-color: var(--mint);
  background: rgba(110, 231, 183, 0.1);
}

.funnel-nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.funnel-nav .btn {
  flex: 1;
}

.btn-back {
  flex: 0 0 auto;
  min-width: 52px;
  padding-inline: 14px;
  background: transparent;
  border: 1.5px solid rgba(244, 247, 250, 0.18);
  color: var(--muted);
}

.btn-back:hover {
  border-color: rgba(244, 247, 250, 0.35);
  color: var(--text);
}

.funnel-field {
  margin-bottom: 16px;
}

.funnel-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.funnel-field label .req {
  color: var(--accent-soft);
}

.funnel-input,
.funnel-select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  background: var(--bg);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease);
}

.funnel-input::placeholder {
  color: rgba(154, 168, 181, 0.7);
}

.funnel-input:focus,
.funnel-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.funnel-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%239AA8B5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.funnel-select option {
  background: var(--surface);
  color: var(--text);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: #FCA5A5;
}

.funnel-field.has-error .funnel-input,
.funnel-field.has-error .funnel-select {
  border-color: #F87171;
}

.funnel-field.has-error .field-error {
  display: block;
}

.funnel-warn {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius-btn);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #FDE68A;
  font-size: 0.9rem;
  line-height: 1.45;
}

.funnel-warn a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.funnel-tip {
  padding: 16px;
  margin-bottom: 18px;
  border-radius: var(--radius-btn);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.25);
  color: var(--mint);
  font-size: 0.9rem;
  line-height: 1.5;
}

.funnel-soft {
  text-align: center;
}

.funnel-soft .soft-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 20px;
  object-fit: cover;
}

.funnel-summary {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
  color: var(--muted);
}

.funnel-summary dt {
  font-weight: 600;
  color: var(--accent-soft);
  margin-top: 8px;
}

.funnel-summary dt:first-child {
  margin-top: 0;
}

.funnel-summary dd {
  margin: 2px 0 0;
  color: var(--text);
}

.checkout-price {
  text-align: center;
  margin: 8px 0 20px;
}

.checkout-price .amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--mint);
  line-height: 1;
}

.checkout-price .amount-label {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--muted);
}

.payphone-stub {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.payphone-stub .stub-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0 8px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.consent-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.screen-hidden {
  display: none !important;
}

.success-panel {
  text-align: center;
  padding: 32px 20px;
}

.success-panel h1 {
  margin-bottom: 10px;
}

.success-panel .lead-sm {
  margin-bottom: 24px;
}

.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: var(--radius-btn);
  background: var(--surface-2);
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.upload-zone:focus-within {
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.06);
}

.upload-zone .uz-title {
  font-weight: 650;
  font-size: 0.9375rem;
}

.upload-zone .uz-hint {
  font-size: 0.8125rem;
  color: var(--muted);
}

.upload-zone input[type="file"] {
  width: 100%;
  font-size: 0.8125rem;
  color: var(--muted);
}

.upload-zone .uz-files {
  font-size: 0.8125rem;
  color: var(--mint);
  word-break: break-all;
}

.note-sri {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  margin: 8px 0 20px;
  border-radius: var(--radius-btn);
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.28);
  font-size: 0.875rem;
  color: var(--accent-soft);
  line-height: 1.45;
}

.micro-legal {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.funnel-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.funnel-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  background: var(--surface-2);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.funnel-radio:has(input:checked) {
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.12);
}

.funnel-radio input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.checklist-intake {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.checklist-intake li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.checklist-intake li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.7;
}

.funnel-footer-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.funnel-footer-note a {
  color: var(--accent-soft);
  font-weight: 600;
}

/* ---------- Cajita PayPhone (checkout v1.2) ---------- */
.payer-box {
  margin: 4px 0 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.payer-box > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style-position: inside;
}
#pp-button {
  min-height: 120px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
#pp-button:empty {
  min-height: 0;
  background: transparent;
}
.gracias-state .btn { width: 100%; }
.gracias-loading { text-align: center; padding: 28px 0; }

/* Clave SRI: botón para mostrar/ocultar (intake) */
.pw-wrap { position: relative; }
.pw-wrap .funnel-input { padding-right: 52px; }
.pw-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 10px; color: var(--muted); cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.pw-toggle:hover { color: inherit; }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pw-toggle .pw-eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .pw-eye { display: none; }
.pw-toggle[aria-pressed="true"] .pw-eye-off { display: block; }

/* Casilla con texto largo: casilla alineada con la primera línea */
.funnel-check { align-items: flex-start; line-height: 1.45; }
.funnel-check input[type="checkbox"] { flex-shrink: 0; margin: 2px 0 0; }
