/* Thirsa Tasador Online — colores corporativos: #87221f / #142127 / blanco. Radio máx 10px. */

.ttas {
	--acc: #87221f;
	--acc-dark: #6d1a18;
	--acc-soft: #f7ecec;
	--ink: #142127;
	--ink-60: #4c5b62;
	--ink-40: #8a969c;
	--line: #dfe5e8;
	--bg-soft: #f5f7f8;
	--ok: #1e7e34;
	--r: 10px;
	width: 100%;
	max-width: 100%;
	margin: 0;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.ttas *, .ttas *::before, .ttas *::after { box-sizing: border-box; }
.ttas [hidden] { display: none !important; }
.ttas .ttas-hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; }

/* ---------- Cabecera / stepper ---------- */
.ttas-head { margin-bottom: 28px; }
.ttas-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ttas-step-label { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .4px; color: var(--ink-60); text-transform: uppercase; }
.ttas-badge { margin: 0; font-size: 12px; color: var(--ink-40); border: 1px solid var(--line); border-radius: var(--r); padding: 3px 10px; }

/* Stepper único: círculos numerados conectados por una línea que se rellena. */
.ttas-steps { display: flex; list-style: none; margin: 20px 0 0; padding: 0; }
.ttas-steps li { flex: 1 1 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-40); transition: color .3s; }
.ttas-steps li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; transition: background .35s; }
.ttas-steps li:first-child::before { display: none; }
.ttas-steps li i { position: relative; z-index: 1; font-style: normal; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--ink-40); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; transition: all .3s; }
.ttas-steps li span { display: block; line-height: 1.2; }
.ttas-steps li.is-active { color: var(--ink); }
.ttas-steps li.is-active i { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: 0 0 0 4px rgba(135, 34, 31, .14); }
.ttas-steps li.is-active::before,
.ttas-steps li.is-done::before { background: var(--acc); }
.ttas-steps li.is-done { color: var(--ink-60); }
.ttas-steps li.is-done i { background: var(--ink); border-color: var(--ink); color: #fff; font-size: 0; }
.ttas-steps li.is-done i::after { content: "\2713"; font-size: 15px; }

/* ---------- Paneles / secciones ---------- */
.ttas-panel { background: var(--ink); color: #fff; border-radius: var(--r); padding: 18px 22px; margin: 0 0 22px; position: relative; overflow: hidden; }
.ttas-panel::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--acc); }
.ttas-panel h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.ttas-panel p { margin: 8px 0 0; font-size: 13px; color: #b9c4ca; }
.ttas-h3 { font-size: 19px; margin: 26px 0 14px; }
.ttas-mt { margin-top: 26px; }

/* Separación cuando un panel sigue a un grid o a un campo (p. ej. "Finalidad de la Tasación"). */
.ttas-grid + .ttas-panel,
.ttas-field + .ttas-panel { margin-top: 32px; }
/* El primer panel del paso no necesita margen superior. */
.ttas-step > .ttas-panel:first-child { margin-top: 0; }
/* Grupo de radios/finalidad: aire respecto al panel anterior y al siguiente bloque. */
.ttas-field[data-field="finalidad"] { margin-top: 4px; }
.ttas-panel + .ttas-field { margin-top: 0; }

/* ---------- Pasos ---------- */
.ttas-step { display: none; }
.ttas-step.is-active { display: block; animation: ttas-in .35s ease both; }
@keyframes ttas-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ttas-step.is-active { animation: none; } .ttas-progress span { transition: none; } }

/* ---------- Campos ---------- */
.ttas-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 16px; }
.ttas-col-12 { grid-column: span 12; }
.ttas-col-6 { grid-column: span 6; }
.ttas-col-3 { grid-column: span 3; }

.ttas-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-60); margin: 0 0 6px; }
.ttas-field label b { color: var(--acc); font-weight: 800; }
.ttas-field small { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-40); }
.ttas-field input[type="text"],
.ttas-field input[type="tel"],
.ttas-field input[type="email"],
.ttas-field select {
	width: 100%; height: 46px; padding: 0 14px;
	border: 1.5px solid var(--line); border-radius: var(--r);
	background: #fff; color: var(--ink); font-size: 15px;
	transition: border-color .2s, box-shadow .2s;
	appearance: none; -webkit-appearance: none;
}
.ttas-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234c5b62' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer;
}
.ttas-field select:disabled { background-color: var(--bg-soft); color: var(--ink-40); cursor: not-allowed; }
.ttas-field input:focus, .ttas-field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 33, 39, .12); }
.ttas-field.is-invalid input, .ttas-field.is-invalid select { border-color: var(--acc); background-color: #fdf7f7; }
.ttas-field .ttas-field-error { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--acc); }
.ttas-extra-note { color: var(--acc) !important; font-weight: 600; }

/* Checkboxes */
.ttas-check label { display: flex !important; align-items: flex-start !important; gap: 11px; font-weight: 500; color: var(--ink); cursor: pointer; font-size: 14px; line-height: 1.4; margin: 0; }
.ttas-check input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; width: 20px; height: 20px; min-width: 20px; margin: 0 11px 0 0 !important; padding: 0; accent-color: var(--acc); flex: 0 0 auto; vertical-align: top; cursor: pointer; }
.ttas-check span { padding-top: 1px; }
.ttas-check a { color: var(--acc); font-weight: 700; text-decoration: underline; }
.ttas-check.is-invalid label { color: var(--acc); }

/* Radios tipo chip */
.ttas-radios { display: flex; gap: 12px; flex-wrap: wrap; }
.ttas-radios-stack { flex-direction: column; }
.ttas-chip { display: flex !important; align-items: center !important; gap: 11px; padding: 13px 18px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .2s, background .2s; font-size: 14.5px; background: #fff; line-height: 1.3; margin: 0; }
.ttas-radios:not(.ttas-radios-stack) .ttas-chip { flex: 1 1 0; min-width: 200px; }
.ttas-chip:hover { border-color: var(--ink-40); }
.ttas-chip input[type="radio"] { appearance: auto; -webkit-appearance: radio; width: 18px; height: 18px; min-width: 18px; margin: 0 12px 0 0 !important; padding: 0; accent-color: var(--acc); flex: 0 0 auto; align-self: center; vertical-align: middle; cursor: pointer; }
.ttas-chip span { flex: 1 1 auto; align-self: center; }
.ttas-chip:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc); }
.ttas-field.is-invalid .ttas-chip { border-color: var(--acc); }

/* ---------- Alertas ---------- */
.ttas-alert { border-radius: var(--r); padding: 16px 18px; font-size: 14px; margin-bottom: 22px; }
.ttas-alert-error { background: #fbeceb; border: 1px solid #efc9c8; color: var(--acc-dark); }
.ttas-alert-error ul { margin: 10px 0 0; padding-left: 18px; }
.ttas-alert-error li { margin: 4px 0; text-decoration: underline; cursor: pointer; }
.ttas-alert-warn { background: #fdf6e7; border: 1px solid #f0dcae; color: #7a5c0d; }
.ttas-alert-warn a { color: var(--acc); }

/* ---------- Precio destacado (solo paso 4) ---------- */
.ttas-price-headline { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 22px 0 4px; background: var(--ink); color: #fff; border-radius: var(--r); padding: 20px 24px; border-left: 4px solid var(--acc); }
.ttas-price-headline span { font-size: 15px; color: #b9c4ca; }
.ttas-price-headline strong { font-size: 34px; font-weight: 800; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.ttas-price-headline small { font-size: 12px; color: #8a969c; }
.ttas-disclaimer { margin: 20px 2px 0; font-size: 12px; color: var(--ink-40); }

/* ---------- Paso 4: resúmenes ---------- */
.ttas-summary-card { background: #eef6ec; border: 1px solid #cfe4cb; border-radius: var(--r); padding: 18px 20px; font-size: 14px; line-height: 1.7; }
.ttas-summary-card strong { color: var(--ink); }

.ttas-order { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.ttas-order-head { display: flex; justify-content: space-between; align-items: center; background: var(--bg-soft); padding: 11px 18px; font-size: 13px; font-weight: 700; color: var(--ink-60); text-transform: uppercase; letter-spacing: .6px; }
.ttas-order-head button { background: none; border: 0; color: var(--acc); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; }
.ttas-order-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 18px; border-top: 1px solid #eef1f3; font-size: 14px; }
.ttas-order-row em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-40); }
.ttas-order-row .ttas-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ttas-order-row.is-total { background: var(--ink); color: #fff; font-size: 16px; }
.ttas-order-row.is-total .ttas-amt { color: #fff; font-size: 19px; font-weight: 800; }

/* ---------- Pago ---------- */
.ttas-payment { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: #fff; }
.ttas-pay-loading { color: var(--ink-40); font-size: 14px; text-align: center; padding: 22px 0; }
.ttas-pay-note { margin-top: 14px; font-size: 13px; color: var(--ink-60); }

/* ---------- Navegación ---------- */
.ttas-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.ttas-btn { font-size: 15px; font-weight: 700; border-radius: var(--r); padding: 13px 30px; cursor: pointer; border: 1.5px solid transparent; transition: background .2s, transform .1s, box-shadow .2s; }
.ttas-btn:active { transform: translateY(1px); }
.ttas-btn:focus-visible { outline: 3px solid rgba(135, 34, 31, .4); outline-offset: 2px; }
.ttas-btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.ttas-btn-ghost:hover { border-color: var(--ink); }
.ttas-btn-primary { background: var(--ink); color: #fff; margin-left: auto; }
.ttas-btn-primary:hover { background: #1e3038; }
.ttas-btn-pay { background: var(--acc); color: #fff; margin-left: auto; box-shadow: 0 4px 14px rgba(135, 34, 31, .3); }
.ttas-btn-pay:hover { background: var(--acc-dark); }
.ttas-btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.ttas-btn .ttas-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: ttas-spin .7s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes ttas-spin { to { transform: rotate(360deg); } }

/* ---------- Éxito ---------- */
.ttas-success { text-align: center; padding: 44px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.ttas-success-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 32px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ttas-success h3 { margin: 0 0 10px; font-size: 24px; }
.ttas-success p { margin: 0 0 6px; color: var(--ink-60); }
.ttas-success-order strong { color: var(--acc); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.ttas-col-6 { grid-column: span 12; }
	.ttas-col-3 { grid-column: span 6; }
	.ttas-steps li { font-size: 11px; gap: 6px; }
	.ttas-steps li i { width: 28px; height: 28px; font-size: 12px; }
	.ttas-steps li::before { top: 13px; }
	.ttas-quote strong { font-size: 24px; }
	.ttas-nav { flex-direction: column-reverse; }
	.ttas-btn { width: 100%; }
}
