/* Imvimax 2026 — «Vende o entrega tu dispositivo» (prefijo imvv-). Usa los tokens de style.css. */

body.imv.imvv-pag { background: var(--fondo); }
body.imvv-pag .site-content > .ast-container { display: block; max-width: none; padding: 0; }

.imvv { display: block; padding-bottom: 72px; }
.imvv :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.imvv :where(h1, h2, p, fieldset, legend) { margin: 0; padding: 0; border: 0; }
.imvv [hidden] { display: none !important; }
html:not(.imvv-js) .imvv-solo-js, .imvv-js .imvv-sin-js { display: none; }
.imvv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

body.imv .imvv :is(a, button, input, summary):focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
body.imv .imvv-cab a:focus-visible { outline-color: var(--menta); }

/* ---------- Cabecera ---------- */
.imvv-cab { position: relative; overflow: hidden; isolation: isolate; padding: 26px 0 118px; background: var(--tinta); color: #fff; }
.imvv-cab h1 { padding-top: 14px; max-width: 14em; font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; color: #fff; font-variation-settings: "opsz" 96; text-wrap: balance; }
.imvv-cab__txt { max-width: 38em; padding-top: 14px; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.45; color: #d5e6ea; }
body.imv .imvv-migas, body.imv .imvv-migas a { color: #b9d0d6; }
body.imv .imvv-migas a:hover { color: #fff; }
.imvv-hex { position: absolute; z-index: -1; aspect-ratio: 1.1547 / 1; clip-path: var(--hex); }
.imvv-hex--a { width: 300px; right: 7%; top: -80px; background: var(--ambar); opacity: .35; }
.imvv-hex--b { width: 300px; right: calc(7% - 232px); top: 56px; background: var(--cian); opacity: .18; }

.imvv-pendiente { max-width: 46em; margin-top: 16px !important; padding: 12px 16px; border-radius: var(--r-s); border-left: 5px solid var(--ambar); background: #fff8e1; color: var(--tinta); font-size: 15px; line-height: 1.45; }
body.imv .imvv-pendiente a { color: var(--teal-osc); font-weight: 700; text-decoration: underline; }

/* ---------- Asistente ---------- */
.imvv-asistente { display: none; }
.imvv-js .imvv-asistente { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: -78px; position: relative; }
.imvv-form { margin: 0; padding: clamp(18px, 2.6vw, 34px); background: #fff; border-radius: var(--r-l); box-shadow: var(--sombra-2); scroll-margin-top: 140px; min-width: 0; }

/* Pasos y barra */
.imvv-pasos ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
body.imv .imvv-pasos button {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 4px 4px 4px 0;
  background: none; border: 0; border-radius: var(--r-s); box-shadow: none;
  color: var(--gris); font: inherit; font-size: 14.5px; font-weight: 700; line-height: 1.15; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer;
}
body.imv .imvv-pasos button:disabled { cursor: default; opacity: 1; }
body.imv .imvv-pasos button:hover:not(:disabled) { background: none; color: var(--teal-osc); }
.imvv-pasos__n {
  display: grid; place-items: center; flex: none; width: 38px; aspect-ratio: 1.1547 / 1; clip-path: var(--hex);
  background: var(--fondo); color: var(--gris); font-size: 15px; font-weight: 800; transition: background-color .2s, color .2s;
}
body.imv .imvv-pasos li[aria-current] button { color: var(--tinta); }
.imvv-pasos li[aria-current] .imvv-pasos__n { background: var(--tinta); color: #fff; }
body.imv .imvv-pasos li.imvv-pasos__hecho button { color: var(--teal-osc); }
.imvv-pasos__hecho .imvv-pasos__n { background: var(--menta); color: var(--tinta); }
.imvv-barra { height: 6px; margin-top: 14px; border-radius: 3px; background: var(--fondo); overflow: hidden; }
.imvv-barra span { display: block; width: 20%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), #17a3a3); transition: width .35s cubic-bezier(.3, .7, .2, 1); }

/* Paso */
.imvv-paso { padding-top: 28px; }
.imvv-paso:not([hidden]) { animation: imvv-entra .28s ease-out both; }
@keyframes imvv-entra { from { opacity: 0; transform: translateY(8px); } }
body.imv .imvv-paso__tit { font-size: clamp(24px, 2.5vw, 32px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--tinta); }
body.imv .imvv-paso__tit:focus { outline: none; }
.imvv-paso[data-paso="1"] .imvv-grupo > legend { width: 100%; padding-bottom: 20px; }
.imvv-paso[data-paso="2"] .imvv-paso__tit { padding-bottom: 20px; }
.imvv-intro { padding: 8px 0 4px; font-size: 16px; line-height: 1.45; color: var(--gris); }

/* Tarjetas del paso 1 */
.imvv-ops { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.imvv-op { grid-column: span 2; position: relative; display: block; margin: 0; cursor: pointer; }
.imvv-op:nth-child(n+4) { grid-column: span 3; }
.imvv-op input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.imvv-op__caja {
  position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 140px; padding: 18px 18px 20px; box-sizing: border-box;
  border: 2px solid var(--linea); border-radius: var(--r-m); background: #fff;
  transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s;
}
.imvv-op:hover .imvv-op__caja { border-color: var(--teal); box-shadow: var(--sombra-1); transform: translateY(-2px); }
.imvv-op input:focus-visible + .imvv-op__caja { outline: 3px solid var(--teal); outline-offset: 2px; }
.imvv-op input:checked + .imvv-op__caja { border-color: var(--tinta); background: var(--menta-suave); box-shadow: var(--sombra-1); }
.imvv-op__ico { display: grid; place-items: center; width: 60px; aspect-ratio: 1.1547 / 1; clip-path: var(--hex); background: var(--cian-suave); color: var(--tinta); transition: background-color .15s; }
.imvv-op input:checked + .imvv-op__caja .imvv-op__ico { background: var(--menta); }
.imvv-op__txt { display: flex; flex-direction: column; gap: 4px; }
.imvv-op__txt strong { font-size: 17.5px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--tinta); text-wrap: balance; }
.imvv-op__txt small { font-size: 14.5px; line-height: 1.35; color: var(--gris); }
.imvv-op__marca { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--linea); box-sizing: border-box; background: #fff; }
.imvv-op input:checked + .imvv-op__caja .imvv-op__marca { border-color: var(--tinta); background: var(--tinta); }
.imvv-op input:checked + .imvv-op__caja .imvv-op__marca::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* Grupos, chips y campos */
.imvv-panel { display: grid; gap: 22px; padding-top: 22px; }
.imvv-grupo { min-width: 0; }
.imvv-paso[data-paso="2"] .imvv-grupo, .imvv-paso[data-paso="4"] .imvv-grupo { padding-top: 18px; }
.imvv-paso[data-paso="2"] .imvv-marcas { padding-top: 0; }
.imvv-grupo > legend, .imvv-campo > label:first-child { display: block; padding-bottom: 9px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--tinta); }
.imvv-opc { font-weight: 400; font-size: 14.5px; color: var(--gris); }
.imvv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.imvv-chip { position: relative; display: inline-flex; max-width: 100%; margin: 0; cursor: pointer; }
.imvv-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.imvv-chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; box-sizing: border-box;
  border: 2px solid var(--linea); border-radius: 999px; background: #fff; color: var(--tinta); font-size: 15.5px; font-weight: 600; line-height: 1.2;
  transition: border-color .15s, background-color .15s, color .15s;
}
.imvv-chip:hover span { border-color: var(--teal); }
.imvv-chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.imvv-chip input:checked + span { border-color: var(--tinta); background: var(--tinta); color: #fff; }
.imvv-chip input:checked + span::before { content: ""; flex: none; width: 5px; height: 10px; margin: -3px 2px 0 2px; border: solid var(--menta); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.imvv-mal .imvv-chip span { border-color: #e7b2ad; }

.imvv-campo { padding-top: 20px; }
body.imv .imvv-campo input[type="text"] {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px; box-sizing: border-box;
  border: 2px solid var(--linea); border-radius: 12px; background: #fff; box-shadow: none;
  color: var(--tinta); font-size: 16.5px; line-height: 1.4; transition: border-color .15s;
}
body.imv .imvv-campo input[type="text"]::placeholder { color: var(--gris); opacity: 1; }
body.imv .imvv-campo input[type="text"]:hover { border-color: #a9bcc2; }
body.imv .imvv-campo input[type="text"]:focus { border-color: var(--teal); outline: 3px solid rgba(8, 112, 127, .22); outline-offset: 0; }
body.imv .imvv-campo input[type="text"]:disabled { background: var(--fondo); color: var(--gris); cursor: not-allowed; }
body.imv .imvv-campo [aria-invalid="true"] { border-color: var(--rojo); }
.imvv-ayuda { padding-top: 6px; font-size: 14px; line-height: 1.4; color: var(--gris); }
.imvv-casilla { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; font-size: 15.5px; font-weight: 600; color: var(--tinta); cursor: pointer; }
.imvv-casilla input { width: 20px; height: 20px; margin: 0; accent-color: var(--tinta); }
.imvv-error { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--rojo); }
.imvv-error:not(:empty) { padding-top: 7px; }
.imvv-error:not(:empty)::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 7px; border-radius: 50%; background: var(--rojo); color: #fff; font-size: 12.5px; font-weight: 800; vertical-align: 1px; }

/* Autocompletar */
.imvv-combo__caja { position: relative; }
.imvv-sug {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow-y: auto; padding: 6px !important;
  border: 1px solid var(--linea); border-radius: 12px; background: #fff; box-shadow: var(--sombra-2); scrollbar-width: thin;
}
.imvv-sug__op { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; box-sizing: border-box; border-radius: 8px; font-size: 15.5px; font-weight: 600; color: var(--tinta); cursor: pointer; }
.imvv-sug__op small { flex: none; font-size: 13.5px; font-weight: 500; color: var(--gris); }
.imvv-sug__op:hover, .imvv-sug__op[aria-selected="true"] { background: var(--menta-suave); }
.imvv-sug__op[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--teal); }

/* Botones */
.imvv-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--linea); }
.imvv-paso[data-paso="1"] .imvv-nav { justify-content: flex-end; }
body.imv .imvv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; box-sizing: border-box;
  border: 2px solid transparent; border-radius: 12px; box-shadow: none;
  font: inherit; font-size: 16.5px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; text-transform: none; letter-spacing: 0; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
body.imv .imvv-btn:active { transform: translateY(1px); }
body.imv .imvv-btn--sig { background: var(--ambar); color: var(--tinta); }
body.imv .imvv-btn--sig:hover { background: var(--ambar-osc); color: var(--tinta); }
body.imv .imvv-btn--ant { padding-inline: 16px 20px; background: #fff; border-color: var(--linea); color: var(--tinta); }
body.imv .imvv-btn--ant:hover { background: #fff; border-color: var(--tinta); color: var(--tinta); }
body.imv a.imvv-btn--wa { background: var(--verde); color: #fff; }
body.imv a.imvv-btn--wa:hover { background: #0a6338; color: #fff; }
body.imv a.imvv-btn--tel { background: #fff; border-color: var(--tinta); color: var(--tinta); }
body.imv a.imvv-btn--tel:hover { background: var(--tinta); color: #fff; }

/* ---------- Resultado ---------- */
.imvv-res { margin-top: 20px; }
.imvv-res__equipo { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--gris); }
.imvv-res__cifra {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 6px; margin-top: 12px; padding: 22px 24px;
  border-radius: var(--r-m); background: var(--tinta); color: #fff;
}
.imvv-res__cifra::after { content: ""; position: absolute; z-index: -1; right: -40px; bottom: -70px; width: 200px; aspect-ratio: 1.1547 / 1; clip-path: var(--hex); background: var(--ambar); opacity: .28; }
.imvv-res__cifra--tienda::after { background: var(--cian); opacity: .2; }
.imvv-res__etq { font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--menta); }
.imvv-res__rango { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: clamp(34px, 5vw, 50px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.imvv-res__a { font-size: .5em; font-weight: 600; letter-spacing: 0; color: #b9d0d6; }
.imvv-res__rango--txt { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; }
.imvv-res__estado { font-size: 15.5px; line-height: 1.45; color: #d5e6ea; }
.imvv-res__estado strong { color: #fff; }
.imvv-aviso { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px !important; padding: 12px 14px; border-radius: var(--r-s); background: var(--cian-suave); font-size: 15px; line-height: 1.45; color: var(--tinta); }
.imvv-aviso .imv-ico { margin-top: 1px; color: var(--teal); }
#imvv-quiero { padding-top: 20px; }

.imvv-enviar { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; margin-top: 24px; }
body.imv .imvv-enviar .imvv-btn { min-height: 58px; font-size: 17.5px; }
.imvv-msg { margin-top: 14px; font-size: 15px; }
.imvv-msg summary { display: inline-flex; align-items: center; min-height: 40px; color: var(--teal-osc); font-weight: 700; cursor: pointer; }
.imvv-msg__txt { margin-top: 6px !important; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: var(--menta-suave); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.imvv-priv { padding-top: 12px; font-size: 14px; line-height: 1.45; color: var(--gris); }

/* ---------- Lateral ---------- */
.imvv-lado { position: sticky; top: 140px; padding: 22px; border-radius: var(--r-l); background: var(--tinta-2); color: #fff; box-shadow: var(--sombra-2); }
.imvv-lado h2 { font-size: 18px; font-weight: 800; line-height: 1.2; color: #fff; }
.imvv-como { display: grid; gap: 16px; padding-top: 16px !important; counter-reset: none; }
.imvv-como li { display: flex; gap: 12px; align-items: flex-start; }
.imvv-como span { display: grid; place-items: center; flex: none; width: 32px; aspect-ratio: 1.1547 / 1; clip-path: var(--hex); background: var(--menta); color: var(--tinta); font-size: 14px; font-weight: 800; }
.imvv-como p { font-size: 15px; line-height: 1.45; color: #c9dde2; }
.imvv-como strong { color: #fff; }

/* ---------- Contacto directo (y versión sin JS) ---------- */
.imvv-directo { padding-top: 48px; }
html:not(.imvv-js) .imvv-directo { padding-top: 24px; }
html:not(.imvv-js) .imvv-cab { padding-bottom: 40px; }
.imvv-directo h2 { padding-bottom: 16px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--tinta); }
.imvv-canales { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 12px; }
body.imv a.imvv-canal {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 16px; box-sizing: border-box;
  border: 1px solid var(--linea); border-radius: var(--r-m); background: #fff; color: var(--tinta); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
body.imv a.imvv-canal:hover { border-color: var(--teal); box-shadow: var(--sombra-1); transform: translateY(-2px); color: var(--tinta); }
.imvv-canal__ico { display: grid; place-items: center; flex: none; width: 54px; aspect-ratio: 1.1547 / 1; clip-path: var(--hex); background: var(--cian-suave); color: var(--tinta); }
.imvv-canal--wa .imvv-canal__ico { background: var(--menta); color: var(--verde); }
.imvv-canal strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; }
.imvv-canal small { display: block; font-size: 14.5px; color: var(--gris); overflow-wrap: anywhere; }
.imvv-tienda { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-top: 18px !important; font-size: 15px; line-height: 1.45; color: #33505a; }
.imvv-tienda li { display: flex; gap: 8px; align-items: flex-start; }
.imvv-tienda .imv-ico { margin-top: 1px; color: var(--teal); }

/* ---------- Adaptación ---------- */
@media (max-width: 1100px) {
  .imvv-js .imvv-asistente { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
  .imvv-pasos__t { font-size: 13.5px; }
}
@media (max-width: 920px) {
  .imvv-js .imvv-asistente { grid-template-columns: minmax(0, 1fr); }
  .imvv-lado { position: static; }
  .imvv-hex--a, .imvv-hex--b { width: 200px; }
  .imvv-hex--a { top: -60px; right: -30px; }
  .imvv-hex--b { top: 40px; right: -184px; }
}
@media (max-width: 640px) {
  .imvv { padding-bottom: 48px; }
  .imvv-cab { padding: 18px 0 96px; }
  .imvv-js .imvv-asistente { margin-top: -72px; }
  .imvv-form { border-radius: var(--r-m); padding: 18px 14px; }
  .imvv-pasos ol { gap: 2px; }
  body.imv .imvv-pasos button { flex-direction: column; align-items: center; gap: 5px; padding: 4px 0; font-size: 12px; text-align: center; }
  .imvv-pasos__t { font-size: 12px; }
  .imvv-pasos__n { width: 32px; font-size: 14px; }
  .imvv-paso { padding-top: 22px; }
  .imvv-ops { grid-template-columns: 1fr; gap: 10px; }
  .imvv-op, .imvv-op:nth-child(n+4) { grid-column: auto; }
  .imvv-op__caja { flex-direction: row; align-items: center; min-height: 0; padding: 14px 44px 14px 14px; }
  .imvv-op__ico { flex: none; width: 50px; }
  .imvv-op__marca { top: 50%; margin-top: -12px; }
  .imvv-op__txt strong { font-size: 16.5px; }
  .imvv-chip span { padding-inline: 14px; font-size: 15px; }
  .imvv-res__cifra { padding: 18px; }
  .imvv-enviar, .imvv-canales { grid-template-columns: 1fr; }
  .imvv-nav { margin-top: 22px; }
  body.imv .imvv-btn--sig { flex: 1; }
  body.imvv-pag #ast-scroll-top { display: none !important; }
}
@media (max-width: 380px) {
  .imvv-pasos__t { font-size: 11px; }
  .imvv-pasos__n { width: 28px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .imvv-paso:not([hidden]) { animation: none; }
  .imvv *, .imvv *::before, .imvv *::after { transition: none !important; }
}
