/**
 * CSS público - Tarificador Vida Barón.
 *
 * Debe heredar el diseño del theme siempre que sea posible.
 * Todo va scopeado dentro de .tvida-wrapper.
 */

.tvida-wrapper {
	--tvida-gap: 1rem;
	--tvida-border-color: rgba(0, 0, 0, 0.12);
	--tvida-radius: 18px;
	--tvida-radius-small: 12px;
	--tvida-muted-opacity: 0.72;
	--tvida-card-bg: #ffffff;
	--tvida-soft-bg: rgba(0, 0, 0, 0.035);
	--tvida-primary: var(--tvida-theme-primary, var(--et-global-color-primary, #0539a3));
	--tvida-accent: var(--tvida-theme-accent, var(--et-global-color-secondary, #9a3b8f));
	--tvida-price-color: var(--tvida-theme-price, var(--tvida-accent));
	--tvida-shadow: 0 14px 36px rgba(0, 0, 0, 0.07);
	--tvida-submit-accent: #9a3b8f;
	--tvida-submit-accent-hover: #8a327f;
	--tvida-processing-bg: rgba(255, 255, 255, 0.94);
	--tvida-check-green: #00a650;

	max-width: 1080px;
}

.tvida-wrapper * {
	box-sizing: border-box;
}

.tvida-form {
	display: grid;
	gap: var(--tvida-gap);
}

.tvida-field {
	display: grid;
	gap: 0.35rem;
}

.tvida-field label {
	font-weight: inherit;
}

.tvida-field input[type="text"],
.tvida-field input[type="email"],
.tvida-field input[type="tel"],
.tvida-field input[type="date"],
.tvida-field input[type="number"],
.tvida-field input[type="url"] {
	width: 100%;
	max-width: 100%;
}

.tvida-field--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.tvida-field--checkbox input {
	margin-top: 0.25rem;
}

.tvida-actions {
	margin-top: 0.5rem;
}

.tvida-button,
.tvida-choice-button {
	cursor: pointer;
}

.tvida-notice {
	padding: 0.85rem 1rem;
	margin-bottom: 1rem;
	border: 1px solid var(--tvida-border-color);
	border-radius: var(--tvida-radius-small);
	background: #fff;
}

.tvida-notice p:last-child,
.tvida-notice ul:last-child {
	margin-bottom: 0;
}

.tvida-notice--error {
	border-color: #cc1818;
}

.tvida-notice--success {
	border-color: #1f7a1f;
}

.tvida-hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Formulario multistep */

.tvida-quote-wrapper {
	width: 100%;
	max-width: 1080px;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.tvida-quote-card {
	position: relative;
	width: 100%;
	padding: clamp(1.35rem, 3vw, 2.2rem);
	border: 1px solid var(--tvida-border-color);
	border-radius: var(--tvida-radius);
	background: var(--tvida-card-bg);
	box-shadow: var(--tvida-shadow);
	overflow: hidden;
}

.tvida-form-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin-bottom: 0.2rem;
}

.tvida-form-progress__dot {
	display: block;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: rgba(5, 57, 163, 0.18);
	transition: background 0.18s ease, transform 0.18s ease;
}

.tvida-form-progress__dot.is-active {
	background: var(--tvida-primary);
	transform: scale(1.02);
}

.tvida-form-progress__line {
	display: block;
	width: 70px;
	height: 4px;
	border-radius: 999px;
	background: rgba(5, 57, 163, 0.18);
}

.tvida-form-step {
	display: none;
	max-width: 760px;
	margin: 0 auto;
	animation: tvidaFadeIn 0.22s ease;
}

.tvida-form-step.is-active {
	display: block;
}

@keyframes tvidaFadeIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tvida-step-kicker {
	margin: 0 0 0.55rem;
	color: var(--tvida-accent);
	font-size: 0.86rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
}

.tvida-step-head {
	max-width: 640px;
	margin: 0 auto 1.55rem;
	text-align: center;
}

.tvida-step-head--compact {
	margin-bottom: 1rem;
}

.tvida-step-head,
.tvida-step-head h2,
.tvida-step-head p {
	text-align: center !important;
}

.tvida-step-head h2 {
	margin: 0;
	color: var(--tvida-primary);
	font-size: clamp(2rem, 4vw, 3.05rem);
	font-weight: 900;
	line-height: 1.06;
	letter-spacing: -0.045em;
}

.tvida-step-head p {
	max-width: 560px;
	margin: 0.4rem auto 0;
	font-size: 1.1rem;
	line-height: 1.5;
	opacity: var(--tvida-muted-opacity);
}

.tvida-capital-block {
	display: grid;
	gap: 0.55rem;
	justify-items: center;
	margin: 0 auto 1.2rem;
}

.tvida-capital-block > label,
.tvida-field--centered > label {
	color: var(--tvida-primary);
	font-size: 0.95rem;
	font-weight: 900;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.tvida-capital-control {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) 58px;
	gap: clamp(0.55rem, 2vw, 1rem);
	align-items: center;
	width: min(100%, 730px);
}

.tvida-capital-button {
	display: inline-grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border: 1px solid rgba(5, 57, 163, 0.18);
	border-radius: 999px;
	background: #fff;
	color: var(--tvida-primary);
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tvida-capital-button:hover,
.tvida-capital-button:focus {
	transform: translateY(-1px);
	border-color: var(--tvida-primary);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.09);
}

.tvida-capital-input-wrap {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.35rem;
	min-width: 0;
	padding: 0.32rem 0.8rem;
	border: 1px solid rgba(154, 59, 143, 0.2);
	border-radius: 999px;
	background: rgba(154, 59, 143, 0.045);
}

.tvida-capital-input-wrap input {
	width: 100%;
	min-width: 0;
	padding: 0.05rem 0;
	border: 0 !important;
	outline: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--tvida-accent);
	font-size: clamp(2.5rem, 7vw, 4.8rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.06em;
	text-align: center;
}

.tvida-capital-input-wrap span {
	color: var(--tvida-accent);
	font-size: clamp(1.35rem, 3.8vw, 2.35rem);
	font-weight: 800;
	line-height: 1;
}

.tvida-field--centered {
	max-width: 470px;
	margin: 0 auto 1rem;
	text-align: center;
}

.tvida-field--centered input {
	height: 58px;
	padding: 0.7rem 1rem;
	border: 1px solid var(--tvida-border-color);
	border-radius: 999px;
	background: #fff;
	color: var(--tvida-primary);
	font-size: clamp(1.3rem, 3.4vw, 1.9rem);
	font-weight: 800;
	text-align: center;
	letter-spacing: 0.02em;
}

.tvida-contact-fields {
	display: grid;
	gap: 1rem;
	width: min(100%, 600px);
	margin: 0 auto 1rem;
}

.tvida-field--placeholder-only {
	text-align: center;
}

.tvida-field--placeholder-only input {
	min-height: 58px;
	padding: 0.85rem 1.3rem;
	border: 1px solid var(--tvida-border-color);
	border-radius: 999px;
	background: #fff;
	font-size: 1.12rem;
	text-align: center;
}

.tvida-field--placeholder-only input::placeholder {
	color: rgba(0, 0, 0, 0.48);
}

.tvida-contact-fields input:focus,
.tvida-field--centered input:focus {
	border-color: var(--tvida-primary);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(5, 57, 163, 0.12);
}

.tvida-consents {
	display: grid;
	gap: 0.6rem;
	width: min(100%, 600px);
	margin: 1rem auto 1.2rem;
	text-align: left;
}

.tvida-consents .tvida-field--checkbox {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.4;
}

.tvida-consents .tvida-field--checkbox label {
	align-items: flex-start;
}

.tvida-consents a {
	color: var(--tvida-primary);
	font-weight: 800;
}

.tvida-step-error {
	display: none;
	width: min(100%, 600px);
	margin: 0 auto 1rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid #cc1818;
	border-radius: var(--tvida-radius-small);
	background: rgba(204, 24, 24, 0.06);
	color: #9f1111;
	font-size: 0.95rem;
	font-weight: 700;
	text-align: center;
}

.tvida-step-error.is-visible {
	display: block;
}

.tvida-actions--centered {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	align-items: center;
	justify-content: center;
	margin-top: 1.1rem;
}

.tvida-actions--step-two {
	margin-top: 1.35rem;
}

.tvida-button,
.tvida-back-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0.85rem 1.7rem;
	border-radius: 999px;
	font-weight: 900;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tvida-button--primary,
.tvida-button {
	min-width: 190px;
	border: 0;
	background: var(--tvida-primary);
	color: #fff;
	font-size: 1.05rem;
}

.tvida-button--accent {
	background: var(--tvida-submit-accent);
	color: #fff;
}

.tvida-button--accent:hover,
.tvida-button--accent:focus {
	background: var(--tvida-submit-accent-hover);
}

.tvida-button--large {
	min-width: 280px;
	min-height: 64px;
	padding: 1rem 2rem;
	font-size: 1.22rem;
	box-shadow: 0 12px 24px rgba(154, 59, 143, 0.22);
}

.tvida-back-button {
	min-width: 136px;
	border: 1px solid var(--tvida-border-color);
	background: #fff;
	color: var(--tvida-primary);
	font-size: 1rem;
}

.tvida-button:hover,
.tvida-button:focus,
.tvida-back-button:hover,
.tvida-back-button:focus {
	transform: translateY(-1px);
	opacity: 0.97;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.tvida-processing-state {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: var(--tvida-processing-bg);
	backdrop-filter: blur(2px);
	z-index: 10;
	text-align: center;
}

.tvida-quote-card.is-processing .tvida-processing-state {
	display: flex;
}

.tvida-quote-card.is-processing .tvida-form-progress,
.tvida-quote-card.is-processing .tvida-form-step {
	opacity: 0;
	pointer-events: none;
	user-select: none;
}

.tvida-processing-state__inner {
	display: grid;
	gap: 1rem;
	justify-items: center;
	max-width: 420px;
}

.tvida-processing-state__dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.tvida-processing-state__dots span {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: var(--tvida-primary);
	animation: tvidaPulseDot 1.2s infinite ease-in-out;
}

.tvida-processing-state__dots span:nth-child(2) {
	animation-delay: 0.15s;
}

.tvida-processing-state__dots span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes tvidaPulseDot {
	0%,
	80%,
	100% {
		transform: scale(0.7);
		opacity: 0.4;
	}

	40% {
		transform: scale(1);
		opacity: 1;
	}
}

.tvida-processing-state__title {
	margin: 0;
	color: var(--tvida-primary);
	font-size: 1.35rem;
	font-weight: 900;
	line-height: 1.2;
}

.tvida-processing-state__text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	opacity: var(--tvida-muted-opacity);
}

.tvida-form-external-note {
	max-width: 720px;
	margin: 1rem auto 0;
	font-size: 0.95rem;
	line-height: 1.45;
	text-align: center;
	opacity: var(--tvida-muted-opacity);
}

/* Resultados */

.tvida-result-wrapper {
	max-width: 1080px;
	width: 100%;
	margin-right: auto;
	margin-left: auto;
}

.tvida-result-intro {
	margin-bottom: 1.25rem;
}

.tvida-result-intro h2 {
	margin: 0 0 0.55rem;
	font-size: clamp(1.75rem, 3vw, 2.55rem);
	line-height: 1.18;
	color: var(--tvida-primary);
}

.tvida-result-intro p {
	max-width: 820px;
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.65;
	opacity: var(--tvida-muted-opacity);
}

.tvida-result-summary {
	border: 1px solid var(--tvida-border-color);
	border-radius: var(--tvida-radius);
	padding: 1rem;
	margin-bottom: 1rem;
}

.tvida-result-summary--compact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: stretch;
	margin-bottom: 2rem;
	padding: 0;
	border: 0;
}

.tvida-result-summary--compact p {
	display: grid;
	gap: 0.15rem;
	min-width: 170px;
	margin: 0;
	padding: 0.85rem 1rem;
	border: 1px solid var(--tvida-border-color);
	border-radius: var(--tvida-radius-small);
	background: var(--tvida-card-bg);
}

.tvida-result-summary--compact span {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: var(--tvida-muted-opacity);
}

.tvida-result-summary--compact strong {
	font-size: 1.08rem;
	line-height: 1.2;
}

.tvida-company-card-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-top: 1.75rem;
}

.tvida-company-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 0.95fr) minmax(330px, 1.05fr);
	gap: clamp(1rem, 3vw, 2rem);
	align-items: center;
	padding: clamp(1.6rem, 3vw, 2.35rem);
	border: 1px solid var(--tvida-border-color);
	border-radius: var(--tvida-radius);
	background: var(--tvida-card-bg);
	box-shadow: var(--tvida-shadow);
	overflow: hidden;
}

.tvida-company-card--best {
	border-color: var(--tvida-accent);
}

.tvida-company-card--selected {
	border-color: var(--tvida-primary);
	box-shadow: 0 16px 38px rgba(5, 57, 163, 0.12);
}

.tvida-company-card__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 116px;
	padding: 0.25rem 0;
}

.tvida-company-card__logo {
	display: grid;
	place-items: center;
	flex: 0 0 230px;
	width: 230px;
	height: 96px;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.tvida-company-card__logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	padding-left: 0 !important;
	float: none !important;
	border-radius: 0 !important;
}

.tvida-company-card__logo span {
	display: grid;
	place-items: center;
	width: 86px;
	height: 86px;
	border-radius: 20px;
	background: var(--tvida-soft-bg);
	font-size: 1.95rem;
	font-weight: 800;
	color: var(--tvida-primary);
}

.tvida-company-card__title {
	display: none;
}

.tvida-card-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: var(--tvida-accent);
	color: #fff;
	font-size: 0.76rem;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	z-index: 2;
}

.tvida-company-card__price-block {
	min-width: 0;
	transform: translateX(-0.8rem);
}

.tvida-price-prefix {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 1rem;
	font-weight: 600;
	opacity: var(--tvida-muted-opacity);
}

.tvida-price-suffix {
	display: block;
	margin-top: 0.25rem;
	color: var(--tvida-primary);
	font-size: 1.15rem;
	font-weight: 800;
	opacity: 1;
}

.tvida-price-main {
	margin: 0.15rem 0 0.1rem;
	color: var(--tvida-price-color);
	font-size: clamp(3.2rem, 5vw, 5rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.06em;
	white-space: nowrap;
}

.tvida-price-main span {
	font-size: 0.5em;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.tvida-company-card--selected-primary .tvida-price-main::after {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-left: 0.65rem;
	border-radius: 999px;
	background: rgba(0, 166, 80, 0.14);
	color: var(--tvida-check-green);
	font-size: 0.42em;
	font-weight: 900;
	line-height: 1;
	vertical-align: middle;
	box-shadow: 0 0 0 1px rgba(0, 166, 80, 0.18) inset;
}

.tvida-company-card__actions {
	display: grid;
	gap: 0.85rem;
	align-content: center;
}

.tvida-choice-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 0.8rem 1rem;
	border: 0;
	border-radius: 999px;
	background: var(--tvida-primary);
	color: #fff;
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tvida-choice-button:hover,
.tvida-choice-button:focus {
	transform: translateY(-1px);
	opacity: 0.94;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.tvida-choice-button:disabled {
	cursor: default;
	opacity: 0.72;
	transform: none;
	box-shadow: none;
}

.tvida-choice-button.is-loading {
	opacity: 0.8;
}

.tvida-choice-button.is-sent {
	background: var(--tvida-primary);
	opacity: 1;
}

.tvida-choice-button--secondary {
	width: auto;
	min-width: 112px;
	min-height: 40px;
	padding: 0.65rem 0.95rem;
	font-size: 0.88rem;
	background: var(--tvida-primary);
	color: #fff;
	white-space: nowrap;
}

.tvida-coverage-details {
	width: 100%;
}

.tvida-coverage-details summary {
	cursor: pointer;
	color: var(--tvida-primary);
	font-size: 1.08rem;
	font-weight: 900;
	list-style-position: inside;
	text-align: center;
}

.tvida-result-wrapper--selection-sent .tvida-coverage-details summary {
	opacity: 0.75;
}

.tvida-coverage-list {
	display: grid;
	gap: 0.75rem;
	margin-top: 0.9rem;
}

.tvida-coverage-option {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--tvida-border-color);
	border-radius: var(--tvida-radius-small);
	background: var(--tvida-soft-bg);
}

.tvida-coverage-option--selected {
	border-color: rgba(0, 166, 80, 0.38);
	background: rgba(0, 166, 80, 0.055);
}

.tvida-coverage-option strong,
.tvida-coverage-option span {
	display: block;
}

.tvida-coverage-option strong {
	font-size: 0.98rem;
	line-height: 1.15;
}

.tvida-coverage-option span {
	margin-top: 0.25rem;
	color: var(--tvida-primary);
	font-size: 1.35rem;
	font-weight: 900;
	line-height: 1.05;
	white-space: nowrap;
}

.tvida-coverage-option--selected span::after {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-left: 0.5rem;
	border-radius: 999px;
	background: rgba(0, 166, 80, 0.14);
	color: var(--tvida-check-green);
	font-size: 0.76rem;
	font-weight: 900;
	line-height: 1;
	vertical-align: middle;
	box-shadow: 0 0 0 1px rgba(0, 166, 80, 0.18) inset;
}

.tvida-selection-feedback {
	display: none;
	grid-column: 1 / -1;
	margin-top: 0.25rem;
	padding: 0.95rem 1rem;
	border-radius: var(--tvida-radius-small);
	font-size: 0.96rem;
	font-weight: 800;
	line-height: 1.45;
	text-align: center;
}

.tvida-selection-feedback.is-visible {
	display: block;
}

.tvida-selection-feedback.is-success {
	border: 1px solid rgba(5, 57, 163, 0.18);
	background: rgba(5, 57, 163, 0.06);
	color: var(--tvida-primary);
}

.tvida-selection-feedback.is-error {
	border: 1px solid rgba(204, 24, 24, 0.35);
	background: rgba(204, 24, 24, 0.06);
	color: #9f1111;
}

.tvida-result-legal {
	margin-top: 1.75rem;
	padding: 0.95rem 1rem;
	border: 1px solid var(--tvida-border-color);
	border-radius: var(--tvida-radius-small);
	font-size: 0.9rem;
	line-height: 1.5;
	opacity: var(--tvida-muted-opacity);
}

.tvida-result-legal p,
.tvida-result-date {
	margin: 0;
}

.tvida-result-date {
	margin-top: 0.75rem;
	font-size: 0.85rem;
	opacity: var(--tvida-muted-opacity);
}

.tvida-debug-box {
	grid-column: 1 / -1;
	margin-top: 0.5rem;
	padding: 0.75rem;
	border: 1px dashed currentColor;
	border-radius: var(--tvida-radius-small);
	font-size: 0.9rem;
}

.tvida-debug-box summary {
	cursor: pointer;
	font-weight: 700;
}

.tvida-debug-table {
	width: 100%;
	margin-top: 0.75rem;
	border-collapse: collapse;
}

.tvida-debug-table th,
.tvida-debug-table td {
	padding: 0.35rem 0.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	text-align: left;
	vertical-align: top;
}

.tvida-debug-table th {
	width: 220px;
}

@media (max-width: 980px) {
	.tvida-quote-card {
		padding: 1.35rem 1.2rem 1.6rem;
	}

	.tvida-form-step {
		max-width: 100%;
	}

	.tvida-company-card {
		grid-template-columns: 1fr;
		align-items: stretch;
		gap: 1.2rem;
	}

	.tvida-company-card__brand {
		justify-content: flex-start;
		min-height: auto;
		padding: 0;
	}

	.tvida-company-card__logo {
		width: 220px;
		height: 82px;
		flex-basis: 220px;
	}

	.tvida-company-card__actions {
		max-width: 420px;
	}

	.tvida-coverage-details summary {
		text-align: left;
	}

	.tvida-company-card__price-block {
		transform: none;
	}
}

@media (max-width: 680px) {
	.tvida-wrapper {
		max-width: 100%;
	}

	.tvida-quote-card {
		padding: 1.2rem 0.95rem 1.35rem;
		border-radius: 16px;
	}

	.tvida-form-progress {
		margin-bottom: 0.1rem;
	}

	.tvida-form-progress__dot {
		width: 16px;
		height: 16px;
	}

	.tvida-form-progress__line {
		width: 56px;
		height: 3px;
	}

	.tvida-step-kicker {
		margin-bottom: 0.4rem;
	}

	.tvida-step-head {
		margin-bottom: 1.2rem;
	}

	.tvida-step-head h2 {
		font-size: clamp(2rem, 9vw, 2.65rem);
	}

	.tvida-step-head p {
		font-size: 1rem;
	}

	.tvida-capital-block {
		margin-bottom: 1rem;
	}

	.tvida-capital-control {
		grid-template-columns: 52px minmax(0, 1fr) 52px;
		gap: 0.45rem;
		width: 100%;
	}

	.tvida-capital-button {
		width: 52px;
		height: 52px;
		font-size: 1.75rem;
	}

	.tvida-capital-input-wrap {
		padding: 0.25rem 0.45rem;
	}

	.tvida-capital-input-wrap input {
		font-size: clamp(2.25rem, 13vw, 3.65rem);
	}

	.tvida-field--centered {
		max-width: 100%;
	}

	.tvida-contact-fields {
		width: 100%;
	}

	.tvida-consents {
		width: 100%;
		font-size: 0.9rem;
	}

	.tvida-actions--centered {
		display: grid;
		grid-template-columns: 1fr;
	}

	.tvida-button,
	.tvida-back-button,
	.tvida-button--large {
		width: 100%;
		min-width: 0;
	}

	.tvida-result-wrapper {
		max-width: 100%;
	}

	.tvida-result-summary--compact {
		display: grid;
		grid-template-columns: 1fr;
	}

	.tvida-company-card {
		display: grid;
		grid-template-columns: 1fr;
		gap: 1.55rem;
		border-radius: 16px;
		padding: 2.25rem 1.4rem 1.6rem;
		text-align: center;
		overflow: visible;
	}

	.tvida-company-card__brand {
		justify-content: center;
		align-items: center;
		width: 100%;
		min-height: auto;
		padding: 0;
	}

	.tvida-company-card__logo {
		width: min(260px, 82vw);
		height: 92px;
		flex-basis: auto;
		margin: 0 auto;
	}

	.tvida-company-card__logo img {
		margin: 0 auto;
	}

	.tvida-company-card__logo span {
		width: 76px;
		height: 76px;
		margin: 0 auto;
		border-radius: 18px;
		font-size: 1.8rem;
	}

	.tvida-card-badge {
		top: -0.85rem;
		right: 1.35rem;
		left: auto;
		margin: 0;
		padding: 0.45rem 0.8rem;
		font-size: 0.86rem;
		box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
	}

	.tvida-company-card__price-block {
		width: 100%;
		text-align: center;
		transform: none;
	}

	.tvida-price-prefix {
		text-align: center;
		font-size: 1.05rem;
	}

	.tvida-price-main {
		display: inline-block;
		margin-right: auto;
		margin-left: auto;
		font-size: clamp(4rem, 17vw, 5.35rem);
		text-align: center;
	}

	.tvida-company-card--selected-primary .tvida-price-main::after {
		width: 36px;
		height: 36px;
		margin-left: 0.45rem;
		font-size: 0.38em;
	}

	.tvida-price-suffix {
		text-align: center;
		font-size: 1.25rem;
	}

	.tvida-company-card__actions {
		width: 100%;
		max-width: none;
		margin: 0 auto;
		justify-items: center;
	}

	.tvida-choice-button {
		width: 100%;
		min-height: 54px;
	}

	.tvida-coverage-details {
		width: 100%;
	}

	.tvida-coverage-details summary {
		text-align: center;
		font-size: 1.18rem;
	}

	.tvida-coverage-option {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.tvida-coverage-option span {
		white-space: normal;
	}

	.tvida-choice-button--secondary {
		width: 100%;
	}

	.tvida-selection-feedback {
		font-size: 0.92rem;
	}
}
/* Hotfix confirmación selección: verde tipo check */

.tvida-selection-feedback.is-success {
	border-color: rgba(0, 166, 80, 0.28) !important;
	background: rgba(0, 166, 80, 0.10) !important;
	color: #08723a !important;
}

.tvida-selection-feedback.is-success::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-right: 0.55rem;
	border-radius: 999px;
	background: rgba(0, 166, 80, 0.16);
	color: #00a650;
	font-weight: 900;
	line-height: 1;
	vertical-align: middle;
	box-shadow: 0 0 0 1px rgba(0, 166, 80, 0.18) inset;
}
/* Fase 5.2 — Badge Recomendada por Barón */

.tvida-company-card--recommended {
	border-color: rgba(0, 166, 80, 0.28);
}

.tvida-company-card--best.tvida-company-card--recommended {
	border-color: var(--tvida-accent);
}

.tvida-card-badge--best {
	background: var(--tvida-accent);
	color: #fff;
}

.tvida-card-badge--recommended {
	top: 1rem;
	background: #e9f8ef !important;
	color: #08723a !important;
	border: 1px solid rgba(0, 166, 80, 0.24);
	box-shadow: 0 8px 18px rgba(0, 166, 80, 0.08);
	z-index: 5;
}

.tvida-card-badge--best + .tvida-card-badge--recommended {
	top: 3.15rem;
}

@media (max-width: 680px) {
	.tvida-card-badge--recommended {
		top: -0.85rem;
		right: 1.35rem;
		left: auto;
	}

	.tvida-card-badge--best + .tvida-card-badge--recommended {
		top: 2.05rem;
		right: 1.35rem;
		left: auto;
	}
}
/* Hotfix badges resultados — Mejor precio + Recomendada por Barón */

/* Desktop: si conviven, una al lado de la otra */
.tvida-card-badge--best {
	top: 1rem !important;
	left: 1rem !important;
	right: auto !important;
}

.tvida-card-badge--recommended {
	top: 1rem !important;
	left: 1rem !important;
	right: auto !important;
}

.tvida-card-badge--best + .tvida-card-badge--recommended {
	top: 1rem !important;
	left: 8.6rem !important;
	right: auto !important;
}

/* Mobile: Mejor precio a la derecha, Recomendada por Barón a la izquierda */
@media (max-width: 680px) {
	.tvida-card-badge--best {
		top: -0.85rem !important;
		right: 1.35rem !important;
		left: auto !important;
	}

	.tvida-card-badge--recommended {
		top: -0.85rem !important;
		left: 1.35rem !important;
		right: auto !important;
	}

	.tvida-card-badge--best + .tvida-card-badge--recommended {
		top: -0.85rem !important;
		left: 1.35rem !important;
		right: auto !important;
	}
}
@media (max-width: 680px) {
	.tvida-card-badge--recommended {
		background: #e9f8ef !important;
		z-index: 5;
	}
}
/* Hotfix mobile — resumen de datos más compacto */

@media (max-width: 680px) {
	.tvida-result-summary--compact {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 0.45rem !important;
		margin-bottom: 1.35rem !important;
	}

	.tvida-result-summary--compact p {
		min-width: 0 !important;
		padding: 0.55rem 0.45rem !important;
		border-radius: 12px !important;
		text-align: center !important;
	}

	.tvida-result-summary--compact span {
		font-size: 0.58rem !important;
		line-height: 1.15 !important;
		letter-spacing: 0.035em !important;
	}

	.tvida-result-summary--compact strong {
		font-size: 0.95rem !important;
		line-height: 1.15 !important;
		white-space: nowrap !important;
	}
}
/* Fase 5.7 — Explicación IPA/IPT dentro de Ampliar protección */

.tvida-coverage-help {
	margin: 0.85rem 0 0.85rem;
	padding: 0.85rem 0.95rem;
	border: 1px solid rgba(5, 57, 163, 0.12);
	border-radius: var(--tvida-radius-small);
	background: rgba(5, 57, 163, 0.035);
	text-align: left;
}

.tvida-coverage-help__title {
	margin: 0 0 0.5rem;
	color: var(--tvida-primary);
	font-size: 0.92rem;
	font-weight: 900;
	line-height: 1.25;
}

.tvida-coverage-help__grid {
	display: grid;
	gap: 0.35rem;
}

.tvida-coverage-help__grid p {
	margin: 0;
	color: rgba(0, 0, 0, 0.76);
	font-size: 0.86rem;
	line-height: 1.38;
}

.tvida-coverage-help__grid strong {
	color: var(--tvida-primary);
	font-weight: 900;
}

.tvida-coverage-help__note {
	margin: 0.55rem 0 0;
	color: rgba(0, 0, 0, 0.56);
	font-size: 0.76rem;
	line-height: 1.35;
}

@media (max-width: 680px) {
	.tvida-coverage-help {
		margin-top: 0.75rem;
		padding: 0.8rem;
		text-align: center;
	}

	.tvida-coverage-help__title {
		font-size: 0.9rem;
	}

	.tvida-coverage-help__grid p {
		font-size: 0.82rem;
	}

	.tvida-coverage-help__note {
		font-size: 0.72rem;
	}
}
/* Hotfix colores ampliaciones IPA/IPT */

.tvida-coverage-option strong {
	color: var(--tvida-primary) !important;
	font-weight: 900;
}

.tvida-coverage-option span {
	color: var(--tvida-price-color) !important;
	font-weight: 900;
}
/* Hotfix interlineado explicación IPA/IPT */

.tvida-coverage-help__grid {
	gap: 0.12rem !important;
}

.tvida-coverage-help__grid p {
	line-height: 1.18 !important;
	margin: 0 !important;
}

@media (max-width: 680px) {
	.tvida-coverage-help__grid {
		gap: 0.1rem !important;
	}

	.tvida-coverage-help__grid p {
		line-height: 1.16 !important;
	}
}
/* Hotfix formulario — títulos más ligeros */

.tvida-step-title-soft {
	display: block;
	margin: 0 0 0.45rem;
	color: var(--tvida-primary);
	font-size: clamp(1.1rem, 3vw, 1.75rem);
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -0.035em;
	text-align: center;
}

@media (max-width: 680px) {
	.tvida-step-title-soft {
		font-size: clamp(1.55rem, 8vw, 2rem);
		margin-bottom: 0.35rem;
	}
}
/* Hotfix margen inferior tarificador */

.tvida-quote-wrapper {
	margin-bottom: 4rem;
}

.tvida-result-wrapper {
	margin-bottom: 4rem;
}

@media (max-width: 680px) {
	.tvida-quote-wrapper {
		margin-bottom: 2.5rem;
	}

	.tvida-result-wrapper {
		margin-bottom: 2.5rem;
	}
}
/* Hotfix símbolo euro en capital del formulario */

.tvida-capital-input-wrap {
	position: relative;
}

.tvida-capital-input-wrap span {
	position: absolute;
right: clamp(1rem, 3vw, 1.8rem);
	top: 50%;
	transform: translateY(-50%);
	color: var(--tvida-accent);
	font-size: clamp(1.7rem, 4vw, 2.6rem);
	font-weight: 900;
	line-height: 1;
}

.tvida-capital-input-wrap input {
	padding-right: clamp(3rem, 8vw, 5rem) !important;
}