/* CSS para página Tendencias - tendencias.css */

/* Layout principal - Desktop */

.tendencias-layout {
	display: flex;
	height: 100vh;
	overflow: hidden;
}

.tendencias-content {
	flex: 1;
	overflow-y: auto;
	height: 100vh;
}

.tendencias-aside {
	width: 8.7vw;
	background: white;
	overflow: hidden;
	flex-shrink: 0;
}

.tendencias-aside-scroll {
	height: 100%;
	overflow-y: auto;
	padding-left: 1rem;
	box-sizing: border-box;
}

.bloque-descarga-tendencias {
	margin-bottom: 1rem;
}

/* Cards del aside - Desktop */
.aside-card {
	display: block;
	margin-bottom: 1.5rem; /* 24px */
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.aside-card:hover {
	opacity: 0.8;
}

.aside-card:last-child {
	margin-bottom: 0;
}

.aside-card-imagen {
	width: 100%;
	aspect-ratio: 0.773; /* 116/150 */
	border-radius: 0.5rem; /* 8px */
	overflow: hidden;
	margin-bottom: 0.75rem; /* 12px */
}

.aside-card-imagen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.aside-card-titulo {
	color: #1B1B1A;
	font-family: "Open Sauce Two", sans-serif;
	font-size: 0.75rem; /* 12px */
	font-style: normal;
	font-weight: 400;
	line-height: 150%;
	margin: 0;
}

/* Smooth scroll para navegación con anclas */
html {
	scroll-behavior: smooth;
}

/* Scroll suave también para contenedores con overflow */
.tendencias-content {
	scroll-behavior: smooth;
}

/* Acordeón de tendencias */
.boton-acordeon-tendencias .flecha-acordeon {
	transform: rotate(90deg);
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.boton-acordeon-tendencias.active .flecha-acordeon {
	transform: rotate(-90deg);
}

/* Contenido expandible del acordeón */
.contenido-acordeon-tendencias {
	max-height: 0;
	overflow: hidden;
	transition: max-height 1s ease;
}

.contenido-acordeon-tendencias.active {
	max-height: 800px;
}

/* Bloque tendencia - Desktop */
#contenido-tendencias .bloque-newsletter {
	margin: 1rem 0;
}

.bloque-tendencia {
	margin-bottom: 6rem;
}

.bloque-tendencia:last-child {
	margin-bottom: 0;
}

/* Título tendencia */
.tendencia-titulo {
	margin-bottom: 0.5rem;
}

.tendencia-titulo h1 {
	color: #1B1B1A;
	font-family: "Founders Grotesk", sans-serif;
	font-size: 3rem;
	font-weight: 700;
	line-height: 100%;
	letter-spacing: -0.96px;
	margin: 0;
	padding: 1.75rem 1.5rem;
	border: 1px solid #1b1b1a;
	border-radius: 10px;
}

/* Imagen tendencia */
.tendencia-imagen {
	margin-bottom: 3rem;
}

.tendencia-imagen img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: cover;
	display: block;
}

/* Texto tendencia */
.tendencia-texto p {
	color: #1B1B1A;
	font-family: "Open Sauce Two", sans-serif;
	font-size: 1.6875rem; /* 27px */
	font-style: normal;
	font-weight: 400;
	line-height: 140%;
	margin: 0;
}

/* Métricas */
.tendencia-metricas {
	display: flex;
	gap: 2.5rem; /* 40px */
	padding: 3rem 0;
}

.metrica {
	color: #1B1B1A;
	font-family: "Founders Grotesk", sans-serif;
	font-size: 1.5rem; /* 24px */
	font-style: normal;
	font-weight: 700;
	line-height: 100%;
	letter-spacing: -0.48px;
}

/* Botón tendencia */
.tendencia-boton {
	/* Usa estilos heredados de .boton-proyecto */
}

/* Carrusel mobile - Oculto en desktop */
.tendencias-carrusel-mobile {
	display: none;
}

/* Bloque animación inicial - Solo desktop */
.tendencias-animacion-intro {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 9999;
	background: #fff;
	pointer-events: none;
}

.animacion-image {
	position: absolute;
	width: 7.2rem;
	opacity: 0;
	transform: scale(0.8);
}

.animacion-image img {
	width: 7.2rem;
	height: 9.4rem;
	border-radius: 0.5rem;
	object-fit: cover;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
	display: block;
}

.animacion-titulo {
	color: #1B1B1A;
	font-family: "Open Sauce Two", sans-serif;
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 400;
	line-height: 150%;
	margin: 0.75rem 0 0 0;
	text-align: center;
}

/* Responsive Mobile */
@media (max-width: 767px) {
	.tendencias-animacion-intro {
		display: none;
	}

	.contenido-acordeon-tendencias.active {
		max-height: 1000px;
	}

	.bloque-descarga-tendencias {
		margin-bottom: 16px;
	}

	/* Layout mobile - sin aside */
	.tendencias-layout {
		display: block;
		height: auto;
		overflow: visible;
		gap: 0;
	}

	.tendencias-content {
		overflow: visible;
		height: auto;
	}

	.tendencias-aside {
		display: none;
	}

	/* Carrusel mobile - Visible */
	.tendencias-carrusel-mobile {
		display: block;
		margin: 16px 0;
		margin-left: -16px;
		margin-right: -16px;
	}

	.carrusel-container {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		padding: 0 16px;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.carrusel-container::-webkit-scrollbar {
		display: none;
	}

	.carrusel-card {
		flex: 0 0 auto;
		width: 59.62px;
		height: 76.93;
		scroll-snap-align: start;
	}

	.carrusel-card img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 4.4px;
		display: block;
	}

	/* Bloque tendencia - Mobile */
	.bloque-tendencia {
		margin-bottom: 96px;
	}

	#contenido-tendencias .bloque-newsletter {
		margin: 16px 0 0 0;
	}

	/* Título tendencia - Mobile */
	.tendencia-titulo {
		margin-right: 0;
		margin-bottom: 16px;
	}

	.tendencia-titulo h1 {
		font-size: 27px;
		line-height: 110%;
		letter-spacing: -0.54px;
		padding: 16px;
	}

	/* Imagen tendencia - Mobile */
	.tendencia-imagen {
		margin-bottom: 24px;
	}

	.tendencia-imagen img {
		aspect-ratio: 1;
	}

	/* Texto tendencia - Mobile */
	.tendencia-texto p {
		font-size: 20px;
		line-height: 140%;
	}

	/* Métricas - Mobile en columna */
	.tendencia-metricas {
		flex-direction: column;
		gap: 16px;
		padding: 64px 0;
	}

	.metrica {
		font-size: 24px;
		line-height: 100%;
		letter-spacing: -0.48px;
	}
}


