/* Scroll Atención — Feed (mobile-first, estilo Reels/TikTok) */

:root {
	/* 100dvh evita saltos por la barra de direcciones en móvil. */
	--sa-block-height: 100dvh;
}

html, body {
	margin: 0;
	padding: 0;
	background: #000;
}

.sa-feed {
	/* Scroll con snap: un contenido dominante por "página". */
	scroll-snap-type: y mandatory;
	overflow-y: auto;
	height: 100dvh;
	width: 100%;
	background: #000;
	-webkit-overflow-scrolling: touch;
}

.sa-block {
	scroll-snap-align: start;
	scroll-snap-stop: always;
	height: var(--sa-block-height);
	width: 100%;
	display: block;
	position: relative;
}

.sa-block__color {
	height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	box-sizing: border-box;
}

/* Texto central presente en todos los contenidos. El color se fija inline
   (sa_contrast_text_color) para contrastar con el color de fondo del contenido. */
.sa-block__message {
	margin: 0;
	text-align: center;
	font-family: system-ui, -apple-system, sans-serif;
	font-weight: 800;
	font-size: clamp(2.5rem, 12vw, 5rem);
	line-height: 1.05;
	letter-spacing: -.01em;
}

/* Contenido de administrador: sin distintivo visual (borde y badge ocultos a petición).
   La irrupción se transmite solo por el texto central ("Atención").
   Para reactivar el borde: box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25); */

.sa-block__badge {
	position: absolute;
	top: max(1rem, env(safe-area-inset-top));
	left: 1rem;
	padding: .3rem .7rem;
	background: rgba(255, 255, 255, .9);
	color: #111;
	font-family: system-ui, -apple-system, sans-serif;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	border-radius: 999px;
}

/* Soporte de imágenes (futuras fases). */
.sa-block__media { height: 100%; width: 100%; }
.sa-block__media img { height: 100%; width: 100%; object-fit: cover; display: block; }
.sa-block__caption {
	position: absolute;
	bottom: max(1.5rem, env(safe-area-inset-bottom));
	left: 1rem; right: 1rem;
	color: #fff;
	font-family: system-ui, sans-serif;
	text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

.sa-feed__empty {
	height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: system-ui, sans-serif;
	text-align: center;
	padding: 2rem;
}

.sa-feed__sentinel { height: 1px; width: 100%; }

/* En pantallas grandes, encuadramos el feed centrado tipo "teléfono". */
@media (min-width: 768px) {
	.sa-feed {
		max-width: 460px;
		margin: 0 auto;
		border-left: 1px solid #222;
		border-right: 1px solid #222;
	}
}
