/* Asistente Monta tu PC */
.bixo-montaje-cab { margin-top: calc(-1 * var(--bixo-cab-alto)); padding-top: calc(var(--bixo-cab-alto) + 2.5rem); padding-bottom: 2.5rem; overflow: hidden; }
.bixo-montaje-cab h1 { margin: 0 0 0.6rem; max-width: 18ch; }
.bixo-montaje-cab p { max-width: 60ch; margin: 0; }
.bixo-montaje-cab__fondo { position: absolute; inset: 0; z-index: -2; }
.bixo-montaje-cab__fondo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.bixo-montaje-cab::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 15, 20, 0.96) 0%, rgba(11, 15, 20, 0.85) 50%, rgba(11, 15, 20, 0.5) 100%); }

.bixo-montaje-app { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 2rem; padding-top: 2rem; align-items: start; scroll-margin-top: var(--bixo-cab-alto); }
.bixo-montaje-app__cargando, .bixo-montaje-app__vacio { padding: 2rem 1rem; text-align: center; color: var(--bixo-texto-suave); }

/* pasos */
.bixo-montaje-app__pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; position: sticky; top: calc(var(--bixo-cab-alto) + 1rem); }
.bixo-montaje-app__pasos button { width: 100%; display: grid; grid-template-columns: 2rem 1fr; gap: 0.6rem; align-items: center; text-align: left; padding: 0.65rem 0.75rem; border: 1px solid transparent; border-radius: var(--bixo-radio-s); background: transparent; font: inherit; color: inherit; cursor: pointer; transition: background var(--bixo-transicion), border-color var(--bixo-transicion); }
.bixo-montaje-app__pasos button:hover { background: var(--bixo-superficie); }
.bixo-montaje-app__pasos .num { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; background: var(--bixo-superficie); color: var(--bixo-texto-suave); }
.bixo-montaje-app__pasos .texto strong { display: block; font-size: 0.9rem; line-height: 1.2; }
.bixo-montaje-app__pasos .texto small { display: block; font-size: 0.75rem; color: var(--bixo-texto-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.bixo-montaje-app__pasos .actual button { background: var(--bixo-tinta); color: #fff; }
.bixo-montaje-app__pasos .actual .num { background: var(--bixo-verde); color: var(--bixo-tinta); }
.bixo-montaje-app__pasos .actual small { color: var(--bixo-texto-oscuro-suave); }
.bixo-montaje-app__pasos .hecho .num { background: var(--bixo-verde-tinta); color: var(--bixo-verde); }
.bixo-montaje-app__pasos .hecho .num::before { content: "✓"; }
.bixo-montaje-app__pasos .hecho .num { font-size: 0; }
.bixo-montaje-app__pasos .hecho .num::before { font-size: 0.85rem; }

/* panel */
.bixo-montaje-app__cab h2 { margin: 0 0 0.5rem; }
.bixo-montaje-app__cab p { margin: 0; color: var(--bixo-texto-suave); }
.bixo-montaje-app__contexto { display: inline-block; margin-left: 0.4rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--bixo-verde-tinta); color: var(--bixo-verde); font-size: 0.8rem; }
.bixo-montaje-app__herramientas { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin: 1.25rem 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--bixo-linea); }
.bixo-montaje-app__herramientas input[type="search"] { flex: 1 1 200px; font: inherit; font-size: 0.9rem; padding: 0.55rem 0.9rem; border: 1px solid var(--bixo-linea); border-radius: 999px; }
.bixo-montaje-app__herramientas select { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.5rem 2rem 0.5rem 0.9rem; border: 1px solid var(--bixo-linea); border-radius: 999px; background: #fff; }
.bixo-montaje-app__compat { font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.bixo-montaje-app__compat input { accent-color: var(--bixo-verde); width: 1.05rem; height: 1.05rem; }
.bixo-montaje-app__compat small { font-weight: 400; color: var(--bixo-texto-suave); }

.bixo-montaje-app__opciones { display: grid; gap: 0.6rem; }
.bixo-opcion { position: relative; display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center; padding: 0.75rem 1rem 0.75rem 0.75rem; border: 1.5px solid var(--bixo-linea); border-radius: var(--bixo-radio); background: #fff; cursor: pointer; transition: border-color var(--bixo-transicion), box-shadow var(--bixo-transicion), transform var(--bixo-transicion); }
.bixo-opcion:hover { border-color: var(--bixo-texto-oscuro-suave); transform: translateY(-1px); box-shadow: var(--bixo-sombra); }
.bixo-opcion.elegida { border-color: var(--bixo-verde); box-shadow: 0 0 0 3px rgba(45, 181, 139, 0.18); }
.bixo-opcion.incompatible { opacity: 0.75; }
.bixo-opcion input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.bixo-opcion:focus-within { outline: 3px solid var(--bixo-verde-brillo); outline-offset: 2px; }
.bixo-opcion__img { width: 84px; height: 84px; border-radius: var(--bixo-radio-s); background: #fff; border: 1px solid var(--bixo-superficie); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bixo-opcion__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.bixo-opcion__texto { min-width: 0; display: grid; gap: 0.15rem; }
.bixo-opcion__texto .bixo-tarjeta__marca { font-size: 0.68rem; }
.bixo-opcion__texto strong { font-size: 0.95rem; line-height: 1.3; }
.bixo-opcion__texto small { font-size: 0.78rem; color: var(--bixo-texto-suave); }
.bixo-opcion__texto .bixo-opcion__aviso { color: #b7412f; font-weight: 600; }
.bixo-opcion__texto a { font-size: 0.78rem; color: var(--bixo-texto-suave); text-decoration: underline; width: fit-content; position: relative; z-index: 1; }
.bixo-opcion__precio { text-align: right; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; display: grid; gap: 0.35rem; justify-items: end; }
.bixo-opcion__precio em { font-style: normal; font-size: 0.78rem; font-weight: 700; padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--bixo-tinta); color: #fff; }
.bixo-opcion.elegida .bixo-opcion__precio em { background: var(--bixo-verde); color: var(--bixo-tinta); }
.bixo-montaje-app__pie { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--bixo-linea); }

/* resumen */
.bixo-montaje-app__resumen { position: sticky; top: calc(var(--bixo-cab-alto) + 1rem); background: var(--bixo-tinta); color: var(--bixo-texto-claro); border-radius: var(--bixo-radio); padding: 1.25rem; box-shadow: var(--bixo-brillo); }
.bixo-montaje-app__resumen h3 { margin: 0 0 1rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bixo-verde-brillo); }
.bixo-montaje-app__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.bixo-montaje-app__lista li { display: grid; grid-template-columns: 1fr auto auto; gap: 0.1rem 0.5rem; align-items: center; padding-bottom: 0.5rem; border-bottom: 1px solid var(--bixo-linea-oscura); font-size: 0.85rem; }
.bixo-montaje-app__paso-nombre { grid-column: 1 / -1; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bixo-texto-oscuro-suave); }
.bixo-montaje-app__paso-prod { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bixo-montaje-app__lista .sin .bixo-montaje-app__paso-prod { color: var(--bixo-texto-oscuro-suave); font-style: italic; }
.bixo-montaje-app__paso-precio { font-weight: 700; white-space: nowrap; }
.bixo-montaje-app__quitar { background: transparent; border: 0; color: var(--bixo-texto-oscuro-suave); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 0.2rem; }
.bixo-montaje-app__quitar:hover { color: #fff; }
.bixo-montaje-app__avisos { margin-top: 1rem; padding: 0.75rem 0.9rem; border-radius: var(--bixo-radio-s); background: rgba(192, 57, 43, 0.15); border: 1px solid rgba(192, 57, 43, 0.4); font-size: 0.82rem; }
.bixo-montaje-app__avisos strong { display: block; margin-bottom: 0.3rem; }
.bixo-montaje-app__avisos ul { margin: 0; padding-left: 1rem; }
.bixo-montaje-app__total { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: 1.25rem; }
.bixo-montaje-app__total span { font-size: 0.8rem; color: var(--bixo-texto-oscuro-suave); }
.bixo-montaje-app__total strong { font-size: 1.8rem; letter-spacing: -0.04em; line-height: 1; }
.bixo-montaje-app__envio { margin: 0.4rem 0 1rem; font-size: 0.78rem; color: var(--bixo-texto-oscuro-suave); }
.bixo-montaje-app__anadir { width: 100%; }
.bixo-montaje-app__anadir[disabled] { opacity: 0.4; cursor: default; transform: none; }
.bixo-montaje-app__reiniciar { display: block; margin: 0.75rem auto 0; background: transparent; border: 0; color: var(--bixo-texto-oscuro-suave); font: inherit; font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
.bixo-montaje-app__reiniciar[disabled] { opacity: 0.4; cursor: default; }
.bixo-montaje-app__estado { margin: 0.75rem 0 0; font-size: 0.82rem; color: var(--bixo-verde-brillo); min-height: 1em; }
.bixo-montaje-app__estado.error { color: #ff8d7a; }

@media (max-width: 1100px) {
	.bixo-montaje-app { grid-template-columns: minmax(0, 1fr) 300px; }
	.bixo-montaje-app__pasos { position: static; grid-column: 1 / -1; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; scrollbar-width: none; padding-bottom: 0.25rem; }
	.bixo-montaje-app__pasos::-webkit-scrollbar { display: none; }
	.bixo-montaje-app__pasos .texto small { max-width: 110px; }
}
@media (max-width: 760px) {
	.bixo-montaje-app { grid-template-columns: 1fr; gap: 1.25rem; padding-bottom: 7rem; }
	.bixo-montaje-app__resumen { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 60; border-radius: var(--bixo-radio) var(--bixo-radio) 0 0; padding: 0.9rem 1.25rem; box-shadow: 0 -12px 40px -14px rgba(0, 0, 0, 0.6); max-height: 80vh; overflow-y: auto; }
	.bixo-montaje-app__resumen h3 { margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
	.bixo-montaje-app__resumen h3::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg); margin-right: 4px; transition: transform var(--bixo-transicion); }
	.bixo-montaje-app__resumen.desplegado h3::after { transform: rotate(45deg); }
	.bixo-montaje-app__resumen:not(.desplegado) .bixo-montaje-app__lista, .bixo-montaje-app__resumen:not(.desplegado) .bixo-montaje-app__avisos, .bixo-montaje-app__resumen:not(.desplegado) .bixo-montaje-app__envio, .bixo-montaje-app__resumen:not(.desplegado) .bixo-montaje-app__reiniciar { display: none; }
	.bixo-montaje-app__total { margin-top: 0; }
	.bixo-montaje-app__anadir { margin-top: 0.75rem; }
	.bixo-opcion { grid-template-columns: 64px 1fr; }
	.bixo-opcion__img { width: 64px; height: 64px; }
	.bixo-opcion__precio { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; gap: 0.75rem; }
}
