/* Tabla de datos técnicos [rb_producto_datos] */
.rb-producto-datos {
	width: 100%;
	border-collapse: collapse;
	color: #ffffff;
	font-size: 14px;
	line-height: 1.3;
}

.rb-producto-datos th,
.rb-producto-datos td {
	padding: 6px 10px;
	text-align: left;
	vertical-align: middle;
	font-size:16px;
	font-weight: 400;
	border: 1px solid #F29158;
}

.rb-producto-datos th {
	width: 38%;
}

.rb-producto-datos tr:first-child th,
.rb-producto-datos tr:first-child td,
.rb-producto-datos tr:nth-child(2) th,
.rb-producto-datos tr:nth-child(2) td {
	border-top-color: #F29158;
}

.rb-producto-datos a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: #F29158;
	text-underline-offset: 3px;
	transition: color 0.25s ease;
}

.rb-producto-datos a:hover {
	color: #f29158;
}

.rb-producto-datos th {
	border-right-color: #F29158;
}

/* Grilla [rb_productos_relacionados] */
.rb-productos-relacionados {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	width: 100%;
}

.rb-producto-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 14px;
	color: #ffffff;
	background: rgba(8, 8, 10, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.55);
	transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}

.rb-producto-card:hover {
	border-color: #8b90c6;
	transform: translateY(-4px);
	box-shadow: 0 14px 28px -14px #8b90c6;
}

.rb-producto-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 14px;
	overflow: hidden;
	background: #ffffff;
}

.rb-producto-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.rb-producto-card .rb-producto-card__title {
	margin: 0 0 6px;
	padding: 0;
	color: #ffffff;
	font-size: 22px;
	font-weight: 800 !important;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: -0.5px;
}

.rb-producto-card .rb-producto-card__title a {
	color: inherit;
	font-weight: inherit;
}

.rb-producto-card__text {
	margin: 0 0 10px;
	padding: 0;
	font-size: 16px;
	line-height: 1.3;
}

.rb-producto-card__button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding: 10px 15px;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	background: #8b90c6;
	transition: background-color 0.25s ease;
}

.rb-producto-card__button::before {
	content: "";
	width: 11px;
	height: 11px;
	background-color: #f29158;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M6 18 18 6M8 6h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M6 18 18 6M8 6h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rb-producto-card__button:hover {
	background: #737aaa;
}

/* Listados por categoría */
.rb-listado-titulo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 16px;
	margin: 0;
	padding: 0;
	color: #ffffff;
	font-size: 48px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -1.5px;
	text-transform: uppercase;
}

.rb-listado-titulo__flecha {
	display: inline-block;
	width: 0.8em;
	height: 0.8em;
	background-color: #f0643f;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M3 12h17m0 0-7-7m7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M3 12h17m0 0-7-7m7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Barra de filtros [rb_productos_filtros] */
.rb-filtros {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr) auto auto;
	gap: 12px;
	align-items: center;
	margin: 0 0 24px;
	padding: 16px;
	background: rgba(8, 8, 10, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.rb-filtros__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.rb-filtros select,
.rb-filtros input[type="search"] {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	color: #ffffff;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 0;
	transition: border-color 0.25s ease;
}

.rb-filtros select option {
	color: #111111;
}

.rb-filtros input[type="search"]::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.rb-filtros select:focus,
.rb-filtros input[type="search"]:focus {
	outline: none;
	border-color: #8b90c6;
}

.rb-filtros__boton {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 20px;
	color: #ffffff;
	font-size: 14px;
	cursor: pointer;
	background: #818ac2;
	border: 0;
	transition: background-color 0.25s ease;
}

.rb-filtros__boton::before {
	content: "";
	width: 12px;
	height: 12px;
	background-color: #f29158;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M6 18 18 6M8 6h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M6 18 18 6M8 6h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rb-filtros__boton:hover {
	background: #737aaa;
}

.rb-filtros__limpiar {
	color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rb-filtros__limpiar:hover {
	color: #f29158;
}

@media (max-width: 1100px) {
	.rb-filtros {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.rb-filtros__campo--texto {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.rb-filtros {
		grid-template-columns: 1fr;
	}
}

.rb-listado-total {
	margin: 0 0 16px;
	padding: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
}

.rb-listado-vacio {
	color: #ffffff;
}

.rb-paginado {
	margin-top: 32px;
}

.rb-paginado ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rb-paginado li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rb-paginado li::before,
.rb-paginado li::marker {
	content: none;
}

.rb-paginado .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	color: #ffffff;
	font-size: 15px;
	background: rgba(8, 8, 10, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.45);
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.rb-paginado a.page-numbers:hover {
	border-color: #8b90c6;
}

.rb-paginado .page-numbers.current {
	background: #8b90c6;
	border-color: #8b90c6;
}

.rb-paginado .page-numbers.dots {
	background: transparent;
	border-color: transparent;
}

.rb-paginado .prev::before,
.rb-paginado .next::before {
	content: "";
	width: 14px;
	height: 14px;
	background-color: #f29158;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M20 12H4m0 0 7-7m-7 7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M20 12H4m0 0 7-7m-7 7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rb-paginado .next::before {
	transform: scaleX(-1);
}

.rb-paginado .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

@media (max-width: 767px) {
	.rb-listado-titulo {
		font-size: 34px;
	}
}

@media (max-width: 980px) {
	.rb-productos-relacionados {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.rb-productos-relacionados {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rb-producto-card,
	.rb-producto-card__button {
		transition: none;
	}

	.rb-producto-card:hover {
		transform: none;
	}
}
