/**
 * Franja superior.
 *
 * Los colores llegan como variables en línea desde el panel, así que el mismo
 * markup sirve para una franja negra, roja o clara.
 */

.autum-franja {
	background-color: var(--franja-fondo, #111);
	color: var(--franja-texto, #fff);
	font-size: 0.8125rem;
	line-height: 1.4;
	overflow: hidden;
}

.autum-franja a {
	color: inherit;
	text-decoration: none;
}

.autum-franja a:hover {
	text-decoration: underline;
}

.autum-franja__interior {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding: 0.5rem 1rem;
	min-height: 2.25rem;
}

@media (min-width: 1024px) {
	.autum-franja__interior {
		padding-inline: 1.5rem;
	}
}

.autum-franja__mensajes {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
}

.autum-franja__pista {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	min-width: 0;
}

.autum-franja__mensaje {
	white-space: nowrap;
}

/* --- Estático: un solo mensaje visible, recortado si no cabe --- */

.autum-franja--estatico .autum-franja__pista {
	overflow: hidden;
}

.autum-franja--estatico .autum-franja__mensaje {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* --- Marquesina --- */

.autum-franja--marquesina .autum-franja__mensajes {
	position: relative;
	flex-wrap: nowrap;
}

.autum-franja--marquesina .autum-franja__pista {
	flex: 0 0 auto;
	padding-right: 2.5rem;
	animation: autum-franja-desplaza 28s linear infinite;
}

.autum-franja--marquesina:hover .autum-franja__pista {
	animation-play-state: paused;
}

@keyframes autum-franja-desplaza {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-100%);
	}
}

/*
 * Movimiento horizontal continuo es justo lo que molesta a quien tiene
 * sensibilidad vestibular, y además impide leer a quien necesita más tiempo.
 */
@media (prefers-reduced-motion: reduce) {
	.autum-franja--marquesina .autum-franja__pista {
		animation: none;
	}

	.autum-franja--marquesina .autum-franja__pista[aria-hidden="true"] {
		display: none;
	}
}

/* --- Lado derecho --- */

.autum-franja__lado {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex: 0 0 auto;
}

.autum-franja__dato {
	white-space: nowrap;
	opacity: 0.9;
}

.autum-franja__redes {
	display: flex;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.autum-franja__redes a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 600;
	opacity: 0.75;
	text-decoration: none;
}

.autum-franja__redes a:hover {
	opacity: 1;
	text-decoration: none;
}

.autum-franja__cta {
	padding: 0.25rem 0.75rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-weight: 600;
	white-space: nowrap;
}

.autum-franja__cta:hover {
	background-color: currentColor;
	text-decoration: none;
}

/* El texto vuelve a su color heredando el fondo actual del botón. */
.autum-franja__cta:hover {
	color: var(--franja-fondo, #111);
}

/* En móvil el contacto secundario sobra: manda el mensaje. */
@media (max-width: 47.99rem) {
	.autum-franja__dato,
	.autum-franja__redes {
		display: none;
	}
}
