/* --- SINGLE EVENTO (BEM, continuista con .ev-job) --- */
.ev-event {
	padding: 120px 40px;
}

.ev-event__header {
	margin-bottom: 60px;
}

/* Badge estado */
.ev-event__badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.ev-event__badge--proximo {
	background-color: #1a1a1a;
	color: #fff;
}

.ev-event__badge--pasado {
	background-color: #f5f5f7;
	color: #8a8a8a;
}

.ev-event__kicker {
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* Meta (fecha / hora / modalidad) bajo el título */
.ev-event__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin-top: 24px;
}

.ev-event__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #555;
	font-size: 16px;
}

.ev-event__meta-item img {
	width: 20px;
	height: 20px;
}

/* Imagen destacada (proporción natural de la imagen subida) */
.ev-event__image {
	overflow: hidden;
}

.ev-event__image img {
	width: 100%;
	height: auto;
	display: block;
}

.ev-event__content {
	--bs-gutter-x: 60px;
}

.ev-event__block {
	margin-bottom: 48px;
}

.ev-event__section-title {
	font-size: 1.75rem;
	font-weight: 600;
	color: #1a1a1a;
	font-family: 'Plus Jakarta Sans', sans-serif;
	margin-bottom: 24px;
}

.ev-event__text,
.ev-event__text ul,
.ev-event__text ol {
	line-height: 1.7;
	color: #1a1a1a;
	font-size: 1.125rem;
}

.ev-event__text ul,
.ev-event__text ol {
	margin-left: 0;
	padding-left: 21px;
}

/* Imagen intermedia (opcional, en el flujo del contenido) */
.ev-event__inline-image {
	margin: 0 0 48px;
	padding: 0;
}

.ev-event__inline-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
}

.ev-event__inline-image figcaption {
	margin-top: 12px;
	font-size: 0.95rem;
	color: #8a8a8a;
	text-align: center;
	line-height: 1.5;
}

/* Vídeo (grabación oEmbed) responsive 16:9 */
.ev-event__video {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.ev-event__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Agenda */
.ev-event__agenda {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ev-event__agenda-item {
	display: flex;
	gap: 20px;
	padding: 16px 0;
	border-bottom: 1px solid #eee;
}

.ev-event__agenda-time {
	font-weight: 600;
	color: #1a1a1a;
	min-width: 64px;
	font-variant-numeric: tabular-nums;
}

.ev-event__agenda-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ev-event__agenda-title {
	font-weight: 500;
	color: #1a1a1a;
}

.ev-event__agenda-speaker {
	color: #8a8a8a;
	font-size: 0.95rem;
}

/* Ponentes */
.ev-event__speakers {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

.ev-event__speaker {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ev-event__speaker-photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.ev-event__speaker-photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f5f5f7;
	color: #8a8a8a;
	font-size: 28px;
	font-weight: 600;
}

.ev-event__speaker-info {
	display: flex;
	flex-direction: column;
}

.ev-event__speaker-name {
	font-weight: 600;
	color: #1a1a1a;
}

.ev-event__speaker-role {
	color: #8a8a8a;
	font-size: 0.95rem;
}

.ev-event__speaker-link {
	margin-top: 4px;
	color: #1a1a1a;
	font-size: 0.95rem;
}

/* Empresas: mosaico uniforme (cada logo en un tile idéntico, equilibrado) */
.ev-event__companies {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
}

.ev-event__company {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 104px;
	padding: 20px 24px;
	background: #f7f7f7;
	border-radius: 7px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

a.ev-event__company:hover {
	background: #f0f0f0;
}

.ev-event__company img {
	max-height: 45px;
	max-width: 80px;
	width: auto;
	object-fit: contain;
}

.ev-event__company-name {
	font-weight: 600;
	color: #1a1a1a;
	text-align: center;
}

/* Mapa */
.ev-event__map {
	position: relative;
	padding-bottom: 52%;
	height: 0;
	overflow: hidden;
}

.ev-event__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Materiales */
.ev-event__materials {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ev-event__materials a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	color: #1a1a1a;
	font-size: 1.0625rem;
}

.ev-event__materials a i {
	color: #8a8a8a;
}

/* Galería */
.ev-event__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.ev-event__gallery-item {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	border-radius: 12px;
	overflow: hidden;
	display: block;
	transition: transform 0.2s ease;
}

.ev-event__gallery-item:hover {
	transform: scale(1.02);
}

.ev-event__gallery-item:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 3px;
}

.ev-event__gallery-item img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}

/* Lightbox (galería en modal) — mismo blur que los modales del theme */
.ev-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(26, 26, 26, 0.38);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.ev-lightbox[hidden] {
	display: none;
}

.ev-lightbox.is-open {
	opacity: 1;
}

.ev-lightbox__stage {
	max-width: 90vw;
	max-height: 85vh;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.ev-lightbox__img {
	max-width: 90vw;
	max-height: 78vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 12px;
	display: block;
	background: #1a1a1a;
}

.ev-lightbox__caption {
	color: #fff;
	font-size: 14px;
	text-align: center;
	max-width: 640px;
	line-height: 1.5;
	opacity: 0.85;
}

.ev-lightbox__close,
.ev-lightbox__nav {
	position: absolute;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: #1a1a1a;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.ev-lightbox__close:hover,
.ev-lightbox__nav:hover {
	background: #f5f5f7;
}

.ev-lightbox__close:active,
.ev-lightbox__nav:active {
	transform: scale(0.95);
}

.ev-lightbox__close {
	top: 24px;
	right: 24px;
}

.ev-lightbox__nav--prev {
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
}

.ev-lightbox__nav--next {
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
}

.ev-lightbox__nav--prev:active {
	transform: translateY(-50%) scale(0.95);
}

.ev-lightbox__nav--next:active {
	transform: translateY(-50%) scale(0.95);
}

.ev-lightbox__counter {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 13px;
	letter-spacing: 0.5px;
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
	.ev-lightbox__close {
		top: 16px;
		right: 16px;
	}
	.ev-lightbox__nav--prev {
		left: 12px;
	}
	.ev-lightbox__nav--next {
		right: 12px;
	}
	.ev-lightbox__nav {
		width: 40px;
		height: 40px;
	}
	.ev-lightbox__img {
		max-height: 70vh;
	}
}

/* Sidebar + tarjeta de info */
.ev-event__sidebar {
	position: -webkit-sticky;
	position: sticky;
	top: 120px;
}

.ev-event__info-card {
	background: #fff;
	border: 1px solid #eee;
	padding: 25px;
}

.ev-event__info-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f5f5f5;
	color: #555;
	font-size: 0.95rem;
}

.ev-event__info-item:first-child {
	padding-top: 0;
}

.ev-event__info-item img {
	flex-shrink: 0;
	margin-top: 2px;
}

/* Otros eventos */
.ev-event__related .event-card {
	transition: transform 0.2s ease;
}

.ev-event__related .event-card:hover {
	transform: translateY(-4px);
}

/* Archivo de eventos: paginación */
.ev-archive__pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.ev-archive__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #eee;
	border-radius: 12px;
	color: #1a1a1a;
	text-decoration: none;
	font-size: 0.95rem;
}

.ev-archive__pagination .page-numbers.current {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}

@media (max-width: 1024px) {
	.ev-event {
		padding: 100px 0;
	}

	.ev-event__header {
		margin-bottom: 30px;
	}

	.ev-event__content {
		--bs-gutter-x: 20px;
	}

	.ev-event__sidebar {
		position: static;
	}
}

/* Móvil: oculta la meta de la cabecera (ya aparece en la info-card)
   y fija el ancho de la "hora" en la agenda para alinear filas como tabla */
@media (max-width: 767px) {
	.ev-event__meta {
		display: none;
	}

	.ev-event__agenda-time {
		width: 120px;
		min-width: 120px;
		flex-shrink: 0;
	}

	.ev-event__agenda-body {
		flex: 1;
		min-width: 0;
	}
}

/* Breadcrumbs visuales */
.post-breadcrumbs {
	font-size: 14px;
	font-family: Inter;
	color: #8f8f8f;
	margin-bottom: 12px;
}
.post-breadcrumbs a {
	color: #8f8f8f;
	text-decoration: none;
	transition: color 0.2s;
}
.post-breadcrumbs a:hover {
	color: #1a1a1a;
}
.post-breadcrumbs .breadcrumb-separator {
	margin: 0 8px;
	color: #ccc;
}
.post-breadcrumbs .breadcrumb-current {
	color: #1a1a1a;
	font-weight: 500;
}
