/* AEEH Formación — estilos del listado.
   Sigue la paleta del sitio: naranja #EF7900, azul oscuro #122631. */

.aeeh-form { margin: 0 0 48px; scroll-margin-top: 110px; }

/* --- barra de navegación entre secciones --- */
.aeeh-form__nav {
	border-bottom: 1px solid #e5e2dd;
	margin: 0 0 34px;
}
.aeeh-form__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.aeeh-form__nav li { margin: 0; }
.aeeh-form__nav a {
	display: inline-block;
	padding: 12px 2px 14px;
	color: #5c6470;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.aeeh-form__nav a:hover,
.aeeh-form__nav a:focus-visible {
	color: #EF7900;
	border-bottom-color: #EF7900;
}

@media (max-width: 640px) {
	.aeeh-form__nav ul { gap: 0 18px; }
	.aeeh-form__nav a { font-size: 14px; padding: 10px 2px 12px; }
}

.aeeh-form__titulo {
	font-size: 26px;
	font-weight: 600;
	color: #122631;
	margin: 0 0 18px;
}

/* --- filtros --- */
.aeeh-form__filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 26px;
}
.aeeh-form__f {
	background: #fff;
	border: 1px solid #e0ddd8;
	color: #5c6470;
	border-radius: 22px;
	padding: 7px 16px;
	font-size: 14px;
	cursor: pointer;
	transition: all .15s ease;
	font-family: inherit;
	line-height: 1.4;
}
.aeeh-form__f:hover { border-color: #EF7900; color: #EF7900; }
.aeeh-form__f.is-on { background: #EF7900; border-color: #EF7900; color: #fff; }

/* --- rejilla --- */
.aeeh-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 26px;
	/* Cada tarjeta se ajusta a su contenido: las que no tienen imagen no se
	   estiran hasta la altura de las que sí la tienen. */
	align-items: start;
}

.aeeh-form__item {
	background: #fff;
	border: 1px solid #eceae6;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .18s ease, transform .18s ease;
}

/* Distinción entre lo que aún no ha ocurrido y lo ya celebrado.
   Lo próximo se destaca con el naranja de la casa y una franja superior;
   lo pasado se presenta en tono neutro, sin apagarlo (sigue siendo consultable). */
.aeeh-form__item--proximo {
	border-color: #f6d3ab;
	box-shadow: inset 0 3px 0 #EF7900;
}
.aeeh-form__item--proximo:hover {
	box-shadow: inset 0 3px 0 #EF7900, 0 6px 22px rgba(239, 121, 0, .16);
}
.aeeh-form__item--pasado {
	box-shadow: inset 0 3px 0 #dcd8d2;
}

/* --- etiqueta de estado --- */
.aeeh-form__estado {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .03em;
}
.aeeh-form__estado::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	display: inline-block;
}
.aeeh-form__estado--proximo { color: #c66500; }
.aeeh-form__estado--proximo::before { background: #EF7900; }
.aeeh-form__estado--pasado { color: #9aa0a8; }
.aeeh-form__estado--pasado::before { background: #c4c8cd; }
.aeeh-form__item:hover {
	box-shadow: 0 6px 22px rgba(18, 38, 49, .10);
	transform: translateY(-2px);
}

/* Proporción ancha y baja: las cabeceras de los microsites son banners muy
   apaisados y con texto; a 16/9 se les recortaban los laterales. */
.aeeh-form__img {
	display: block;
	aspect-ratio: 2.4 / 1;
	overflow: hidden;
	background: #f4f4f4;
}
.aeeh-form__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Cabecera de respaldo cuando el contenido no tiene miniatura. */
.aeeh-form__img--vacia {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: linear-gradient(135deg, #f7f5f2 0%, #eceae6 100%);
}
.aeeh-form__img--vacia span {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: #b9b4ac;
}
.aeeh-form__img--webinar  { background: linear-gradient(135deg, #fdf3e6 0%, #f8e3cb 100%); }
.aeeh-form__img--webinar span  { color: #d99048; }
.aeeh-form__img--curso    { background: linear-gradient(135deg, #eaf1f8 0%, #d6e4f0 100%); }
.aeeh-form__img--curso span    { color: #6d97bd; }
.aeeh-form__img--video    { background: linear-gradient(135deg, #f3ecf7 0%, #e6d9ee 100%); }
.aeeh-form__img--video span    { color: #9b7bb3; }
.aeeh-form__img--material { background: linear-gradient(135deg, #eef1ee 0%, #dfe5e0 100%); }
.aeeh-form__img--material span { color: #8a978d; }
.aeeh-form__img--master   { background: linear-gradient(135deg, #e9f5ee 0%, #d5eade 100%); }
.aeeh-form__img--master span   { color: #6ba98a; }
.aeeh-form__img--herramienta { background: linear-gradient(135deg, #eaf0f4 0%, #d8e4ec 100%); }
.aeeh-form__img--herramienta span { color: #7099b3; }

.aeeh-form__cuerpo { padding: 16px 18px 20px; flex: 1; }

.aeeh-form__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 9px;
	font-size: 12px;
	color: #8a8f97;
}

/* --- bloque de fecha destacado, al estilo del calendario de la portada --- */
.aeeh-form__item { position: relative; }

.aeeh-form__fecha {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	padding: 8px 9px 7px;
	background: #122631;
	color: #fff;
	border-radius: 8px;
	line-height: 1;
	box-shadow: 0 2px 10px rgba(18, 38, 49, .28);
}
.aeeh-form__fecha--proximo { background: #EF7900; }

.aeeh-form__dia {
	font-size: 25px;
	font-weight: 700;
	letter-spacing: -.02em;
	margin-bottom: 3px;
}
.aeeh-form__mes {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .09em;
}
.aeeh-form__anio {
	font-size: 10.5px;
	font-weight: 500;
	opacity: .72;
	margin-top: 3px;
	letter-spacing: .04em;
}
/* Cuando sólo se conoce el mes, el mes toma el protagonismo del día. */
.aeeh-form__fecha--mes .aeeh-form__mes { font-size: 17px; letter-spacing: .05em; }
.aeeh-form__fecha--mes .aeeh-form__anio { font-size: 12px; opacity: .8; }

.aeeh-form__tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 3px 9px;
	border-radius: 4px;
	background: #f6ecee;
	color: #EF7900;
}
.aeeh-form__tag--webinar     { background: #fdf0e3; color: #c66500; }
.aeeh-form__tag--curso       { background: #e9f1f8; color: #1c4f7c; }
.aeeh-form__tag--video       { background: #f1e9f5; color: #6b3b8a; }
.aeeh-form__tag--material    { background: #eef1ee; color: #4a5a4d; }
.aeeh-form__tag--master      { background: #e8f4ee; color: #1c6b45; }
.aeeh-form__tag--herramienta { background: #eaf0f4; color: #2b5f7a; }

.aeeh-form__h {
	font-size: 16.5px;
	line-height: 1.35;
	margin: 0 0 8px;
	font-weight: 600;
}
.aeeh-form__h a { color: #122631; text-decoration: none; }
.aeeh-form__h a:hover { color: #EF7900; }

.aeeh-form__ex {
	font-size: 14px;
	line-height: 1.55;
	color: #6b727c;
	margin: 0;
}

.aeeh-form__vacio {
	color: #8a8f97;
	font-style: italic;
	padding: 24px 0;
}

@media (max-width: 640px) {
	.aeeh-form__grid { grid-template-columns: 1fr; gap: 18px; }
	.aeeh-form__titulo { font-size: 22px; }
}
