/* Venta de equipo · estilos de la página (los comunes vienen de comun/base.css)
   Lenguaje del sitio: plano azul noche, papel de lámina para los equipos, cotas en tinta,
   naranja sólo para la acción y Plex Mono para lo técnico. */

:root {
  --fondo: #07111d;
  --superficie: #0c1826;
  --superficie-2: #11223a;
  --texto: #eef2f5;
  --tenue: #8b9bab;
  --suave: #c6d1db;
  --linea: rgb(160 200 240 / 0.14);
  --linea-fuerte: rgb(160 200 240 / 0.28);
  --plano: #7cc8ff;
  --acento: #ffb547;
  --sobre-acento: #1a1000;
  --ok: #4be38a;
  --error: #ff7a63;
  --tinta: #1d4f7a;
  --papel: #f3f6f9;
  --radio: 18px;
}
[hidden] { display: none !important; }
body.venta {
  background: radial-gradient(1200px 820px at 78% -10%, #12294a 0%, transparent 70%), var(--fondo);
  padding-bottom: 104px;
}
main { position: relative; z-index: 2; }
.venta section { scroll-margin-top: 84px; }
.antetitulo { margin: 0 0 16px; color: var(--plano); }
.titulo { margin: 0; font-size: clamp(32px, 3.6vw, 54px); font-weight: 800; font-stretch: 108%; line-height: 1.02; letter-spacing: -0.028em; text-wrap: balance; }
.v-cabeza { max-width: 760px; margin-bottom: 32px; }
.v-cabeza p:not(.antetitulo) { margin: 14px 0 0; color: var(--tenue); font-size: 17px; text-wrap: pretty; }
.ico { width: 18px; height: 18px; flex: none; }

/* ── Papel de lámina (donde viven las fotos de los equipos) ── */
.papel {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(rgb(29 79 122 / 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgb(29 79 122 / 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(130% 100% at 50% 35%, #fdfeff 0%, #edf1f5 100%);
  background-color: #f3f6f9;
}
img.sobre-blanco { mix-blend-mode: multiply; }
/* equipo blanco sobre papel claro: una sombra suave lo separa del fondo y le da volumen */
.eq-img:not(.ambiente), .fi-img:not(.ambiente), .vl-foto { filter: drop-shadow(0 14px 16px rgb(16 32 47 / 0.16)) drop-shadow(0 2px 3px rgb(16 32 47 / 0.12)); }
img.ambiente { object-fit: cover; }
.cota-foto { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cota-foto path, .vl-cotas path { fill: none; stroke: var(--tinta); stroke-width: 1.1px; vector-effect: non-scaling-stroke; }
.cota-foto .c-tope, .vl-cotas .c-tope { stroke-width: 1.4px; }
.vl-cotas .c-guia { stroke-dasharray: 3 4; opacity: 0.55; }
.cota-foto text, .vl-cotas text { fill: var(--tinta); font: 500 42px var(--f-mono); letter-spacing: 0.04em; }
.eq-foto .cota-foto text { font-size: 50px; }

/* ── Aviso de prototipo ── */
.ejemplo {
  margin: 0;
  padding: 9px var(--marco);
  background: repeating-linear-gradient(135deg, rgb(255 181 71 / 0.12) 0 12px, rgb(255 181 71 / 0.05) 12px 24px);
  color: var(--acento);
  text-align: center;
  font: 500 11.5px/1.45 var(--f-mono);
  letter-spacing: 0.06em;
}

/* ── En construcción: banda y aviso ── */
.obra {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 92px var(--marco) 0;
  padding: 14px 18px 14px 30px;
  border-radius: 16px;
  background: linear-gradient(100deg, rgb(255 181 71 / 0.14), rgb(255 181 71 / 0.04) 60%), var(--superficie);
  box-shadow: inset 0 0 0 1px rgb(255 181 71 / 0.4);
  overflow: hidden;
}
.obra-cinta { position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: repeating-linear-gradient(-45deg, var(--acento) 0 8px, #1a1000 8px 16px); background-size: 100% 22.6px; animation: cinta 1.2s linear infinite; }
@keyframes cinta { to { background-position: 0 22.6px; } }
.obra-lamina { width: 92px; height: auto; padding: 6px; border-radius: 8px; background: var(--papel); background-image: linear-gradient(rgb(29 79 122 / 0.08) 1px, transparent 1px), linear-gradient(90deg, rgb(29 79 122 / 0.08) 1px, transparent 1px); background-size: 8px 8px; }
.o-t { fill: none; stroke: var(--tinta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.o-fino { stroke-width: 1.2; }
.o-cota { stroke-width: 1; }
.o-pluma { fill: var(--acento); opacity: 0; }
.o-texto { fill: var(--tinta); font: 500 7px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.obra-titulo { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--acento); font-size: 11px; }
.obra-punto { width: 8px; height: 8px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 0 0 rgb(255 181 71 / 0.6); animation: latido 1.6s ease-out infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 8px rgb(255 181 71 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 181 71 / 0); } }
.obra-texto p:last-child { margin: 0; color: var(--suave); font-size: 14.5px; line-height: 1.5; }
.obra-texto b { color: var(--texto); }
.obra-wa .ico { width: 16px; height: 16px; }
body.en-obra .v-heroe { padding-top: 36px; min-height: 0; }

.v-obra {
  width: min(560px, calc(100% - 32px));
  padding: 60px 28px 28px;
  border: 0;
  border-radius: 22px;
  background: var(--superficie);
  color: var(--texto);
  box-shadow: 0 0 0 1px var(--linea-fuerte), 0 50px 120px -30px #000;
}
.v-obra::backdrop { background: rgb(3 8 14 / 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.od-cerrar { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(124 200 255 / 0.08); color: var(--texto); cursor: pointer; }
.od-lamina { --tinta: #1d4f7a; position: relative; margin: 0 0 22px; padding: 12px 14px 8px; border-radius: 6px; background: var(--papel); background-image: linear-gradient(rgb(29 79 122 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(29 79 122 / 0.07) 1px, transparent 1px); background-size: 14px 14px; outline: 1.5px solid var(--tinta); outline-offset: -7px; }
.od-cabeza { display: flex; justify-content: space-between; color: var(--tinta); font-size: 9.5px; }
.od-dibujo { display: block; width: 100%; height: auto; margin: 8px 0 0; }
.od-dibujo .o-t { stroke-width: 1.1; }
.od-sello { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -11deg; padding: 7px 16px; border: 3px double #d43d2a; border-radius: 8px; color: #d43d2a; font: 800 clamp(18px, 4.5vw, 26px) var(--f-disp); font-stretch: 112%; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; background: rgb(255 255 255 / 0.55); mix-blend-mode: multiply; }
.od-sello span { display: block; }
.od-titulo { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; font-stretch: 106%; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.od-texto { margin: 0 0 14px; color: var(--suave); font-size: 15px; line-height: 1.55; }
.od-pedido { display: flex; gap: 10px; margin: 0 0 20px; padding: 12px 14px; border-radius: 12px; background: rgb(124 200 255 / 0.06); color: var(--suave); font-size: 14px; line-height: 1.45; }
.od-pedido .ico { color: var(--ok); margin-top: 1px; }
.od-pedido b { color: var(--texto); }
.od-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.od-acciones .boton { flex: 1; justify-content: center; }
.od-wa .ico { width: 18px; height: 18px; }

/* ── Portada ── */
.v-heroe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  min-height: min(88svh, 800px);
  padding: 118px var(--marco) 32px;
}
.v-heroe h1 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 84px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.97;
  letter-spacing: -0.035em;
}
.v-heroe h1 em { font-style: normal; color: var(--plano); }
.v-heroe .bajada { max-width: 34em; margin: 24px 0 30px; color: var(--suave); font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.55; text-wrap: pretty; }
.v-acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.v-sellos { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px 26px; margin: 38px 0 0; padding: 20px 0 0; border-top: 1px solid var(--linea); list-style: none; }
.v-sellos li { display: flex; align-items: center; gap: 10px; color: var(--suave); font-size: 13.5px; line-height: 1.25; }
.v-sellos .ico { width: 22px; height: 22px; color: var(--plano); }
.v-sellos b { display: block; color: var(--texto); font-weight: 700; }

.v-lamina {
  --tinta: #1d4f7a;
  position: relative;
  margin: 0;
  padding: 18px 18px 14px;
  border-radius: 6px;
  color: #10202f;
  background:
    linear-gradient(rgb(29 79 122 / 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgb(29 79 122 / 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--papel);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(255 255 255 / 0.06);
  outline: 1.5px solid var(--tinta);
  outline-offset: -9px;
  transform: rotate(-0.6deg);
}
.vl-cabeza { display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px 0; color: var(--tinta); font-size: 10.5px; }
.vl-n { white-space: nowrap; }
.vl-dibujo { position: relative; aspect-ratio: 2 / 1; margin: 4px 0 10px; }
.vl-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.vl-cotas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vl-marca { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border: 1px solid var(--tinta); color: var(--tinta); font-size: 10px; }
.vl-cajetin { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--tinta); background: rgb(255 255 255 / 0.72); }
.vl-cajetin > div { padding: 10px 12px; border-bottom: 1px solid rgb(29 79 122 / 0.3); }
.vl-cajetin > div:first-child { border-right: 1px solid rgb(29 79 122 / 0.3); }
.vl-cajetin .mono { display: block; margin-bottom: 4px; color: var(--tinta); font-size: 9.5px; }
.vl-cajetin b { font-size: 14.5px; font-weight: 700; }
.vl-precios { grid-column: 1 / -1; border-bottom: 0 !important; }
.vl-precios ol { display: grid; gap: 3px; margin: 6px 0 0; padding: 0; list-style: none; }
.vl-precios li { display: grid; grid-template-columns: 6.2em 1fr auto 3.4em; align-items: center; gap: 10px; font-size: 13px; line-height: 1.35; }
.vl-precios li i { height: 7px; border-radius: 2px; background: linear-gradient(90deg, var(--tinta), rgb(29 79 122 / 0.35)); width: calc(100% - var(--k) * 12%); }
.vl-precios li em.vacio { background: none; }
.vl-precios li b { font-variant-numeric: tabular-nums; font-size: 14px; }
.vl-precios li em { justify-self: end; padding: 2px 6px; border-radius: 4px; background: #ffb547; color: #1a1000; font: 600 11px var(--f-mono); font-style: normal; }
.vl-fuente { margin: 8px 6px 0; color: var(--tinta); font-size: 9.5px; }

/* ── Escalera de precio ── */
.v-escalera { padding: 40px var(--marco) 24px; }
.v-escalera .v-cabeza { margin-bottom: 26px; }
.ve-peldanos { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 10px; height: 250px; margin: 0; padding: 0; list-style: none; }
.ve-p { display: grid; grid-template-rows: auto auto 1fr auto; height: 100%; gap: 6px; }
.ve-rango { color: var(--tenue); font-size: 11px; }
.ve-desc { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; color: var(--texto); }
.ve-p:not(:first-child) .ve-desc { color: var(--plano); }
.ve-columna {
  align-self: end;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: var(--alto);
  padding: 14px 14px 0;
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(180deg, rgb(124 200 255 / 0.16), rgb(124 200 255 / 0.04));
  box-shadow: inset 0 1px 0 rgb(124 200 255 / 0.5), inset 0 0 0 1px var(--linea);
  transition: background 0.4s, box-shadow 0.4s;
}
.ve-precio { font-size: clamp(16px, 1.5vw, 21px); font-weight: 800; font-variant-numeric: tabular-nums; }
.ve-cu { color: var(--tenue); font-size: 12px; }
.ve-nombre { color: var(--tenue); font-size: 12.5px; }
.ve-p.tuyo .ve-columna { background: linear-gradient(180deg, rgb(255 181 71 / 0.32), rgb(255 181 71 / 0.06)); box-shadow: inset 0 2px 0 var(--acento), inset 0 0 0 1px rgb(255 181 71 / 0.5); }
.ve-p.tuyo .ve-desc { color: var(--acento); }
.ve-p.tuyo .ve-nombre::after { content: ' · tu pedido'; color: var(--acento); font-weight: 600; }
.ve-p.logrado .ve-columna { background: linear-gradient(180deg, rgb(255 181 71 / 0.1), transparent); }
.ve-pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--linea); color: var(--tenue); font-size: 14px; }
.ve-pie .mono { font-size: 10.5px; }
.ve-tu b { color: var(--acento); }

/* ── Controles comunes ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: rgb(124 200 255 / 0.07);
  box-shadow: inset 0 0 0 1px var(--linea);
  color: var(--suave);
  font: 600 13px var(--f-disp);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip:hover { color: var(--texto); box-shadow: inset 0 0 0 1px var(--linea-fuerte); }
.chip span { color: var(--tenue); font: 500 11px var(--f-mono); }
.chip .ico { width: 14px; height: 14px; }
.chip.quitar { background: rgb(255 181 71 / 0.12); box-shadow: inset 0 0 0 1px rgb(255 181 71 / 0.45); color: var(--texto); }

.interruptor { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; user-select: none; }
.interruptor input { position: absolute; opacity: 0; pointer-events: none; }
.interruptor-riel { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: rgb(124 200 255 / 0.12); box-shadow: inset 0 0 0 1px var(--linea-fuerte); transition: background 0.25s; }
.interruptor-riel::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--suave); transition: transform 0.3s var(--ease-out), background 0.25s; }
.interruptor input:checked + .interruptor-riel { background: var(--acento); box-shadow: none; }
.interruptor input:checked + .interruptor-riel::after { transform: translateX(16px); background: #1a1000; }
.interruptor input:focus-visible + .interruptor-riel { outline: 2px solid var(--acento); outline-offset: 3px; }
.interruptor-t { display: inline-flex; align-items: center; gap: 7px; color: var(--suave); font-size: 14px; font-weight: 500; }
.interruptor-t em { color: var(--tenue); font-style: normal; font-size: 13px; }
.interruptor.chico .interruptor-t { font-size: 13px; }

.selector { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 34px 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--linea); cursor: pointer; }
.selector .mono { color: var(--tenue); font-size: 10px; }
.selector select { appearance: none; border: 0; background: transparent; color: var(--texto); font: 600 13.5px var(--f-disp); cursor: pointer; }
.selector select option { color: #10202f; }
.selector .ico, .selector-campo .ico { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; color: var(--tenue); pointer-events: none; }
.selector:hover { box-shadow: inset 0 0 0 1px var(--linea-fuerte); }
/* menú desplegable propio (catalogo.js) */
.desplegable { position: relative; }
.desplegable .selector { border: 0; background: none; color: var(--texto); font: inherit; }
.desplegable .selector b { font: 600 13.5px var(--f-disp); }
.desplegable .selector .ico { transition: transform 0.25s var(--ease-out); }
.desplegable.abierto .selector { box-shadow: inset 0 0 0 1.5px var(--acento); }
.desplegable.abierto .selector .ico { transform: rotate(180deg); }
.desp-lista {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 100%;
  width: max-content;
  margin: 0;
  padding: 6px;
  border-radius: 14px;
  background: #0f1f33;
  box-shadow: inset 0 0 0 1px var(--linea-fuerte), 0 24px 50px -12px rgb(0 0 0 / 0.7);
  list-style: none;
  transform-origin: 50% 0;
}
.ch-orden .desp-lista { left: auto; right: 0; }
.desp-lista [role='option'] { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 9px; color: var(--suave); font: 500 14px var(--f-disp); cursor: pointer; outline: none; }
.desp-lista [role='option'] .ico { width: 16px; height: 16px; color: var(--acento); visibility: hidden; }
.desp-lista [role='option'][aria-selected='true'] { color: var(--texto); font-weight: 700; }
.desp-lista [role='option'][aria-selected='true'] .ico { visibility: visible; }
.desp-lista [role='option']:hover, .desp-lista [role='option']:focus-visible { background: rgb(124 200 255 / 0.1); color: var(--texto); }
.desp-lista [role='option'] em { margin-left: auto; padding-left: 18px; color: var(--tenue); font: 500 11px var(--f-mono); font-style: normal; }

.cantidad { display: inline-flex; align-items: center; justify-content: space-between; min-width: 128px; min-height: 44px; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--acento); }
.cantidad button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgb(255 181 71 / 0.14); color: var(--texto); cursor: pointer; transition: background 0.2s; }
.cantidad button:hover { background: rgb(255 181 71 / 0.28); }
.cantidad output { min-width: 2ch; text-align: center; font: 800 17px var(--f-disp); font-variant-numeric: tabular-nums; }
.cantidad.grande { min-width: 150px; min-height: 52px; }
.cantidad.grande button { width: 42px; height: 42px; }

.luz { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: middle; }
.luz i { width: 7px; height: 7px; border-radius: 50%; background: rgb(124 200 255 / 0.2); }
.luz i.si { background: var(--ok); }

/* ── Calculadora: «¿Qué minisplit necesito?» ── */
.v-espacio { padding: 48px var(--marco) 40px; }
.v-espacio > .ce { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.ce-preguntas { display: grid; gap: 14px; }
.ce-q { display: grid; gap: 14px; min-inline-size: 0; margin: 0; padding: 22px; border: 0; border-radius: var(--radio); background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.ce-q legend { float: left; display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; font-size: 19px; font-weight: 700; }
.ce-q legend i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--acento); color: #1a1000; font: 700 14px var(--f-disp); font-style: normal; }
.ce-tipos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ce-tipo { position: relative; cursor: pointer; }
.ce-tipo input, .ce-clima input { position: absolute; opacity: 0; }
.ce-tipo > span { display: grid; justify-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 14px; text-align: center; box-shadow: inset 0 0 0 1px var(--linea-fuerte); transition: background 0.2s, box-shadow 0.2s; }
.ce-tipo .ico { width: 28px; height: 28px; color: var(--plano); margin-bottom: 2px; }
.ce-tipo b { font-size: 14px; line-height: 1.2; }
.ce-tipo em { color: var(--tenue); font: 500 11px var(--f-mono); font-style: normal; }
.ce-tipo:hover > span { box-shadow: inset 0 0 0 1px var(--suave); }
.ce-tipo input:checked + span { background: rgb(255 181 71 / 0.12); box-shadow: inset 0 0 0 1.5px var(--acento); }
.ce-tipo input:checked + span .ico { color: var(--acento); }
.ce-tipo input:focus-visible + span, .ce-clima input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }
.ce-medidas { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.ce-paso { display: grid; gap: 6px; }
.ce-paso .mono { color: var(--tenue); font-size: 10.5px; }
.ce-paso-c { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--linea-fuerte); }
.ce-paso-c button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(124 200 255 / 0.1); color: var(--texto); cursor: pointer; transition: background 0.2s; }
.ce-paso-c button:hover { background: rgb(124 200 255 / 0.22); }
.ce-valor { display: inline-flex; align-items: baseline; gap: 3px; padding: 0 4px; }
.ce-valor input { width: 2.6em; min-height: 40px; border: 0; background: transparent; color: var(--texto); font: 800 24px var(--f-disp); text-align: right; -moz-appearance: textfield; }
.ce-valor input::-webkit-inner-spin-button { display: none; }
.ce-valor input:focus { outline: none; color: var(--acento); }
.ce-valor span { color: var(--tenue); font-size: 15px; }
.ce-por, .ce-igual { padding-bottom: 14px; color: var(--tenue); font-size: 20px; }
.ce-m2 { padding-bottom: 10px; font-size: 30px; font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; color: var(--plano); }
.ce-tip { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--tenue); font-size: 13.5px; }
.ce-tip .ico { width: 16px; height: 16px; }
.ce-climas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ce-clima { position: relative; cursor: pointer; }
.ce-clima > span { display: grid; gap: 3px; height: 100%; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--linea-fuerte); transition: background 0.2s, box-shadow 0.2s; }
.ce-clima b { font-size: 14.5px; }
.ce-clima em { color: var(--tenue); font-size: 12px; font-style: normal; line-height: 1.35; }
.ce-clima input:checked + span { background: rgb(255 181 71 / 0.12); box-shadow: inset 0 0 0 1.5px var(--acento); }
.ce-q .casilla { font-size: 14.5px; }

.ce-resultado {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radio);
  background: linear-gradient(160deg, rgb(124 200 255 / 0.12), rgb(124 200 255 / 0.03)), var(--superficie);
  box-shadow: inset 0 0 0 1px var(--linea-fuerte), 0 30px 60px -30px rgb(0 0 0 / 0.6);
}
.ce-etiqueta { color: var(--plano); font-size: 10.5px; }
.ce-plano { --tinta: #1d4f7a; margin: 4px 0 8px; border-radius: 10px; background: var(--papel); background-image: linear-gradient(rgb(29 79 122 / 0.06) 1px, transparent 1px), linear-gradient(90deg, rgb(29 79 122 / 0.06) 1px, transparent 1px); background-size: 16px 16px; }
.pl-svg { width: 100%; height: auto; }
.pl-piso { fill: rgb(124 200 255 / 0.18); }
.pl-muro { fill: none; stroke: var(--tinta); stroke-width: 4; stroke-linejoin: round; }
.pl-equipo { fill: var(--tinta); }
.pl-aire { fill: none; stroke: #2f8fd6; stroke-width: 1.5; stroke-dasharray: 4 5; opacity: 0.75; animation: aire 1.6s linear infinite; animation-delay: calc(var(--k) * -0.4s); }
@keyframes aire { to { stroke-dashoffset: -18; } }
.pl-puerta { fill: none; stroke: var(--tinta); stroke-width: 1.2; stroke-dasharray: 3 3; }
.pl-cota { fill: none; stroke: var(--tinta); stroke-width: 1.1; }
.pl-cota-t { fill: var(--tinta); font: 500 11px var(--f-mono); }
.pl-area { fill: #10202f; font: 800 24px var(--f-disp); letter-spacing: -0.02em; }
.ce-frase { margin: 0; color: var(--suave); font-size: 16px; }
.ce-frase b { color: var(--texto); }
.ce-tr { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.ce-tr b { font-weight: 800; color: var(--acento); }
.ce-sub { margin: 0; color: var(--tenue); font-size: 13.5px; }
.ce-uso { display: grid; gap: 6px; margin-top: 6px; }
.ce-uso-riel { height: 8px; border-radius: 999px; background: rgb(124 200 255 / 0.12); overflow: hidden; }
.ce-uso-riel i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--plano), var(--ok)); }
.ce-uso span { color: var(--suave); font-size: 13px; }
.ce-reparto { display: flex; gap: 10px; margin: 4px 0 0; padding: 12px; border-radius: 10px; background: rgb(255 181 71 / 0.1); color: var(--suave); font-size: 13.5px; line-height: 1.45; }
.ce-reparto .ico { color: var(--acento); margin-top: 1px; }
.ce-reparto b { color: var(--texto); }
.ce-ver { justify-content: center; margin-top: 8px; }
.ce-que-es summary { display: inline-flex; align-items: center; gap: 7px; color: var(--suave); font-size: 13.5px; cursor: pointer; list-style: none; }
.ce-que-es summary::-webkit-details-marker { display: none; }
.ce-que-es summary .ico { width: 16px; height: 16px; color: var(--plano); }
.ce-que-es p { margin: 8px 0 0; color: var(--tenue); font-size: 13.5px; line-height: 1.5; }
.ce-ayuda { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--tenue); font-size: 13px; text-decoration: none; }
.ce-ayuda:hover { color: var(--texto); }

/* ── Catálogo ── */
.v-catalogo { padding: 40px var(--marco) 56px; }
.v-herramientas {
  position: sticky;
  top: 62px;
  z-index: 6;
  margin: 0 calc(var(--marco) * -1) 26px;
  padding: 12px var(--marco) 10px;
  background: rgb(7 17 29 / 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--linea);
}
.ch-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.segmentos { display: inline-flex; padding: 4px; border-radius: 14px; background: rgb(124 200 255 / 0.06); box-shadow: inset 0 0 0 1px var(--linea); }
.segmentos button { display: grid; justify-items: start; gap: 1px; min-width: 82px; padding: 7px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--suave); text-align: left; cursor: pointer; transition: background 0.25s, color 0.25s; }
.segmentos button b { font-size: 14.5px; font-weight: 700; }
.segmentos button span { color: var(--tenue); font: 500 10.5px var(--f-mono); white-space: nowrap; }
.seg-hasta { font-style: normal; }
.segmentos button:hover { color: var(--texto); }
.segmentos button[aria-checked='true'] { background: var(--acento); color: #1a1000; }
.segmentos button[aria-checked='true'] span { color: rgb(26 16 0 / 0.7); }
.ch-mas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; flex: 1; }
.ch-resumen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.ch-resumen .ch-cuenta { margin: 0 6px 0 0; }
.ch-orden { margin-left: auto; }
.ch-cuenta { color: var(--tenue); font: 500 11px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; margin-right: 6px; }
.ch-activos { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-activos .chip { min-height: 30px; font-size: 12.5px; }
.ch-limpiar { border: 0; background: none; color: var(--tenue); font: 500 12.5px var(--f-disp); text-decoration: underline; cursor: pointer; }

#rejilla { position: relative; overflow-clip-margin: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
/* se acomoda al ancho que le toque en la rejilla (1, 2 o 3 columnas), no al de la pantalla */
.ch-otro { container-type: inline-size; display: grid; align-content: center; padding: 26px 22px; border-radius: var(--radio); background: radial-gradient(120% 90% at 0% 0%, rgb(124 200 255 / 0.12), transparent 60%), var(--superficie); box-shadow: inset 0 0 0 1px var(--linea-fuerte); }
.ch-otro-in { display: grid; gap: 22px; }
@container (min-width: 700px) { .ch-otro-in { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 32px; } }
@container (min-width: 1150px) { .ch-otro-in .ch-otro-tipos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ch-otro-texto { display: grid; justify-items: start; gap: 10px; }
.ch-otro-texto .mono { margin: 0; color: var(--plano); font-size: 10.5px; }
.ch-otro h3 { margin: 0; font-size: clamp(22px, 1.9vw, 28px); font-weight: 800; font-stretch: 106%; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.ch-otro-texto > p:not(.mono) { margin: 0 0 8px; color: var(--suave); font-size: 15px; line-height: 1.55; }
.ch-otro .boton .ico { width: 17px; height: 17px; }
.ch-otro-tipos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ch-otro-tipos li { display: grid; align-content: start; gap: 2px; padding: 10px 12px 14px; border-radius: 12px; background: var(--papel); background-image: linear-gradient(rgb(29 79 122 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(29 79 122 / 0.07) 1px, transparent 1px); background-size: 10px 10px; box-shadow: inset 0 0 0 1px rgb(29 79 122 / 0.18); }
.ch-otro-tipos .dibujo { margin: 0 0 6px; }
.ch-otro-tipos b { color: #10202f; font-size: 15px; }
.ch-otro-tipos span { color: rgb(29 79 122 / 0.9); font-size: 12px; line-height: 1.35; }

/* ── Dibujos de lámina (venta/dibujos.js) ── */
.dibujo { display: block; width: 100%; height: auto; overflow: visible; color: var(--tinta); }
.dibujo .d { fill: none; stroke: var(--tinta); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.dibujo .d-r { fill: rgb(29 79 122 / 0.08); }
.dibujo .d-f { fill: none; stroke: var(--tinta); stroke-width: 0.9; stroke-linecap: round; opacity: 0.8; }
.dibujo .d-c { fill: none; stroke: var(--tinta); stroke-width: 0.7; opacity: 0.65; }
.dibujo .d-a { fill: none; stroke: #2f8fd6; stroke-width: 1.1; stroke-dasharray: 3 3; stroke-linecap: round; }
.dibujo .d-o, .dibujo .d-o-r { fill: #f0a02e; }
.dibujo .d-o-l { fill: none; stroke: #e0901f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dibujo .d-t { fill: var(--tinta); font: 800 11px var(--f-disp); }
.ch-vacio { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 60px 20px; border-radius: var(--radio); box-shadow: inset 0 0 0 1px dashed var(--linea); color: var(--tenue); text-align: center; }
.ch-vacio .ico { width: 30px; height: 30px; }

.eq {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radio);
  background: var(--superficie);
  box-shadow: 0 0 0 1px var(--linea);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.35s var(--ease-out);
}
.eq:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--linea-fuerte), 0 26px 50px -30px rgb(0 0 0 / 0.9); }
.eq.en-pedido { box-shadow: 0 0 0 1.5px var(--acento); }
.eq.para-ti { box-shadow: 0 0 0 1px rgb(75 227 138 / 0.5); }
.eq.para-ti.en-pedido { box-shadow: 0 0 0 1.5px var(--acento); }
.eq-foto { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 16 / 10; overflow: hidden; }
.eq-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s var(--ease-out), transform 0.8s var(--ease-out); }
.eq-img-2 { opacity: 0; }
.eq:hover .eq-img:not(.eq-img-2) { transform: scale(1.03); }
@media (hover: hover) { .eq-foto:hover .eq-img-2 { opacity: 1; } .eq-foto:hover .eq-img-2 ~ .cota-foto { opacity: 0; } }
.eq-foto .cota-foto { transition: opacity 0.3s; }
.eq-marca { position: absolute; left: 14px; top: 13px; color: var(--tinta); font: 800 13px var(--f-disp); letter-spacing: 0.02em; text-transform: uppercase; }
.eq-sello { position: absolute; right: 12px; top: 11px; padding: 5px 9px; border-radius: 999px; background: #10202f; color: #fff; font: 600 11px var(--f-disp); }
.eq-para-ti { display: none; align-self: flex-start; align-items: center; gap: 4px; margin-bottom: -2px; padding: 4px 9px 4px 6px; border-radius: 999px; background: rgb(75 227 138 / 0.14); color: var(--ok); font: 600 11.5px var(--f-disp); white-space: nowrap; }
.eq-para-ti .ico { width: 13px; height: 13px; }
.eq.para-ti .eq-para-ti { display: inline-flex; }
.eq-nfotos { position: absolute; right: 12px; bottom: 11px; display: inline-flex; align-items: center; gap: 5px; color: var(--tinta); font-size: 10.5px; }
.eq-nfotos .ico { width: 14px; height: 14px; }
.eq-cuerpo { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.eq-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.eq-cap b, .eq-m2 { white-space: nowrap; }
.eq-cap b { font-size: 26px; font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1; }
.eq-m2 { color: var(--plano); font: 500 12px var(--f-mono); }
.eq-nombre { margin: 2px 0 0; font-size: 19px; font-weight: 600; line-height: 1.2; }
.eq-nombre span { font-weight: 800; }
.eq-modelo { margin: 0; color: var(--tenue); font-size: 10.5px; }
.eq-datos { display: grid; gap: 6px; margin: 6px 0 2px; padding: 12px 0 0; border-top: 1px solid var(--linea); list-style: none; }
.eq-datos li { display: flex; align-items: center; gap: 9px; color: var(--suave); font-size: 13.5px; }
.eq-datos .ico { width: 17px; height: 17px; color: var(--plano); }
.eq-precio { margin-top: auto; padding-top: 12px; }
.eq-precio del { margin-left: auto; color: var(--tenue); font-size: 13px; font-variant-numeric: tabular-nums; }
.eq-precio p { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.eq-precio b[data-precio] { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.eq-precio p span { color: var(--tenue); font-size: 12.5px; }
.eq-precio .eq-obra { display: grid; margin-top: 6px; color: var(--tenue); font-size: 12.5px; line-height: 1.5; }
.eq-precio .eq-obra b { color: var(--ok); font-weight: 700; }
.eq-acciones { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.eq-agregar { flex: 1; justify-content: center; min-width: 140px; }
.eq-agregar .ico { width: 16px; height: 16px; }
.eq-acciones .cantidad { flex: 1; }
.eq-ver { display: inline-flex; align-items: center; gap: 6px; padding: 10px 4px; border: 0; background: none; color: var(--suave); font: 600 14px var(--f-disp); cursor: pointer; }
.eq-ver .ico { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.eq-ver:hover { color: var(--texto); }
.eq-ver:hover .ico { transform: translateX(3px); }

.foto-vuelo { position: fixed; left: 0; top: 0; z-index: 80; border-radius: 12px; overflow: hidden; pointer-events: none; box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.6); }
.foto-vuelo img { width: 100%; height: 100%; object-fit: contain; }

/* ── Cómo compras · qué incluye ── */
.v-compra { padding: 24px var(--marco) 48px; }
.vc-pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: p; }
.vc-pasos li { counter-increment: p; position: relative; padding: 22px 20px 20px; border-radius: 16px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.vc-pasos li::before { content: '0' counter(p); position: absolute; left: 30px; top: 28px; z-index: 1; color: var(--tinta); font: 600 11px var(--f-mono); }
.vc-pasos .vc-lamina { --tinta: #1d4f7a; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--papel); background-image: linear-gradient(rgb(29 79 122 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(29 79 122 / 0.07) 1px, transparent 1px); background-size: 10px 10px; }
.vc-pasos .vc-lamina .dibujo { max-height: 110px; }
.vc-pasos b { display: block; margin: 0 0 6px; font-size: 17px; }
.vc-pasos span { color: var(--tenue); font-size: 14px; line-height: 1.5; }
.vc-incluye { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.vc-caja { padding: 22px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--linea); }
.vc-caja h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; }
.vc-caja h3 .ico { color: var(--acento); }
.vc-caja ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vc-caja li { display: flex; gap: 10px; color: var(--suave); font-size: 14.5px; }
.vc-caja li .ico { width: 16px; height: 16px; margin-top: 3px; color: var(--ok); }

/* ── Preguntas ── */
.v-preguntas { padding: 24px var(--marco) 64px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; }
.vp-lista { border-top: 1px solid var(--linea); }
.vp-wa { margin-top: 22px; }
.vp-lista details { border-bottom: 1px solid var(--linea); }
.vp-lista summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.vp-lista summary::-webkit-details-marker { display: none; }
.vp-lista summary .ico { color: var(--tenue); transition: transform 0.3s var(--ease-out); }
.vp-lista details[open] summary .ico { transform: rotate(180deg); }
.vp-lista details p { margin: -4px 0 18px; color: var(--suave); font-size: 15px; line-height: 1.6; max-width: 60ch; }

.v-cierre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin: 0 var(--marco) 40px; padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: linear-gradient(135deg, rgb(124 200 255 / 0.12), rgb(124 200 255 / 0.02)), var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.v-cierre h2 { margin: 0 0 8px; font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; font-stretch: 108%; letter-spacing: -0.025em; line-height: 1.05; }
.v-cierre p { margin: 0; color: var(--tenue); max-width: 46ch; }

/* ── Barra del pedido ── */
.v-barra {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  width: min(1160px, calc(100% - 24px));
  padding: 10px 10px 10px 12px;
  border-radius: 20px;
  translate: -50% 0;
  background: rgb(9 20 33 / 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgb(124 200 255 / 0.22), 0 24px 60px -12px rgb(0 0 0 / 0.6);
}
.v-barra.sube { animation: sube-escalon 0.9s var(--ease-out); }
@keyframes sube-escalon { 0% { box-shadow: inset 0 0 0 1px var(--acento), 0 0 0 0 rgb(255 181 71 / 0.6); } 100% { box-shadow: inset 0 0 0 1px rgb(124 200 255 / 0.22), 0 0 0 22px rgb(255 181 71 / 0); } }
.vb-resumen { display: flex; align-items: center; gap: 14px; padding: 4px 8px 4px 4px; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; cursor: pointer; transition: background 0.2s; }
.vb-resumen:hover { background: rgb(124 200 255 / 0.07); }
.vb-fotos { display: flex; align-items: center; min-width: 52px; }
/* fotos del pedido encimadas: todas con el mismo traslape, la de adelante encima */
.vb-fotos .papel { position: relative; z-index: calc(5 - var(--i)); width: 46px; height: 38px; border-radius: 9px; overflow: hidden; box-shadow: 0 0 0 2px #0a1522; }
.vb-fotos > * + * { margin-left: -16px; }
.vb-fotos .papel img { width: 100%; height: 100%; object-fit: contain; }
.vb-mas { position: relative; z-index: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--superficie-2); font: 600 11px var(--f-mono); box-shadow: 0 0 0 2px #0a1522; }
.vb-fotos > .vb-mas { margin-left: -12px; }
.vb-vacio { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(124 200 255 / 0.08); color: var(--plano); }
.vb-cuenta { display: flex; align-items: baseline; gap: 6px; }
.vb-n { font-size: 28px; font-weight: 800; color: var(--acento); font-variant-numeric: tabular-nums; }
.vb-eq { color: var(--tenue); font-size: 13px; }
.vb-progreso { display: grid; gap: 7px; min-width: 0; }
.vb-msg { margin: 0; color: var(--suave); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-msg b { color: var(--texto); }
.vb-corto { display: none; }
.vb-riel { position: relative; height: 6px; margin: 0 18px 12px 0; border-radius: 999px; background: rgb(124 200 255 / 0.14); }
.vb-lleno { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--plano), var(--acento)); }
.vb-marca { position: absolute; left: var(--x); top: 50%; display: grid; justify-items: center; translate: -50% -50%; }
.vb-marca i { width: 10px; height: 10px; border-radius: 50%; background: #0a1522; box-shadow: inset 0 0 0 2px rgb(124 200 255 / 0.45); transition: background 0.3s, box-shadow 0.3s; }
.vb-marca em { position: absolute; top: 12px; color: var(--tenue); font: 500 9.5px var(--f-mono); font-style: normal; white-space: nowrap; }
.vb-marca.logrado i { background: var(--acento); box-shadow: 0 0 0 3px rgb(255 181 71 / 0.25); }
.vb-marca.logrado em { color: var(--acento); }
.vb-total { display: grid; justify-items: end; gap: 1px; }
.vb-total .mono { color: var(--tenue); font-size: 9.5px; }
.vb-total b { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vb-ahorro { min-height: 1.1em; color: var(--ok); font-size: 12px; }
.vb-comprar { min-height: 52px; padding: 0 26px; }
.vb-ver { min-height: 52px; padding: 0 20px; }
.vb-ver .ico { width: 17px; height: 17px; }
.vb-comprar:disabled { opacity: 0.4; pointer-events: none; }

/* ── «Ver pedido» (panel lateral; en el teléfono, de abajo hacia arriba) ── */
.v-pedido {
  width: min(560px, 100%);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--texto);
  overflow: visible;
}
.v-pedido::backdrop { background: rgb(3 8 14 / 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html.pedido-abierto { overflow: hidden; }
.pd-caja { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; background: linear-gradient(180deg, #0f1f33, #0a1624); box-shadow: inset 1px 0 0 var(--linea-fuerte), -30px 0 80px rgb(0 0 0 / 0.45); }
.pd-cabeza { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; }
.pd-cabeza h2 { margin: 0; font-size: 28px; font-weight: 800; font-stretch: 106%; letter-spacing: -0.02em; }
.pd-cuenta { margin: 4px 0 0; color: var(--tenue); font-size: 10.5px; }
.pd-cerrar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(124 200 255 / 0.08); color: var(--texto); cursor: pointer; }
.pd-cerrar:hover { background: rgb(124 200 255 / 0.16); }
.pd-cuerpo { display: grid; align-content: start; gap: 14px; padding: 4px 24px 18px; overflow-y: auto; overscroll-behavior: contain; }
.pd-escalon { padding: 14px; border-radius: 14px; background: rgb(124 200 255 / 0.05); box-shadow: inset 0 0 0 1px var(--linea); }
.pd-escalon ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0 0 10px; padding: 0; list-style: none; }
.pd-escalon li { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--linea); }
.pd-escalon li span { color: var(--tenue); font: 500 10px var(--f-mono); }
.pd-escalon li b { font: 700 12.5px var(--f-mono); color: var(--suave); }
.pd-escalon li.logrado { background: rgb(255 181 71 / 0.06); }
.pd-escalon li.aqui { background: rgb(255 181 71 / 0.16); box-shadow: inset 0 0 0 1.5px var(--acento); }
.pd-escalon li.aqui b { color: var(--acento); }
.pd-escalon p { margin: 0; color: var(--suave); font-size: 14px; line-height: 1.45; }
.pd-escalon p b { color: var(--texto); }
.pd-lineas { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pd-linea { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; grid-template-areas: 'foto info importe' 'foto controles quitar'; gap: 8px 14px; padding: 12px; border-radius: 14px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.pd-foto { grid-area: foto; position: relative; align-self: start; width: 92px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.pd-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pd-info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.pd-info b { font-size: 15px; line-height: 1.25; }
.pd-info span { color: var(--tenue); font-size: 12.5px; }
.pd-unit { color: var(--suave) !important; font-size: 13.5px !important; font-variant-numeric: tabular-nums; }
.pd-unit del { margin-left: 6px; color: var(--tenue); }
.pd-importe { grid-area: importe; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-controles { grid-area: controles; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pd-controles .cantidad { min-width: 112px; min-height: 40px; }
.pd-controles .cantidad button { width: 32px; height: 32px; }
.pd-controles .interruptor { min-height: 36px; }
.pd-quitar { grid-area: quitar; justify-self: end; align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--tenue); cursor: pointer; }
.pd-quitar:hover { background: rgb(255 122 99 / 0.12); color: var(--error); }
.pd-vacio { display: grid; justify-items: center; gap: 8px; padding: 36px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--linea); text-align: center; }
.pd-vacio > .ico { width: 30px; height: 30px; color: var(--plano); }
.pd-vacio b { font-size: 17px; }
.pd-vacio span { color: var(--tenue); font-size: 14px; max-width: 34ch; }
.pd-vacio div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.pd-empuje { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgb(255 181 71 / 0.13), rgb(255 181 71 / 0.03)); box-shadow: inset 0 0 0 1px rgb(255 181 71 / 0.35); }
.pd-empuje p { display: flex; gap: 10px; margin: 0; color: var(--suave); font-size: 14px; line-height: 1.45; }
.pd-empuje p .ico { color: var(--acento); flex: none; }
.pd-empuje p b { color: var(--texto); }
.pd-empuje div { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-cuentas { display: grid; gap: 7px; margin: 4px 0 0; }
.pd-cuentas div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pd-cuentas dt { color: var(--suave); }
.pd-cuentas dd { margin: 0; font-variant-numeric: tabular-nums; }
.pd-cuentas .ahorro dt, .pd-cuentas .ahorro dd { color: var(--ok); }
.pd-cuentas .total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--linea); font-size: 20px; font-weight: 800; }
.pd-cuentas .total dt { color: var(--texto); }
.pd-cuentas .iva, .pd-cuentas .iva dt { color: var(--tenue); font-size: 12.5px; }
.pd-nota { margin: 0; color: var(--tenue); font-size: 12.5px; line-height: 1.5; }
.pd-pie { display: grid; gap: 8px; padding: 16px 24px 20px; border-top: 1px solid var(--linea); background: rgb(8 18 30 / 0.9); }
.pd-cotizar { justify-content: center; min-height: 54px; font-size: 16px; }
.pd-cotizar:disabled { opacity: 0.4; pointer-events: none; }
.pd-pie-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pd-texto { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--suave); font: 600 13.5px var(--f-disp); cursor: pointer; }
.pd-texto:hover { color: var(--texto); }
.pd-texto .ico { width: 16px; height: 16px; }
.pd-texto.rojo { color: var(--error); }
.pd-vaciar { display: inline-flex; align-items: center; gap: 6px; }
.pd-seguro { color: var(--suave); font-size: 13.5px; }
.v-pedido.vacio .pd-escalon { display: none; }

/* aviso breve al agregar un equipo */
.vb-aviso {
  position: fixed;
  left: 50%;
  bottom: 100px;
  z-index: 41;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  translate: -50% 0;
  background: #f3f6f9;
  color: #10202f;
  font-size: 14px;
  box-shadow: 0 16px 40px -10px rgb(0 0 0 / 0.6);
}
.vb-aviso > .ico { width: 18px; height: 18px; color: #0f7a45; flex: none; }
.vb-aviso span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vb-aviso button { flex: none; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: #10202f; color: #fff; font: 600 13px var(--f-disp); cursor: pointer; }

/* ── Ficha (diálogo) ── */
.v-ficha {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  height: min(820px, calc(100% - 32px));
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--superficie);
  color: var(--texto);
  box-shadow: 0 0 0 1px var(--linea-fuerte), 0 50px 120px -30px #000;
  overflow: hidden;
}
.v-ficha::backdrop { background: rgb(3 8 14 / 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fi-caja { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); height: 100%; }
.fi-cerrar { position: absolute; right: 14px; top: 14px; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(12 24 38 / 0.85); color: var(--texto); cursor: pointer; box-shadow: inset 0 0 0 1px var(--linea); }
.fi-cerrar:hover { background: var(--superficie-2); }
.fi-galeria { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #0a1522; min-height: 0; }
.fi-escena { position: relative; flex: 1; min-height: 0; border-radius: 14px; overflow: hidden; }
.fi-escena .fi-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fi-escena .fi-img.ambiente { object-fit: cover; }
.fi-escena .cota-foto { inset: 50% auto auto 50%; width: auto; height: 100%; aspect-ratio: 4 / 3; max-width: 100%; translate: -50% -50%; }
.fi-escena .cota-foto text { font-size: 30px; }
.fi-escena-t { position: absolute; left: 14px; bottom: 12px; color: var(--tinta); font-size: 10px; }
.fi-escena img.ambiente ~ .fi-escena-t { color: #fff; text-shadow: 0 1px 6px #000; }
.fi-escena.en-plano { display: grid; place-items: center; padding: 18px; }
.fi-plano-caja { width: 100%; height: 100%; display: grid; place-items: center; }
.fi-plano { width: 100%; height: 100%; max-height: 100%; }
.fi-plano .t { fill: none; stroke: var(--tinta); stroke-width: 1.3; }
.fi-plano .cuerpo { fill: rgb(29 79 122 / 0.07); }
.fi-plano .fino { stroke-width: 0.9; opacity: 0.7; }
.fi-plano text { fill: var(--tinta); font: 500 11px var(--f-mono); }
.fi-plano .rot { font-size: 10px; letter-spacing: 0.08em; }
.fi-miniaturas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.fi-mini { flex: none; width: 88px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: 0.6; box-shadow: inset 0 0 0 1px transparent; transition: opacity 0.2s, box-shadow 0.2s; }
.fi-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fi-mini img.ambiente { object-fit: cover; }
.fi-mini[aria-selected='true'] { opacity: 1; outline: 2px solid var(--acento); outline-offset: 2px; }
.fi-mini:hover { opacity: 1; }
.fi-mini-plano { display: grid; place-items: center; gap: 2px; align-content: center; background: var(--superficie-2); color: var(--suave); font: 600 11.5px var(--f-disp); }
.fi-mini-plano .ico { width: 22px; height: 22px; color: var(--plano); }
.fi-fuente { margin: 0; color: var(--tenue); font-size: 12px; line-height: 1.5; }
.fi-fuente a { display: inline-flex; align-items: center; gap: 4px; color: var(--suave); }
.fi-fuente .ico { width: 13px; height: 13px; }
.fi-info { display: flex; flex-direction: column; gap: 14px; padding: 30px 30px 30px; overflow-y: auto; overscroll-behavior: contain; }
.fi-marca { margin: 0; color: var(--plano); font-size: 10.5px; padding-right: 48px; }
.fi-titulo { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; font-stretch: 108%; letter-spacing: -0.025em; line-height: 1.05; }
.fi-titulo span { color: var(--plano); }
.fi-frase { margin: 0; color: var(--suave); font-size: 15px; line-height: 1.5; }
.fi-claves { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fi-claves li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 11px 12px; border-radius: 12px; background: rgb(124 200 255 / 0.05); box-shadow: inset 0 0 0 1px var(--linea); }
.fi-claves .ico { grid-row: span 2; width: 22px; height: 22px; color: var(--plano); }
.fi-claves b { font-size: 14px; }
.fi-claves span { color: var(--tenue); font-size: 12px; }
.fi-compra { display: grid; gap: 14px; padding: 18px; border-radius: 16px; background: linear-gradient(160deg, rgb(255 181 71 / 0.08), transparent 60%), var(--superficie-2); box-shadow: inset 0 0 0 1px var(--linea-fuerte); }
.fi-escalones .mono { color: var(--tenue); font-size: 10px; }
.fi-escalones ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.fi-escalones li { display: grid; gap: 2px; padding: 8px 6px; border-radius: 10px; text-align: center; box-shadow: inset 0 0 0 1px var(--linea); transition: background 0.3s, box-shadow 0.3s; }
.fi-escalones li span { color: var(--tenue); font: 500 10.5px var(--f-mono); }
.fi-escalones li b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.fi-escalones li em { color: var(--plano); font: 600 10.5px var(--f-mono); font-style: normal; }
.fi-escalones li.aqui { background: rgb(255 181 71 / 0.16); box-shadow: inset 0 0 0 1.5px var(--acento); }
.fi-escalones li.aqui em { color: var(--acento); }
.fi-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fi-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding-top: 12px; border-top: 1px solid var(--linea); }
.fi-total-t { color: var(--suave); font-size: 14px; }
.fi-total b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fi-total-n { grid-column: 1 / -1; color: var(--ok); font-size: 12.5px; }
.fi-agregar { justify-content: center; min-height: 54px; font-size: 16px; }
.fi-agregar.hecho { --b-fondo: var(--ok); }
.fi-seccion { border-top: 1px solid var(--linea); }
.fi-seccion summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; }
.fi-seccion summary::-webkit-details-marker { display: none; }
.fi-seccion summary .ico { color: var(--tenue); transition: transform 0.3s var(--ease-out); }
.fi-seccion[open] summary .ico { transform: rotate(180deg); }
.fi-incluye ul { display: grid; gap: 7px; margin: 0 0 14px; padding: 0; list-style: none; }
.fi-incluye li { display: flex; gap: 10px; color: var(--suave); font-size: 14px; }
.fi-incluye li .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--ok); }
.fi-incluye .mono { margin: 0 0 8px; color: var(--tenue); font-size: 10px; }
.fi-funciones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0 0 16px; padding: 0; list-style: none; }
.fi-funciones li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.fi-funciones .ico { grid-row: span 2; width: 22px; height: 22px; color: var(--plano); }
.fi-funciones b { font-size: 14px; }
.fi-funciones span { color: var(--tenue); font-size: 12.5px; line-height: 1.4; }
.fi-tecnica { display: grid; margin: 0 0 16px; }
.fi-tecnica div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--linea); font-size: 13.5px; }
.fi-tecnica dt { color: var(--tenue); }
.fi-tecnica dd { margin: 0; font-variant-numeric: tabular-nums; }

::view-transition-group(foto-equipo) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(foto-equipo), ::view-transition-new(foto-equipo) { height: 100%; object-fit: contain; }

/* ── Caja de pago (pantalla completa) ── */
.v-caja {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #081322;
  color: var(--texto);
  overflow: hidden;
}
.v-caja::backdrop { background: #081322; }
html.caja-abierta { overflow: hidden; }
.cj-barra { display: flex; align-items: center; gap: 20px; height: 68px; padding: 0 var(--marco); border-bottom: 1px solid var(--linea); background: rgb(7 17 29 / 0.9); }
.cj-marca svg { height: 30px; width: auto; color: var(--texto); }
.cj-segura { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--ok); font-size: 13px; font-weight: 600; }
.cj-segura .ico { width: 15px; height: 15px; }
.cj-pasos { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.cj-pasos button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 999px; background: none; color: var(--tenue); font: 600 13.5px var(--f-disp); cursor: pointer; }
.cj-pasos button:disabled { cursor: default; }
.cj-pasos i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--linea-fuerte); font: 600 11px var(--f-mono); font-style: normal; }
.cj-pasos li.actual button { color: var(--texto); background: rgb(124 200 255 / 0.08); }
.cj-pasos li.actual i { background: var(--acento); color: #1a1000; box-shadow: none; }
.cj-pasos li.hecho button { color: var(--suave); }
.cj-pasos li.hecho i { background: rgb(75 227 138 / 0.18); box-shadow: inset 0 0 0 1.5px var(--ok); color: var(--ok); }
.cj-pasos li.hecho button:not(:disabled):hover { color: var(--texto); }
.cj-cerrar { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(124 200 255 / 0.08); color: var(--texto); cursor: pointer; }
.cj-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); grid-template-areas: 'principal resumen'; gap: clamp(20px, 4vw, 56px); height: calc(100% - 68px); padding: 0 var(--marco); overflow-y: auto; overscroll-behavior: contain; }
.cj-principal { grid-area: principal; max-width: 720px; width: 100%; justify-self: end; padding: 36px 0 60px; }
.cj-resumen { grid-area: resumen; align-self: start; position: sticky; top: 0; padding: 36px 0 40px; }
.cj-resumen-abrir { display: none; }
.cj-resumen-cuerpo { padding: 22px; border-radius: 18px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.cj-resumen-t { margin: 0 0 12px; color: var(--tenue); font-size: 10.5px; }
.cj-mini { display: grid; gap: 10px; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid var(--linea); list-style: none; }
.cj-mini li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.cj-mini small { display: block; color: var(--tenue); font-size: 12px; }
.cj-mini b { font-variant-numeric: tabular-nums; }
.cj-foto { position: relative; display: block; width: 58px; aspect-ratio: 4 / 3; border-radius: 9px; overflow: visible; }
.cj-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.cj-foto i { position: absolute; right: -7px; top: -7px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--acento); color: #1a1000; font: 700 11px var(--f-disp); font-style: normal; }
.cj-cuentas { display: grid; gap: 8px; margin: 0; }
.cj-cuentas div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.cj-cuentas dt { color: var(--suave); }
.cj-cuentas dd { margin: 0; font-variant-numeric: tabular-nums; }
.cj-cuentas .ahorro dt, .cj-cuentas .ahorro dd { color: var(--ok); }
.cj-cuentas .total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--linea); font-size: 20px; font-weight: 800; }
.cj-cuentas .total dt { color: var(--texto); }
.cj-cuentas .iva { color: var(--tenue); font-size: 12.5px; }
.cj-cuentas .iva dt { color: var(--tenue); }
.cj-aviso { display: flex; gap: 10px; margin: 16px 0 0; padding: 12px; border-radius: 12px; background: rgb(255 181 71 / 0.1); color: var(--suave); font-size: 13px; line-height: 1.45; }
.cj-aviso.ok { background: rgb(75 227 138 / 0.08); }
.cj-aviso .ico { color: var(--acento); }
.cj-aviso.ok .ico { color: var(--ok); }
.cj-garantias { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--tenue); font-size: 12.5px; }
.cj-garantias .ico { width: 16px; height: 16px; }
.v-caja[data-paso='procesando'] .cj-resumen, .v-caja[data-paso='confirmado'] .cj-resumen { display: none; }
.v-caja[data-paso='procesando'] .cj-cuerpo, .v-caja[data-paso='confirmado'] .cj-cuerpo { grid-template-columns: 1fr; grid-template-areas: 'principal'; }
.v-caja[data-paso='procesando'] .cj-principal, .v-caja[data-paso='confirmado'] .cj-principal { justify-self: center; }

.cj-titulo { margin: 0 0 22px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; font-stretch: 108%; letter-spacing: -0.025em; line-height: 1.05; outline: none; }
.cj-nota { margin: 0 0 14px; color: var(--tenue); font-size: 14px; line-height: 1.5; }
.cj-nota b { color: var(--suave); }
.cj-lineas { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cj-linea { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px; border-radius: 16px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.cj-linea .cj-foto { width: 108px; }
.cj-linea-info { display: grid; gap: 3px; }
.cj-linea-info b { font-size: 16px; }
.cj-linea-info > span { color: var(--tenue); font-size: 13px; }
.cj-unit { color: var(--suave) !important; font-size: 14px !important; font-variant-numeric: tabular-nums; }
.cj-unit del { color: var(--tenue); margin-left: 6px; }
.cj-linea-fin { display: grid; justify-items: end; gap: 8px; }
.cj-linea-fin .cantidad { min-width: 118px; min-height: 40px; }
.cj-linea-fin .cantidad button { width: 32px; height: 32px; }
.cj-importe { font-size: 18px; font-variant-numeric: tabular-nums; }
.cj-quitar { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--tenue); font: 500 12.5px var(--f-disp); cursor: pointer; }
.cj-quitar .ico { width: 14px; height: 14px; }
.cj-quitar:hover { color: var(--error); }
.cj-vacio { display: grid; justify-items: center; gap: 10px; padding: 50px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--linea); color: var(--tenue); }
.cj-empuje { display: grid; gap: 12px; margin-top: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgb(255 181 71 / 0.14), rgb(255 181 71 / 0.04)); box-shadow: inset 0 0 0 1px rgb(255 181 71 / 0.35); }
.cj-empuje > div:first-child { display: flex; gap: 12px; }
.cj-empuje .ico { width: 22px; height: 22px; color: var(--acento); }
.cj-empuje p { margin: 0; color: var(--suave); font-size: 14.5px; line-height: 1.5; }
.cj-empuje b { color: var(--texto); }
.cj-empuje-bot { display: flex; flex-wrap: wrap; gap: 8px; }
.cj-acciones { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.cj-acciones .boton { min-height: 54px; padding: 0 28px; font-size: 16px; }
.cj-acciones .boton:disabled { opacity: 0.4; pointer-events: none; }
.cj-atras { display: inline-flex; align-items: center; gap: 8px; padding: 12px 4px; border: 0; background: none; color: var(--suave); font: 600 14.5px var(--f-disp); cursor: pointer; }
.cj-atras:hover { color: var(--texto); }
.cj-asesor { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--tenue); font-size: 14px; text-decoration: none; }
.cj-asesor:hover { color: var(--texto); }

.cj-form fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0 0 18px; padding: 22px; border: 0; border-radius: 18px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.cj-form legend { float: left; grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 4px; padding: 0; font-size: 17px; font-weight: 700; }
.cj-form legend .ico { color: var(--plano); width: 20px; height: 20px; }
.cj-form fieldset > .cj-nota { grid-column: 1 / -1; margin: 0; }
.campo { display: grid; gap: 6px; align-content: start; }
.campo.ancho, .casilla.ancho, .cj-zona { grid-column: 1 / -1; }
.campo label, .campo .etiqueta { color: var(--suave); font-size: 13.5px; font-weight: 600; }
.campo label span { color: var(--tenue); font-weight: 400; }
.campo input, .campo textarea, .campo select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: rgb(124 200 255 / 0.06);
  box-shadow: inset 0 0 0 1px var(--linea-fuerte);
  color: var(--texto);
  font: 500 16px var(--f-disp);
  transition: box-shadow 0.2s, background 0.2s;
}
.campo textarea { resize: vertical; min-height: 64px; }
.campo input::placeholder, .campo textarea::placeholder { color: rgb(139 155 171 / 0.6); }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; background: rgb(124 200 255 / 0.1); box-shadow: inset 0 0 0 1.5px var(--plano); }
.selector-campo { position: relative; }
.selector-campo select { appearance: none; padding-right: 40px; cursor: pointer; }
.selector-campo select option { color: #10202f; }
.campo .error { display: none; color: var(--error); font-size: 12.5px; }
.campo .ayuda { color: var(--tenue); font-size: 12px; }
.campo.mal input, .campo.mal select, .campo.mal textarea { box-shadow: inset 0 0 0 1.5px var(--error); background: rgb(255 122 99 / 0.06); }
.campo.mal .error { display: block; }
.campo.mal .ayuda { display: none; }
.campo.cp input { max-width: 180px; font-family: var(--f-mono); letter-spacing: 0.12em; }
.cj-zona { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; color: var(--suave); }
.cj-zona.ok { background: rgb(75 227 138 / 0.1); }
.cj-zona.ok .ico { color: var(--ok); }
.cj-zona.fuera { background: rgb(255 181 71 / 0.12); }
.cj-zona.fuera .ico { color: var(--acento); }
.cj-zona b { color: var(--texto); }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { position: relative; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; }
.opcion > span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--linea-fuerte); color: var(--suave); font-size: 14.5px; font-weight: 600; transition: box-shadow 0.2s, background 0.2s, color 0.2s; }
.opcion > span em { color: var(--tenue); font-style: normal; font-weight: 500; font-size: 13px; }
.opcion > span .ico { width: 17px; height: 17px; color: var(--plano); }
.opcion input:checked + span { background: rgb(255 181 71 / 0.14); box-shadow: inset 0 0 0 1.5px var(--acento); color: var(--texto); }
.opcion input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }
.opcion.fecha > span { display: grid; justify-items: center; gap: 0; min-width: 70px; min-height: 76px; padding: 8px 10px; align-content: center; }
.opcion.fecha em { font-size: 12px; }
.opcion.fecha em:first-child { text-transform: capitalize; }
.opcion.fecha b { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--texto); }
.campo.mal .opcion > span { box-shadow: inset 0 0 0 1px rgb(255 122 99 / 0.6); }
.casilla { display: inline-flex; align-items: center; gap: 12px; color: var(--suave); font-size: 14.5px; cursor: pointer; }
.casilla input { position: absolute; opacity: 0; }
.casilla > span { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--linea-fuerte); transition: background 0.2s; }
.casilla input:checked + span { background: var(--acento); box-shadow: none; }
.casilla input:checked + span::after { content: ''; width: 10px; height: 6px; border-left: 2px solid #1a1000; border-bottom: 2px solid #1a1000; transform: rotate(-45deg) translate(1px, -1px); }
.casilla input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }
.casilla u { text-decoration-style: dotted; }
.terminos { margin-top: 18px; }
.error-terminos { display: none; margin: 6px 0 0 34px; color: var(--error); font-size: 12.5px; }
.terminos.mal > span { box-shadow: inset 0 0 0 1.5px var(--error); }
.terminos.mal + .error-terminos { display: block; }
.interruptor.grande { margin-bottom: 8px; }
.interruptor.grande .interruptor-t { font-size: 16px; color: var(--texto); }

.cj-revision { display: grid; gap: 10px; margin-bottom: 20px; }
.cj-rev { display: grid; grid-template-columns: 9em minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.cj-rev .mono { display: inline-flex; align-items: center; gap: 7px; color: var(--tenue); font-size: 10.5px; padding-top: 3px; }
.cj-rev .mono .ico { width: 15px; height: 15px; color: var(--plano); }
.cj-rev p { margin: 0; color: var(--suave); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.cj-rev p b { color: var(--texto); }
.cj-rev button { border: 0; background: none; color: var(--plano); font: 600 13px var(--f-disp); cursor: pointer; }
.cj-metodos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; padding: 0; border: 0; }
.cj-metodos legend { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 17px; font-weight: 700; }
.cj-metodos legend .ico { color: var(--ok); }
.metodo { position: relative; cursor: pointer; }
.metodo input { position: absolute; opacity: 0; }
.metodo-t { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--linea-fuerte); transition: box-shadow 0.2s, background 0.2s; }
.metodo-t .ico { grid-row: span 2; width: 26px; height: 26px; color: var(--plano); }
.metodo-t b { font-size: 15px; }
.metodo-t em { color: var(--tenue); font-style: normal; font-size: 12.5px; }
.metodo input:checked + .metodo-t { background: rgb(255 181 71 / 0.1); box-shadow: inset 0 0 0 1.5px var(--acento); }
.metodo input:focus-visible + .metodo-t { outline: 2px solid var(--acento); outline-offset: 2px; }
.cj-pasarela-marco { padding: 18px; border-radius: 14px; border: 1.5px dashed var(--linea-fuerte); background: rgb(124 200 255 / 0.03); }
.cj-pasarela-marco p { margin: 0; color: var(--suave); font-size: 14px; line-height: 1.55; }
.cj-pasarela-sello { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--ok); font: 600 12.5px var(--f-disp); }
.cj-pasarela-sello .ico { width: 14px; height: 14px; }
.cj-pasarela-hueso { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.cj-pasarela-hueso i { grid-column: 1 / -1; height: 44px; border-radius: 10px; background: linear-gradient(90deg, rgb(124 200 255 / 0.06), rgb(124 200 255 / 0.12), rgb(124 200 255 / 0.06)); background-size: 200% 100%; animation: hueso 1.8s linear infinite; }
.cj-pasarela-hueso i.corto { grid-column: auto; }
@keyframes hueso { to { background-position: -200% 0; } }
.cj-pagar { min-width: 240px; justify-content: center; }
.cj-simulado { margin: 16px 0 0; color: var(--acento); font-size: 10.5px; text-align: right; }

.cj-procesando { display: grid; justify-items: center; align-content: center; min-height: 60vh; text-align: center; }
.cj-procesando p { color: var(--tenue); }
.cj-giro { width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; background: conic-gradient(var(--acento), transparent 70%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0); animation: giro 0.9s linear infinite; }
@keyframes giro { to { transform: rotate(1turn); } }
.cj-listo { max-width: 640px; }
.cj-palomita { width: 84px; height: 84px; margin-bottom: 18px; }
.cj-palomita circle { fill: rgb(75 227 138 / 0.12); stroke: var(--ok); stroke-width: 3; }
.cj-palomita path { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.cj-folio { margin: 0 0 8px; color: var(--acento); font-size: 11.5px; }
.cj-linea-tiempo { position: relative; display: grid; gap: 0; margin: 26px 0; padding: 0; list-style: none; }
.cj-linea-tiempo li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 0 0 22px; }
.cj-linea-tiempo li::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 1.5px; background: var(--linea-fuerte); }
.cj-linea-tiempo li:last-child::before { display: none; }
.cj-linea-tiempo .ico { grid-row: span 2; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--superficie-2); color: var(--plano); }
.cj-linea-tiempo li:first-child .ico { background: rgb(75 227 138 / 0.16); color: var(--ok); }
.cj-linea-tiempo .mono { color: var(--tenue); font-size: 10.5px; padding-top: 2px; }
.cj-linea-tiempo b { font-size: 15.5px; font-weight: 600; }
.cj-listo-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); color: var(--suave); }
.cj-listo-total b { font-size: 24px; color: var(--texto); }

/* ── Responsivo ── */
@media (max-width: 1280px) {
  .v-sellos { grid-template-columns: repeat(2, auto); gap: 14px 30px; }
}
@media (max-width: 1100px) {
  .v-barra { grid-template-columns: auto minmax(0, 1fr) auto auto auto; }
  .vb-fotos { display: none; }
  .fi-caja { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .v-heroe { grid-template-columns: 1fr; min-height: 0; padding-top: 100px; }
  .v-lamina { transform: none; }
  .v-espacio > .ce { grid-template-columns: minmax(0, 1fr); }
  .ce-resultado { position: static; }
  .ce-tipos { grid-template-columns: repeat(3, 1fr); }
  .ve-peldanos { height: 280px; gap: 6px; }
  .ve-columna { padding: 10px 8px 0; }
  .ve-nombre { display: none; }
  .vc-pasos { grid-template-columns: 1fr 1fr; }
  .vc-incluye, .v-preguntas { grid-template-columns: 1fr; }
  .v-herramientas { position: static; margin: 0 0 22px; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .segmentos { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .segmentos button { flex: 1; min-width: 86px; }
  .v-ficha { width: 100%; height: 100%; border-radius: 0; }
  .fi-caja { display: block; overflow-y: auto; }
  .fi-galeria { padding: 12px; }
  .fi-escena { flex: none; aspect-ratio: 4 / 3; }
  .fi-info { overflow: visible; padding: 22px 18px 40px; }
  .cj-cuerpo { grid-template-columns: 1fr; grid-template-areas: 'resumen' 'principal'; gap: 0; }
  .cj-principal { justify-self: stretch; padding-top: 18px; }
  .cj-resumen { position: static; padding: 14px 0 0; }
  .cj-resumen-abrir { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); color: var(--suave); font: 600 14px var(--f-disp); cursor: pointer; }
  .cj-resumen-abrir span { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
  .cj-resumen-abrir b { color: var(--texto); font-size: 17px; }
  .cj-resumen-abrir .ico:last-child { transition: transform 0.3s; }
  .cj-resumen.abierto .cj-resumen-abrir .ico:last-child { transform: rotate(180deg); }
  .cj-resumen-cuerpo { display: none; margin-top: 8px; }
  .cj-resumen.abierto .cj-resumen-cuerpo { display: block; }
  .cj-segura { display: none; }
  .cj-pasos span { display: none; }
  .cj-pasos li.actual span { display: inline; }
}
/* tableta vertical: la barra en tres franjas como en teléfono, con más aire y con los dos botones
   (en un solo renglón no cabían mensaje ni escalera: se cortaban) */
@media (min-width: 641px) and (max-width: 900px) and (min-height: 501px) {   /* no al teléfono acostado */
  body.venta { padding-bottom: 24px; }
  body.venta:has(.v-barra.con-equipos) { padding-bottom: 200px; }   /* barra de ~172 px + 12 abajo + aire */
  .v-barra:not(.con-equipos) { display: none; }
  .v-barra { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'resumen resumen total' 'riel riel riel' 'msg ver comprar'; gap: 8px 12px; bottom: 12px; padding: 12px 16px; }
  .vb-ver, .vb-comprar { min-height: 46px; }
  .vb-resumen { grid-area: resumen; justify-self: start; gap: 12px; }
  .vb-fotos { display: flex; }
  .vb-progreso { display: contents; }
  .vb-riel { grid-area: riel; margin: 3px 18px 15px 4px; }
  .vb-msg { grid-area: msg; align-self: center; white-space: normal; line-height: 1.35; text-wrap: balance; }
  .vb-total { grid-area: total; justify-self: end; align-self: center; }
  .v-barra .vb-ver { grid-area: ver; align-self: center; }
  .vb-comprar { grid-area: comprar; align-self: center; }
  .v-barra { transition: opacity 0.35s, transform 0.45s var(--ease-out), display 0.45s allow-discrete; }
  @starting-style { .v-barra.con-equipos { opacity: 0; transform: translateY(24px); } }
}
@media (max-width: 640px) {
  .ch-otro { padding: 22px 16px; }
  .v-pedido { width: 100%; height: 92%; margin: auto 0 0; }
  .pd-caja { border-radius: 20px 20px 0 0; box-shadow: inset 0 1px 0 var(--linea-fuerte); }
  .pd-cabeza, .pd-cuerpo, .pd-pie { padding-left: 16px; padding-right: 16px; }
  .pd-linea { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: 'foto info quitar' 'foto importe importe' 'controles controles controles'; }
  .pd-quitar { align-self: start; }
  .pd-foto { width: 76px; }
  .pd-importe { justify-self: start; }
  .vb-aviso { bottom: 170px; }   /* pedido.js lo acomoda arriba de la barra según su alto real */
  .obra { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; margin-top: 84px; padding: 14px 14px 14px 26px; }
  .obra-lamina { width: 70px; }
  .obra-wa { grid-column: 1 / -1; justify-content: center; }
  .obra-texto p:last-child { font-size: 13.5px; }
  body.venta { padding-bottom: 24px; }
  .chip { min-height: 40px; }
  .eq-ver { min-height: 44px; }
  body.venta:has(.v-barra.con-equipos) { padding-bottom: 176px; }   /* barra de ~152 px + 8 abajo + aire */
  .v-barra:not(.con-equipos) { display: none; }
  .fi-miniaturas { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  .fi-mini { width: auto; }
  .fi-mini-plano span { font-size: 10px; }
  .v-sellos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ve-peldanos { height: 240px; }
  .ve-cu { display: none; }
  .ve-precio { font-size: 13px; }
  .ve-desc { font-size: 18px; }
  .ce-climas { grid-template-columns: 1fr; }
  .ce-tipos { grid-template-columns: 1fr 1fr; }
  .ce-q { padding: 18px 16px; }
  .ce-valor input { width: 2.2em; font-size: 22px; }
  .vc-pasos { grid-template-columns: 1fr; }
  #rejilla { grid-template-columns: 1fr; }
  .ch-mas .interruptor-t { font-size: 13px; }
  .fi-funciones { grid-template-columns: 1fr; }
  .fi-claves { gap: 6px; }
  .fi-claves li { grid-template-columns: 1fr; row-gap: 4px; padding: 10px 11px; }
  .fi-claves .ico { grid-row: auto; width: 20px; height: 20px; }
  .fi-claves span { font-size: 11.5px; }
  .fi-escalones ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fi-escalones li b { font-size: 11.5px; }
  .fi-tecnica div { grid-template-columns: 8.5em 1fr; }
  .cj-barra { gap: 10px; }
  .cj-marca { display: none; }
  .cj-form fieldset { grid-template-columns: 1fr; padding: 16px; }
  .cj-linea { grid-template-columns: auto minmax(0, 1fr); }
  .cj-linea .cj-foto { width: 76px; }
  .cj-linea-fin { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; }
  .cj-importe { justify-self: end; }
  .cj-metodos { grid-template-columns: 1fr; }
  .cj-rev { grid-template-columns: 1fr auto; }
  .cj-rev .mono { grid-column: 1 / -1; }
  .cj-acciones { flex-direction: column-reverse; align-items: stretch; }
  .cj-acciones .boton { justify-content: center; }
  .cj-pagar { min-width: 0; }
  /* ── barra del pedido: la misma pieza que en computadora, en tres franjas ──
     1 · lo que llevas (fotos y número) y el total · 2 · la escalera con sus descuentos · 3 · mensaje y botón */
  .v-barra { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'resumen total' 'riel riel' 'msg boton'; gap: 8px 12px; bottom: 8px; padding: 11px 12px; border-radius: 20px; }
  .vb-resumen { grid-area: resumen; justify-self: start; gap: 10px; min-height: 44px; padding: 0 4px 0 0; }
  .vb-fotos { display: flex; min-width: 0; }
  .vb-fotos .papel { width: 40px; height: 32px; border-radius: 8px; }
  .vb-fotos > * + * { margin-left: -14px; }
  .vb-fotos > .vb-mas { width: 32px; height: 32px; margin-left: -10px; }
  .vb-vacio { width: 40px; height: 32px; border-radius: 8px; }
  .vb-cuenta { align-items: baseline; gap: 5px; }
  .vb-n { font-size: 26px; line-height: 1; }
  .vb-eq { font-size: 13px; }
  .vb-total { grid-area: total; justify-self: end; align-self: center; line-height: 1.1; }
  .vb-total .mono { font-size: 9px; }
  .vb-total b { font-size: clamp(18px, 5.6vw, 22px); }
  .vb-ahorro { font-size: 11.5px; white-space: nowrap; }
  .vb-progreso { display: contents; }
  .vb-riel { grid-area: riel; height: 5px; margin: 3px 16px 15px 4px; }
  .vb-marca i { width: 10px; height: 10px; }
  .vb-marca em { top: 11px; font-size: 9.5px; }
  .vb-msg { grid-area: msg; align-self: center; white-space: normal; font-size: 12.5px; line-height: 1.35; text-wrap: balance; }
  .vb-largo { display: none; }
  .vb-corto { display: inline; }
  .vb-comprar { display: none; }
  .v-barra .vb-ver { grid-area: boton; align-self: center; --b-fondo: var(--acento); --b-texto: var(--sobre-acento); box-shadow: none; min-height: 44px; padding: 0 18px; }
  /* aparece deslizándose desde abajo al agregar el primer equipo */
  .v-barra { transition: opacity 0.35s, transform 0.45s var(--ease-out), display 0.45s allow-discrete; }
  @starting-style { .v-barra.con-equipos { opacity: 0; transform: translateY(24px); } }
  /* mientras escribes (calculadora, datos) se quita: con el teclado abierto no deja espacio */
  body:has(input:is([type='text'], [type='number'], [type='email'], [type='tel']):focus, textarea:focus) .v-barra { display: none; }
  /* aviso de obra: el botón de WhatsApp puede ir en dos renglones y no se sale de la tarjeta */
  .od-acciones { flex-direction: column; }
  .od-acciones .boton { width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-block: 10px; }
  /* portada: textos de la lámina legibles en teléfono */
  .vl-cajetin .mono, .vl-fuente { font-size: 10.5px; }
  /* escalera: cinco columnas iguales que caben en cualquier teléfono (antes la última se salía en 360 px) */
  .ve-peldanos { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .ve-columna { padding: 9px 4px 0; text-align: center; }
  .ve-p { min-width: 0; }
  .ve-rango, .ve-desc { white-space: nowrap; }
  /* calculadora: el botón del resultado puede ir en dos renglones */
  .ce-resultado { padding: 20px 16px; }
  .ce-ver { white-space: normal; text-align: center; text-wrap: balance; line-height: 1.25; padding-block: 12px; }
  .ce-que-es summary { min-height: 40px; }
  /* catálogo: capacidad en cuatro partes iguales; marca y orden lado a lado, los interruptores abajo */
  .segmentos { overflow: visible; }
  .segmentos button { flex: 1 1 0; min-width: 0; padding: 7px 8px; }
  .ch-mas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: none; width: 100%; }
  .ch-mas .desplegable .selector { width: 100%; }
  .ch-mas .desplegable .selector b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ch-orden { grid-row: 1; grid-column: 2; margin-left: 0; }
  .ch-mas .interruptor { align-items: center; }
  .ch-mas .interruptor-t { line-height: 1.25; }
  /* cómo compras: lámina a la izquierda y texto a la derecha (sin aire alrededor del dibujo) */
  .vc-pasos li { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 14px; }
  .vc-pasos .vc-lamina { position: relative; margin: 0; padding: 18px 6px 6px; }
  .vc-pasos .vc-lamina .dibujo { max-height: none; }
  /* el número va en la esquina de la lámina, no del renglón */
  .vc-pasos li::before { content: none; }
  .vc-pasos .vc-lamina::before { content: '0' counter(p); position: absolute; left: 8px; top: 5px; color: var(--tinta); font: 600 10px var(--f-mono); }
  .vc-pasos b { font-size: 16px; }
  .vc-pasos span { font-size: 13.5px; line-height: 1.45; }
}
/* teléfono acostado: más ancho que 640 px pero muy bajo; la barra se porta como en teléfono (sólo con
   equipos, mensaje corto y más delgada) para no comerse la pantalla */
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  body.venta { padding-bottom: 24px; }
  body.venta:has(.v-barra.con-equipos) { padding-bottom: 112px; }
  .v-barra:not(.con-equipos) { display: none; }
  .v-barra { bottom: 6px; gap: 12px; padding: 6px 8px 6px 10px; }
  .vb-largo { display: none; }
  .vb-corto { display: inline; }
  .vb-comprar, .vb-ver { min-height: 44px; }
  .vb-riel { margin-bottom: 14px; }
  .vb-aviso { bottom: 106px; }
}
@media (max-width: 400px) {
  .ve-desc { font-size: 15.5px; }
  .ve-precio { font-size: 11.5px; letter-spacing: -0.01em; }
  .ve-rango { font-size: 10px; letter-spacing: 0.02em; }
  .seg-hasta { display: none; }
  .ch-mas .interruptor-t .ico { display: none; }
  /* «Ordenar» se sigue leyendo en voz alta, pero no ocupa lugar: así cabe «Recomendados» */
  .ch-orden .selector .mono { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-aire, .cj-pasarela-hueso i, .cj-giro, .obra-cinta, .obra-punto { animation: none; }
}

/* comprobante: al imprimir sólo sale la confirmación */
@media print {
  body.venta > *:not(.v-caja) { display: none !important; }
  .v-caja { position: static; background: #fff; color: #000; }
  .cj-barra, .cj-resumen, .cj-acciones, .cj-simulado { display: none !important; }
}
