/* CDTH Web · Beneficis per a socis ([cdth_beneficis]) amb el sistema del redisseny. */
.cdth-bn { --red: #CC0033; --red-d: #A3002A; --ink: #1F1A1B; --txt: #3A3D44; --soft: #F5F6F7; --line: #E3E5E8;
	font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; color: var(--txt); line-height: 1.55; container-type: inline-size; container-name: cdthbn; }
.cdth-bn *, .cdth-bn *::before, .cdth-bn *::after { box-sizing: border-box; }
.cdth-bn-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.cdth-bn-kick { display: inline-block; padding: 4px 9px; border-radius: 4px; background: var(--red); color: #fff;
	font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Capçalera */
.cdth-bn-hero { position: relative; overflow: hidden; padding: 64px 0 56px; background: var(--red-d); color: #fff; }
.cdth-bn-hero::before { content: ""; position: absolute; inset: 0; opacity: .14;
	background: repeating-linear-gradient(-55deg, transparent 0 22px, rgba(255,255,255,.9) 22px 24px); }
.cdth-bn-hero .cdth-bn-in { position: relative; }
.cdth-bn-hero .cdth-bn-kick { background: #fff; color: var(--red); }
.cdth-bn .cdth-bn-h1 { margin: 14px 0 12px !important; padding: 0 !important; color: #fff !important; font-family: inherit !important;
	font-size: clamp(30px, 5vw, 46px) !important; line-height: 1.08 !important; font-weight: 800 !important; text-transform: none !important; letter-spacing: -.01em; }
.cdth-bn-lead { max-width: 640px; margin: 0; font-size: 17px; color: rgba(255,255,255,.88); }

/* Targetes */
.cdth-bn-list { padding: 48px 0; background: #fff; }
.cdth-bn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.cdth-bn-grid--1 { grid-template-columns: minmax(0, 760px); justify-content: center; }
.cdth-bn-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff;
	transition: border-color .2s, box-shadow .2s, transform .2s; }
.cdth-bn-card:hover { border-color: var(--red); box-shadow: 0 10px 28px rgba(31,26,27,.10); transform: translateY(-2px); }
.cdth-bn-img { position: relative; aspect-ratio: 2 / 1; background: var(--soft); overflow: hidden; }
.cdth-bn-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cdth-bn-tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 11px; border-radius: 6px; background: #fff; color: var(--red);
	font-size: 14px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.cdth-bn-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.cdth-bn .cdth-bn-t { margin: 0 0 8px !important; padding: 0 !important; color: var(--ink) !important; font-family: inherit !important;
	font-size: 22px !important; line-height: 1.2 !important; font-weight: 800 !important; text-transform: none !important; }
.cdth-bn-r { margin: 0 0 8px; font-size: 15px; }
.cdth-bn-c { margin: 0 0 16px; font-size: 13px; color: #6B6B6B; }
.cdth-bn-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; }
.cdth-bn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 8px;
	background: var(--red); color: #fff !important; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
	text-decoration: none !important; transition: background .2s; }
.cdth-bn-btn:hover, .cdth-bn-btn:focus-visible { background: var(--red-d); }
.cdth-bn-web { color: var(--ink) !important; font-size: 14px; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
.cdth-bn-web:hover { color: var(--red) !important; }
.cdth-bn-info { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--soft); font-size: 14px; font-weight: 700; color: var(--ink); }
.cdth-bn-code { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 2px dashed var(--red); border-radius: 8px; background: var(--soft); }
.cdth-bn-code span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6B6B6B; }
.cdth-bn-code code { font: 800 17px/1.2 "Courier New", Courier, monospace; color: var(--ink); background: none; padding: 0; }
.cdth-bn-copy { min-height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font: 700 13px Montserrat, Arial, sans-serif; cursor: pointer; }

/* Petició */
.cdth-bn-req { padding: 56px 0; background: var(--soft); }
.cdth-bn-req-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 40px; align-items: start; }
.cdth-bn .cdth-bn-h2 { position: relative; margin: 12px 0 22px !important; padding: 0 0 12px !important; color: var(--ink) !important; font-family: inherit !important;
	font-size: 30px !important; line-height: 1.15 !important; font-weight: 800 !important; text-transform: none !important; }
.cdth-bn .cdth-bn-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--red); }
.cdth-bn-steps { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: none; }
.cdth-bn-steps li { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 14px; padding: 0; font-size: 16px; color: var(--ink); }
.cdth-bn-steps li::before { content: none !important; }
.cdth-bn-steps b { flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--red); color: #fff; font-weight: 800; }
.cdth-bn-steps span { padding-top: 5px; }
.cdth-bn-note { margin: 0; font-size: 14px; }
.cdth-bn-note a { color: var(--red) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cdth-bn-req-form { padding: 26px; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(31,26,27,.08); scroll-margin-top: 110px; }
.cdth-bn #cdth-bn-form { scroll-margin-top: 110px; }

/* Es mira l'amplada del bloc, no de la pantalla: a les pàgines amb columna de 820 px també queda bé. */
@container cdthbn (max-width: 860px) {
	.cdth-bn-req-in { grid-template-columns: 1fr; gap: 24px; }
	.cdth-bn-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	.cdth-bn-steps li { flex-direction: column; gap: 8px; margin: 0; font-size: 14px; }
	.cdth-bn-steps span { padding-top: 0; }
}
@container cdthbn (max-width: 640px) {
	.cdth-bn-hero { padding: 44px 0 40px; }
	.cdth-bn-list { padding: 32px 0; }
	.cdth-bn-grid { grid-template-columns: 1fr; gap: 18px; }
	.cdth-bn-req { padding: 36px 0; }
	.cdth-bn-req-form { padding: 20px; }
	.cdth-bn .cdth-bn-h2 { font-size: 26px !important; }
	.cdth-bn-btn { width: 100%; }
	.cdth-bn-steps { grid-template-columns: 1fr; }
	.cdth-bn-steps li { flex-direction: row; gap: 14px; font-size: 15px; }
	.cdth-bn-steps span { padding-top: 5px; }
}
@media (prefers-reduced-motion: reduce) { .cdth-bn-card, .cdth-bn-card:hover { transition: none; transform: none; } }
