/* Tmovemos – Cotizador. Hereda los colores del tema si existen. */
.tmvq, .tmvc {
	--q-brand: var(--brand-600, #168bd2);
	--q-brand-dark: var(--brand-700, #0d6fae);
	--q-brand-soft: var(--brand-50, #eef7fd);
	--q-ink: var(--ink, #0a1726);
	--q-text: var(--text, #1b2a3a);
	--q-muted: var(--muted, #5b6c7e);
	--q-line: var(--line, #e3ebf3);
	--q-soft: var(--soft, #f4f8fc);
	--q-wa: #25d366;
	color: var(--q-text);
	font-family: inherit;
}
.tmvq *, .tmvc * { box-sizing: border-box; }
.tmvq [hidden], .tmvc [hidden] { display: none !important; }

/* Progreso */
.tmvq__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; counter-reset: none; }
.tmvq__progress li { display: grid; gap: 8px; justify-items: center; position: relative; font-size: .8rem; color: var(--q-muted); font-weight: 600; }
.tmvq__progress li::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 3px; border-radius: 3px; background: var(--q-line); }
.tmvq__progress li:first-child::before { display: none; }
.tmvq__progress li.is-active::before { background: var(--q-brand); }
.tmvq__progress span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--q-soft); border: 2px solid var(--q-line); font-weight: 800; color: var(--q-muted); transition: .3s; position: relative; z-index: 1; }
.tmvq__progress li.is-active span { background: var(--q-brand); border-color: var(--q-brand); color: #fff; box-shadow: 0 8px 20px -8px var(--q-brand); }
.tmvq__progress li.is-active { color: var(--q-ink); }
.tmvq__progress em { font-style: normal; }
@media (max-width: 480px) { .tmvq__progress em { display: none; } }

/* Pasos */
.tmvq__step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.tmvq__step.is-active { display: grid; gap: 18px; animation: tmvqIn .35s ease; }
@keyframes tmvqIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.tmvq__title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); font-weight: 800; color: var(--q-ink); letter-spacing: -.02em; margin-bottom: 4px; padding: 0; }
.tmvq__title small { font-size: .9rem; font-weight: 500; color: var(--q-muted); }
.tmvq__row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.tmvq__row--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.tmvq__hint { margin: 0; font-size: .88rem; color: var(--q-muted); }

.tmvq__field { display: grid; gap: 6px; }
.tmvq__field > span { font-size: .85rem; font-weight: 700; color: var(--q-ink); }
.tmvq__field input, .tmvq__field select, .tmvq__field textarea {
	width: 100%; min-height: 50px; padding: 12px 16px; font: inherit; color: var(--q-text);
	border: 1.5px solid var(--q-line); border-radius: 12px; background: var(--q-soft); appearance: none;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.tmvq__field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6c7e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.tmvq__field textarea { min-height: 96px; resize: vertical; }
.tmvq__field input:focus, .tmvq__field select:focus, .tmvq__field textarea:focus { outline: 0; border-color: var(--q-brand); background-color: #fff; box-shadow: 0 0 0 4px rgba(63, 172, 234, .18); }

/* Tarjetas de opción */
.tmvq__cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.tmvq__cards--extras { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.tmvq__card { position: relative; cursor: pointer; }
.tmvq__card input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.tmvq__card-in { display: grid; gap: 4px; justify-items: start; height: 100%; padding: 16px; border-radius: 14px; border: 1.5px solid var(--q-line); background: #fff; transition: .2s; }
.tmvq__card-in svg { width: 28px; height: 28px; color: var(--q-brand); margin-bottom: 6px; }
.tmvq__card-in strong { font-size: .95rem; color: var(--q-ink); line-height: 1.25; }
.tmvq__card-in small { font-size: .8rem; color: var(--q-muted); }
.tmvq__card:hover .tmvq__card-in { border-color: var(--q-brand); }
.tmvq__card input:checked + .tmvq__card-in { border-color: var(--q-brand); background: var(--q-brand-soft); box-shadow: 0 0 0 3px rgba(63, 172, 234, .25); }
.tmvq__card input:focus-visible + .tmvq__card-in { outline: 3px solid var(--q-brand); outline-offset: 2px; }
.tmvq__card--check .tmvq__card-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.tmvq__card--check .tmvq__card-in svg { margin: 0; }
.tmvq__tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--q-line); color: transparent; transition: .2s; }
.tmvq__tick svg { width: 16px !important; height: 16px !important; margin: 0 !important; color: inherit !important; stroke-width: 3; }
.tmvq__card input:checked + .tmvq__card-in .tmvq__tick { background: var(--q-brand); border-color: var(--q-brand); color: #fff; }

.tmvq__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--q-muted); cursor: pointer; }
.tmvq__consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--q-brand); flex-shrink: 0; }
.tmvq__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Navegación */
.tmvq__nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--q-line); flex-wrap: wrap; }
.tmvq__nav [data-next], .tmvq__nav [data-submit] { margin-left: auto; }
.tmvq__live { display: grid; padding: 8px 16px; border-radius: 12px; background: var(--q-brand-soft); line-height: 1.2; }
.tmvq__live small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--q-brand-dark); font-weight: 700; }
.tmvq__live strong { color: var(--q-ink); font-size: 1.02rem; }
@media (max-width: 560px) { .tmvq__live { order: -1; width: 100%; text-align: center; } .tmvq__nav [data-next], .tmvq__nav [data-submit] { flex: 1; } }

.tmvq__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border: 0; border-radius: 999px; background: var(--q-brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .2s, background-color .2s, box-shadow .2s; box-shadow: 0 12px 26px -12px rgba(22, 139, 210, .7); }
.tmvq__btn:hover { background: var(--q-brand-dark); color: #fff; transform: translateY(-1px); }
.tmvq__btn:disabled { opacity: .7; cursor: wait; transform: none; }
.tmvq__btn--ghost { background: transparent; color: var(--q-ink); box-shadow: none; border: 1.5px solid var(--q-line); }
.tmvq__btn--ghost:hover { background: var(--q-soft); color: var(--q-ink); }
.tmvq__btn--wa { background: var(--q-wa); box-shadow: 0 12px 26px -12px rgba(37, 211, 102, .8); }
.tmvq__btn--wa:hover { background: #1aae52; }
.tmvq__btn--block { width: 100%; }

.tmvq__error { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: .92rem; font-weight: 600; border: 1px solid #fecaca; }

/* Resultado */
.tmvq__result:focus { outline: 0; }
.tmvq__done { display: grid; gap: 12px; text-align: center; justify-items: center; animation: tmvqIn .4s ease; }
.tmvq__done-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: #16a34a; }
.tmvq__code { margin: 0; color: var(--q-muted); }
.tmvq__price-label { margin: 6px 0 0; font-size: 1rem; color: var(--q-muted); font-weight: 700; }
.tmvq__price { margin: 0; font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; color: var(--q-ink); line-height: 1.1; }
.tmvq__meta { margin: 0; color: var(--q-muted); font-size: .9rem; }
.tmvq__note { margin: 0 0 8px; font-size: .88rem; color: var(--q-muted); max-width: 460px; }
.tmvq__breakdown { width: 100%; max-width: 460px; text-align: left; border: 1px solid var(--q-line); border-radius: 12px; padding: 4px 16px; }
.tmvq__breakdown summary { cursor: pointer; padding: 10px 0; font-weight: 700; color: var(--q-brand-dark); }
.tmvq__breakdown ul { list-style: none; margin: 0 0 10px; padding: 0; }
.tmvq__breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--q-line); font-size: .9rem; }
.tmvq__done .tmvq__btn { max-width: 460px; }

/* Contacto */
.tmvc { display: grid; gap: 16px; margin-top: 20px; }
.tmvc__ok { padding: 20px; border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; display: grid; gap: 12px; justify-items: start; }
.tmvc__ok:focus { outline: 0; }
.tmvc__ok p { margin: 0; color: #166534; }

/* ---------- Cotizador rápido (inicio) ---------- */
.tmvr { --r-brand: var(--brand-600, #168bd2); --r-muted: var(--muted, #5b6c7e); --r-ink: var(--ink, #0a1726); }
.tmvr [hidden] { display: none !important; }
.tmvr__step { display: grid; gap: 14px; animation: tmvrIn .35s ease; }
@keyframes tmvrIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.tmvr__dots { display: flex; gap: 6px; list-style: none; margin: -4px 0 2px; padding: 0; }
.tmvr__dots li { flex: 1; height: 4px; border-radius: 4px; background: var(--line, #e3ebf3); transition: background .3s; margin: 0; }
.tmvr__dots li.is-on { background: var(--r-brand); }
.tmvr__route { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--brand-50, #eef7fd); color: var(--r-ink); font-weight: 700; font-size: .92rem; }
.tmvr__link { border: 0; background: none; padding: 0; font: inherit; font-size: .88rem; font-weight: 700; color: var(--r-brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tmvr__legal { display: flex; gap: 6px; align-items: flex-start; margin: -4px 0 0; font-size: .78rem; line-height: 1.45; color: var(--r-muted); }
.tmvr__legal .icon { flex-shrink: 0; margin-top: 2px; }
.tmvr__legal a { color: inherit; }
.tmvr__error { padding: 10px 14px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-weight: 600; font-size: .9rem; }

.tmvr__processing { display: grid; gap: 18px; padding: 6px 0 4px; animation: tmvrIn .3s ease; }
.tmvr__road { position: relative; height: 54px; border-radius: 14px; overflow: hidden; background: linear-gradient(var(--brand-50, #eef7fd), var(--brand-50, #eef7fd)); }
.tmvr__road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 3px; background: repeating-linear-gradient(90deg, var(--r-brand) 0 18px, transparent 18px 32px); opacity: .35; animation: tmvrRoad .6s linear infinite; }
@keyframes tmvrRoad { to { background-position: -32px 0; } }
.tmvr__truck { position: absolute; bottom: 14px; left: -40px; color: var(--r-brand); animation: tmvrDrive 3s cubic-bezier(.45, .05, .35, 1) forwards; }
.tmvr__truck .icon { width: 34px; height: 34px; }
@keyframes tmvrDrive { 0% { left: -40px; } 85% { left: calc(100% - 52px); } 100% { left: calc(100% - 52px); } }
.tmvr__tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tmvr__tasks li { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--r-muted); font-weight: 600; font-size: .95rem; opacity: .45; transition: opacity .3s, color .3s; }
.tmvr__tasks li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line, #e3ebf3); box-sizing: border-box; }
.tmvr__tasks li.is-doing { opacity: 1; color: var(--r-ink); }
.tmvr__tasks li.is-doing::before { border-color: var(--r-brand); border-right-color: transparent; animation: tmvrSpin .7s linear infinite; }
.tmvr__tasks li.is-done { opacity: 1; color: var(--r-ink); }
.tmvr__tasks li.is-done::before { border: 0; background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
@keyframes tmvrSpin { to { transform: rotate(360deg); } }

.tmvr__result { display: grid; gap: 14px; outline: 0; animation: tmvrIn .35s ease; }
.tmvr__ok { text-align: center; display: grid; gap: 6px; justify-items: center; }
.tmvr__check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; color: #16a34a; animation: tmvrPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tmvrPop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.tmvr__label { margin: 6px 0 0; color: var(--r-muted); font-weight: 600; font-size: .9rem; }
.tmvr__price { margin: 0; font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; color: var(--r-ink); line-height: 1.15; }
.tmvr__meta { margin: 0; color: var(--r-muted); font-size: .85rem; }
.tmvr__info { margin: 6px 0 0; font-size: .9rem; color: var(--text, #1b2a3a); line-height: 1.5; }
.tmvr__result .btn--wa svg { width: 22px; height: 22px; }
.tmvr__more { display: flex; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .tmvr *, .tmvr *::before, .tmvr *::after { animation-duration: .01ms !important; } }
