.ecotruck-live-link,
.ecotruck-live-link:visited,
.ecotruck-live-link:hover,
.ecotruck-live-link:focus,
.ecotruck-live-link:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
	padding: 12px 30px;
	border: 0;
	border-radius: 100px;
	background: #005196;
	color: #fff !important;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	text-decoration: none !important;
	box-shadow: 0 12px 30px -12px rgba(0, 81, 150, .55);
}
.ecotruck-live-link--envases,
.ecotruck-live-link--envases:visited,
.ecotruck-live-link--envases:hover,
.ecotruck-live-link--envases:focus,
.ecotruck-live-link--envases:active {
	background: #68ad23;
	box-shadow: 0 12px 30px -12px rgba(104, 173, 35, .6);
}
.ecotruck-live-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ecotruck-live-link__dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #dffbe6; }

.ecotruck-data {
	--ecotruck-data-accent: #005196;
	--ecotruck-data-deep: #003c71;
	width: 100%;
	display: flow-root;
	color: #1b2a20;
}

.ecotruck-data--envases {
	--ecotruck-data-accent: #68ad23;
	--ecotruck-data-deep: #4c8118;
}

.ecotruck-data *,
.ecotruck-data *::before,
.ecotruck-data *::after { box-sizing: border-box; }

.ecotruck-data__live {
	position: relative;
	margin-top: -50px;
	scroll-margin-top: 130px;
	border-radius: 22px;
	background: linear-gradient(135deg, var(--ecotruck-data-accent), var(--ecotruck-data-deep));
	color: #fff;
	box-shadow: 0 30px 70px -34px rgba(0, 60, 113, .7);
	overflow: hidden;
}

.ecotruck-data__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 24px 30px;
}

.ecotruck-data__live-text { display: block; min-width: 0; flex: 1; }
.ecotruck-data__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 100px; background: rgba(255,255,255,.2); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em; line-height: 1.6; text-transform: uppercase; }
.ecotruck-data__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #dffbe6; }
.ecotruck-data__event-title { display: block; margin-top: 12px; color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.ecotruck-data__when { display: block; margin-top: 5px; color: rgba(255,255,255,.95); font-size: 1.05rem; line-height: 1.6; }
.ecotruck-data .ecotruck-data__more,
.ecotruck-data .ecotruck-data__more:hover,
.ecotruck-data .ecotruck-data__more:focus,
.ecotruck-data .ecotruck-data__more:active { display: inline-flex; flex: none; align-items: center; gap: 6px; width: auto; margin: 0; padding: 9px 16px; border: 0 !important; border-radius: 100px; background: rgba(255,255,255,.18) !important; box-shadow: none !important; color: #fff !important; font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.4; text-align: left; text-transform: none; transform: none !important; cursor: pointer; }
.ecotruck-data .ecotruck-data__more:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ecotruck-data .ecotruck-data__more { position: relative; z-index: 2; isolation: isolate; }
.ecotruck-data .ecotruck-data__more::before, .ecotruck-data .ecotruck-data__more::after { pointer-events: none; }
.ecotruck-data__more svg { flex: none; pointer-events: none; transition: transform .2s; }
.ecotruck-data__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.ecotruck-data__detail { padding: 0 30px 26px; color: #fff; }
.ecotruck-data__detail[hidden] { display: none !important; }
.ecotruck-data__detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22); }
.ecotruck-data .ecotruck-data__detail h4 { margin: 0 0 6px; color: rgba(255,255,255,.8); font-size: .74rem; font-weight: 700; line-height: 1.3; letter-spacing: .05em; text-transform: uppercase; }
.ecotruck-data .ecotruck-data__detail p { margin: 0; color: rgba(255,255,255,.96); font-size: .96rem; line-height: 1.6; }
.ecotruck-data__richtext > * + *, .ecotruck-data__detail p + p { margin-top: 8px !important; }
.ecotruck-data .ecotruck-data__detail a { color: #fff; text-decoration: underline; }
.ecotruck-data__counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 50px; }
.ecotruck-data--raee .ecotruck-data__counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ecotruck-data__counters--after-live { margin-top: 44px; }
.ecotruck-data__counter { padding: 26px 22px; border: 1px solid #e2ecda; border-radius: 18px; background: #fff; text-align: center; }
.ecotruck-data__value { color: var(--ecotruck-data-deep); font-size: 2.1rem; font-weight: 800; line-height: 1.2; }
.ecotruck-data--raee .ecotruck-data__value { color: #005196; }
.ecotruck-data__label { margin-top: 4px; color: #5a6b60; font-size: .9rem; line-height: 1.6; }
@media (max-width: 860px) {
	.ecotruck-data__detail-grid { grid-template-columns: 1fr; }
	.ecotruck-data__counters, .ecotruck-data--raee .ecotruck-data__counters { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.ecotruck-data__header { padding: 22px 20px; flex-wrap: wrap; }
	.ecotruck-data__live-text { flex-basis: 100%; }
	.ecotruck-data__detail { padding: 0 20px 22px; }
}
@media (prefers-reduced-motion: reduce) { .ecotruck-data__more svg { transition: none; } }

.ecotruck-events {
	--ecotruck-ink: #173b43;
	--ecotruck-blue: #005196;
	--ecotruck-blue-pale: #e5eff7;
	--ecotruck-green: #4c8118;
	--ecotruck-green-pale: #edf6e1;
	--ecotruck-line: #e2ecda;
	--ecotruck-paper: #ffffff;
	color: var(--ecotruck-ink);
}

.ecotruck-events *,
.ecotruck-events *::before,
.ecotruck-events *::after {
	box-sizing: border-box;
}

.ecotruck-events__title {
	margin: 0 0 32px;
	color: var(--ecotruck-ink);
}

.ecotruck-events__section {
	margin: 0 0 40px;
}

.ecotruck-events__section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.ecotruck-events__section-head h3 {
	margin: 0;
	color: var(--ecotruck-ink);
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	line-height: 1.2;
}

.ecotruck-events__year-label select {
	min-width: 100px;
	padding: 8px 32px 8px 12px;
	border: 1px solid var(--ecotruck-line);
	border-radius: 8px;
	background: #fff;
	color: var(--ecotruck-ink);
	font: inherit;
	font-weight: 700;
}

.ecotruck-events__empty,
.ecotruck-events__notice {
	margin: 0;
	padding: 18px 20px;
	border: 1px solid var(--ecotruck-line);
	border-radius: 12px;
	background: #fff;
	color: #526b70;
}

.ecotruck-events__list {
	display: grid;
	gap: 12px;
}

.ecotruck-event-card {
	border: 1px solid var(--ecotruck-line);
	border-radius: 14px;
	background: var(--ecotruck-paper);
	overflow: hidden;
}

.ecotruck-event-card__trigger {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr) auto 20px;
	align-items: center;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 12px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

/* The Ecotic theme styles generic buttons. Keep event rows visually neutral in every state. */
.ecotruck-events .ecotruck-event-card__trigger,
.ecotruck-events .ecotruck-event-card__trigger:hover,
.ecotruck-events .ecotruck-event-card__trigger:focus,
.ecotruck-events .ecotruck-event-card__trigger:active,
.ecotruck-events .ecotruck-event-card.is-open .ecotruck-event-card__trigger {
	border: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--ecotruck-ink) !important;
	transform: none !important;
}

.ecotruck-event-card__trigger:focus-visible,
.ecotruck-events__page:focus-visible,
.ecotruck-events__year-label select:focus-visible {
	outline: 3px solid rgba(0, 81, 150, .35);
	outline-offset: 2px;
}

.ecotruck-event-card__image {
	display: block;
	width: 100px;
	height: 76px;
	border-radius: 9px;
	object-fit: cover;
}

.ecotruck-event-card__body,
.ecotruck-event-card__pills {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 4px;
}

.ecotruck-event-card__name {
	color: var(--ecotruck-ink);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.25;
}

.ecotruck-event-card__meta {
	color: #64777b;
	font-size: .9rem;
	line-height: 1.35;
}

.ecotruck-event-card__pills {
	align-items: flex-end;
	gap: 0;
}

.ecotruck-event-card__pill {
	display: inline-block;
	max-width: 180px;
	padding: 5px 10px;
	border-radius: 100px;
	font-size: .72rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

.ecotruck-event-card__pill--category {
	background: var(--ecotruck-category-color, var(--ecotruck-blue));
	color: #fff;
	padding: 8px 14px;
	font-size: .84rem;
}

.ecotruck-event-card__pill--status {
	border: 1px solid var(--ecotruck-line);
	background: #fff;
	color: var(--ecotruck-ink);
}

.ecotruck-event-card--current .ecotruck-event-card__pill--status {
	border-color: var(--ecotruck-line);
	background: #fff;
	color: var(--ecotruck-ink);
}

.ecotruck-event-card--completed .ecotruck-event-card__pill--status {
	border-color: var(--ecotruck-line);
	background: #fff;
	color: var(--ecotruck-ink);
}

.ecotruck-event-card__chevron {
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--ecotruck-ink);
	border-bottom: 2px solid var(--ecotruck-ink);
	transform: rotate(45deg) translateY(-3px);
	transition: transform .2s ease;
}

.ecotruck-event-card.is-open .ecotruck-event-card__chevron {
	transform: rotate(225deg) translate(-3px, -1px);
}

.ecotruck-event-card__detail {
	border-top: 1px solid var(--ecotruck-line);
	background: #fff;
}

.ecotruck-events .ecotruck-event-card__action { padding: 0 24px 24px; }
.ecotruck-events .ecotruck-event-card__link,
.ecotruck-events .ecotruck-event-card__link:visited,
.ecotruck-events .ecotruck-event-card__link:hover,
.ecotruck-events .ecotruck-event-card__link:focus { display:inline-flex; align-items:center; padding:11px 20px; border:0; border-radius:100px; background:#005196; color:#fff; font-size:.9rem; font-weight:700; line-height:1.35; text-decoration:none; box-shadow:none; }
.ecotruck-events[data-type="envases"] .ecotruck-event-card__link { background:#4c8118; }
.ecotruck-events .ecotruck-event-card__link:focus-visible { outline:3px solid #88b7d4; outline-offset:3px; }

.ecotruck-event-card__detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	padding: 24px;
}

.ecotruck-event-card__block h4 {
	margin: 0 0 8px;
	color: var(--ecotruck-ink);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.25;
}

.ecotruck-event-card__block p,
.ecotruck-event-card__richtext,
.ecotruck-event-card__richtext p {
	margin: 0;
	color: #425b61;
	font-size: .9rem;
	line-height: 1.6;
}

.ecotruck-event-card__richtext > * + * {
	margin-top: 8px;
}

.ecotruck-event-card__map-link {
	color: var(--ecotruck-blue);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ecotruck-events .ecotruck-event-card__block p.ecotruck-event-card__map {
	margin-top: 10px;
}

.ecotruck-event-card__pending-summary {
	font-style: italic;
}

.ecotruck-event-card__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}

.ecotruck-event-card__logos img {
	display: block;
	width: 120px;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
}

.ecotruck-event-card__block--kpis {
	grid-column: 1 / -1;
}

.ecotruck-event-card__results-column .ecotruck-event-card__block--kpis {
	margin-top: 20px;
}

.ecotruck-event-card__kpis {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ecotruck-event-card__kpis > div {
	display: flex;
	align-items: baseline;
	gap: 7px;
	padding: 10px 13px;
	border: 1px solid var(--ecotruck-line);
	border-radius: 10px;
	background: #fff;
}

.ecotruck-event-card__kpis strong {
	color: var(--ecotruck-blue);
	font-size: 1.15rem;
}

.ecotruck-event-card__kpis span {
	color: #63777c;
	font-size: .78rem;
	font-weight: 700;
}

.ecotruck-event-card__gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	padding: 0 24px 24px;
}

.ecotruck-event-card__gallery img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	object-fit: cover;
}

.ecotruck-events__pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
	margin-top: 22px;
}

.ecotruck-events__page {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--ecotruck-line);
	border-radius: 8px;
	background: #fff;
	color: var(--ecotruck-blue);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.ecotruck-events__page:hover,
.ecotruck-events__page.is-current {
	border-color: var(--ecotruck-blue);
	background: var(--ecotruck-blue);
	color: #fff;
}

.ecotruck-events__completed-results.is-loading {
	opacity: .55;
	pointer-events: none;
}

@media (max-width: 767px) {
	.ecotruck-events__section-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.ecotruck-event-card__trigger {
		grid-template-columns: 76px minmax(0, 1fr) 16px;
		gap: 11px;
		padding: 10px;
	}

	.ecotruck-event-card__image {
		width: 76px;
		height: 66px;
	}

	/* El tema puede aplicar nowrap a los botones; permitir que la fecha y la
	   localidad se repartan dentro de la columna disponible. */
	.ecotruck-events .ecotruck-event-card__trigger,
	.ecotruck-event-card__body,
	.ecotruck-event-card__meta {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.ecotruck-event-card__pills {
		grid-column: 2 / 4;
		align-items: flex-start;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.ecotruck-event-card__pill {
		max-width: none;
	}

	.ecotruck-event-card__chevron {
		grid-column: 3;
		grid-row: 1;
	}

	.ecotruck-event-card__detail-grid {
		grid-template-columns: 1fr;
		gap: 19px;
		padding: 19px;
	}
	.ecotruck-events .ecotruck-event-card__action { padding: 0 19px 19px; }

	.ecotruck-event-card__block--kpis {
		grid-column: auto;
	}

	.ecotruck-event-card__gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0 19px 19px;
	}

}
