/* =========================
   COMENTARIOS - ESTILO GLOBAL
   Solo visual, sin tocar lógica
   ========================= */

.comentario-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #f3f3f3;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.comentario-avatar {
	flex-shrink: 0;
}

.comentario-avatar-circle {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.15rem;
	color: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	text-transform: uppercase;
	user-select: none;
}

.avatar-color-0 {
	background: #e74c3c;
}

.avatar-color-1 {
	background: #3498db;
}

.avatar-color-2 {
	background: #27ae60;
}

.avatar-color-3 {
	background: #9b59b6;
}

.avatar-color-4 {
	background: #f39c12;
}

.avatar-color-5 {
	background: #16a085;
}

.comentario-contenido {
	flex: 1;
	min-width: 0;
}

.comentario-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 8px;
}

.comentario-autor-fecha {
	display: flex;
	flex-direction: column;
}

.comentario-autor {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1a73e8;
	text-decoration: none;
	line-height: 1.2;
}

.comentario-autor:hover {
	text-decoration: underline;
	color: #0d5fd3;
}

.comentario-fecha {
	font-size: 0.85rem;
	color: #666;
	white-space: nowrap;
}

.comentario-texto {
	font-size: 1rem;
	color: #222;
	line-height: 1.5;
	word-break: break-word;
	margin-bottom: 10px;
}

.comentario-acciones {
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.accion-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	cursor: pointer;
}

.accion-item i {
	border: 1px solid #cfcfcf;
	background: #fff;
	padding: 6px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.accion-item i:hover {
	transform: scale(1.05);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.accion-contador {
	font-size: 0.75rem;
	color: #1a0dab;
	margin-top: 2px;
	line-height: 1;
}

.comentario-respuesta-form {
	margin-top: 12px;
	padding-top: 8px;
}

.comentario-respuestas {
	margin-top: 14px;
	margin-left: 28px;
	border-left: 2px solid #d8d8d8;
	padding-left: 14px;
}

.comentario-form-box {
	background: #f8f8f8;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 15px;
}

.comentario-textarea {
	resize: vertical;
	border-radius: 8px;
}

.btn-comentar{
	border-radius:8px;
	padding:8px 20px;
	font-weight:600;
	min-width:150px;
	box-shadow:0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
	.comentario-card {
		padding: 12px;
		gap: 10px;
	}

	.comentario-avatar-circle {
		width: 44px;
		height: 44px;
		font-size: 1rem;
	}

	.comentario-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.comentario-fecha {
		white-space: normal;
	}

	.comentario-acciones {
		justify-content: flex-start;
		gap: 12px;
	}

	.comentario-respuestas {
		margin-left: 12px;
		padding-left: 10px;
	}
}