/*
SolterosYa · Recursos dinámicos en Home
V1.1 · Desktop 4 / Tablet 2 / Móvil 2 + flechas
*/

.sy-home-resources{
	--sy-primary:#315CF5;
	--sy-primary-hover:#254DE0;
	--sy-accent:#D9F779;
	--sy-dark:#17213D;
	--sy-muted:#52617A;
	--sy-soft:#F5F7FC;
	--sy-border:#DEE5F1;
	--sy-container:1200px;
	--sy-gap:24px;
	width:100%;
	padding:clamp(72px,8vw,108px) 0;
	background:#fff;
	color:var(--sy-dark);
	font-family:"Manrope",Arial,sans-serif;
}

.sy-home-resources,
.sy-home-resources *{box-sizing:border-box}

.sy-home-resources__container{
	width:min(var(--sy-container),calc(100% - 48px));
	margin-inline:auto;
}

.sy-home-resources__head{
	display:flex;
	align-items:flex-end;
	justify-content:space-between;
	gap:32px;
	margin-bottom:34px;
}

.sy-home-resources__heading{max-width:720px;min-width:0}

.sy-home-resources__eyebrow{
	display:inline-flex;
	align-items:center;
	gap:10px;
	margin-bottom:14px;
	color:var(--sy-primary);
	font-size:13px;
	font-weight:700;
	letter-spacing:.08em;
	text-transform:uppercase;
}

.sy-home-resources__eyebrow::before{
	content:"";
	width:28px;
	height:2px;
	border-radius:999px;
	background:var(--sy-accent);
}

.sy-home-resources h2{
	margin:0 0 14px;
	color:var(--sy-dark);
	font-size:clamp(34px,4vw,48px);
	font-weight:700;
	line-height:1.12;
	letter-spacing:-.035em;
	text-wrap:balance;
}

.sy-home-resources__heading>p{
	max-width:660px;
	margin:0;
	color:var(--sy-muted);
	font-size:17px;
	line-height:1.7;
}

.sy-home-resources__controls{
	display:flex;
	flex:0 0 auto;
	gap:10px;
}

.sy-home-resources__arrow{
	display:grid;
	width:48px;
	height:48px;
	place-items:center;
	border:1px solid var(--sy-border);
	border-radius:50%;
	background:#fff;
	color:var(--sy-dark);
	font:inherit;
	font-size:20px;
	line-height:1;
	cursor:pointer;
	transition:border-color .18s ease,background-color .18s ease,color .18s ease,transform .18s ease,opacity .18s ease;
}

.sy-home-resources__arrow:hover:not(:disabled){
	border-color:var(--sy-primary);
	background:var(--sy-primary);
	color:#fff;
	transform:translateY(-1px);
}

.sy-home-resources__arrow:disabled{opacity:.34;cursor:not-allowed}

.sy-home-resources__arrow:focus-visible,
.sy-home-resources a:focus-visible,
.sy-home-resources__viewport:focus-visible{
	outline:3px solid rgba(49,92,245,.28);
	outline-offset:4px;
}

.sy-home-resources__viewport{
	width:100%;
	overflow-x:auto;
	overflow-y:hidden;
	scroll-behavior:smooth;
	scroll-snap-type:x mandatory;
	scrollbar-width:none;
	-webkit-overflow-scrolling:touch;
}

.sy-home-resources__viewport::-webkit-scrollbar{display:none}

.sy-home-resources__track{
	display:flex;
	gap:var(--sy-gap);
	width:max-content;
}

.sy-home-resources__card{
	display:flex;
	flex:0 0 calc((min(var(--sy-container),calc(100vw - 48px)) - (var(--sy-gap) * 3)) / 4);
	flex-direction:column;
	min-width:0;
	overflow:hidden;
	scroll-snap-align:start;
	border:1px solid var(--sy-border);
	border-radius:20px;
	background:#fff;
	transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.sy-home-resources__card:hover{
	transform:translateY(-3px);
	border-color:#CED8EA;
	box-shadow:0 16px 40px rgba(23,33,61,.08);
}

.sy-home-resources__media{
	display:block;
	position:relative;
	overflow:hidden;
	aspect-ratio:16/10;
	background:var(--sy-soft);
	text-decoration:none;
}

.sy-home-resources__image{
	display:block;
	width:100%;
	height:100%;
	object-fit:cover;
	transition:transform .3s ease;
}

.sy-home-resources__card:hover .sy-home-resources__image{transform:scale(1.025)}

.sy-home-resources__placeholder{
	display:grid;
	width:100%;
	height:100%;
	place-items:center;
	background:linear-gradient(135deg,#F4F7FF,#EEF2FC);
	color:var(--sy-dark);
	font-size:22px;
	font-weight:700;
	letter-spacing:-.04em;
}

.sy-home-resources__body{
	display:flex;
	flex:1;
	flex-direction:column;
	padding:22px 22px 21px;
}

.sy-home-resources h3{
	margin:0 0 11px;
	color:var(--sy-dark);
	font-size:20px;
	font-weight:700;
	line-height:1.35;
	letter-spacing:-.018em;
}

.sy-home-resources h3 a{color:inherit;text-decoration:none}
.sy-home-resources h3 a:hover{color:var(--sy-primary)}

.sy-home-resources__body p{
	display:-webkit-box;
	overflow:hidden;
	margin:0 0 18px;
	color:var(--sy-muted);
	font-size:15px;
	line-height:1.65;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:3;
}

.sy-home-resources__read{
	display:inline-flex;
	align-items:center;
	gap:8px;
	margin-top:auto;
	color:var(--sy-primary);
	font-size:14px;
	font-weight:700;
	text-decoration:none;
}

.sy-home-resources__read:hover{color:var(--sy-primary-hover)}

.sy-home-resources__footer{
	display:flex;
	justify-content:flex-end;
	margin-top:28px;
}

.sy-home-resources__all{
	display:inline-flex;
	align-items:center;
	gap:9px;
	color:var(--sy-dark);
	font-size:15px;
	font-weight:700;
	text-decoration:none;
}

.sy-home-resources__all:hover{color:var(--sy-primary)}

@media(max-width:980px){
	.sy-home-resources{--sy-gap:20px}
	.sy-home-resources__container{width:calc(100% - 40px)}
	.sy-home-resources__card{
		flex-basis:calc((100vw - 40px - var(--sy-gap)) / 2);
	}
}

@media(max-width:640px){
	.sy-home-resources{
		--sy-gap:12px;
		padding:58px 0 62px;
	}

	.sy-home-resources__container{width:calc(100% - 32px)}

	.sy-home-resources__head{
		display:grid;
		grid-template-columns:minmax(0,1fr) auto;
		gap:18px 12px;
		align-items:end;
		margin-bottom:24px;
	}

	.sy-home-resources__heading{grid-column:1 / -1}

	.sy-home-resources__eyebrow{
		margin-bottom:12px;
		font-size:11px;
	}

	.sy-home-resources__eyebrow::before{width:22px}

	.sy-home-resources h2{
		margin-bottom:11px;
		font-size:clamp(28px,8.4vw,34px);
		line-height:1.12;
	}

	.sy-home-resources__heading>p{
		max-width:34em;
		font-size:15.5px;
		line-height:1.6;
	}

	.sy-home-resources__controls{
		display:flex;
		grid-column:1 / -1;
		justify-content:flex-end;
		gap:8px;
	}

	.sy-home-resources__arrow{
		width:44px;
		height:44px;
		font-size:18px;
	}

	.sy-home-resources__card{
		flex-basis:calc((100vw - 32px - var(--sy-gap)) / 2);
		border-radius:16px;
	}

	.sy-home-resources__media{aspect-ratio:4/3}

	.sy-home-resources__body{padding:15px 14px 16px}

	.sy-home-resources h3{
		display:-webkit-box;
		overflow:hidden;
		margin-bottom:8px;
		font-size:15.5px;
		line-height:1.28;
		letter-spacing:-.012em;
		-webkit-box-orient:vertical;
		-webkit-line-clamp:4;
	}

	.sy-home-resources__body p{
		margin-bottom:12px;
		font-size:12.5px;
		line-height:1.48;
		-webkit-line-clamp:3;
	}

	.sy-home-resources__read{
		gap:5px;
		font-size:12.5px;
		line-height:1.35;
	}

	.sy-home-resources__footer{
		justify-content:flex-start;
		margin-top:22px;
	}

	.sy-home-resources__all{font-size:14px}
}

@media(max-width:360px){
	.sy-home-resources__container{width:calc(100% - 28px)}
	.sy-home-resources__card{
		flex-basis:calc((100vw - 28px - var(--sy-gap)) / 2);
	}
	.sy-home-resources__body{padding:13px 12px 14px}
	.sy-home-resources h3{font-size:14.5px}
	.sy-home-resources__body p{font-size:12px}
	.sy-home-resources__read{font-size:12px}
}

@media(prefers-reduced-motion:reduce){
	.sy-home-resources *,
	.sy-home-resources *::before,
	.sy-home-resources *::after{
		scroll-behavior:auto !important;
		transition-duration:.01ms !important;
	}
}
