/* Bridge Events — calendario y listados de eventos */

.bem-module {
	--bem-teal: #2dc3b0;
	--bem-teal-light: #1cdac1;
	--bem-navy: #06123a;
	--bem-cyan: #00a0ba;
	--bem-gray: #707070;
	--bem-border: #e5e5e5;
	font-family: 'Poppins', Helvetica, Arial, sans-serif;
}

.bem-module *,
.bem-module *::before,
.bem-module *::after {
	box-sizing: border-box;
}

/* Visibilidad por dispositivo ("disabled_on" de Divi) */
@media (min-width: 981px) {
	.bem-hide-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 980px) {
	.bem-hide-tablet { display: none !important; }
}
@media (max-width: 767px) {
	.bem-hide-phone { display: none !important; }
}

.bem-module.is-loading,
.bem-calendar.is-loading {
	opacity: .5;
	pointer-events: none;
	transition: opacity .2s;
}

/* Botones ------------------------------------------------------------ */

.bem-module .bem-button {
	display: inline-block;
	background: var(--bem-teal);
	color: #fff;
	border: 0;
	border-radius: 30px;
	padding: .3em 1em;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.7;
	text-decoration: none;
	cursor: pointer;
	transition: opacity .2s;
}
.bem-module .bem-button:hover,
.bem-module .bem-button:focus {
	color: #fff;
	opacity: .85;
}
.bem-module .bem-button--outline {
	background: transparent;
	color: var(--bem-teal);
	box-shadow: inset 0 0 0 2px var(--bem-teal);
}
.bem-module .bem-button--outline:hover,
.bem-module .bem-button--outline:focus {
	color: var(--bem-teal);
}
.bem-module .bem-button[disabled] {
	opacity: .5;
	cursor: wait;
}

/* Listados ----------------------------------------------------------- */

.bem-events__list {
	display: grid;
	gap: 30px;
}
.bem-layout-grid.bem-cols-1 .bem-events__list { grid-template-columns: minmax(0, 1fr); }
.bem-layout-grid.bem-cols-2 .bem-events__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bem-layout-grid.bem-cols-3 .bem-events__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bem-layout-grid.bem-cols-4 .bem-events__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bem-layout-list .bem-events__list,
.bem-past__list {
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}
@media (max-width: 980px) {
	.bem-layout-grid .bem-events__list { grid-template-columns: minmax(0, 1fr) !important; }
}

.bem-module .bem-month-sep,
.bem-module .bem-past__title {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 10px 0 0;
	padding: 0;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
	color: #00b8d6;
}
.bem-module .bem-month-sep::after,
.bem-module .bem-past__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #d9d9d9;
}
.bem-module .bem-past__title {
	color: var(--bem-navy);
	font-size: 30px;
}

.bem-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
}
.bem-card__media img {
	display: block;
	width: 100%;
	height: auto;
}
.bem-card__body {
	padding: 20px;
}
.bem-module .bem-card__title {
	margin: 0 0 10px;
	padding: 0;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--bem-navy);
}
.bem-module .bem-card__title a {
	color: inherit;
	text-decoration: none;
}
.bem-card__details {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	color: var(--bem-navy);
}
.bem-detail {
	display: flex;
	align-items: baseline;
	gap: 5px;
	line-height: 1.7;
}
.bem-detail__label {
	font-weight: 700;
}
.bem-detail__icon {
	position: relative;
	top: 2px;
	flex: 0 0 auto;
	color: var(--bem-teal);
}
.bem-module .bem-detail a {
	color: var(--bem-teal);
	text-decoration: none;
}
.bem-module .bem-detail a:hover {
	text-decoration: underline;
}
.bem-card__excerpt {
	margin: 10px 0 0;
	padding: 0;
	font-size: 14px;
}
.bem-module .bem-card__more {
	margin: 15px 0 0;
	padding: 0;
}
.bem-module .bem-empty {
	margin: 0;
	padding: 20px 0;
	color: var(--bem-gray);
}

/* Layout lista: imagen a la izquierda, datos a la derecha */
.bem-layout-list .bem-card,
.bem-past__list .bem-card {
	flex-direction: row;
	align-items: flex-start;
	gap: 30px;
	background: transparent;
}
.bem-layout-list .bem-card__media,
.bem-past__list .bem-card__media {
	flex: 0 0 33.333%;
	max-width: 33.333%;
}
.bem-layout-list .bem-card__media img,
.bem-past__list .bem-card__media img {
	border-radius: 8px;
}
.bem-layout-list .bem-card__body,
.bem-past__list .bem-card__body {
	flex: 1;
	min-width: 0;
	padding: 0;
}
.bem-layout-list .bem-card__title {
	font-size: 30px;
}
@media (max-width: 767px) {
	.bem-layout-list .bem-card,
	.bem-past__list .bem-card {
		flex-direction: column;
		gap: 15px;
	}
	.bem-layout-list .bem-card__media,
	.bem-past__list .bem-card__media {
		flex-basis: auto;
		width: 100%;
		max-width: 100%;
	}
	.bem-layout-list .bem-card__media:empty,
	.bem-past__list .bem-card__media:empty {
		display: none;
	}
	.bem-layout-list .bem-card__title {
		font-size: 24px;
	}
	.bem-module .bem-month-sep {
		font-size: 28px;
	}
}

/* Layout grilla: tarjeta con fecha destacada */
.bem-layout-grid .bem-card {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 12px 18px -6px rgba(0, 0, 0, .3);
}
.bem-layout-grid .bem-card__media {
	position: relative;
}
.bem-layout-grid .bem-card__media a {
	display: block;
}
.bem-callout {
	position: absolute;
	top: 10px;
	left: 15px;
	min-width: 70px;
	padding: 4px;
	line-height: 1.3;
	text-align: center;
}
.bem-card__media--no-image .bem-callout {
	position: static;
	display: block;
	margin: 15px auto 0;
}
.bem-callout__day {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: var(--bem-cyan);
}
.bem-callout__month {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #0f1e4c;
}
.bem-layout-grid .bem-card__title {
	color: var(--bem-cyan);
}
.bem-module.bem-layout-grid .bem-button {
	padding: .3em 20px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
}

/* Eventos pasados */
.bem-past {
	margin-top: 30px;
}
.bem-past__list {
	display: grid;
	margin-bottom: 20px;
}
.bem-past__list:empty {
	display: none;
}
.bem-module .bem-past__more {
	margin: 0;
	padding: 0;
	text-align: center;
}

/* Calendario --------------------------------------------------------- */

.bem-calendar {
	position: relative;
}
.bem-calendar__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 20px;
}
.bem-calendar__nav {
	display: flex;
	gap: 8px;
}
.bem-module .bem-calendar__btn {
	min-width: 32px;
	height: 32px;
	padding: 0 12px;
	background: var(--bem-teal-light);
	color: #fff;
	border: 0;
	border-radius: 51px;
	font-family: inherit;
	font-size: 14px;
	line-height: 32px;
	cursor: pointer;
}
.bem-module .bem-calendar__btn:hover,
.bem-module .bem-calendar__btn:focus-visible {
	filter: brightness(.93);
}
.bem-calendar__btn span {
	position: relative;
	top: -1px;
	font-size: 22px;
	line-height: 1;
}
.bem-module .bem-calendar__title {
	margin: 0;
	padding: 0;
	font-size: 42px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--bem-teal-light);
}

.bem-module .bem-calendar__grid {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
}
.bem-module .bem-calendar__grid th {
	padding: 10px 4px;
	background: transparent;
	border: 0;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	color: var(--bem-navy);
}
.bem-calendar__grid th abbr {
	border: 0;
	text-decoration: none;
	cursor: default;
}
.bem-module .bem-day {
	height: 110px;
	padding: 0;
	vertical-align: top;
	background: #fff;
	border: 1px solid var(--bem-border);
}
.bem-day__inner {
	height: 100%;
	padding: 8px;
}
.bem-day__number {
	display: block;
	margin-bottom: 8px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	color: var(--bem-navy);
}
.bem-day.is-other-month .bem-day__number {
	opacity: .3;
}
.bem-module .bem-day.is-today {
	background: #dcdcdc;
}
.bem-day.is-today .bem-day__number {
	color: var(--bem-teal);
}
.bem-module .bem-day__events {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bem-module .bem-day__event {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bem-module .bem-chip {
	display: block;
	padding: 4px 5px;
	background: rgba(207, 209, 247, .79);
	color: #132663;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	overflow-wrap: break-word;
}
/* Barra de un evento de varios días: ocupa --bem-span celdas de la semana. */
.bem-module .bem-day__event.is-span .bem-chip {
	position: relative;
	z-index: 1;
	width: calc(var(--bem-span) * (100% + 17px) - 17px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bem-module .bem-day__event.is-spacer .bem-chip {
	visibility: hidden;
}
.bem-tooltip {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 20;
	width: 260px;
	padding: 12px 14px;
	background: #d7daff;
	color: var(--bem-navy);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
	font-size: 13px;
	line-height: 1.4;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .15s;
}
.bem-day__event:hover .bem-tooltip,
.bem-chip:focus + .bem-tooltip {
	opacity: 1;
	visibility: visible;
}
.bem-calendar__grid td:nth-child(n+6) .bem-tooltip {
	right: 0;
	left: auto;
}
.bem-tooltip__title {
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
}
.bem-tooltip__date,
.bem-tooltip__venue {
	display: block;
}

.bem-calendar__agenda {
	display: none;
}
.bem-agenda__day {
	padding: 12px 0;
	border-bottom: 1px solid var(--bem-border);
}
.bem-module .bem-agenda__date {
	margin: 0 0 6px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--bem-teal);
}
.bem-module .bem-agenda__day ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bem-module .bem-agenda__day li {
	margin: 0 0 4px;
	padding: 0;
}
.bem-module .bem-agenda__day a {
	font-weight: 600;
	text-decoration: none;
	color: var(--bem-navy);
}
.bem-agenda__venue {
	font-size: 13px;
	color: var(--bem-gray);
}
.bem-module .bem-calendar__empty {
	margin: 0;
	padding: 20px 0;
	color: var(--bem-gray);
}
@media (max-width: 767px) {
	.bem-calendar__grid { display: none; }
	.bem-calendar__agenda { display: block; }
	.bem-module .bem-calendar__title { font-size: 28px; }
}

/* Datos del evento (página individual) ------------------------------ */

.bem-details {
	font-size: 18px;
	line-height: 1.5;
	color: var(--bem-gray);
}
.bem-module.bem-details a {
	color: var(--bem-navy);
	text-decoration: none;
}
.bem-module.bem-details a:hover {
	text-decoration: underline;
}
.bem-details__item + .bem-details__item {
	margin-top: 4px;
}
.bem-add-to-calendar {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
}

/* Buscador ----------------------------------------------------------- */

.bem-search {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 800px;
	margin: 0 auto;
}
.bem-search__field {
	flex: 1;
	margin: 0;
}
.bem-module .bem-search__input {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	background: #fff;
	color: var(--bem-navy);
	border: 1px solid #c9c9c9;
	border-radius: 30px;
	font-family: inherit;
	font-size: 14px;
}
.bem-module .bem-search__input::placeholder {
	color: #000;
	font-weight: 600;
	opacity: 1;
}
.bem-module .bem-search__input:focus {
	border-color: var(--bem-teal);
	outline: none;
	box-shadow: 0 0 0 2px rgba(45, 195, 176, .25);
}
.bem-module .bem-search__button {
	height: 40px;
	padding: 0 1em;
	background: var(--bem-teal);
	color: #fff;
	border: 0;
	border-radius: 30px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
}
.bem-module .bem-search__reset {
	padding: 0;
	background: none;
	border: 0;
	color: var(--bem-gray);
	font-family: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}
.bem-search__reset[hidden] {
	display: none;
}
