/*
Estilos visuales replicados del sitio original patsatakua.centroculturadigital.mx
(hojas client/*.css generadas por Svelte, sin los hash svelte-*).
Las flechas del carrusel (.carousel .left/.right) se complementan con global.css.
*/

/* ---- Layout general (original: section.Inicio con grid 1fr 2fr) ---- */

@media screen and (min-width: 768px) {
	body {
		display: grid;
		grid-template-columns: 1fr 2fr;
		min-height: 100%;
		height: 100vh;
		overflow: hidden;
	}
}

/* ---- Fondo de partículas (original: #FondoParticulas) ---- */

#particles-js {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100vw;
	z-index: -1;
}

#particles-js canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* ---- Barra lateral ---- */

.Lateral {
	color: #000;
	background-color: rgba(255, 255, 255, 0.6);
	padding: 2rem;
	display: flex;
	justify-content: center;
	overflow-y: scroll;
	z-index: 11;
}

.LateralContenido {
	max-width: 260px;
}

.LateralContenido > header > .Titulo {
	font-size: 2.75rem;
	text-align: center;
	margin-bottom: 0.25rem;
	font-weight: bold;
	letter-spacing: 0.125rem;
	margin-top: 4px;
	color: #72a6aa;
	text-shadow: -1px 1px #ffffff, -1px -1px #ffffff, 1px -1px #ffffff,
		1px 1px #f3f3f2, 0px 3px #72a6aa;
}

.TituloFonetico {
	color: #000;
	font-weight: lighter;
	text-align: center;
	margin-bottom: 0.5rem;
}

.SubtituloSignificado {
	font-weight: 500;
	font-size: 0.75rem;
	line-height: 1rem;
	margin-bottom: 2rem;
}

.Introduccion {
	font-weight: 200;
	font-size: 0.9rem;
	line-height: 20px;
}

.Introduccion + .Mas {
	padding: 1rem;
	text-align: center;
	width: 100%;
}

.Introduccion + .Mas button {
	color: #72a6aa;
	background: none;
	border: none;
	cursor: pointer;
}

.Mas button:hover {
	opacity: 0.75;
}

.Colaboraciones {
	border-style: solid;
	border-color: rgba(114, 166, 170, 1);
	border-width: thin;
	display: flex;
	padding: 0.5rem 1rem 0.5rem 1rem;
}

.TextoColabora {
	font-size: 0.9rem;
	text-align: left;
	color: #000;
}

.Mail {
	font-weight: bold;
	font-size: 0.9rem;
	text-align: left;
	color: #000;
}

.Mail:hover {
	opacity: 0.75;
}

.ProyectosParticipantes {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.Creditos {
	line-height: 14px;
	color: #454344;
	text-align: center;
	margin-top: 2rem;
	font-weight: 400;
}

/* ---- Carrusel de proyectos participantes ---- */

.LogosProyectos {
	height: 5rem;
	width: 14rem;
	margin-bottom: 2rem;
}

.LogosProyectos .carousel,
.LogosProyectos .slides {
	height: 5rem;
}

.carousel {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.carousel button {
	cursor: pointer;
}

/* La posición de las flechas (left: 0 / right: 0, 40x40, color gris)
   viene de global.css, igual que en el original */

.carousel .Control {
	display: block;
	width: 100%;
	height: 100%;
}

/* Ventana visible del carrusel */
.carousel .slides {
	overflow: hidden;
	width: 100%;
	direction: ltr;
	cursor: grab;
	touch-action: pan-y;
}

.carousel .slides:active {
	cursor: grabbing;
}

/* Pista deslizante: cada slide ocupa el 100% del ancho visible */
.carousel .pista {
	display: flex;
	height: 100%;
	transition: transform 200ms ease-out;
}

.carousel .LogoProyecto {
	flex: 0 0 100%;
	height: 5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 0 3rem;
	user-select: none;
}

.LogoProyecto {
	font-size: 0.9rem;
	text-align: center;
	color: rgb(121, 121, 121);
	font-weight: 400;
}

.LogoProyecto > .Titulo {
	margin: 0;
}

/* ---- Logos institucionales ---- */

.LogosCreditos {
	width: 100%;
	margin-bottom: 4rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 18rem;
}

.LogoInstitucional {
	display: flex;
	align-items: center;
	justify-content: center;
}

.LogoInstitucional img {
	max-width: 8rem;
}

/* ---- Contenedor principal ---- */

.contenedor-principal {
	overflow-y: auto;
	overflow-x: hidden;
	padding-top: 2rem;
}

.Lista {
	margin-bottom: 3rem;
}

.Lista ul {
	padding: 1rem;
	list-style: none;
}

/* ---- Tarjetas de proyectos ---- */

.Tarjeta {
	max-width: 320px;
	z-index: 11;
	transition: 0.35s;
	background: #FFFFFF;
	mix-blend-mode: normal;
	box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
	border-radius: 5px;
}

.Tarjeta:hover {
	box-shadow: 1px 5px 17px rgba(0, 0, 0, 0.4);
}

.Tarjeta a {
	text-decoration: none;
	color: #000;
	display: block;
	height: 100%;
}

.Tarjeta .Imagen {
	width: 100%;
	height: 12rem;
	object-fit: contain;
}

.Tarjeta .Texto {
	padding: 1rem;
	font-style: normal;
	color: #000;
}

.Tarjeta .Texto .Titulo {
	font-weight: 500;
	line-height: var(--TextoMediano--line-height);
}

.Tarjeta .Texto .Extracto {
	font-weight: 300;
	font-size: 0.9rem;
	line-height: var(--TextoChico--line-height);
}

/* ---- Pie de página ---- */

.Pie {
	transition: 1s;
	width: 100%;
	background-color: #f0f0f0;
	display: grid;
	grid-template-columns: 70% 30%;
}

.Pie .Texto {
	font-size: 0.8rem;
	padding: 2rem;
	border-right-style: solid;
	border-right-color: #c4c4c4;
	border-right-width: 1px;
}

.Pie .Logos {
	text-align: center;
	display: grid;
	grid-template-columns: 1fr;
	padding: 2rem;
}

.Pie .Logos ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.Pie .Logos img {
	max-width: 140px;
}

/* ---- Escritorio (cortes originales) ---- */

@media screen and (min-width: 767px) {
	.contenedor-principal {
		height: 100vh;
		overflow-y: auto;
		overflow-x: hidden;
		padding: 0;
		padding-top: 2rem;
	}

	.Lateral {
		color: #000;
		height: 100vh;
	}

	.Introduccion + .Mas {
		display: none;
	}

	.Lista ul {
		padding: 0 1rem;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-gap: 2rem;
	}
}

@media screen and (min-width: 1200px) {
	.Lista ul {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

/* ---- Móvil (cortes originales; el Pie se adapta porque no hay PieMovil) ---- */

@media screen and (max-width: 768px) {
	.Lateral {
		height: auto;
		transition: height 2s ease-out;
		overflow-y: hidden;
	}

	.ProyectosParticipantes {
		display: none;
	}

	.Introduccion {
		height: 8rem;
		transition: height 2s ease-out;
		overflow-y: hidden;
	}

	.Introduccion.Completo {
		height: auto;
	}

	.Lista ul .Tarjeta {
		margin: 0 auto 2rem;
	}

	.Pie {
		display: block;
	}

	.Pie .Texto {
		border-right: none;
	}
}
