/* ===== Página principal (Inicio) ===== */

/* La home es full-width: sin padding en el contenedor de contenido. */
body.home .content_background {
	padding: 0;
}

.rburgos_section {
	position: relative;
}

.rburgos_section:not(:first-child) {
	margin: 20px auto;
}

.rburgos_container {
	text-align: center;
}

.rburgos_container > h1 {
	font-weight: 400;
}

.rburgos_container > p {
	max-width: 800px;
	margin: 0 auto;
	color: #000;
}

/* Hero carousel */
.carousel-rburgos {
	display: flex;
	position: relative;
	align-items: center;
	flex-wrap: wrap;
	height: 50vh;
	overflow: hidden;
}

.slide-rburgos {
	display: flex;
	width: 100%;
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
	pointer-events: none;
}

.slide-rburgos.active {
	opacity: 1;
	pointer-events: auto;
}

.slide-rburgos img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.text-center {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	position: absolute;
	z-index: 0;
	width: fit-content;
	max-width: 90%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	text-align: center;
	padding: 20px;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 8px;
	box-sizing: border-box;
}

.text-center h1,
.text-center h2,
.text-center p {
	margin: 5px 0;
}

.fw600,
.fw900,
.fw500 {
	font-weight: 400;
	font-size: var(--font-size-2xl);
}

#rburgos-button-link {
	border: none;
	padding: 12px 24px;
	background-color: var(--main-brand-color);
	border-radius: 3px;
	margin-top: 1.5rem;
	color: #fff;
	font-weight: 400;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: background-color 0.3s ease, color 0.3s ease;
}

#rburgos-button-link:hover {
	color: var(--main-brand-color);
	background-color: #fff;
}

.prev,
.next {
	top: 50%;
	position: absolute;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: var(--main-brand-color);
	color: #fff;
	border: 2px solid var(--main-brand-color);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
}

.prev:hover,
.next:hover {
	background: #fff;
	color: var(--main-brand-color);
	border-color: var(--main-brand-color);
}

.prev {
	left: 30px;
}

.next {
	right: 30px;
}

/* Barra "Accede a Nuestro Portal" */
.bar-singin {
	background-color: #5a727e;
	display: flex;
	align-items: center;
	justify-content: space-around;
	flex-wrap: wrap;
	padding: 10px 24px;
}

.bar-singin .grid-item-inicio {
	padding: 5px 10px;
	align-items: center;
	margin: 30px auto;
	width: 100%;
	max-width: 285px;
	background-color: transparent;
}

.bar-rigth {
	background-color: transparent;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
}

.rburgos-account-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: var(--main-brand-color);
	color: #fff;
	border: 2px solid var(--main-brand-color);
	border-radius: 4px;
	padding: 12px 24px;
	font-size: var(--font-size-base);
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.rburgos-account-link:hover {
	background-color: #fff;
	color: var(--main-brand-color);
	text-decoration: none;
}

.p-flex svg {
	max-width: 25px;
	flex: 0 0 auto;
}

.title-span {
	color: #ffffff;
}

.title-span strong {
	font-size: var(--font-size-xl);
	font-weight: 400;
}

#cliente {
	color: #ccc;
	font-weight: 400;
}

.bar-singin .button {
	border: none;
	background: transparent;
	color: #555;
	font-weight: 400;
	cursor: pointer;
	padding: 0;
	font-size: var(--font-size-base);
}

/* Secciones de marcas destacadas (Mavic / RBX / XDS) */
.menu-grid-inicio {
	display: grid;
	place-content: center;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 8px;
}

/* Bloques de marcas destacadas: imagen lateral completa + texto flotante. */
.menu-grid-inicio:not(.bar-singin) {
	position: relative;
	display: block;
	min-height: 320px;
}

.rbx {
	background-color: #e0e1e1;
}

.xds {
	background-color: #f3f5f9;
	border: none;
}

.full-img {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left center;
}

.rbx .full-img {
	object-position: right center;
}

/* Mavic: recorta un poco a la izquierda para no cruzar el centro. */
.first .full-img {
	right: auto;
	width: 50%;
	object-fit: cover;
	object-position: right center;
}

.letter {
	position: relative;
	z-index: 1;
	width: auto;
	max-width: 50%;
	padding: 30px;
	margin-left: auto;
	box-sizing: border-box;
	background-color: transparent;
}

.rbx .letter {
	margin-left: 0;
	margin-right: auto;
}

.lista {
	list-style: none;
	margin: 25px auto;
	padding: 0;
}

.item {
	margin-bottom: 10px;
}

.item:before {
	content: ">";
	color: #fff;
	background-color: #315DAB;
	display: inline-block;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	text-align: center;
	margin-right: 15px;
	line-height: 20px;
}

.text-descript {
	margin: 25px auto;
}

.text-descript,
.item {
	color: #8C8D8C;
	font-size: var(--font-size-base);
}

.rburgos-link {
	text-decoration: none;
	color: #fff;
	background-color: var(--main-brand-color);
	border: 2px solid var(--main-brand-color);
	border-radius: 4px;
	padding: 12px 20px;
	margin: 25px auto;
	display: inline-block;
	font-weight: 400;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.rburgos-link:hover {
	color: var(--main-brand-color);
	background-color: #fff;
	text-decoration: none;
}

/* Grid de marcas */
.grid-container-marcas-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	grid-gap: 8px;
	margin: 1.8em auto;
}

.grid-item-marcas-grid {
	display: none;
	text-align: center;
	width: 300px;
	height: 300px;
	justify-self: center;
}

.grid-item-marcas-grid.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.permanent-rburgos-link-marcas-grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: #315DAB;
}

.rburgos_container_imagenes-marcas-grid {
	position: relative;
	overflow: hidden;
	transition: all 0.5s ease;
	width: 300px;
	height: 300px;
}

.rburgos_imagen_marca-marcas-grid {
	width: 300px;
	height: 300px;
	object-fit: cover;
	filter: brightness(100%);
	transition: all 0.5s ease;
}

.rburgos_container_imagenes-marcas-grid:hover .rburgos_imagen_marca-marcas-grid {
	transform: scale(1.1);
	filter: brightness(50%);
}

.rburgos_container_imagenes-marcas-grid h3,
.rburgos_container_imagenes-marcas-grid p {
	position: absolute;
	text-align: center;
	opacity: 0;
	top: 35%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	transition: all 0.5s ease;
	margin: 0;
	color: #fff;
}

.rburgos_container_imagenes-marcas-grid:hover h3,
.rburgos_container_imagenes-marcas-grid:hover p {
	opacity: 1;
}

.nombre_producto {
	margin: 5px auto;
	font-weight: 400;
}

/* Responsive */
@media only screen and (max-width: 768px) {
	.slide-rburgos img {
		height: 50vh;
	}
}


/* Filtro de marcas (menú grid) */
.menu-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: auto 40px;
}

.menu-grid li {
	background-color: transparent;
	padding: 5px 20px;
	text-align: center;
	font-size: var(--font-size-sm);
	font-weight: 400;
	color: #000;
	border: 1px solid #ccc;
	border-radius: 3px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.menu-grid li.active,
.menu-grid li:hover {
	background-color: var(--main-brand-color);
	color: #fff;
	border-color: transparent;
}

.menu-grid li:hover {
	transition: background-color 0.3s ease-in;
}
