/* Contenedores: catálogo, ficha y cotización. Colores y letra del tema. */

.bc-catalogo,
.bc-cot {
	--bc-borde: rgb(13 88 87 / 0.12);
	--bc-sombra: 0 1px 2px rgb(18 48 47 / 0.06), 0 8px 24px -12px rgb(18 48 47 / 0.18);
	--bc-sombra-alta: 0 2px 4px rgb(18 48 47 / 0.06), 0 18px 40px -16px rgb(18 48 47 / 0.32);
	--bc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Cabecera del catálogo con buscador --------------------------------------- */
.bc-catalogo {
	margin-top: 48px;
}

.bc-cabeza {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 20px;
}

.bc-cabeza h2 {
	margin: 0;
	font-size: var(--s-h2, 2rem);
}

.bc-buscar {
	position: relative;
	flex: 1 1 320px;
	max-width: 440px;
}

.bc-buscar svg {
	position: absolute;
	top: 50%;
	left: 18px;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--texto-suave, #3d5a59);
	stroke-width: 2;
	stroke-linecap: round;
	transform: translateY(-50%);
	pointer-events: none;
}

.bc-buscar input {
	width: 100%;
	min-height: 52px;
	padding: 0 20px 0 48px;
	border: 1px solid var(--bc-borde);
	border-radius: 999px;
	background: var(--blanco, #fff);
	box-shadow: var(--bc-sombra);
	color: var(--texto, #12302f);
	font: 400 var(--s-peq, 1rem) var(--letra, sans-serif);
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.bc-buscar input:focus {
	border-color: var(--tinta, #0d5857);
	outline: none;
	box-shadow: 0 0 0 4px rgb(13 88 87 / 0.12);
}

/* Filtros: pista deslizable, sin barra, con flechas -------------------------- */
.bc-filtros {
	position: relative;
	margin: 0 0 12px;
}

.bc-filtros__pista {
	display: flex;
	gap: 8px;
	padding: 4px 2px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.bc-filtros__pista::-webkit-scrollbar {
	display: none;
}

.bc-filtros.is-sombra-der .bc-filtros__pista {
	mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent);
}

.bc-filtros.is-sombra-izq .bc-filtros__pista {
	mask-image: linear-gradient(to left, #000 calc(100% - 72px), transparent);
}

.bc-filtros.is-sombra-izq.is-sombra-der .bc-filtros__pista {
	mask-image: linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent);
}

.bc-filtros__pista a {
	flex: none;
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid var(--bc-borde);
	border-radius: 999px;
	background: var(--blanco, #fff);
	color: var(--tinta, #0d5857);
	font-weight: 700;
	font-size: var(--s-peq, 1rem);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.bc-filtros--subs .bc-filtros__pista a {
	min-height: 36px;
	padding: 0 14px;
	border-color: transparent;
	background: transparent;
	font-weight: 600;
	font-size: var(--s-mini, 0.875rem);
}

.bc-filtros__pista a:hover {
	border-color: var(--tinta, #0d5857);
}

.bc-filtros__pista a[aria-current] {
	border-color: var(--tinta, #0d5857);
	background: var(--tinta, #0d5857);
	color: var(--crema, #fbf3e4);
}

.bc-filtros--subs .bc-filtros__pista a[aria-current] {
	background: rgb(13 88 87 / 0.1);
	color: var(--tinta, #0d5857);
}

.bc-filtros__flecha {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--bc-borde);
	border-radius: 999px;
	background: var(--blanco, #fff);
	box-shadow: var(--bc-sombra);
	color: var(--tinta, #0d5857);
	cursor: pointer;
	transform: translateY(-50%);
	transition: transform 0.25s var(--bc-ease), opacity 0.2s;
}

.bc-filtros__flecha[hidden] {
	display: grid;
	opacity: 0;
	pointer-events: none;
}

.bc-filtros__flecha--izq {
	left: -6px;
}

.bc-filtros__flecha--der {
	right: -6px;
}

.bc-filtros__flecha:hover {
	transform: translateY(-50%) scale(1.06);
}

.bc-filtros__flecha svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bc-resultado {
	margin: 8px 0 0;
	color: var(--texto-suave, #3d5a59);
	font-size: var(--s-peq, 1rem);
}

.bc-vacio {
	margin: 24px 0;
	color: var(--texto-suave, #3d5a59);
}

/* Tarjetas ------------------------------------------------------------------ */
.bc-rejilla {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
	gap: 20px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.bc-card {
	position: relative;
	border: 1px solid var(--bc-borde);
	border-radius: 20px;
	background: var(--blanco, #fff);
	box-shadow: var(--bc-sombra);
	transition: transform 0.35s var(--bc-ease), box-shadow 0.35s var(--bc-ease);
}

.bc-card__abrir {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: inherit;
	color: inherit;
	text-decoration: none;
}

.bc-card__abrir:focus-visible {
	outline: 3px solid var(--tinta, #0d5857);
	outline-offset: 3px;
}

.bc-card__foto {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: 18px;
	overflow: hidden;
	border-radius: 20px 20px 0 0;
	background: #fff;
}

.bc-card__foto img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.5s var(--bc-ease);
}

.bc-sinfoto {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: var(--crema, #fbf3e4);
	color: var(--tinta, #0d5857);
	font-weight: 800;
	font-size: 1.5rem;
}

.bc-card__texto {
	display: grid;
	gap: 4px;
	padding: 14px 64px 18px 18px;
	border-top: 1px solid var(--bc-borde);
}

.bc-card__sec {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--texto-suave, #3d5a59);
}

.bc-card__nombre {
	display: -webkit-box;
	overflow: hidden;
	font-weight: 700;
	font-size: 0.975rem;
	line-height: 1.3;
	color: var(--texto, #12302f);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.bc-card__modelo {
	font-size: 0.8125rem;
	color: var(--texto-suave, #3d5a59);
}

.bc-card__precio {
	margin-top: 2px;
	font-weight: 800;
	color: var(--tinta, #0d5857);
}

.bc-card__precio small {
	font-weight: 600;
	color: var(--texto-suave, #3d5a59);
}

/* Botón + / ✓ en la esquina inferior */
.bc-card__mas {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--tinta, #0d5857);
	color: var(--crema, #fbf3e4);
	cursor: pointer;
	transition: transform 0.25s var(--bc-ease), background-color 0.25s;
	-webkit-tap-highlight-color: transparent;
}

.bc-card__mas svg {
	grid-area: 1 / 1;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.3s var(--bc-ease), opacity 0.2s;
}

.bc-card__mas .bc-ico-ok {
	opacity: 0;
	transform: scale(0.4);
}

.bc-card__mas.is-dentro {
	background: var(--sol, #f6b51e);
	color: var(--texto, #12302f);
}

.bc-card__mas.is-dentro .bc-ico-mas {
	opacity: 0;
	transform: rotate(90deg) scale(0.4);
}

.bc-card__mas.is-dentro .bc-ico-ok {
	opacity: 1;
	transform: none;
}

.bc-card__mas:active {
	transform: scale(0.9);
}

@media (hover: hover) {
	.bc-card:hover {
		box-shadow: var(--bc-sombra-alta);
		transform: translateY(-4px);
	}

	.bc-card:hover .bc-card__foto img {
		transform: scale(1.04);
	}

	.bc-card__mas:hover {
		transform: scale(1.08);
	}
}

/* Páginas */
.bc-paginas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 32px;
}

.bc-paginas a,
.bc-paginas span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	border-radius: 999px;
	color: var(--tinta, #0d5857);
	font-weight: 700;
	text-decoration: none;
}

.bc-paginas a:hover {
	background: rgb(13 88 87 / 0.08);
}

.bc-paginas span[aria-current] {
	background: var(--tinta, #0d5857);
	color: var(--crema, #fbf3e4);
}

.bc-paginas__salto {
	min-width: 24px !important;
	color: var(--texto-suave, #3d5a59) !important;
}

.bc-paginas__flecha svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bc-barra.is-tapada {
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 24px);
}

/* Botones ------------------------------------------------------------------- */
.bc-boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	font: 800 var(--s-peq, 1rem)/1 var(--letra, sans-serif);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s var(--bc-ease), background-color 0.2s, color 0.2s;
}

.bc-boton[hidden] {
	display: none;
}

.bc-boton:active {
	transform: scale(0.97);
}

.bc-boton--lleno {
	background: var(--tinta, #0d5857);
	color: var(--crema, #fbf3e4);
}

.bc-boton--lleno:hover {
	background: var(--tinta-osc, #094443);
}

.bc-boton--lleno.is-dentro {
	background: var(--sol, #f6b51e);
	color: var(--texto, #12302f);
}

.bc-boton--borde {
	border: 1px solid var(--tinta, #0d5857);
	background: transparent;
	color: var(--tinta, #0d5857);
}

.bc-boton--grande {
	min-height: 56px;
	padding: 0 32px;
}

/* Ficha en ventana ------------------------------------------------------------ */
html.bc-sin-scroll {
	overflow: hidden;
}

.bc-ficha {
	width: min(920px, calc(100% - 32px));
	max-width: none;
	max-height: min(88vh, 760px);
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: var(--blanco, #fff);
	color: var(--texto, #12302f);
	box-shadow: 0 30px 80px -20px rgb(18 48 47 / 0.45);
	opacity: 0;
	transform: translateY(18px) scale(0.98);
	transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	overflow: hidden;
}

.bc-ficha.is-abierta {
	opacity: 1;
	transform: none;
}

.bc-ficha::backdrop {
	background: rgb(18 48 47 / 0);
	backdrop-filter: blur(0);
	transition: background-color 0.24s ease, backdrop-filter 0.24s ease;
}

.bc-ficha.is-abierta::backdrop {
	background: rgb(18 48 47 / 0.45);
	backdrop-filter: blur(4px);
}

.bc-ficha__caja {
	position: relative;
	display: flex;
	flex-direction: column;
	max-height: inherit;
}

.bc-ficha__cerrar {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.92);
	box-shadow: var(--bc-sombra, 0 4px 12px rgb(0 0 0 / 0.1));
	color: var(--texto, #12302f);
	cursor: pointer;
	transition: transform 0.2s;
}

.bc-ficha__cerrar:hover {
	transform: rotate(90deg);
}

.bc-ficha__cerrar svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
}

.bc-ficha__cuerpo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.bc-ficha__foto {
	position: sticky;
	top: 0;
	display: grid;
	place-items: center;
	align-self: start;
	min-height: 100%;
	padding: 32px;
	background: #fff;
}

.bc-ficha__foto img {
	width: 100%;
	max-height: 520px;
	object-fit: contain;
}

.bc-ficha__info {
	padding: 40px 36px 24px 12px;
}

.bc-ficha__sec {
	margin: 0 0 8px;
	font-size: var(--s-mini, 0.875rem);
	font-weight: 600;
	color: var(--texto-suave, #3d5a59);
}

.bc-ficha__nombre {
	margin: 0 0 6px;
	padding-right: 36px;
	font-size: var(--s-h3, 1.5rem);
	line-height: 1.2;
	color: var(--tinta, #0d5857);
}

.bc-ficha__modelo {
	margin: 0 0 16px;
	font-size: var(--s-mini, 0.875rem);
	color: var(--texto-suave, #3d5a59);
}

.bc-ficha__resumen {
	margin: 0 0 16px;
	font-size: var(--s-texto, 1.0625rem);
}

.bc-ficha__precio {
	margin: 0 0 16px;
	font-weight: 800;
	font-size: var(--s-h4, 1.25rem);
	color: var(--tinta, #0d5857);
}

.bc-ficha__precio small {
	font-weight: 600;
	font-size: var(--s-mini, 0.875rem);
	color: var(--texto-suave, #3d5a59);
}

.bc-ficha__detalle {
	padding-top: 16px;
	border-top: 1px solid rgb(13 88 87 / 0.12);
	font-size: var(--s-peq, 1rem);
	line-height: 1.6;
	color: var(--texto-suave, #3d5a59);
}

.bc-ficha__detalle p {
	margin: 0 0 12px;
}

.bc-ficha__detalle strong {
	color: var(--texto, #12302f);
}

.bc-ficha__detalle ul {
	margin: 0 0 12px;
	padding-left: 18px;
}

.bc-ficha__detalle li {
	margin-bottom: 4px;
}

.bc-ficha__pie {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 24px;
	border-top: 1px solid rgb(13 88 87 / 0.12);
	background: var(--blanco, #fff);
}

.bc-ficha__nota {
	margin: 0;
	color: var(--texto-suave, #3d5a59);
}

/* Cotización ------------------------------------------------------------------ */
.bc-cot {
	margin: 64px 0 24px;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--bc-borde);
	border-radius: 28px;
	background: var(--blanco, #fff);
	box-shadow: var(--bc-sombra);
	scroll-margin-top: 120px;
}

.bc-cot__cabeza h2 {
	margin: 0 0 6px;
	font-size: var(--s-h2, 2rem);
}

.bc-cot__cabeza p {
	max-width: 560px;
	margin: 0 0 24px;
	color: var(--texto-suave, #3d5a59);
}

.bc-cot__bloqueo {
	margin: 0;
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--crema, #fbf3e4);
}

.bc-cot__vacia {
	margin: 0 0 20px;
	padding: 22px;
	border: 1px dashed rgb(13 88 87 / 0.25);
	border-radius: 18px;
	color: var(--texto-suave, #3d5a59);
	text-align: center;
}

.bc-cot__vacia[hidden] {
	display: none;
}

.bc-cot__vacia.is-aviso {
	animation: bc-tiembla 0.4s;
	border-color: var(--coral, #ee5a43);
	color: var(--coral-osc, #a52d1f);
}

@keyframes bc-tiembla {
	25% { transform: translateX(-6px); }
	50% { transform: translateX(6px); }
	75% { transform: translateX(-3px); }
}

.bc-cot__lista {
	display: grid;
	gap: 10px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.bc-linea {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto 40px;
	align-items: center;
	gap: 14px;
	padding: 10px 10px 10px 10px;
	border: 1px solid var(--bc-borde);
	border-radius: 18px;
	background: #fff;
	animation: bc-entra 0.35s var(--bc-ease);
	transition: opacity 0.2s, transform 0.22s;
}

.bc-linea.is-saliendo {
	opacity: 0;
	transform: translateX(12px);
}

@keyframes bc-entra {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

.bc-linea__foto {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 12px;
	background: var(--crema, #fbf3e4);
}

.bc-linea__foto img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
}

.bc-linea__nombre {
	font-weight: 700;
	font-size: var(--s-peq, 1rem);
	line-height: 1.3;
}

.bc-linea__cant {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--bc-borde);
	border-radius: 999px;
}

.bc-linea__cant input {
	width: 92px;
	min-height: 42px;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: var(--texto, #12302f);
	font: 700 var(--s-peq, 1rem) var(--letra, sans-serif);
	text-align: center;
	-moz-appearance: textfield;
}

.bc-linea__cant input::-webkit-outer-spin-button,
.bc-linea__cant input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.bc-linea__cant input::placeholder {
	font-weight: 500;
	font-size: 0.8125rem;
	color: var(--texto-suave, #3d5a59);
}

.bc-linea__cant input:focus {
	outline: none;
	background: rgb(13 88 87 / 0.05);
}

.bc-paso {
	width: 40px;
	height: 42px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tinta, #0d5857);
	font: 700 1.25rem/1 var(--letra, sans-serif);
	cursor: pointer;
}

.bc-paso:hover {
	background: rgb(13 88 87 / 0.08);
}

.bc-linea__quitar {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--texto-suave, #3d5a59);
	cursor: pointer;
}

.bc-linea__quitar:hover {
	background: #fde8e4;
	color: var(--coral-osc, #a52d1f);
}

.bc-linea__quitar svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
}

.bc-cot__nota {
	display: grid;
	gap: 8px;
	margin-bottom: 24px;
}

.bc-cot__nota span {
	font-weight: 700;
	color: var(--tinta, #0d5857);
}

.bc-cot__nota small {
	font-weight: 400;
	color: var(--texto-suave, #3d5a59);
}

.bc-cot__nota textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--bc-borde);
	border-radius: 16px;
	background: #fff;
	color: var(--texto, #12302f);
	font: 400 var(--s-peq, 1rem)/1.5 var(--letra, sans-serif);
	box-sizing: border-box;
	resize: vertical;
}

.bc-cot__nota textarea:focus {
	border-color: var(--tinta, #0d5857);
	outline: none;
	box-shadow: 0 0 0 4px rgb(13 88 87 / 0.12);
}

.bc-cot__enviar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.bc-cot__quien {
	margin: 0;
	font-size: var(--s-mini, 0.875rem);
	color: var(--texto-suave, #3d5a59);
}

/* Barra flotante: cuántos llevas ------------------------------------------- */
.bc-barra {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 70;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 10px;
	border-radius: 999px;
	background: var(--tinta, #0d5857);
	box-shadow: 0 18px 40px -12px rgb(18 48 47 / 0.5);
	color: var(--crema, #fbf3e4);
	opacity: 0;
	transform: translate(-50%, 24px);
	transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bc-barra[hidden] {
	display: none;
}

.bc-barra.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.bc-barra.is-salta .bc-barra__num {
	animation: bc-salta 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bc-salta {
	40% { transform: scale(1.3); }
}

.bc-barra__num {
	display: grid;
	place-items: center;
	min-width: 32px;
	height: 32px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--sol, #f6b51e);
	color: var(--texto, #12302f);
	font-weight: 800;
	box-sizing: border-box;
}

.bc-barra__texto {
	font-weight: 600;
	font-size: var(--s-peq, 1rem);
	white-space: nowrap;
}

.bc-barra__ir {
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--crema, #fbf3e4);
	color: var(--tinta, #0d5857);
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

/* Móvil ---------------------------------------------------------------------- */
@media (max-width: 900px) {
	.bc-barra {
		bottom: calc(76px + env(safe-area-inset-bottom));
	}
}

@media (max-width: 700px) {
	.bc-cabeza h2,
	.bc-cot__cabeza h2 {
		font-size: var(--s-h3, 1.5rem);
	}

	.bc-buscar {
		max-width: none;
	}

	.bc-filtros__flecha {
		display: none;
	}

	.bc-rejilla {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.bc-card {
		border-radius: 16px;
	}

	.bc-card__foto {
		padding: 12px;
		border-radius: 16px 16px 0 0;
	}

	.bc-card__texto {
		padding: 10px 12px 52px;
	}

	.bc-card__nombre {
		font-size: 0.875rem;
	}

	.bc-card__mas {
		right: 10px;
		bottom: 10px;
		width: 36px;
		height: 36px;
	}

	/* La ficha sube desde abajo como una hoja. */
	.bc-ficha {
		width: 100%;
		max-height: 92vh;
		margin: auto 0 0;
		border-radius: 24px 24px 0 0;
		transform: translateY(100%);
		transition: opacity 0.2s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.bc-ficha.is-abierta {
		transform: none;
	}

	.bc-ficha__cuerpo {
		grid-template-columns: 1fr;
	}

	.bc-ficha__foto {
		position: static;
		min-height: 0;
		padding: 24px 24px 8px;
	}

	.bc-ficha__foto img {
		max-height: 300px;
	}

	.bc-ficha__info {
		padding: 12px 20px 20px;
	}

	.bc-ficha__pie {
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	}

	.bc-ficha__pie .bc-boton {
		flex: 1 1 100%;
	}

	.bc-cot {
		margin-top: 48px;
		border-radius: 22px;
	}

	.bc-linea {
		grid-template-columns: 48px minmax(0, 1fr) 36px;
		grid-template-areas:
			"foto nombre quitar"
			"foto cant cant";
		gap: 8px 12px;
	}

	.bc-linea__foto {
		grid-area: foto;
		width: 48px;
		height: 48px;
	}

	.bc-linea__nombre {
		grid-area: nombre;
		font-size: var(--s-mini, 0.875rem);
	}

	.bc-linea__cant {
		grid-area: cant;
		justify-self: start;
	}

	.bc-linea__quitar {
		grid-area: quitar;
		width: 36px;
		height: 36px;
	}

	.bc-cot__enviar .bc-boton {
		width: 100%;
	}

	.bc-barra__texto {
		font-size: var(--s-mini, 0.875rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bc-card,
	.bc-card__foto img,
	.bc-ficha,
	.bc-barra,
	.bc-linea {
		transition: none;
		animation: none;
	}
}

/* Características en filas: nombre a la izquierda, valor a la derecha */
.bc-datos {
	display: grid;
	grid-template-columns: minmax(110px, auto) 1fr;
	margin: 0 0 16px;
	border-top: 1px solid rgb(13 88 87 / 0.1);
}

.bc-datos dt,
.bc-datos dd {
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid rgb(13 88 87 / 0.1);
	font-size: var(--s-mini, 0.875rem);
	line-height: 1.4;
}

.bc-datos dt {
	padding-right: 16px;
	font-weight: 600;
	color: var(--texto-suave, #3d5a59);
}

.bc-datos dd {
	color: var(--texto, #12302f);
}

.bc-ficha__titulo-datos {
	margin: 0 0 6px;
	font-weight: 700;
	font-size: var(--s-mini, 0.875rem);
	color: var(--tinta, #0d5857);
}

@media (max-width: 700px) {
	.bc-barra {
		right: 12px;
		left: 12px;
		gap: 10px;
		transform: translateY(24px);
	}

	.bc-barra.is-visible {
		transform: none;
	}

	.bc-barra.is-tapada {
		transform: translateY(24px);
	}

	.bc-barra__texto {
		flex: 1;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.bc-barra__ir {
		padding: 10px 14px;
		font-size: var(--s-mini, 0.875rem);
	}
}

/* En el móvil la ficha va en bloque: foto arriba, datos debajo, todo desplazable. */
@media (max-width: 700px) {
	.bc-ficha__cuerpo {
		display: block;
	}

	.bc-ficha__foto img {
		width: auto;
		max-width: 100%;
		height: auto;
	}
}
