/* Shorts de la portada y «Síguenos» (class-ea-shorts.php, 2026-09-29). Verticales 9:16, carril con scroll-snap. */
.ea-shorts {
	position: relative;
	padding: var(--ea-sec, 90px) 0;
}
.ea-shorts-cabeza {
	margin-bottom: 40px;
}
.ea-shorts-marco {
	position: relative;
}
.ea-shorts-carril {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0 0 6px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.ea-shorts-carril::-webkit-scrollbar {
	display: none;
}
.ea-short {
	position: relative;
	flex: 0 0 calc((100% - 4 * 18px) / 5);
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: #16101f;
	scroll-snap-align: start;
}
.ea-short-btn {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: left;
}
.ea-short-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}
.ea-short-btn:hover img,
.ea-short-btn:focus-visible img {
	transform: scale(1.04);
}
.ea-short-btn:focus-visible {
	outline: 2px solid #c9b3ff;
	outline-offset: -4px;
}
/* El título sobre un velo que baja: se lee sobre cualquier foto. */
.ea-short-btn::after {
	content: "";
	position: absolute;
	inset: 45% 0 0;
	background: linear-gradient(180deg, rgba(13, 10, 20, 0), rgba(13, 10, 20, 0.92));
}
.ea-short-txt {
	position: absolute;
	right: 14px;
	bottom: 14px;
	left: 14px;
	z-index: 1;
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
}
.ea-short-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 58px;
	height: 58px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	background: rgba(13, 10, 20, 0.5);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transform: translate(-50%, -50%);
	transition: background-color 0.2s, border-color 0.2s;
}
.ea-short-play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent #fff;
	transform: translate(-50%, -50%);
}
.ea-short-btn:hover .ea-short-play,
.ea-short-btn:focus-visible .ea-short-play {
	background: #701bfa;
	border-color: #701bfa;
}
.ea-short iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.ea-shorts-flecha {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	background: rgba(13, 10, 20, 0.75);
	color: #fff;
	transform: translateY(-50%);
	transition: background-color 0.2s, border-color 0.2s;
}
.ea-shorts-flecha:hover {
	background: #701bfa;
	border-color: #701bfa;
}
.ea-shorts-flecha[hidden] {
	display: none;
}
.ea-shorts-flecha.is-atras {
	left: -23px;
}
.ea-shorts-flecha.is-atras i {
	transform: rotate(180deg);
}
.ea-shorts-flecha.is-adelante {
	right: -23px;
}
.ea-shorts-redes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 12px;
	margin-top: 36px;
}
.ea-shorts-redes-txt {
	margin-right: 4px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 15px;
}
.ea-shorts-redes a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px 10px 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	transition: background-color 0.2s, border-color 0.2s;
}
.ea-shorts-redes a i {
	font-size: 17px;
}
.ea-shorts-redes a:hover,
.ea-shorts-redes a:focus-visible {
	border-color: #701bfa;
	background: #701bfa;
	color: #fff;
}
@media (max-width: 1199px) {
	.ea-short {
		flex-basis: calc((100% - 3 * 18px) / 4);
	}
	.ea-shorts-flecha.is-atras {
		left: 4px;
	}
	.ea-shorts-flecha.is-adelante {
		right: 4px;
	}
}
@media (max-width: 767px) {
	.ea-short {
		flex-basis: 62%;
	}
	.ea-shorts-carril {
		gap: 14px;
	}
	.ea-shorts-flecha {
		display: none !important;
	}
	/* Las 4 redes en 2 × 2, del mismo ancho: en una fila envolvente quedaban 3 y YouTube solo abajo (2026-10-30). */
	.ea-shorts-redes {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.ea-shorts-redes-txt {
		grid-column: 1 / -1;
		width: 100%;
		margin: 0 0 2px;
		text-align: center;
	}
	.ea-shorts-redes a {
		justify-content: center;
		min-width: 0;
		padding: 12px 14px;
	}
}
