/* Pagina de precios del tarificador de salud reducido. Usa las variables y piezas de salud-reducido.css
   (cabecera, tarjeta, campos, boton naranja) y añade lo propio de los precios. Todo dentro de .tsp. */

.tsp { max-width: 1120px; }
.tsp .tsr-cabecera { margin-bottom: 16px; }
.tsp .tsr-titulo { font-size: 24px; }
.tsp-desde { color: #ffb37f; white-space: nowrap; }
.tsr-pasos li.hecho span { background: var(--verde); }
.tsr-pasos li.hecho span svg { width: 14px; height: 14px; stroke-width: 3; }
.tsp .tsp-h2 { margin: 0 0 16px; color: var(--texto); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }

/* ---------- Botones propios ---------- */
.tsp .tsp-boton-sec {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid var(--linea-fuerte);
	border-radius: 10px;
	background: #fff;
	color: var(--azul);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}
.tsp .tsp-boton-sec:hover { border-color: var(--azul); background: var(--azul-suave); }
.tsp .tsp-boton-sec svg { width: 16px; height: 16px; }
.tsp .tsp-enlace { color: var(--azul); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tsp .tsp-enlace:hover { color: var(--azul-oscuro); }
.tsp .tsr-enviar { min-width: 0; text-decoration: none; }
.tsp .tsp-enviar-peq { height: 48px; font-size: 16px; }

/* ---------- Resumen de datos ---------- */
.tsp-resumen {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 24px;
	padding: 16px 22px;
	border: 1px solid var(--linea);
	border-radius: var(--radio);
	background: #fff;
	box-shadow: var(--sombra);
}
.tsp-datos { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.tsp-datos > div { min-width: 0; }
.tsp-datos dt { margin: 0 0 2px; color: var(--texto-suave); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tsp-datos dd { margin: 0; color: var(--texto); font-size: 15px; font-weight: 700; }
.tsp-datos dd small { color: var(--texto-suave); font-weight: 500; }
.tsp-datos-edades dd { display: flex; flex-wrap: wrap; gap: 6px; }
.tsp-chip { padding: 2px 10px; border-radius: 999px; background: var(--azul-suave); color: var(--azul); font-size: 13px; font-weight: 700; }

.tsp-editar { margin-top: 12px; padding-top: 24px; }
.tsp-editar-rejilla { margin-top: 18px; }
.tsp-editar-pie { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }

.tsp-aviso {
	margin: 14px 0 0;
	padding: 12px 16px;
	border: 1px solid #f6d3b9;
	border-radius: 10px;
	background: var(--naranja-suave);
	color: #8a3a0c;
	font-size: 14px;
	font-weight: 600;
}

/* ---------- Tipos de seguro (pestañas) ---------- */
.tsp-tipos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin: 22px 0 0;
}
.tsp .tsp-tipo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--linea-fuerte);
	border-radius: 12px;
	background: #fff;
	color: var(--texto);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.tsp .tsp-tipo:hover { border-color: var(--azul); }
.tsp .tsp-tipo:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(29, 74, 139, .2); }
.tsp-tipo-nombre { font-size: 15px; font-weight: 700; }
.tsp-tipo-desde { color: var(--texto-suave); font-size: 13px; }
.tsp-tipo-desde strong { color: var(--naranja); font-size: 15px; }
.tsp .tsp-tipo[aria-selected=true] {
	border-color: var(--azul);
	background: var(--azul);
	color: #fff;
	box-shadow: 0 6px 16px rgba(29, 74, 139, .25);
}
.tsp .tsp-tipo[aria-selected=true] .tsp-tipo-desde { color: rgba(255, 255, 255, .8); }
.tsp .tsp-tipo[aria-selected=true] .tsp-tipo-desde strong { color: #fff; }

.tsp-panel { margin-top: 18px; }
/* Descripcion del tipo de seguro elegido: icono, titulo y texto */
.tsp .tsp-tipo-texto {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 18px 0 0;
	padding: 16px 20px;
	border: 1px solid #d9e3f2;
	border-left: 4px solid var(--azul);
	border-radius: 14px;
	background: linear-gradient(100deg, var(--azul-suave) 0%, #fff 75%);
}
.tsp .tsp-tipo-texto[hidden] { display: none; }
.tsp-tipo-texto-icono {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(29, 74, 139, .14);
	color: var(--azul);
}
.tsp-tipo-texto-icono svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tsp .tsp-tipo-texto p { margin: 0; color: var(--texto-suave); font-size: 15px; line-height: 1.5; }
.tsp .tsp-tipo-texto strong { display: block; margin-bottom: 2px; color: var(--azul-oscuro); font-size: 17px; font-weight: 700; }
@media (max-width: 600px) {
	.tsp .tsp-tipo-texto { align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; }
	.tsp-tipo-texto-icono { width: 40px; height: 40px; }
	.tsp .tsp-tipo-texto p { font-size: 14px; }
}

/* ---------- Tarjetas de producto ---------- */
.tsp-productos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
	justify-content: center;
	gap: 22px;
	align-items: stretch;
}
.tsp-producto {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px 22px 22px;
	border: 1px solid var(--linea);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--sombra);
	transition: transform .15s, box-shadow .15s;
}
.tsp-producto:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 32, 64, .06), 0 14px 34px rgba(16, 32, 64, .12); }
.tsp-producto.destacado { border: 2px solid var(--naranja); padding: 23px 21px 21px; }
.tsp-producto.resaltado { box-shadow: 0 0 0 4px rgba(29, 74, 139, .25), var(--sombra); }
.tsp .tsp-cinta {
	position: absolute;
	top: -12px;
	left: 20px;
	margin: 0;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--naranja);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.tsp .tsp-marca { margin: 0 0 2px; color: var(--azul); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.tsp .tsp-producto-nombre { margin: 0; color: var(--texto); font-size: 21px; font-weight: 700; line-height: 1.2; }
.tsp .tsp-etiqueta {
	display: inline-block;
	margin: 8px 0 0;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--verde-suave);
	color: var(--verde);
	font-size: 12px;
	font-weight: 700;
}

.tsp-precio { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 0; }
.tsp-precio-num { color: var(--texto); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.tsp-precio-num small { font-size: 20px; font-weight: 700; letter-spacing: 0; }
.tsp-precio-per { color: var(--texto-suave); font-size: 14px; font-weight: 600; }
.tsp .tsp-precio-nota { margin: 6px 0 0; color: var(--texto-suave); font-size: 13px; }

/* ---------- Copagos: distintivo en la cabecera y detalle en la tarjeta ---------- */
.tsp .tsp-copago-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 10px 6px 0 0;
	padding: 4px 11px 4px 8px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}
.tsp-copago-chip svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tsp .tsp-copago-chip.sin { background: var(--verde-suave); color: #23744a; }
.tsp .tsp-copago-chip.con { background: #fff4e0; color: #9a5a00; }

.tsp-copagos {
	margin: 16px 0 0;
	padding: 14px 14px 12px;
	border: 1px solid #f6dfb5;
	border-radius: 12px;
	background: linear-gradient(180deg, #fffaf1, #fff 85%);
}
.tsp .tsp-copagos-tit { margin: 0 0 8px; color: #9a5a00; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tsp .tsp-copagos-lista { margin: 0; padding: 0; list-style: none; }
.tsp .tsp-copagos-lista li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 6px 0;
	border-bottom: 1px dashed #f0e2c8;
	color: var(--texto);
	font-size: 13.5px;
	line-height: 1.35;
}
.tsp .tsp-copagos-lista li:last-child { border-bottom: 0; }
.tsp-copagos-lista b { flex: none; color: var(--texto); font-size: 14px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tsp .tsp-copagos-limite {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 10px 0 0;
	padding: 9px 12px;
	border-radius: 10px;
	background: var(--azul-suave);
	color: var(--azul-oscuro);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}
.tsp-copagos-limite small { display: block; color: var(--texto-suave); font-size: 12px; font-weight: 500; }
.tsp-copagos-limite b { flex: none; color: var(--azul); font-size: 18px; font-weight: 800; white-space: nowrap; }
.tsp-copagos-mas { margin: 8px 0 0; }
.tsp-copagos-mas summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--azul);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.tsp-copagos-mas summary::-webkit-details-marker { display: none; }
.tsp-copagos-mas summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.tsp-copagos-mas[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.tsp-copagos-mas summary:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; border-radius: 4px; }
.tsp-copagos-mas .tsp-copagos-lista { margin-top: 4px; }
.tsp .tsp-copagos-nota { margin: 8px 0 0; color: var(--texto-suave); font-size: 12.5px; line-height: 1.4; }
.tsp .tsp-copagos-nota.sin { margin-top: 6px; }

/* ---------- Precio a medida (sin precio online: se da por telefono) ---------- */
.tsp-a-medida {
	margin: 18px 0 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--azul-suave), #f4f7fc);
	color: var(--texto-suave);
	font-size: 13.5px;
	line-height: 1.45;
}
.tsp .tsp-a-medida p { margin: 0; }
.tsp .tsp-a-medida .tsp-a-medida-tit { margin: 0 0 4px; color: var(--azul-oscuro); font-size: 22px; font-weight: 800; letter-spacing: -.01em; }

.tsp-promo { margin: 14px 0 0; border-radius: 10px; background: var(--naranja-suave); }
.tsp-promo summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: #b53c00;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.tsp-promo summary::-webkit-details-marker { display: none; }
.tsp-promo summary svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tsp-promo > div { padding: 2px 12px 12px; color: #5a3418; font-size: 12.5px; line-height: 1.5; }
.tsp-promo > div p { margin: 0 0 6px; }
.tsp-promo > div ul { display: grid; gap: 5px; margin: 0 0 8px; padding: 0; list-style: none; }
.tsp-promo > div li { position: relative; margin: 0; padding-left: 20px; }
.tsp-promo > div li::before { content: ""; position: absolute; top: 3px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e04a00' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.tsp-promo > div ul + p { padding: 6px 9px; border-radius: 6px; background: rgba(255, 255, 255, .7); }
.tsp .tsp-promo-fecha { display: inline-block; margin: 2px 0 0; padding: 3px 10px; border-radius: 999px; background: #b53c00; color: #fff; font-size: 11.5px; font-weight: 700; }

/* ---------- Coberturas en la tarjeta: lo esencial (si/no) y lo que la diferencia ---------- */
.tsp-cob { flex: 1; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--linea); }
.tsp .tsp-cob-tit { margin: 0 0 8px; color: var(--texto-suave); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tsp .tsp-cob-tit + .tsp-basicas, .tsp .tsp-cob-tit + .tsp-destacadas { margin-top: 0; }
.tsp-cob svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tsp .tsp-basicas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.tsp .tsp-basicas li {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 7px 9px;
	border-radius: 10px;
	background: #f2f9f4;
	color: var(--texto);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
}
.tsp-basica-icono { flex: none; width: 18px; height: 18px; padding: 3.5px; border-radius: 50%; background: #16a34a; color: #fff; }
.tsp-basica-icono svg { stroke-width: 3.4; }
.tsp .tsp-basicas li.no { background: #f4f5f7; color: #8b94a3; font-weight: 500; text-decoration: line-through; text-decoration-color: rgba(139, 148, 163, .6); }
.tsp-basicas li.no .tsp-basica-icono { background: #e1e4e9; color: #8b94a3; }

.tsp .tsp-destacadas { margin: 0; padding: 0; list-style: none; }
.tsp .tsp-destacadas li { display: flex; align-items: flex-start; gap: 11px; margin: 0; padding: 9px 0; border-top: 1px solid #eef1f6; }
.tsp .tsp-destacadas li:first-child { border-top: 0; padding-top: 2px; }
.tsp-dest-icono {
	--fc-c: #1d4a8b;
	--fc-f: #e9f0fa;
	flex: none;
	width: 32px;
	height: 32px;
	padding: 7px;
	border-radius: 10px;
	background: var(--fc-f);
	color: var(--fc-c);
}
.tsp-destacadas .tsp-color-turquesa .tsp-dest-icono { --fc-c: #0f9488; --fc-f: #e3f6f4; }
.tsp-destacadas .tsp-color-violeta .tsp-dest-icono  { --fc-c: #6d4bd8; --fc-f: #efeafd; }
.tsp-destacadas .tsp-color-rojo .tsp-dest-icono     { --fc-c: #dc2626; --fc-f: #fdecec; }
.tsp-destacadas .tsp-color-ambar .tsp-dest-icono    { --fc-c: #d97706; --fc-f: #fdf3e2; }
.tsp-destacadas .tsp-color-verde .tsp-dest-icono    { --fc-c: #16a34a; --fc-f: #e6f7ec; }
.tsp-destacadas .tsp-color-rosa .tsp-dest-icono     { --fc-c: #d6336c; --fc-f: #fdebf1; }
/* Seguro internacional: coberturas principales con si/no a la derecha */
.tsp-principales .tsp-dest-textos { flex: 1; }
.tsp-principal-estado { flex: none; width: 22px; height: 22px; margin-top: 5px; padding: 4px; border-radius: 50%; background: #e6f7ec; color: #16a34a; stroke-width: 3; }
.tsp-principal-estado svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tsp .tsp-principales li.no .tsp-dest-icono { --fc-c: #8b94a3; --fc-f: #f1f3f6; }
.tsp .tsp-principales li.no .tsp-dest-textos strong { color: #8b94a3; text-decoration: line-through; text-decoration-color: rgba(139, 148, 163, .6); }
.tsp .tsp-principales li.no .tsp-principal-estado { background: #f1f3f6; color: #8b94a3; }
.tsp-dest-textos { display: flex; flex-direction: column; min-width: 0; }
.tsp-dest-textos strong { color: var(--texto); font-size: 14px; font-weight: 700; line-height: 1.3; }
.tsp-dest-textos span { margin-top: 1px; color: var(--texto-suave); font-size: 12.5px; line-height: 1.4; }
.tsp-oculto { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tsp-acciones { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; }
.tsp-acciones .tsr-enviar { width: 100%; height: 50px; font-size: 16px; }
.tsp-acciones .tsp-enlace { align-self: center; }

/* ---------- Comparador de coberturas (estilo de la ficha de coberturas de la intranet) ---------- */
.tsp-comparar {
	--fc-tinta: #0f1f3d;
	--fc-suave: #5b6880;
	--fc-linea: #e5e9f1;
	margin: 36px 0 0;
	scroll-margin-top: 90px;
	border: 1px solid var(--fc-linea);
	border-radius: 20px;
	background: #f6f8fc;
	color: var(--fc-tinta);
	box-shadow: var(--sombra);
}
.tsp-comparar svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Cabecera y herramientas */
.tsp-comparar-cab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 24px;
	padding: 22px 24px;
	border-radius: 20px 20px 0 0;
	background: linear-gradient(125deg, #0b1c3a 0%, #15366b 45%, #1d4a8b 75%, #1f6fb0 100%);
	color: #fff;
}
.tsp .tsp-comparar-cab .tsp-h2 { margin: 0; color: #fff; font-size: 22px; font-weight: 800; }
.tsp .tsp-comparar-textos p { margin: 4px 0 0; color: rgba(255, 255, 255, .75); font-size: 14px; }
.tsp-herramientas { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tsp .tsp-buscar { position: relative; display: block; margin: 0; }
.tsp-buscar svg { position: absolute; top: 50%; left: 13px; width: 17px; height: 17px; margin-top: -8.5px; color: #8a96ab; pointer-events: none; }
.tsp .tsp-buscar input {
	width: 250px;
	height: 40px;
	margin: 0;
	padding: 0 14px 0 40px;
	border: 1px solid transparent;
	border-radius: 11px;
	background: #fff;
	color: var(--fc-tinta);
	font: inherit;
	font-size: 14px;
	outline: none;
	transition: box-shadow .15s ease;
}
.tsp .tsp-buscar input:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.tsp-desplegar {
	height: 40px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 11px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease;
}
.tsp-desplegar:hover { background: rgba(255, 255, 255, .2); }
.tsp-desplegar:focus-visible { outline: 3px solid rgba(255, 255, 255, .5); outline-offset: 2px; }
.tsp-interruptor { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.tsp-interruptor input {
	position: relative;
	flex: none;
	width: 40px;
	height: 22px;
	margin: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .3);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: background .15s;
}
.tsp-interruptor input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.tsp-interruptor input:checked { background: var(--naranja); }
.tsp-interruptor input:checked::after { transform: translateX(18px); }
.tsp-interruptor input:focus-visible { outline: 3px solid rgba(255, 255, 255, .5); outline-offset: 2px; }

/* Nombres de los productos (varios productos): se quedan arriba al bajar */
.tsp-cmp-prods {
	position: sticky;
	top: 0;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(170px, 1.1fr) repeat(var(--cols), minmax(0, 1fr));
	gap: 14px;
	padding: 12px 36px 12px 36px;
	border-bottom: 1px solid var(--fc-linea);
	background: #fff;
	box-shadow: 0 6px 18px -14px rgba(15, 31, 61, .45);
}
.tsp-cmp-esquina { align-self: end; color: var(--fc-suave); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tsp-cmp-prod strong { display: block; color: var(--fc-tinta); font-size: 15px; font-weight: 800; line-height: 1.2; }
.tsp-cmp-prod small { display: block; margin-top: 2px; color: var(--naranja); font-size: 13px; font-weight: 700; }

/* Apartados */
.tsp-cuerpo { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 22px; }
.tsp-seccion {
	--fc-c: #1d4a8b;
	--fc-f: #e9f0fa;
	border: 1px solid var(--fc-linea);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 31, 61, .04);
	overflow: hidden;
	transition: box-shadow .2s ease, border-color .2s ease;
}
.tsp-seccion.abierta { border-color: #d5deec; box-shadow: 0 10px 28px -16px rgba(15, 31, 61, .35); }
.tsp-color-turquesa { --fc-c: #0f9488; --fc-f: #e3f6f4; }
.tsp-color-violeta  { --fc-c: #6d4bd8; --fc-f: #efeafd; }
.tsp-color-rosa     { --fc-c: #d6336c; --fc-f: #fdebf1; }
.tsp-color-verde    { --fc-c: #16a34a; --fc-f: #e6f7ec; }
.tsp-color-rojo     { --fc-c: #dc2626; --fc-f: #fdecec; }
.tsp-color-ambar    { --fc-c: #d97706; --fc-f: #fdf3e2; }
.tsp-color-naranja  { --fc-c: #ea580c; --fc-f: #fdeee4; }
.tsp-color-gris     { --fc-c: #475569; --fc-f: #eef1f5; }
.tsp .tsp-seccion-cab { margin: 0; padding: 0; font: inherit; }
.tsp .tsp-seccion-cab button {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 14px 16px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.tsp .tsp-seccion-cab button:hover { background: #fafbfd; }
.tsp .tsp-seccion-cab button:focus-visible { outline: 3px solid rgba(29, 74, 139, .3); outline-offset: -3px; border-radius: 16px; }
.tsp-seccion-icono {
	flex: none;
	width: 42px;
	height: 42px;
	padding: 10px;
	border-radius: 13px;
	background: var(--fc-f);
	color: var(--fc-c);
	transition: background .2s ease, color .2s ease;
}
.tsp-seccion.abierta .tsp-seccion-icono { background: var(--fc-c); color: #fff; }
.tsp-seccion-textos { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.tsp-seccion-titulo { color: var(--fc-tinta); font-size: 15.5px; font-weight: 800; letter-spacing: -.005em; }
.tsp-seccion-resumen { color: var(--fc-suave); font-size: 12.5px; font-weight: 500; }
.tsp-seccion-flecha {
	flex: none;
	width: 30px;
	height: 30px;
	padding: 7px;
	border-radius: 10px;
	background: #f1f4f9;
	color: #5b6880;
	transition: transform .25s ease, background .2s ease, color .2s ease;
}
.tsp-seccion.abierta .tsp-seccion-flecha { transform: rotate(180deg); background: var(--fc-f); color: var(--fc-c); }
.tsp .tsp-lista { display: none; margin: 0; padding: 0 16px 10px; list-style: none; }
.tsp-seccion.abierta .tsp-lista { display: block; }

/* Coberturas */
.tsp .tsp-fila {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 12px 4px;
	border-top: 1px solid #eef1f6;
}
.tsp .tsp-fila:first-child { border-top: 0; }
.tsp-fila-icono {
	flex: none;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	padding: 5px;
	border-radius: 50%;
	background: #2b67c0;
	color: #fff;
}
.tsp-fila-icono svg { stroke-width: 3.2; }
.tsp-e-si .tsp-fila-icono       { background: #16a34a; }
.tsp-e-no .tsp-fila-icono       { background: #e5e7eb; color: #8b94a3; }
.tsp-e-opcional .tsp-fila-icono { background: #f59e0b; }
.tsp-e-aviso .tsp-fila-icono    { background: #f97316; }
.tsp-fila-textos { flex: 1; min-width: 0; }
.tsp-fila-nombre { color: var(--fc-tinta); font-size: 14px; font-weight: 650; line-height: 1.35; }
.tsp-e-no .tsp-fila-nombre { color: #8b94a3; font-weight: 500; }
.tsp-fila-detalle { margin-top: 3px; color: var(--fc-suave); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.tsp .tsp-fila-detalle p { margin: 0; }
.tsp-fila-detalle strong, .tsp-fila-detalle b { color: var(--fc-tinta); font-weight: 700; }
.tsp .tsp-fila-detalle ul { margin: 4px 0 0; padding-left: 18px; }
.tsp .tsp-fila-detalle li { margin: 0 0 3px; color: inherit; font-size: inherit; line-height: inherit; }

/* ---------- Listas del comparador como tablas (tsr_detalle_tablas): copagos, preventiva, especiales... ---------- */
.tsp .tsp-tabla {
	width: 100%;
	margin: 8px 0 2px;
	border: 1px solid var(--fc-linea);
	border-spacing: 0;
	border-collapse: separate;
	border-radius: 12px;
	background: #fff;
	font-size: 13px;
	line-height: 1.45;
	overflow: hidden;
}
.tsp .tsp-tabla th,
.tsp .tsp-tabla td { padding: 8px 12px; border-top: 1px solid var(--fc-linea); vertical-align: top; text-align: left; }
.tsp .tsp-tabla tr:first-child th,
.tsp .tsp-tabla tr:first-child td { border-top: 0; }
.tsp .tsp-tabla tr:nth-child(even) th,
.tsp .tsp-tabla tr:nth-child(even) td { background: #f8fafd; }
.tsp .tsp-tabla th { color: var(--fc-tinta); font-weight: 600; }
.tsp .tsp-tabla td { color: var(--fc-suave); }

/* Copagos: concepto | importe */
.tsp .tsp-tabla-importes td { width: 1%; text-align: right; white-space: nowrap; vertical-align: middle; }
.tsp .tsp-tabla-importes th { vertical-align: middle; }
.tsp-importe {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--fc-f);
	color: var(--fc-c);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.tsp .tsp-tabla tr.tsp-tabla-total th,
.tsp .tsp-tabla tr.tsp-tabla-total td { border-top: 1px solid #d5deec; background: var(--fc-f); }
.tsp .tsp-tabla tr.tsp-tabla-total th { color: var(--fc-c); font-weight: 700; }
.tsp .tsp-tabla tr.tsp-tabla-total .tsp-importe { background: var(--fc-c); color: #fff; }

/* Titulo | explicacion (medicina preventiva, coberturas especiales) */
.tsp .tsp-tabla-titulos th { width: 34%; color: var(--fc-c); }

/* Listas simples (carencias, reembolso...): una fila por elemento, con su marca */
.tsp .tsp-tabla td[colspan] { color: var(--fc-tinta); }
.tsp-tabla-fila { display: flex; align-items: flex-start; gap: 10px; }
.tsp-tabla-punto { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--fc-c); box-shadow: 0 0 0 3px var(--fc-f); }
.tsp-tabla-texto { min-width: 0; }

/* Sublistas: etiquetas */
.tsp-tabla-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tsp-tabla-chips span {
	padding: 2px 9px;
	border-radius: 8px;
	background: var(--fc-f);
	color: var(--fc-c);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}

/* En las columnas del comparador (estrechas) y en el movil, titulo encima de su explicacion */
.tsp .tsp-fila-varios .tsp-tabla-titulos th,
.tsp .tsp-fila-varios .tsp-tabla-titulos td { display: block; width: auto; }
.tsp .tsp-fila-varios .tsp-tabla-titulos th { padding-bottom: 0; }
.tsp .tsp-fila-varios .tsp-tabla-titulos td { padding-top: 2px; border-top: 0; }
@media (max-width: 600px) {
	.tsp .tsp-tabla-titulos th,
	.tsp .tsp-tabla-titulos td { display: block; width: auto; }
	.tsp .tsp-tabla-titulos th { padding-bottom: 0; }
	.tsp .tsp-tabla-titulos td { padding-top: 2px; border-top: 0; }
}
.tsp-estado {
	flex: none;
	margin-top: 1px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .01em;
	white-space: nowrap;
}
.tsp-e-si .tsp-estado       { background: #e7f7ed; color: #15803d; }
.tsp-e-no .tsp-estado       { background: #f3f4f6; color: #8b94a3; }
.tsp-e-opcional .tsp-estado { background: #fef4e2; color: #b45309; }
.tsp-e-aviso .tsp-estado    { background: #fff0e6; color: #c2410c; }

/* Varios productos: una columna por producto */
.tsp .tsp-fila-varios {
	display: grid;
	grid-template-columns: minmax(170px, 1.1fr) repeat(var(--cols), minmax(0, 1fr));
	gap: 14px;
}
.tsp-fila-varios > .tsp-fila-nombre { padding-top: 2px; }
.tsp-celda { min-width: 0; }
.tsp-celda-prod { display: none; }
.tsp-celda-estado { display: flex; align-items: center; gap: 8px; }
.tsp-celda-estado .tsp-fila-icono { margin-top: 0; }

/* Buscar y «solo diferencias» */
.tsp .tsp-fila.oculta, .tsp-seccion.oculta { display: none; }
/* Celdas de la version con dental (o de la normal, con «Añadir dental» marcado) que no tocan */
.tsp .tsp-variante-oculta { display: none !important; }
.tsp .tsp-sin-resultados { margin: 0; padding: 26px 10px; color: var(--fc-suave); font-size: 14px; text-align: center; }
.solo-diferencias .tsp-seccion.sin-diferencias { display: none; }
.solo-diferencias .tsp-fila.igual { display: none; }
.solo-diferencias .tsp-lista { display: block; }
.solo-diferencias .tsp-seccion-flecha { transform: rotate(180deg); }

@media (max-width: 760px) {
	.tsp-comparar { margin-left: -4px; margin-right: -4px; border-radius: 16px; }
	.tsp-comparar-cab { padding: 18px 16px; border-radius: 16px 16px 0 0; }
	.tsp-herramientas, .tsp .tsp-buscar { width: 100%; }
	.tsp .tsp-buscar input { width: 100%; }
	.tsp-desplegar { flex: 1; }
	.tsp-cmp-prods { display: none; }
	.tsp-cuerpo { padding: 12px 10px 16px; }
	.tsp .tsp-seccion-cab button { gap: 11px; padding: 12px; }
	.tsp-seccion-icono { width: 38px; height: 38px; padding: 9px; }
	.tsp .tsp-lista { padding: 0 12px 8px; }
	.tsp .tsp-fila { gap: 10px; padding: 11px 0; }
	.tsp-fila-nombre { font-size: 13.5px; }
	.tsp-estado { padding: 3px 8px; font-size: 11px; }
	/* En el movil, cada producto debajo del nombre de la cobertura, con su nombre */
	.tsp .tsp-fila-varios { display: flex; flex-direction: column; gap: 8px; }
	.tsp-fila-varios .tsp-celda { width: 100%; padding: 9px 11px; border-radius: 11px; background: #f6f8fc; }
	.tsp-celda-prod { display: block; margin-bottom: 4px; color: var(--fc-suave); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
}

/* ---------- Asesor ---------- */
.tsp-asesor {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px 28px;
	margin: 36px 0 0;
	padding: 26px 30px;
	border-radius: 18px;
	background: linear-gradient(120deg, #1b437f 0%, #0e2448 100%);
	color: #fff;
}
.tsp-asesor h2 { margin: 0 0 6px; color: #fff; font-size: 22px; font-weight: 700; }
.tsp-asesor p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 15px; }
.tsp-asesor-texto { flex: 1 1 320px; }
.tsp-asesor-botones { display: flex; flex-wrap: wrap; gap: 12px; }
.tsp .tsp-telefono {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 54px;
	padding: 0 22px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 12px;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.tsp .tsp-telefono:hover { background: rgba(255, 255, 255, .1); }

.tsp-legal { margin: 22px 0 0; color: var(--texto-suave); font-size: 12px; line-height: 1.5; }
.tsp-legal p { margin: 0 0 6px; }

/* ---------- Sin resultado / sin precios ---------- */
.tsp-vacio, .tsp-sinprecios { max-width: 560px; margin: 40px auto; padding: 36px 30px; border: 1px solid var(--linea); border-radius: 18px; background: #fff; box-shadow: var(--sombra); text-align: center; }
.tsp-sinprecios { margin-top: 22px; }
.tsp-vacio h2 { margin: 14px 0 8px; color: var(--texto); font-size: 22px; }
.tsp-vacio p, .tsp-sinprecios p { margin: 0 0 22px; color: var(--texto-suave); }
.tsp-vacio-icono { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--azul-suave); color: var(--azul); }
.tsp-vacio-icono svg { width: 30px; height: 30px; }

/* ---------- Ventana «te llamamos» ---------- */
.tsp-dialogo {
	width: min(440px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 0;
	border-radius: 18px;
	background: #fff;
	color: var(--texto);
	box-shadow: 0 30px 80px rgba(14, 36, 72, .35);
}
.tsp-dialogo::backdrop { background: rgba(14, 36, 72, .55); backdrop-filter: blur(3px); }
.tsp-dialogo form { position: relative; display: grid; gap: 14px; padding: 30px 26px 24px; }
.tsp-dialogo h2 { margin: 0; padding-right: 24px; color: var(--texto); font-size: 21px; font-weight: 700; }
.tsp-dialogo-icono { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--naranja-suave); color: var(--naranja); }
.tsp-dialogo-icono svg { width: 24px; height: 24px; }
.tsp .tsp-dialogo-producto { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--azul-suave); color: var(--azul); font-weight: 700; }
.tsp .tsp-dialogo-texto { margin: 0; color: var(--texto-suave); font-size: 14px; }
.tsp .tsp-dialogo-enviar { width: 100%; }
.tsp .tsp-dialogo-nota { margin: 0; color: var(--texto-suave); font-size: 13px; text-align: center; }
.tsp .tsp-dialogo-nota a { color: var(--azul); font-weight: 700; }
.tsp .tsp-cerrar {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #f1f3f7;
	color: var(--texto-suave);
	cursor: pointer;
}
.tsp .tsp-cerrar:hover { background: var(--linea); color: var(--texto); }

/* ---------- Barra fija (movil) ---------- */
.tsp-barra { display: none; }

/* ---------- Forma de pago ---------- */
.tsp-pago { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 18px 0 0; padding: 0; border: 0; }
.tsp-pago[hidden] { display: none; }
.tsp-pago legend { float: left; margin: 0; padding: 0; color: var(--texto); font-size: 14px; font-weight: 700; }
.tsp-pago-opciones { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--linea); border-radius: 12px; background: #fff; }
.tsp-pago-opcion { position: relative; margin: 0; cursor: pointer; }
.tsp-pago-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.tsp-pago-opcion span { display: block; padding: 8px 14px; border-radius: 9px; color: var(--texto-suave); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .15s, color .15s; }
.tsp-pago-opcion span em { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--verde-suave); color: var(--verde); font-size: 11px; font-style: normal; }
.tsp-pago-opcion:hover span { color: var(--azul); }
.tsp-pago-opcion input:checked + span { background: var(--azul); color: #fff; }
.tsp-pago-opcion input:checked + span em { background: rgba(255, 255, 255, .2); color: #fff; }
.tsp-pago-opcion input:focus-visible + span { box-shadow: 0 0 0 3px rgba(29, 74, 139, .3); }

/* ---------- Ahorro y dental en la tarjeta ---------- */
.tsp .tsp-ahorro { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--verde-suave); color: #23744a; font-size: 13px; }
.tsp-dental {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0 0;
	padding: 10px 12px;
	border: 1px dashed #b8c4d6;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.tsp-dental:hover { border-color: var(--azul); }
.tsp-dental input { width: 20px; height: 20px; margin: 0; accent-color: var(--azul); cursor: pointer; }
.tsp-dental-texto { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; flex: 1; font-size: 14px; }
.tsp-dental-texto span { color: var(--texto-suave); font-weight: 600; }
.tsp-producto.con-dental .tsp-dental { border-style: solid; border-color: var(--azul); background: var(--azul-suave); }

/* ---------- Cuadro medico ---------- */
.tsp .tsp-cuadro {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 720px;
	margin: 22px auto 0;
	padding: 14px 18px;
	border: 1px solid var(--linea);
	border-radius: 12px;
	background: #fff;
	color: var(--texto);
	font-size: 15px;
	text-decoration: none;
	box-shadow: var(--sombra);
}
.tsp .tsp-cuadro:hover { border-color: var(--azul); }
.tsp-cuadro svg:first-child { width: 22px; height: 22px; color: var(--naranja); }
.tsp-cuadro span { flex: 1; }
.tsp-cuadro svg:last-child { color: var(--azul); }

/* ---------- Estrecho ---------- */
@media (max-width: 760px) {
	.tsp .tsr-titulo { font-size: 20px; }
	.tsp-resumen { padding: 14px 16px; }
	.tsp-resumen .tsp-boton-sec { width: 100%; }
	.tsp-tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tsp-productos { grid-template-columns: 1fr; }
	.tsp-precio-num { font-size: 36px; }
	.tsp-pago legend { float: none; width: 100%; }
	.tsp-pago-opciones { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
	.tsp-pago-opcion span { text-align: center; }
	.tsp-asesor { padding: 22px 20px; }
	.tsp-asesor-botones, .tsp-asesor-botones > * { width: 100%; justify-content: center; }
	.tsp-editar-pie { flex-direction: column-reverse; }
	.tsp-editar-pie > * { width: 100%; }

	.tsp-barra {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 900;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--linea);
		background: rgba(255, 255, 255, .97);
		box-shadow: 0 -6px 20px rgba(16, 32, 64, .1);
		transform: translateY(110%);
		transition: transform .25s;
	}
	.tsp-barra.visible { transform: none; }
	.tsp-barra p { margin: 0; color: var(--texto-suave); font-size: 14px; }
	.tsp-barra strong { color: var(--texto); font-size: 18px; }
	.tsp .tsp-barra .tsr-enviar { height: 46px; padding: 0 20px; font-size: 15px; }
}

/* ---------- Pymes: casilla «Con copago» (como la de dental) ---------- */
.tsp-producto .tsp-solo-con { display: none; }
.tsp-producto.con-copago .tsp-solo-sin { display: none; }
.tsp-producto.con-copago .tsp-solo-con { display: revert; }
.tsp-producto.con-copago p.tsp-copago-chip.tsp-solo-con { display: inline-flex; }
/* Selector «Sin copago / Con copago» */
.tsp-copago-selector {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin: 14px 0 0;
	padding: 4px;
	border: 1px solid var(--linea, #e3e8f0);
	border-radius: 12px;
	background: #f3f6fb;
}
.tsp-copago-opcion { position: relative; margin: 0; cursor: pointer; }
.tsp-copago-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.tsp-copago-opcion span {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 8px 6px;
	border-radius: 9px;
	color: var(--texto-suave);
	font-size: 14px;
	text-align: center;
	transition: background-color .15s, color .15s, box-shadow .15s;
}
.tsp-copago-opcion strong { color: inherit; font-weight: 700; }
.tsp-copago-opcion small { font-size: 12px; font-weight: 600; }
.tsp-copago-opcion:hover span { color: var(--azul); }
.tsp-copago-opcion input:checked + span { background: #fff; color: var(--azul); box-shadow: 0 1px 3px rgba(16, 32, 64, .14); }
.tsp-copago-opcion input:focus-visible + span { outline: 3px solid rgba(29, 74, 139, .3); outline-offset: 1px; }
.tsp-copago-opcion [data-copago-extra] { color: var(--verde, #2f9e5b); }
