/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* =========================================================
   Shortcode: [revista_enlaza]
   ========================================================= */

.revista-enlaza-wrap {
	display: flex;
	gap: clamp(2rem, -0.6667rem + 11.8519vw, 10rem);
	align-items: stretch;
}

.revista-enlaza__featured {
	flex: 0 0 260px;
	max-width: 260px;
	overflow: clip;
}

body .revista-enlaza-wrap p,
body p.revista-enlaza__item-title,
body p.revista-enlaza__featured-meta {
	margin: 0;
}

body p.revista-enlaza__item-title {
	margin-top: clamp(0.5rem, 0.3333rem + 0.7407vw, 1rem);
}

.revista-enlaza__featured-inner {
	position: sticky;
	top: 1rem;
	transition: opacity 0.2s ease;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.revista-enlaza__featured-inner--hidden {
	opacity: 0;
	pointer-events: none;
}

.revista-enlaza__featured-inner img {
	width: 100%;
	height: auto;
	display: block;
}

.revista-enlaza__grid {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.revista-enlaza__row-header {
	display: flex;
	gap: 1rem;
	align-items: flex-end;
	margin-top: 2.5rem;
}

.revista-enlaza__year-label,
.revista-enlaza__year-continuation {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-bottom: 0.35rem;
}

.revista-enlaza__year-label::after,
.revista-enlaza__year-continuation::after {
	content: '';
	flex: 1;
	height: 1px;
	background: currentColor;
	min-width: 0.5rem;
}

.revista-enlaza__row-items {
	display: grid;
	grid-template-columns: repeat(6, 10.2rem);
	gap: 1rem;
	margin-top: 0.75rem;
}

.revista-enlaza__item {
	cursor: pointer;
	display: flex;
	flex-direction: column;
}

.revista-enlaza__item-title {
	margin-top: 1rem;
}

.revista-enlaza__item img {
	width: 100%;
	height: 14rem;
	object-fit: cover;
	display: block;
}

@media (max-width: 1024px) {
	.revista-enlaza__featured {
		display: none;
	}

	.revista-enlaza__grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 1rem;
		width: 100%;
	}

	.revista-enlaza__row-header {
		display: none;
	}

	.revista-enlaza__row-items {
		display: contents;
	}

	.revista-enlaza__item-pad {
		display: none;
	}
}

@media (max-width: 600px) {
	.revista-enlaza__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* =========================================================
   Shortcode: [hemeroteca]
   ========================================================= */

.hemeroteca-acordeon {
	margin-top: 60px;
}

.hemeroteca-year {
	display: grid;
	grid-template-columns: 190px 1fr;
	align-items: start;
}

.hemeroteca-year__label {
	font-family: 'Inter', sans-serif;
	font-weight: 300;
	font-size: 43px;
	line-height: 1;
	color: #000;
	padding-top: 40px;
}

.hemeroteca-year__inner {
	border-top: 1px solid #000;
}

.hemeroteca-year:first-child .hemeroteca-year__inner {
	border-top: none;
}

.hemeroteca-year:last-child .hemeroteca-year__inner {
	border-bottom: 1px solid #000;
}

.hemeroteca-year__header {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 28px 0;
	cursor: pointer;
}

.hemeroteca-year__icon {
	width: 24px;
	height: 24px;
	display: block;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.hemeroteca-year--open .hemeroteca-year__icon {
	transform: rotate(180deg);
}

.hemeroteca-year__body {
	overflow: hidden;
	max-height: 10000px;
	transition: max-height 0.4s ease;
	padding-bottom: 10px;
}

.hemeroteca-year__body--closed {
	max-height: 0;
	padding-bottom: 0;
}

.hemeroteca-post {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 0;
}

.hemeroteca-post__fecha {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 14px;
	text-transform: uppercase;
	color: #000;
}

.hemeroteca-post__titulo {
	font-family: 'Inter', sans-serif;
	font-weight: 300;
	font-size: 28px;
	line-height: 1.25;
	color: #000;
	text-decoration: none;
	display: block;
}

.hemeroteca-post__titulo:hover {
	text-decoration: underline;
}

.hemeroteca-separator {
	border: none;
	border-top: 1px solid #000;
	margin: 0;
}

@media (max-width: 768px) {
	.hemeroteca-year {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"label header"
			"body  body";
		border-top: 1px solid #000;
	}

	.hemeroteca-year:first-child {
		border-top: none;
	}

	.hemeroteca-year:last-child {
		border-bottom: 1px solid #000;
	}

	.hemeroteca-year__label {
		grid-area: label;
		padding-top: 20px;
		font-size: 36px;
	}

	.hemeroteca-year__inner {
		display: contents;
	}

	.hemeroteca-year__header {
		grid-area: header;
		padding: 20px 0;
	}

	.hemeroteca-year__body {
		grid-area: body;
	}
}

/* =========================================================
   Shortcode: [caminos_calendario_anual]
   ========================================================= */

/* ── Wrapper: grid de meses + leyenda lateral ── */

.caminos-cal-anual__wrap {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 3rem;
}

/* ── Navegación de año ── */

.caminos-cal-anual__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 2rem;
}

.caminos-cal-anual__nav-year {
	font-size: 1.5rem;
	font-weight: 300;
}

.caminos-cal-anual__nav-link {
	font-size: 1rem;
	font-weight: 300;
	text-decoration: none;
	color: var(--caminos-color-negro);
}

.caminos-cal-anual__nav-link:hover {
	text-decoration: underline;
}

/* ── Grid de 12 meses ── */

.caminos-cal-anual__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

/* Cada mes: caja con borde y padding */
.caminos-cal-anual__grid .em.em-view-container {
	padding: 1.5rem;
	border: 1px solid #000;
}

/* Cabecera y cuerpo transparentes */
.caminos-cal-anual__grid .em.em-view-container .em-cal-head,
.caminos-cal-anual__grid .em.em-view-container .em-cal-body {
	background-color: transparent;
}

/* El span del número de día no debe tener fondo ni border-radius de EM */
.caminos-cal-anual__grid .em.em-view-container .em-cal-body .em-cal-day-date span {
	background-color: transparent !important;
	border-radius: 0 !important;
}

/* Separación entre cabecera de días y primera fila */
.caminos-cal-anual__grid .em.em-view-container .em-cal-head.em-cal-week-days {
	padding-top: 2rem;
}

/* Layout interno del calendario */
.caminos-cal-anual__grid .em-calendar {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.caminos-cal-anual__grid .em-calendar .em-cal-body {
	flex: 1;
}

/* ── Navegación mensual: ocultar todo excepto el nombre del mes ── */

.caminos-cal-anual__grid .em-calendar .em-cal-nav {
	display: block;
	padding: 0 0 0.5rem 0;
}

.caminos-cal-anual__grid .em-calendar .em-cal-nav .month {
	font-size: 1.1rem;
	font-weight: 400;
	color: var(--caminos-color-negro);
	text-transform: capitalize;
}

.caminos-cal-anual__grid .em-calendar .em-cal-nav .month-nav,
.caminos-cal-anual__grid .em-calendar .em-cal-nav select,
.caminos-cal-anual__grid .em-calendar .em-cal-nav .em-calnav-prev,
.caminos-cal-anual__grid .em-calendar .em-cal-nav .em-calnav-next,
.caminos-cal-anual__grid .em-calendar .em-cal-nav .em-calnav-today,
.caminos-cal-anual__grid .em-calendar .em-cal-nav form,
.caminos-cal-anual__grid .em-calendar .em-cal-nav input,
.caminos-cal-anual__grid .em-calendar .em-cal-nav .toggle {
	display: none !important;
}

/* ── Días: color de texto ── */

.caminos-cal-anual__grid .em-cal-days.em-cal-head .em-cal-day,
.caminos-cal-anual__grid .em.em-calendar .em-cal-body .em-cal-day .em-cal-day-date span,
body .em.em-calendar .em-cal-body .em-cal-day .em-cal-day-date.em-cal-day-date span {
	color: var(--caminos-color-negro) !important;
}
body .em.em-calendar .em-cal-body .em-cal-day .em-cal-day-date.em-cal-day-date a, .em.em-calendar .em-cal-body .em-cal-day .em-cal-day-date.em-cal-day-date span{
    color: #000c !important;
}

/* Días del mes anterior/siguiente: número invisible */
.caminos-cal-anual__grid .em.em-calendar .em-cal-body .em-cal-day.eventless-pre .em-cal-day-date {
	opacity: 1;
}

.caminos-cal-anual__grid .em.em-calendar .em-cal-body .em-cal-day.eventless-pre .em-cal-day-date span {
	color: #A2A2A275 !important;
}

/* ── Círculo único de categoría por día ── */

.caminos-cal-anual__grid .em.em-calendar.size-small .em-cal-body .em-cal-day.eventful .em-cal-day-date.colored .caminos-cal-dot,
.caminos-cal-anual__grid .em.em-calendar.size-medium .em-cal-body .em-cal-day.eventful .em-cal-day-date.colored .caminos-cal-dot {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.caminos-cal-anual__grid .em.em-calendar.size-small .em-cal-body .em-cal-day.eventful .em-cal-day-date.colored .caminos-cal-dot a,
.caminos-cal-anual__grid .em.em-calendar.size-medium .em-cal-body .em-cal-day.eventful .em-cal-day-date.colored .caminos-cal-dot a {
	color: #fff !important;
	position: relative;
	z-index: 1;
}

/* ── Leyenda de categorías ── */

.caminos-cal-leyenda {
	flex-shrink: 0;
	position: sticky;
	top: 2rem;
}

.caminos-cal-leyenda__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.caminos-cal-leyenda__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.caminos-cal-leyenda__dot {
	width: 37px;
	height: 37px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Categoría sin color asignado: círculo vacío con borde punteado */
.caminos-cal-leyenda__dot--sin-color {
	background-color: transparent;
	border: 2px dashed #000;
}

.caminos-cal-leyenda__nombre {
	font-size: clamp(0.75rem, 0.6458rem + 0.463vw, 1.0625rem);
	font-weight: 200;
	text-transform: uppercase;
	line-height: 1.2;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
	.caminos-cal-anual__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.caminos-cal-anual__wrap {
		flex-direction: column;
	}

	.caminos-cal-leyenda {
		width: 100%;
		position: static;
		order: -1;
	}

	.caminos-cal-leyenda__list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem 2rem;
	}

	.caminos-cal-leyenda__dot {
		width: 20px;
		height: 20px;
	}
}

@media (max-width: 767px) {
	.caminos-cal-anual {
		width: 100%;
	}
	body .em-modal .em-modal-popup.active{
		background-color: var(--caminos-color-gris)!important;
	}
	body .em-modal .em-modal-popup.active header{
		background-color: var(--caminos-color-blanco);
		padding: 1rem;
	} 
}

@media (max-width: 600px) {
	.caminos-cal-anual__grid {
		grid-template-columns: 1fr;
		width: 100%;
	}
}

/* =========================================================
   Shortcode: [historico_formacion]
   ========================================================= */

.historico-acordeon {
	margin-top: 60px;
}

.historico-year {
	display: grid;
	grid-template-columns: 190px 1fr;
	align-items: start;
}

.historico-year__label {
	font-family: 'Inter', sans-serif;
	font-weight: 300;
	font-size: 60px;
	line-height: 1;
	color: #fff;
	padding-top: 40px;
}

.historico-year__inner {
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.historico-year:first-child .historico-year__inner {
	border-top: none;
}

.historico-year:last-child .historico-year__inner {
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.historico-year__header {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 28px 0;
	cursor: pointer;
}

.historico-year__icon {
	width: 24px;
	height: 24px;
	display: block;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.historico-year--open .historico-year__icon {
	transform: rotate(180deg);
}

.historico-year__body {
	overflow: hidden;
	max-height: 10000px;
	transition: max-height 0.4s ease;
	padding-bottom: 10px;
}

.historico-year__body--closed {
	max-height: 0;
	padding-bottom: 0;
}

.historico-post {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 0;
}

.historico-post__meta {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 17px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.historico-post__fecha {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 17px;
	color: rgba(255, 255, 255, 0.7);
}

.historico-post__titulo {
	font-family: 'Inter', sans-serif;
	font-weight: 300;
	font-size: 30px;
	line-height: 1.25;
	color: #fff;
	text-decoration: none;
	display: block;
}

.historico-post__titulo:hover {
	opacity: 0.7;
}

.historico-separator {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	margin: 0;
}

@media (max-width: 768px) {
	.historico-year {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"label header"
			"body  body";
		border-top: 1px solid rgba(255, 255, 255, 0.3);
	}

	.historico-year:first-child {
		border-top: none;
	}

	.historico-year:last-child {
		border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	}

	.historico-year__label {
		grid-area: label;
		padding-top: 20px;
		font-size: 36px;
	}

	.historico-year__inner {
		display: contents;
	}

	.historico-year__header {
		grid-area: header;
		padding: 20px 0;
	}

	.historico-year__body {
		grid-area: body;
	}
}
