/* Montironi · Simulador de Leasing — v1.1 · fondo blanco, negro + amarillo Montironi */
.msl.msl {
	--msl-accent: #ffc000;
	--msl-black: #0d0d0d;
	--msl-ink: #111;
	--msl-muted: #5f6368;
	--msl-line: #e6e6e6;
	--msl-soft: #f5f5f5;
	--msl-wa: #25d366;
	font-family: inherit;
	color: var(--msl-ink);
	background: #fff;
	border: 1px solid var(--msl-line);
	border-top: 6px solid var(--msl-accent);
	border-radius: 16px;
	padding: 32px;
	margin: 36px 0;
	box-sizing: border-box;
	line-height: 1.45;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}
/* Reset defensivo frente a estilos del tema / Elementor */
.msl.msl table, .msl.msl th, .msl.msl td, .msl.msl tr { border: 0; background: none; box-shadow: none; }
.msl.msl table { table-layout: auto; margin: 0; }
.msl.msl fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.msl.msl legend { float: none; width: auto; border: 0; font-size: .95rem; line-height: 1.3; }
.msl.msl label, .msl.msl dt, .msl.msl dd { line-height: 1.35; }
.msl.msl p:empty, .msl.msl br { display: none; }
.msl.msl h2, .msl.msl h3 { text-transform: none; }
.msl.msl input[type="range"] { -webkit-appearance: auto; appearance: auto; background: transparent; border: 0; padding: 0; box-shadow: none; }
.msl.msl .msl__label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 8px; color: var(--msl-black); }
.msl.msl *, .msl.msl *::before, .msl.msl *::after { box-sizing: border-box; }
.msl.msl [hidden] { display: none !important; }

/* Encabezado */
.msl.msl .msl__head { margin-bottom: 26px; }
.msl.msl .msl__eyebrow {
	display: inline-block;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--msl-black);
	background: var(--msl-accent);
	padding: 4px 10px;
	border-radius: 4px;
	margin-bottom: 12px;
}
.msl.msl .msl__title { margin: 0 0 8px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: var(--msl-black); }
.msl.msl .msl__lead { margin: 0; color: var(--msl-muted); font-size: 1.05rem; }

.msl.msl .msl__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .msl.msl .msl__grid { grid-template-columns: minmax(0, 1fr); } .msl.msl { padding: 20px; } }
.msl.msl .msl__result, .msl.msl .msl__form { min-width: 0; }

/* Formulario */
.msl.msl .msl__form { display: flex; flex-direction: column; gap: 20px; }
.msl.msl .msl__field { border: 0; margin: 0; padding: 0; min-width: 0; }
.msl.msl .msl__field > label, .msl.msl .msl__field > legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; color: var(--msl-black); }
.msl.msl .msl__field output { font-weight: 800; color: var(--msl-black); background: linear-gradient(transparent 60%, rgba(255, 192, 0, .55) 60%); padding: 0 2px; }
.msl.msl .msl__static { padding: 11px 14px; background: var(--msl-black); color: #fff; border-radius: 8px; font-weight: 700; display: inline-block; min-width: 140px; }

.msl.msl select, .msl.msl input[type="text"], .msl.msl input[type="number"] {
	width: 100%;
	height: 46px;
	padding: 0 12px;
	border: 1.5px solid #d4d4d4;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: inherit;
	margin: 0;
}
.msl.msl select:focus, .msl.msl input:focus { outline: none; border-color: var(--msl-black); box-shadow: 0 0 0 3px rgba(255, 192, 0, .45); }

.msl.msl .msl__money, .msl.msl .msl__suffix { position: relative; display: flex; align-items: center; }
.msl.msl .msl__money span { position: absolute; left: 12px; color: var(--msl-muted); font-weight: 700; }
.msl.msl .msl__money input { padding-left: 28px !important; font-size: 1.25rem; font-weight: 800; }
.msl.msl .msl__suffix input { padding-right: 34px !important; font-weight: 700; }
.msl.msl .msl__suffix span { position: absolute; right: 12px; color: var(--msl-muted); }
.msl.msl .msl__suffix input[readonly] { background: var(--msl-soft); }
.msl.msl .msl__field--inline { max-width: 180px; }

/* Sliders: pista gris, relleno negro, pulgar amarillo */
.msl.msl input[type="range"] { width: 100%; margin: 12px 0 0; accent-color: var(--msl-black); height: 6px; cursor: pointer; }
.msl.msl input[type="range"]::-webkit-slider-thumb { accent-color: var(--msl-accent); }

.msl.msl .msl__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.msl.msl .msl__pill { position: relative; cursor: pointer; margin: 0; }
.msl.msl .msl__pill input { position: absolute; opacity: 0; pointer-events: none; }
.msl.msl .msl__pill span {
	display: inline-block;
	padding: 9px 16px;
	border: 1.5px solid #d4d4d4;
	border-radius: 8px;
	font-size: .92rem;
	font-weight: 600;
	background: #fff;
	color: var(--msl-ink);
	transition: background .15s, color .15s, border-color .15s;
}
.msl.msl .msl__pill:hover span { border-color: var(--msl-black); }
.msl.msl .msl__pill input:checked + span { background: var(--msl-accent); border-color: var(--msl-accent); color: var(--msl-black); font-weight: 800; }
.msl.msl .msl__pill input:focus-visible + span { outline: 2px solid var(--msl-black); outline-offset: 2px; }

.msl.msl .msl__check { display: flex; gap: 8px; align-items: center; font-size: .95rem; cursor: pointer; font-weight: 600; }
.msl.msl .msl__check input { accent-color: var(--msl-black); width: 18px; height: 18px; margin: 0; }

/* Resultado */
.msl.msl .msl__result { background: var(--msl-soft); border-radius: 14px; padding: 22px; }
.msl.msl .msl__hero { display: flex; flex-direction: column; background: var(--msl-black); color: #fff; border-radius: 12px; padding: 20px 22px; margin-bottom: 16px; }
.msl.msl .msl__hero-label { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--msl-accent); }
.msl.msl .msl__hero-value { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; margin: 6px 0 4px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.msl.msl .msl__hero-sub { font-size: .88rem; color: #cfcfcf; }

.msl.msl .msl__rows { margin: 0; }
.msl.msl .msl__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--msl-line); }
.msl.msl .msl__rows > div.msl__sep { border-top: 2px solid var(--msl-black); margin-top: 6px; }
.msl.msl .msl__rows dt { color: var(--msl-muted); font-size: .93rem; margin: 0; }
.msl.msl .msl__rows dd { margin: 0; font-weight: 800; text-align: right; color: var(--msl-black); font-variant-numeric: tabular-nums; }

.msl.msl .msl__note { font-size: .82rem; color: var(--msl-muted); margin: 12px 0 0; }

.msl.msl .msl__compare { margin-top: 18px; background: #fff; border: 1px solid var(--msl-line); border-radius: 12px; padding: 16px; }
.msl.msl .msl__compare h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 800; color: var(--msl-black); }
.msl.msl .msl__compare table, .msl.msl .msl__table table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 0; border: 0; }
.msl.msl .msl__compare th, .msl.msl .msl__compare td, .msl.msl .msl__table th, .msl.msl .msl__table td { padding: 8px 6px; border: 0; border-bottom: 1px solid var(--msl-line); text-align: right; font-variant-numeric: tabular-nums; background: transparent; }
.msl.msl .msl__compare th:first-child, .msl.msl .msl__compare tbody th { text-align: left; font-weight: 500; color: var(--msl-muted); }
.msl.msl .msl__compare thead th { font-weight: 800; color: var(--msl-black); border-bottom: 2px solid var(--msl-black); }
.msl.msl .msl__compare thead th:nth-child(2) { background: var(--msl-accent); border-radius: 6px 6px 0 0; text-align: center; }
.msl.msl .msl__compare tbody td:nth-child(2) { background: rgba(255, 192, 0, .12); font-weight: 700; color: var(--msl-black); }

/* CTA estilo "Consultar" */
.msl.msl .msl__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
	padding: 15px 22px;
	text-align: center;
	border-radius: 999px;
	background: var(--msl-wa);
	color: #fff !important;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-size: .95rem;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
	transition: transform .15s, filter .15s;
}
.msl.msl .msl__cta::before {
	content: "";
	width: 22px; height: 22px; flex: 0 0 22px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.5 3 2 6.9 2 11.7c0 2.6 1.3 4.9 3.4 6.5L4.6 21l3.6-1.9c1.2.4 2.5.6 3.8.6 5.5 0 10-3.9 10-8.7S17.5 3 12 3zm-4 10a1.3 1.3 0 110-2.6A1.3 1.3 0 018 13zm4 0a1.3 1.3 0 110-2.6 1.3 1.3 0 010 2.6zm4 0a1.3 1.3 0 110-2.6 1.3 1.3 0 010 2.6z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.5 3 2 6.9 2 11.7c0 2.6 1.3 4.9 3.4 6.5L4.6 21l3.6-1.9c1.2.4 2.5.6 3.8.6 5.5 0 10-3.9 10-8.7S17.5 3 12 3zm-4 10a1.3 1.3 0 110-2.6A1.3 1.3 0 018 13zm4 0a1.3 1.3 0 110-2.6 1.3 1.3 0 010 2.6zm4 0a1.3 1.3 0 110-2.6 1.3 1.3 0 010 2.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.msl.msl .msl__cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.msl.msl .msl__cta.is-disabled { background: #cfcfcf; box-shadow: none; cursor: not-allowed; text-transform: none; letter-spacing: 0; }
.msl.msl .msl__cta.is-disabled::before { display: none; }

.msl.msl .msl__table { margin-top: 18px; }
.msl.msl .msl__table summary { cursor: pointer; font-weight: 800; color: var(--msl-black); text-decoration: underline; text-decoration-color: var(--msl-accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.msl.msl .msl__table-wrap { max-height: 360px; overflow: auto; margin-top: 12px; background: #fff; border-radius: 10px; border: 1px solid var(--msl-line); }
.msl.msl .msl__table thead th { position: sticky; top: 0; background: var(--msl-black); color: #fff; font-weight: 700; }
.msl.msl .msl__table td:first-child, .msl.msl .msl__table th:first-child { text-align: center; }
.msl.msl .msl__table tr.msl__total td { font-weight: 800; background: rgba(255, 192, 0, .18); }

.msl.msl .msl__disclaimer { margin: 20px 0 0; font-size: .75rem; color: var(--msl-muted); }

@media (max-width: 480px) {
	.msl.msl .msl__compare { padding: 10px; }
	.msl.msl .msl__compare th, .msl.msl .msl__compare td { padding: 6px 4px; font-size: .8rem; }
	.msl.msl .msl__pill span { padding: 8px 12px; }
}
