/**
 * W2T-Offers — estilos base. Pensados para sobrescribirse desde Bricks.
 * Todas las clases usan el prefijo .w2t- (no copies de terceros).
 */

/* El wrapper del elemento Bricks y el bloque deben ocupar SIEMPRE el 100%,
   aunque el contenedor padre sea flex/grid (evita que se encoja al plegar). */
.brxe-w2t-offers {
	display: block;
	width: 100%;
	flex: 1 1 100%;
	align-self: stretch;
}

.w2t-offers {
	--w2t-accent: #0a7d4b;
	--w2t-border: #e3e6ea;
	--w2t-radius: 10px;
	--w2t-text: #1d2733;
	--w2t-muted: #5b6b7b;
	display: block;
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	align-self: stretch;
	box-sizing: border-box;
}

/* Todo dentro del bloque hereda el box-sizing para que abrir/cerrar no altere el ancho */
.w2t-offers *,
.w2t-offers *::before,
.w2t-offers *::after {
	box-sizing: border-box;
}

/* ---------- Filtros ---------- */
.w2t-offers-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.w2t-offers-filter {
	appearance: none;
	cursor: pointer;
	border: 1px solid var(--w2t-border);
	background: #fff;
	color: var(--w2t-text);
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.2;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.w2t-offers-filter:hover {
	border-color: var(--w2t-accent);
	color: var(--w2t-accent);
}

.w2t-offers-filter.is-active {
	background: var(--w2t-accent);
	border-color: var(--w2t-accent);
	color: #fff;
}

/* ---------- Listado ---------- */
.w2t-offers-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.w2t-offer {
	width: 100%;
	border: 1px solid var(--w2t-border);
	border-radius: var(--w2t-radius);
	background: #fff;
	overflow: hidden;
}

.w2t-offer.is-open {
	border-color: var(--w2t-accent);
}

/* ---------- Cabecera ---------- */
.w2t-offer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
}

.w2t-offer-header:focus-visible {
	outline: 2px solid var(--w2t-accent);
	outline-offset: -2px;
}

.w2t-offer-header-left {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.w2t-offer-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.w2t-offer-dept,
.w2t-offer-new {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	line-height: 1.4;
}

.w2t-offer-dept {
	background: #eef3f8;
	color: var(--w2t-muted);
}

.w2t-offer-new {
	background: var(--w2t-accent);
	color: #fff;
}

.w2t-offer-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	color: var(--w2t-text);
}

.w2t-offer-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.w2t-offer-meta-item {
	font-size: 14px;
	color: var(--w2t-muted);
}

/* ---------- Toggle +/− ---------- */
.w2t-offer-toggle {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #eef3f8;
	color: var(--w2t-accent);
	font-size: 22px;
	line-height: 1;
	font-weight: 700;
	transition: background-color .15s ease, color .15s ease;
}

.w2t-offer.is-open .w2t-offer-toggle {
	background: var(--w2t-accent);
	color: #fff;
}

/* ---------- Cuerpo desplegable ---------- */
.w2t-offer-body {
	padding: 0 22px 22px;
}

.w2t-offer-body[hidden] {
	display: none;
}

.w2t-offer-content {
	color: var(--w2t-text);
	line-height: 1.6;
}

/* ---------- Secciones Missions / Profile ----------
   1 sección -> 100% (flex-grow rellena); 2 secciones -> 50/50; móvil -> apiladas. */
.w2t-offer-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 20px;
}

.w2t-offer-col {
	flex: 1 1 0;
	min-width: 0; /* permite que una sola columna ocupe el 100% */
}

.w2t-offer-col-title {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.3;
	color: var(--w2t-text);
}

.w2t-offer-col-content {
	color: var(--w2t-text);
	line-height: 1.6;
}

@media ( max-width: 768px ) {
	.w2t-offer-columns {
		flex-direction: column;
		gap: 18px;
	}
	.w2t-offer-col {
		flex-basis: auto;
	}
}

.w2t-offer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.w2t-offer-pdf,
.w2t-offer-apply {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 8px;
}

.w2t-offer-pdf {
	border: 1px solid var(--w2t-border);
	color: var(--w2t-text);
}

.w2t-offer-pdf:hover {
	border-color: var(--w2t-accent);
	color: var(--w2t-accent);
}

.w2t-offer-apply {
	background: var(--w2t-accent);
	color: #fff;
}

.w2t-offer-apply:hover {
	filter: brightness( .94 );
}

/* ---------- Responsive ---------- */
@media ( max-width: 600px ) {
	.w2t-offer-header {
		padding: 16px;
	}
	.w2t-offer-body {
		padding: 0 16px 16px;
	}
	.w2t-offer-meta {
		gap: 8px 12px;
	}
}
