/**
 * Sky Lista — listado con viñetas.
 * Estilos de viñeta: soft (círculo suave) · solid · icon · number · slash (diagonal).
 * Ítems: plain · divider · card. Columnas por dispositivo con --szl-cols.
 */

.szl {
	display: grid;
	grid-template-columns: repeat( var( --szl-cols, 1 ), minmax( 0, 1fr ) );
	gap: var( --szl-row-gap, 14px ) var( --szl-gap, 32px );
	margin: 0;
	padding: 0;
	list-style: none;
}

.szl__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: var( --szl-color, #1e2033 );
	font-size: var( --szl-size, 17px );
	line-height: var( --szl-lh, 1.45 );
}

.szl__item::marker {
	content: none;
}

/* ── Viñeta ── */
.szl__bullet {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var( --szl-b, 28px );
	height: var( --szl-b, 28px );
	/* Centrada con la PRIMERA línea del texto, aunque el ítem tenga varias */
	margin-top: max( 0px, calc( ( var( --szl-size, 17px ) * var( --szl-lh, 1.45 ) - var( --szl-b, 28px ) ) / 2 ) );
	border-radius: var( --szl-b-radius, 50% );
	color: var( --szl-b-color, #ff5a00 );
	font-size: calc( var( --szl-b, 28px ) * 0.46 );
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.szl__bullet svg {
	display: block;
	width: 58%;
	height: 58%;
}

.szl--align-center .szl__item {
	align-items: center;
}

.szl--align-center .szl__bullet {
	margin-top: 0;
}

/* Círculo suave: el color de marca al 14% de fondo y el ícono encima */
.szl--soft .szl__bullet {
	background: rgba( 255, 90, 0, 0.14 );
	background: color-mix( in srgb, var( --szl-b-color, #ff5a00 ) 14%, transparent );
}

/* Círculo sólido y números */
.szl--solid .szl__bullet,
.szl--number .szl__bullet {
	background: var( --szl-b-color, #ff5a00 );
	color: var( --szl-b-icon, #fff );
}

/* Solo ícono: un poco más grande dentro de su caja */
.szl--icon .szl__bullet {
	width: calc( var( --szl-b, 28px ) * 0.8 );
}

.szl--icon .szl__bullet svg {
	width: 100%;
	height: 72%;
}

/* Diagonal: barra inclinada, como los cortes del sitio */
.szl--slash .szl__bullet {
	width: calc( var( --szl-b, 28px ) * 0.5 );
	height: calc( var( --szl-b, 28px ) * 0.7 );
	margin-top: max( 0px, calc( ( var( --szl-size, 17px ) * var( --szl-lh, 1.45 ) - var( --szl-b, 28px ) * 0.7 ) / 2 ) );
	border-radius: 0;
	background: var( --szl-b-color, #ff5a00 );
	clip-path: polygon( 45% 0, 100% 0, 55% 100%, 0 100% );
}

.szl--align-center.szl--slash .szl__bullet {
	margin-top: 0;
}

/* Ítems con X ("no incluye"): viñeta y texto atenuados */
.szl__item--no {
	--szl-b-color: var( --szl-no, #a3a8b3 );
}

.szl__item--no .szl__text {
	color: var( --szl-no, #a3a8b3 );
	font-weight: 400;
}

.szl__item--no .szl__text .sz-hl,
.szl__desc .sz-hl {
	color: var( --szl-b-color, var( --sz-hl, #ff5a00 ) );
}

.szl__desc {
	opacity: 0.8;
}

.szl .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 1px, 1px, 1px, 1px );
	white-space: nowrap;
}

/* ── Texto ── */
.szl__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.szl__text {
	font-weight: var( --szl-weight, 500 );
}

.szl__text strong,
.szl__text b {
	font-weight: 800;
}

.szl__desc {
	color: var( --szl-desc-color, #5c6470 );
	font-size: var( --szl-desc-size, 14px );
	font-weight: 400;
	line-height: 1.5;
}

a.szl__link {
	transition: color 0.2s ease;
}

a.szl__link:hover .szl__text,
a.szl__link:focus-visible .szl__text {
	color: var( --szl-hover, #ff5a00 );
}

a.szl__link:focus-visible {
	outline: 2px solid var( --szl-hover, #ff5a00 );
	outline-offset: 4px;
	border-radius: 4px;
}

/* ── Ítems con línea divisoria ── */
.szl--items-divider {
	row-gap: 0;
}

.szl--items-divider .szl__item {
	padding: var( --szl-row-gap, 14px ) 0;
	border-bottom: 1px solid var( --szl-divider, #e3e6ea );
}

/* ── Ítems como tarjetas ── */
.szl--items-card .szl__item {
	align-items: flex-start;
	padding: 16px 18px;
	border: 1px solid var( --szl-card-border, #eceef3 );
	border-radius: var( --szl-card-radius, 12px );
	background: var( --szl-card-bg, #fff );
	box-shadow: 0 2px 10px rgba( 20, 22, 40, 0.05 );
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.szl--items-card .szl__item--link:hover {
	transform: translateY( -2px );
	box-shadow: 0 10px 24px rgba( 20, 22, 40, 0.1 );
}

.szl--empty {
	padding: 24px;
	border: 2px dashed #c9ccd6;
	color: #5c6470;
	text-align: center;
}

/* ── Entrada animada ──
   La clase szl--hidden la pone el JS solo en listas que aún no están en
   pantalla: sin JS, o si la lista ya se veía al cargar, no se oculta nada. */
.szl--hidden .szl__item {
	opacity: 0;
	transform: translateY( 12px );
}

.szl--in .szl__item {
	opacity: 1;
	transform: none;
	transition: opacity 0.45s ease, transform 0.45s ease;
	transition-delay: calc( min( var( --i, 0 ), 10 ) * 70ms );
}

.szl--in.szl--items-card .szl__item--link:hover {
	transition-delay: 0s;
	transform: translateY( -2px );
}

@media ( prefers-reduced-motion: reduce ) {
	.szl--hidden .szl__item {
		opacity: 1;
		transform: none;
	}

	.szl__item,
	.szl--in .szl__item {
		transition: none;
	}
}
