/**
 * Capfiko Reseñas - Frontend styles.
 */

.capfiko-resenas-wrapper {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 20px 0;
	box-sizing: border-box;
}

.capfiko-resenas-swiper {
	padding: 10px 50px 50px !important;
	overflow: hidden;
}

.capfiko-resena-card {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	display: flex !important;
	flex-direction: column;
	height: auto;
	min-height: 260px;
	box-sizing: border-box;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.capfiko-resena-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.capfiko-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.capfiko-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.capfiko-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.capfiko-avatar-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 1px;
}

.capfiko-author-info {
	flex: 1;
	min-width: 0;
}

.capfiko-author-name {
	font-weight: 600;
	font-size: 15px;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.capfiko-date {
	font-size: 12px;
	color: #767676;
	margin-top: 2px;
}

.capfiko-platform-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.capfiko-platform-icon svg {
	display: block;
}

.capfiko-rating {
	display: flex;
	gap: 2px;
	margin-bottom: 12px;
	line-height: 1;
}

.capfiko-star {
	font-size: 18px;
	color: #e0e0e0;
}

.capfiko-star.is-filled {
	color: #fbbc05;
}

.capfiko-text {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-wrap: break-word;
}

.capfiko-text p {
	margin: 0 0 8px;
}

.capfiko-text p:last-child {
	margin-bottom: 0;
}

/* Swiper navigation overrides. */
.capfiko-resenas-swiper .swiper-button-prev,
.capfiko-resenas-swiper .swiper-button-next {
	color: #444;
	background: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	top: 50%;
	transform: translateY(-50%);
	margin-top: -20px;
}

.capfiko-resenas-swiper .swiper-button-prev:after,
.capfiko-resenas-swiper .swiper-button-next:after {
	font-size: 16px;
	font-weight: bold;
}

.capfiko-resenas-swiper .swiper-pagination {
	bottom: 10px;
}

.capfiko-resenas-swiper .swiper-pagination-bullet-active {
	background: #1a1a1a;
}

.capfiko-resenas-empty {
	text-align: center;
	color: #767676;
	padding: 40px 20px;
	font-style: italic;
}

/* Responsive: arrows fuera de la card en móvil. */
@media (max-width: 768px) {
	.capfiko-resenas-swiper {
		padding: 10px 10px 50px !important;
	}
	.capfiko-resenas-swiper .swiper-button-prev,
	.capfiko-resenas-swiper .swiper-button-next {
		display: none;
	}
	.capfiko-resena-card {
		min-height: 220px;
		padding: 20px;
	}
}
