/* Página de eventos de Adra KMCERO (diseño Figma node 9:22980).
   Fuente de datos: EventON. Reutiliza la tarjeta .akc-card-evento de la home. */

body.akc-home .akc-row-eventospage {
	padding-top: 58px;
	padding-bottom: 80px;
	overflow: hidden;
}

body.akc-home .akc-eventospage__col > .uncol > .uncoltable > .uncell > .uncont {
	width: var(--akc-container, 1304px);
	max-width: calc(100% - (var(--akc-gutter, 24px) * 2));
	margin: 0 auto !important;
}

/* Tamaño/peso/interlineado/color desde el Heading nativo de WPBakery
   (fontsize-45 / fontheight-48 / weight 800 / color-0E3262). Aquí solo el margen. */
body.akc-home .akc-eventospage__title h1 {
	margin: 0 0 22px !important;
}

/* ---------- Banda de filtros (fondo ancho, contenido al contenedor) ---------- */

body.akc-home .akc-eventos__filtros {
	position: relative;
	width: calc(100vw - 80px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--akc-azul-fondo, #b3e6f9);
	border-radius: 15px;
	padding: 38px 0;
	margin-bottom: 48px;
}

body.akc-home .akc-eventos__filtros-inner {
	width: var(--akc-container, 1304px);
	max-width: calc(100% - 90px);
	margin: 0 auto;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
}

body.akc-home .akc-eventos__fecha-label {
	font-size: 20px !important;
	line-height: 28px !important;
	font-weight: 700 !important;
	color: var(--akc-titular) !important;
	margin: 0 0 14px !important;
}

body.akc-home .akc-eventos__fecha-campos {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

body.akc-home .akc-eventos__fecha-campos label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--akc-titular);
}

body.akc-home .akc-eventos__date {
	height: 44px;
	min-width: 115px;
	border: 0;
	border-radius: 10px;
	background: #fff;
	padding: 0 14px;
	font-size: 15px;
	color: var(--akc-texto);
	outline: none;
}

body.akc-home .akc-eventos__date:focus {
	box-shadow: 0 0 0 2px var(--akc-borde, #41c0f0);
}

/* Botones de tipo con icono */

body.akc-home .akc-eventos__tipos {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	align-items: center;
}

body.akc-home .akc-eventos__tipo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border-radius: 12px;
	border: 0;
	background: #fff;
	font-size: 18px;
	font-weight: 400;
	color: var(--akc-texto-alt, #394a58);
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, transform .2s ease;
	white-space: nowrap;
}

body.akc-home .akc-eventos__tipo-icon {
	width: 24px;
	height: 24px;
	flex: none;
}

body.akc-home .akc-eventos__tipo:hover {
	transform: translateY(-2px);
}

body.akc-home .akc-eventos__tipo.is-active {
	background: var(--akc-boton, #8ed9f8);
	color: var(--akc-titular);
	font-weight: 700;
}

/* ---------- Grid de tarjetas ---------- */

body.akc-home .akc-eventos__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 48px 22px;
	align-items: stretch;
}

body.akc-home .akc-eventos__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 5px solid var(--akc-celeste, #d2efff);
	border-radius: 18px;
	overflow: hidden;
	min-height: 542px;
	transition: transform .3s ease, box-shadow .3s ease;
}

body.akc-home .akc-eventos__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(14, 50, 98, .12);
}

body.akc-home .akc-eventos__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

body.akc-home .akc-eventos__card .akc-card-evento__img {
	margin: -5px -5px 0;
	width: calc(100% + 10px);
	max-width: none;
	height: 329px;
	object-fit: cover;
	border-radius: 13px 13px 0 0;
	flex: none;
}

body.akc-home .akc-eventos__card .akc-card-evento__body {
	padding: 25px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 15px;
	flex: 1;
}

body.akc-home .akc-eventos__card .akc-h3 {
	font-size: 25px !important;
	line-height: 30px !important;
	font-weight: 800 !important;
	color: var(--akc-titular) !important;
	margin: 0 !important;
}

body.akc-home .akc-eventos__card .akc-body {
	font-size: 20px !important;
	line-height: 28px !important;
	font-weight: 400 !important;
	color: var(--akc-texto) !important;
	margin: 0 !important;
}

body.akc-home .akc-eventos__vacio {
	grid-column: 1 / -1;
	font-size: 20px;
	color: var(--akc-texto-alt, #394a58);
	padding: 40px 0;
	text-align: center;
}

/* ---------- Sección promocional (banda verde con decoraciones) ---------- */

body.akc-home .akc-row-promo {
	padding: 40px 0 30px;
	overflow: hidden;
}

body.akc-home .akc-promo {
	position: relative;
	width: 100vw;
	left: 50%;
	transform: translateX(-50%);
	aspect-ratio: 1920 / 519;
	background: url(/wp-content/uploads/2026/07/eventos-promo-bg.png) center / 100% 100% no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.akc-home .akc-promo__inner {
	width: 638px;
	max-width: calc(100% - 80px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	text-align: center;
	padding: 40px 0;
}

body.akc-home .akc-promo__title,
body.akc-home .akc-promo__title h2 {
	font-size: 45px !important;
	line-height: 48px !important;
	font-weight: 800 !important;
	color: var(--akc-titular) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-align: center !important;
	margin: 0 !important;
}

body.akc-home .akc-promo__text,
body.akc-home .akc-promo__text p {
	font-size: 25px !important;
	line-height: 33px !important;
	font-weight: 400 !important;
	color: var(--akc-titular) !important;
	text-align: center !important;
	margin: 0 !important;
}

body.akc-home .akc-promo__btn > a.vc_btn3 {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 64px;
	padding: 0 25px !important;
	border-radius: 15px !important;
	background: var(--akc-boton, #8ed9f8) !important;
	background-image: none !important;
	font-size: 18px !important;
	line-height: 24px !important;
	font-weight: 700 !important;
	color: var(--akc-titular) !important;
	border: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	transition: background-color .25s ease, transform .25s ease;
}

body.akc-home .akc-promo__btn > a.vc_btn3::after {
	content: '';
	width: 24.264px;
	height: 12.231px;
	flex: none;
	background: url(/wp-content/uploads/2026/07/icon-flecha.svg) center / contain no-repeat;
}

body.akc-home .akc-promo__btn > a.vc_btn3:hover {
	background: #74cef4 !important;
	transform: translateY(-2px);
}

/* EventON inyecta paneles ocultos (search) fuera de pantalla; no los usamos. */

body.akc-home .evo_sp,
body.akc-home .eventon_sc_search {
	display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
	body.akc-home .akc-eventospage__title h1 {
		font-size: 38px !important;
		line-height: 42px !important;
	}

	body.akc-home .akc-eventos__filtros-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	body.akc-home .akc-eventos__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	body.akc-home .akc-promo {
		width: calc(100vw - 80px);
		left: auto;
		transform: none;
		margin: 0 auto;
		aspect-ratio: auto;
		min-height: 360px;
		background-color: #e5eb93;
		background-size: cover;
		background-position: center;
		border-radius: 15px;
	}

	body.akc-home .akc-promo__title h2 {
		font-size: 38px !important;
		line-height: 42px !important;
	}

	body.akc-home .akc-promo__text p {
		font-size: 20px !important;
		line-height: 28px !important;
	}
}

@media (max-width: 680px) {
	body.akc-home .akc-row-eventospage {
		padding-top: 40px;
		padding-bottom: 56px;
	}

	body.akc-home .akc-eventospage__title h1 {
		font-size: 30px !important;
		line-height: 36px !important;
	}

	body.akc-home .akc-eventos__filtros {
		width: calc(100vw - 40px);
		padding: 24px 0;
	}

	body.akc-home .akc-eventos__filtros-inner {
		max-width: calc(100% - 40px);
		gap: 24px;
	}

	body.akc-home .akc-eventos__fecha-campos {
		width: 100%;
	}

	body.akc-home .akc-eventos__fecha-campos label {
		flex: 1;
	}

	body.akc-home .akc-eventos__date {
		min-width: 0;
		width: 100%;
	}

	body.akc-home .akc-eventos__tipos {
		width: 100%;
	}

	body.akc-home .akc-eventos__grid {
		grid-template-columns: 1fr;
	}

	body.akc-home .akc-eventos__card {
		min-height: 0;
	}

	body.akc-home .akc-eventos__card .akc-card-evento__img {
		height: 240px;
	}

	body.akc-home .akc-promo {
		width: calc(100vw - 40px);
		min-height: 0;
		padding: 30px 20px;
	}

	body.akc-home .akc-promo__title h2 {
		font-size: 28px !important;
		line-height: 34px !important;
	}
}

/* ==========================================================================
   Single de evento (diseño Figma node 9:10158)
   ========================================================================== */

body.akc-evento-single-page .page-header,
body.akc-evento-single-page .entry-header,
body.akc-evento-single-page .single-title,
body.akc-evento-single-page .post-title {
	display: none !important;
}

body.akc-home .akc-evento-single {
	width: var(--akc-container, 1304px);
	max-width: calc(100% - (var(--akc-gutter, 24px) * 2));
	margin: 0 auto;
	padding-top: 48px;
}

/* Uncode añade un doble padding superior al contenido del single. */
body.akc-evento-single-page .post-content .row.double-top-padding,
body.akc-evento-single-page .post-content .double-top-padding {
	padding-top: 0 !important;
}

body.akc-home .akc-evento__titulo {
	font-size: 45px !important;
	line-height: 48px !important;
	font-weight: 800 !important;
	color: var(--akc-titular) !important;
	letter-spacing: 0 !important;
	margin: 0 0 32px !important;
}

/* ---------- Tarjeta del evento (1290x683: img 579 + info 506) ---------- */

body.akc-home .akc-evento__card {
	display: grid;
	grid-template-columns: 579px minmax(0, 1fr);
	gap: 101px;
	background: #fff;
	border: 5px solid var(--akc-celeste, #d2efff);
	border-radius: 18px;
	padding: 31px;
	align-items: start;
}

body.akc-home .akc-evento__media {
	width: 579px;
	max-width: 100%;
	height: 619px;
	border-radius: 15px;
	overflow: hidden;
}

body.akc-home .akc-evento__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

body.akc-home .akc-evento__info {
	padding-top: 43px;
	display: flex;
	flex-direction: column;
}

body.akc-home .akc-evento__nombre {
	font-size: 40px !important;
	line-height: 48px !important;
	font-weight: 800 !important;
	color: var(--akc-titular) !important;
	letter-spacing: 0 !important;
	margin: 0 0 22px !important;
}

body.akc-home .akc-evento__desc,
body.akc-home .akc-evento__desc p {
	font-size: 18px !important;
	line-height: 26px !important;
	font-weight: 400 !important;
	color: var(--akc-texto-alt, #394a58) !important;
	margin: 0 0 22px !important;
}

body.akc-home .akc-evento__desc p:last-child {
	margin-bottom: 0 !important;
}

body.akc-home .akc-evento__meta {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

body.akc-home .akc-evento__meta li {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.akc-home .akc-evento__meta img {
	width: 30px;
	height: 30px;
	flex: none;
}

body.akc-home .akc-evento__meta span {
	font-size: 20px;
	line-height: 24px;
	font-weight: 400;
	color: var(--akc-texto);
}

/* ---------- Próximos eventos (mismo bloque que la home) ---------- */

body.akc-home .akc-proximos {
	padding-top: 87px;
}

body.akc-home .akc-proximos__head {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 659px;
}

body.akc-home .akc-proximos__head .akc-h2 {
	font-size: 45px !important;
	line-height: 48px !important;
	font-weight: 800 !important;
	color: var(--akc-titular) !important;
	margin: 0 !important;
}

body.akc-home .akc-proximos__head .akc-body {
	font-size: 20px !important;
	line-height: 28px !important;
	color: var(--akc-texto) !important;
	margin: 0 !important;
}

body.akc-home .akc-proximos__grid {
	margin-top: 31px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	align-items: stretch;
}

body.akc-home .akc-proximos__grid .akc-eventos__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 5px solid var(--akc-celeste, #d2efff);
	border-radius: 18px;
	overflow: hidden;
	min-height: 542px;
	transition: transform .3s ease, box-shadow .3s ease;
}

body.akc-home .akc-proximos__grid .akc-eventos__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(14, 50, 98, .12);
}

body.akc-home .akc-proximos__cta {
	margin-top: 36px;
}

body.akc-home .akc-proximos__cta.akc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 53px;
	padding: 0 25px;
	border-radius: 15px;
	background: var(--akc-boton, #8ed9f8);
	font-size: 18px;
	font-weight: 700;
	color: var(--akc-titular);
	text-decoration: none;
	transition: background-color .25s ease, transform .25s ease;
}

body.akc-home .akc-proximos__cta.akc-btn:hover {
	background: #74cef4;
	transform: translateY(-2px);
}

body.akc-home .akc-proximos__cta .akc-btn__arrow {
	width: 24.264px;
	height: 12.231px;
	flex: none;
}

/* Banner promo dentro del single (botón como enlace, no vc_btn) */

body.akc-home .akc-evento-single .akc-promo {
	margin-top: 90px;
}

body.akc-home .akc-promo__btn2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 53px;
	padding: 0 25px;
	border-radius: 15px;
	background: var(--akc-boton, #8ed9f8);
	font-size: 18px;
	font-weight: 700;
	color: var(--akc-titular);
	text-decoration: none;
	transition: background-color .25s ease, transform .25s ease;
}

body.akc-home .akc-promo__btn2:hover {
	background: #74cef4;
	transform: translateY(-2px);
}

body.akc-home .akc-promo__btn2 .akc-btn__arrow {
	width: 24.264px;
	height: 12.231px;
	flex: none;
}

/* ---------- Responsive single ---------- */

@media (max-width: 1100px) {
	body.akc-home .akc-evento__card {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	body.akc-home .akc-evento__media {
		width: 100%;
		height: 420px;
	}

	body.akc-home .akc-evento__info {
		padding-top: 0;
	}

	body.akc-home .akc-proximos__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 680px) {
	body.akc-home .akc-evento-single {
		padding-top: 40px;
	}

	body.akc-home .akc-evento__titulo {
		font-size: 28px !important;
		line-height: 34px !important;
		margin-bottom: 24px !important;
	}

	body.akc-home .akc-evento__card {
		padding: 12px;
		border-radius: 15px;
	}

	body.akc-home .akc-evento__media {
		height: 280px;
	}

	body.akc-home .akc-evento__nombre {
		font-size: 28px !important;
		line-height: 34px !important;
	}

	body.akc-home .akc-proximos {
		padding-top: 56px;
	}

	body.akc-home .akc-proximos__head .akc-h2 {
		font-size: 30px !important;
		line-height: 36px !important;
	}

	body.akc-home .akc-proximos__grid {
		grid-template-columns: 1fr;
	}

	body.akc-home .akc-proximos__grid .akc-eventos__card {
		min-height: 0;
	}
}

/* ---------- Single evento: limpiar cabeceras de Uncode y ancho 1304 ---------- */

body.akc-evento-single-page .row.limit-width:has(.breadcrumb-title),
body.akc-evento-single-page .breadcrumb-title,
body.akc-evento-single-page .date-info,
body.akc-evento-single-page .author-info,
body.akc-evento-single-page .post-info,
body.akc-evento-single-page .post-title-wrapper,
body.akc-evento-single-page .single-meta,
body.akc-evento-single-page .post-meta,
body.akc-evento-single-page .single-navigation,
body.akc-evento-single-page .post-next-prev {
	display: none !important;
}

body.akc-evento-single-page .post-content .limit-width,
body.akc-evento-single-page .row-container > .limit-width {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.akc-evento-single-page .post-content .row-inner,
body.akc-evento-single-page .post-content .single-content,
body.akc-evento-single-page .post-content .content-wrapper {
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: none !important;
}

/* ================= Single de evento — Content Block (bloques dinámicos) ================= */

/* Filas del content block al ancho del contenedor */
body.akc-home .akc-evento-cb .row-inner,
body.akc-home .akc-evento-proximos-cb .row-inner {
	width: var(--akc-container, 1304px);
	max-width: calc(100% - (var(--akc-gutter, 24px) * 2));
	margin: 0 auto;
}

body.akc-home .akc-evento-cb {
	padding-top: 48px;
}

/* Título "Evento / …" */
body.akc-home .akc-evento__titulo-cb {
	margin-bottom: 32px !important;
}
body.akc-home .akc-evento__titulo-cb h1::before {
	content: "Evento / ";
}

/* Tarjeta: flex (media 579 | info 1fr) con borde celeste. Sin tocar los
   wrappers internos de Uncode (.uncol/.uncell…) para no romper su layout. */
body.akc-home .akc-evento-card-cb .row-inner {
	background: #fff;
	border: 5px solid var(--akc-celeste, #d2efff);
	border-radius: 18px;
	padding: 31px;
}
/* La columna de info respira a la izquierda respecto a la imagen */
body.akc-home .akc-evento-card-cb__info .uncont {
	padding-left: 40px;
}

/* Imagen del evento: natural (en flujo) para no romper la estructura tmb. */
body.akc-home .akc-evento__hero-cb,
body.akc-home .akc-evento__hero-cb .single-wrapper,
body.akc-home .akc-evento__hero-cb .tmb,
body.akc-home .akc-evento__hero-cb .t-inside,
body.akc-home .akc-evento__hero-cb .t-entry-visual,
body.akc-home .akc-evento__hero-cb .t-entry-visual-tc,
body.akc-home .akc-evento__hero-cb .uncode-single-media-wrapper {
	margin: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	height: auto !important;
	padding: 0 !important;
}
body.akc-home .akc-evento__hero-cb img {
	position: relative !important;
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	object-fit: cover;
	display: block;
	border-radius: 15px;
}

/* Columna de info */
body.akc-home .akc-evento-card-cb__info .uncont {
	padding-top: 43px !important;
}
body.akc-home .akc-evento__desc-cb,
body.akc-home .akc-evento__desc-cb p {
	font-size: 18px !important;
	line-height: 26px !important;
	font-weight: 400 !important;
	color: var(--akc-texto-alt, #394a58) !important;
	margin: 0 0 22px !important;
}
body.akc-home .akc-evento-card-cb__info .akc-evento__meta {
	margin-top: 22px;
}

/* Próximos eventos dentro del content block */
body.akc-home .akc-evento-proximos-cb {
	padding-top: 60px;
}
body.akc-home .akc-proximos__vacio {
	font-family: var(--akc-font);
	font-size: 20px;
	color: var(--akc-texto-alt, #394a58);
	margin: 0;
}

/* Responsive: apilar la tarjeta */
@media (max-width: 900px) {
	body.akc-home .akc-evento-card-cb .row-inner {
		flex-direction: column;
		gap: 24px;
		padding: 18px;
	}
	body.akc-home .akc-evento-card-cb__media {
		flex: 0 0 auto !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	body.akc-home .akc-evento__hero-cb img {
		height: auto !important;
		aspect-ratio: 579 / 619;
	}
	body.akc-home .akc-evento-card-cb__info .uncont {
		padding-top: 0 !important;
	}
}

/* Contenido del Content Block de evento al ancho del contenedor
   (el promo se queda full-bleed aparte). */
body.akc-home .akc-evento-cb .row-parent,
body.akc-home .akc-evento-card-cb .row-parent,
body.akc-home .akc-evento-proximos-cb .row-parent {
	width: var(--akc-container, 1304px) !important;
	max-width: calc(100% - (var(--akc-gutter, 24px) * 2)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
