/* =========================================================
   PROPOSTES BANNER HOME  (seccions/banner_propostes.php)
   .bp--v1  Banner net + barra d'accessos
   .bp--v2  Banner net + targetes flotants
   .bp--v3  Índex tipogràfic + targeta inclinada + segell
   ========================================================= */

.bp {
	--bp-header: 140px;
	--bp-olive: var(--color-principal);
	--bp-olive-dark: #7d8038;
	--bp-dark: #2a2a2b;
	--bp-white: #fff;
	--bp-radius: 999px;
	--bp-radius-card: 14px;
	--bp-shadow: 0 18px 40px rgba(42, 42, 43, 0.14);
	--bp-gutter: 5%;
	position: relative;
	width: 100%;
	margin-top: calc(var(--bp-header) * -1);
	font-family: "urw-din", sans-serif;
}

/* ---------- Slider (comú) ---------- */
.bp__slider {
	position: relative;
	overflow: hidden;
}

.bp__slide {
	position: relative;
}

.bp__img,
.bp__img img {
	display: block;
	width: 100%;
	height: auto;
}

.bp .owl-carousel .owl-item img {
	width: 100%;
}

/* Botó del slide (comú) */
.bp__cta-wrap {
	position: absolute;
	left: var(--bp-gutter);
	bottom: 14%;
	z-index: 2;
}

.bp__cta {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px 14px 26px;
	border-radius: var(--bp-radius);
	background: var(--bp-dark);
	color: var(--bp-white);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .3s ease, transform .3s ease;
}

.bp__cta i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bp-olive);
	color: var(--bp-white);
	font-size: 14px;
	transition: transform .3s ease;
}

.bp__cta:hover,
.bp__cta:focus {
	background: var(--bp-olive-dark);
	color: var(--bp-white);
	text-decoration: none;
}

.bp__cta:hover i,
.bp__cta:focus i {
	transform: translateX(4px);
	background: var(--bp-dark);
}

/* Navegació owl (comú) */
.bp .owl-nav button.owl-prev,
.bp .owl-nav button.owl-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55) !important;
	color: var(--bp-dark) !important;
	font-size: 22px !important;
	transition: background-color .3s ease;
}

.bp .owl-nav button.owl-prev { left: 2%; }
.bp .owl-nav button.owl-next { right: 2%; }

.bp .owl-nav button.owl-prev:hover,
.bp .owl-nav button.owl-next:hover {
	background: var(--bp-white) !important;
}

.bp .owl-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4%;
	margin: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.bp .owl-dot {
	margin: 0;
}

.bp .owl-dot span {
	width: 28px;
	height: 4px;
	border: 0;
	border-radius: 2px;
	background: rgba(42, 42, 43, 0.25);
}

.bp .owl-dot.active span {
	width: 48px;
	height: 4px;
	background: var(--bp-dark);
}

/* Accessos (base comuna) */
.bp__accessos {
	display: flex;
}

.bp__acces {
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.bp__acces:hover,
.bp__acces:focus {
	text-decoration: none;
}

.bp__acces-icona {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.bp__acces-icona img {
	display: block;
	max-width: 100%;
	max-height: 100%;
}

.bp__acces-text {
	flex: 1;
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 1px;
	line-height: 1.2;
	text-transform: uppercase;
}

.bp__acces-fletxa {
	transition: transform .3s ease;
}

.bp__acces:hover .bp__acces-fletxa {
	transform: translateX(5px);
}

/* =========================================================
   VARIANT 1 — Banner net + barra d'accessos
   ========================================================= */
.bp--v1 .bp__accessos {
	background: var(--bp-olive);
}

.bp--v1 .bp__acces {
	flex: 1;
	justify-content: center;
	padding: 28px 24px;
	color: var(--bp-white);
}

.bp--v1 .bp__acces + .bp__acces {
	border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.bp--v1 .bp__acces:hover,
.bp--v1 .bp__acces:focus {
	background: var(--bp-olive-dark);
	color: var(--bp-white);
}

.bp--v1 .bp__acces-icona {
	width: 44px;
	height: 44px;
}

.bp--v1 .bp__acces-text {
	flex: 0 1 auto;
}

/* =========================================================
   VARIANT 2 — Banner net + targetes flotants
   ========================================================= */
.bp--v2 .bp__cta-wrap {
	bottom: 24%;
}

.bp--v2 .bp__cta {
	background: var(--bp-white);
	color: var(--bp-dark);
	box-shadow: var(--bp-shadow);
}

.bp--v2 .bp__cta:hover,
.bp--v2 .bp__cta:focus {
	background: var(--bp-dark);
	color: var(--bp-white);
}

.bp--v2 .bp__cta:hover i,
.bp--v2 .bp__cta:focus i {
	background: var(--bp-olive);
}

.bp--v2 .owl-nav {
	display: none;
}

.bp--v2 .owl-dots {
	left: auto;
	right: 2.5%;
	top: 50%;
	bottom: auto;
	flex-direction: column;
	transform: translateY(-50%);
}

.bp--v2 .owl-dot span {
	width: 4px;
	height: 28px;
}

.bp--v2 .owl-dot.active span {
	width: 4px;
	height: 48px;
}

.bp--v2 .bp__accessos {
	position: relative;
	z-index: 3;
	width: 90%;
	max-width: 1320px;
	margin: -48px auto 0;
	gap: 24px;
}

.bp--v2 .bp__acces {
	flex: 1;
	padding: 26px 26px;
	border-radius: var(--bp-radius-card);
	background: var(--bp-white);
	color: var(--bp-dark);
	box-shadow: var(--bp-shadow);
}

.bp--v2 .bp__acces:hover,
.bp--v2 .bp__acces:focus {
	transform: translateY(-6px);
	color: var(--bp-dark);
	box-shadow: 0 24px 48px rgba(42, 42, 43, 0.2);
}

.bp--v2 .bp__acces-icona {
	width: 64px;
	height: 64px;
	padding: 14px;
	border-radius: 50%;
	background: var(--bp-olive);
}

.bp--v2 .bp__acces-fletxa {
	color: var(--bp-olive);
	font-size: 20px;
}

/* =========================================================
   VARIANT 3 — Índex tipogràfic + targeta inclinada + segell
   ========================================================= */
.bp--v3 {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: 4vw;
	padding: calc(var(--bp-header) + 30px) var(--bp-gutter) 80px;
	background: var(--bp-dark);
	overflow: hidden;
}

/* Targeta del slider inclinada */
.bp--v3 .bp__slider {
	grid-column: 2;
	grid-row: 1;
	border-radius: 26px;
	transform: rotate(-2deg);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.bp--v3 .owl-nav {
	display: none;
}

/* Botó del slide en forma de segell */
.bp--v3 .bp__cta-wrap {
	left: 5%;
	bottom: 9%;
}

.bp--v3 .bp__cta {
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	width: 150px;
	height: 150px;
	padding: 20px;
	border-radius: 50%;
	background: var(--bp-olive);
	color: var(--bp-white);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 1.5px;
	text-align: center;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35);
	transform: rotate(-10deg);
}

.bp--v3 .bp__cta i {
	background: var(--bp-white);
	color: var(--bp-dark);
}

.bp--v3 .bp__cta:hover,
.bp--v3 .bp__cta:focus {
	background: var(--bp-dark);
	transform: rotate(0deg) scale(1.06);
}

.bp--v3 .bp__cta:hover i,
.bp--v3 .bp__cta:focus i {
	transform: none;
	background: var(--bp-olive);
	color: var(--bp-white);
}

/* Accessos com a índex tipogràfic */
.bp--v3 .bp__accessos {
	grid-column: 1;
	grid-row: 1;
	flex-direction: column;
	counter-reset: bp-acces;
}

.bp--v3 .bp__accessos::before {
	content: attr(aria-label);
	margin-bottom: 14px;
	color: var(--bp-olive);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.bp--v3 .bp__acces {
	counter-increment: bp-acces;
	align-items: baseline;
	gap: 18px;
	padding: 20px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--bp-white);
}

.bp--v3 .bp__acces::before {
	content: counter(bp-acces, decimal-leading-zero);
	color: var(--bp-olive);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
}

.bp--v3 .bp__acces-icona {
	display: none;
}

.bp--v3 .bp__acces-text {
	font-size: clamp(26px, 2.5vw, 46px);
	font-weight: 700;
	letter-spacing: -0.5px;
	line-height: 1;
	transition: color .3s ease, transform .3s ease;
}

.bp--v3 .bp__acces-fletxa {
	align-self: center;
	color: var(--bp-olive);
	font-size: 26px;
	opacity: 0;
	transform: translateX(-12px);
	transition: opacity .3s ease, transform .3s ease;
}

.bp--v3 .bp__acces:hover,
.bp--v3 .bp__acces:focus {
	color: var(--bp-white);
	border-color: var(--bp-olive);
}

.bp--v3 .bp__acces:hover .bp__acces-text,
.bp--v3 .bp__acces:focus .bp__acces-text {
	color: var(--bp-olive);
	transform: translateX(10px);
}

.bp--v3 .bp__acces:hover .bp__acces-fletxa,
.bp--v3 .bp__acces:focus .bp__acces-fletxa {
	opacity: 1;
	transform: translateX(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media all and (max-width: 1200px) {
	.bp__acces-text { font-size: 15px; }
	.bp--v2 .bp__accessos { margin-top: -36px; gap: 16px; }
	.bp--v2 .bp__acces { padding: 20px; }
	.bp--v2 .bp__acces-icona { width: 52px; height: 52px; padding: 12px; }
	.bp--v3 .bp__cta { width: 124px; height: 124px; font-size: 11px; }
}

@media all and (max-width: 992px) {
	.bp--v3 {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: calc(var(--bp-header) + 20px) 0 50px;
	}
	.bp--v3 .bp__slider {
		grid-column: 1;
		grid-row: 1;
		margin: 0 5%;
		border-radius: 18px;
		transform: rotate(-1.5deg);
	}
	.bp--v3 .bp__accessos {
		grid-column: 1;
		grid-row: 2;
		padding: 0 5%;
	}
}

@media all and (max-width: 768px) {
	.bp { --bp-header: 110px; }

	/* En mòbil el botó va sota la imatge per no tapar el text del banner */
	.bp .bp__cta-wrap {
		position: static;
		padding: 14px 5% 34px;
	}
	.bp .bp__cta {
		padding: 10px 12px 10px 18px;
		font-size: 12px;
		gap: 10px;
	}
	.bp__cta i {
		width: 26px;
		height: 26px;
		font-size: 12px;
	}
	.bp .owl-nav { display: none; }
	.bp .owl-dots { bottom: 3%; }
	.bp .owl-dot span { width: 18px; }
	.bp .owl-dot.active span { width: 30px; }

	.bp__acces-text { font-size: 12px; letter-spacing: .5px; }
	.bp .bp__acces-fletxa { display: none; }
	.bp .owl-dots { bottom: 10px; }

	.bp--v1 .bp__acces {
		flex-direction: column;
		gap: 8px;
		padding: 16px 8px;
		text-align: center;
	}
	.bp--v1 .bp__acces-icona { width: 30px; height: 30px; }

	.bp--v2 .bp__cta { background: var(--bp-dark); color: var(--bp-white); box-shadow: none; }
	.bp--v2 .owl-dots {
		top: auto;
		right: 0;
		left: 0;
		bottom: 10px;
		flex-direction: row;
		transform: none;
	}
	.bp--v2 .owl-dot span { width: 18px; height: 4px; }
	.bp--v2 .owl-dot.active span { width: 30px; height: 4px; }
	.bp--v2 .bp__accessos {
		width: 100%;
		margin-top: 0;
		gap: 8px;
		padding: 14px 4%;
	}
	.bp--v2 .bp__acces {
		flex-direction: column;
		gap: 8px;
		padding: 14px 6px;
		text-align: center;
		border-radius: 10px;
	}
	.bp--v2 .bp__acces-icona { width: 40px; height: 40px; padding: 9px; }

	.bp--v3 { padding-top: calc(var(--bp-header) + 10px); }
	.bp--v3 .bp__slider { border-radius: 14px; }
	.bp--v3 .bp__cta-wrap { padding: 14px 6% 30px; }
	.bp--v3 .bp__cta {
		flex-direction: row;
		width: auto;
		height: auto;
		padding: 10px 12px 10px 18px;
		border-radius: var(--bp-radius);
		box-shadow: none;
		transform: none;
	}
	.bp--v3 .bp__slide { background: var(--bp-white); }
	.bp--v3 .bp__acces { padding: 16px 0; }
	.bp--v3 .bp__acces-text { font-size: 26px; }
}
